Skip to content

Commit

Permalink
Added warning comment in validators about adjusting *-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Feb 7, 2024
1 parent fa07286 commit c181bbd
Show file tree
Hide file tree
Showing 26 changed files with 147 additions and 54 deletions.
6 changes: 6 additions & 0 deletions pscheduler-test-clock/clock/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "trace" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate, json_validate_from_standard_template

MAX_SCHEMA = 2
Expand Down
13 changes: 4 additions & 9 deletions pscheduler-test-dhcp/dhcp/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
# Validator for a pScheduler Test
#

# IMPORTANT:
#
# Development Order #3:
#
# This file determines the required and optional data types which are
# allowed to be in the test spec and result. This is used
# for validation of these structures.
#
# Several existing datatypes are available for use at:
# pscheduler/python-pscheduler/pscheduler/pscheduler/jsonval.py
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

Expand Down
13 changes: 4 additions & 9 deletions pscheduler-test-disk-to-disk/disk-to-disk/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
# Validator for "disk-to-disk" Test
#

# IMPORTANT:
#
# Development Order #3:
#
# This file determines the required and optional data types which are
# allowed to be in the test spec and result. This is used
# for validation of these structures.
#
# Several existing datatypes are available for use at:
# pscheduler/python-pscheduler/pscheduler/pscheduler/jsonval.py
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-dns/dns/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "dns" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
10 changes: 4 additions & 6 deletions pscheduler-test-dot1x/dot1x/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
# Validator for a pScheduler test and its result.
#

# IMPORTANT:
#
# Development Order #3: Test specification and result validation
#
# The functions in this file determine whether or not specifications
# and results for this test are valid.
#

# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate_from_standard_template

Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-http/http/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "http" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

# TODO: _ for sensitive values

from pscheduler import json_validate
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-idle/idle/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "idle" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 2
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-idlebgm/idlebgm/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "idlebg" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-idleex/idleex/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "idleex" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-latency/latency/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "latency" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 3
Expand Down
11 changes: 11 additions & 0 deletions pscheduler-test-latencybg/latencybg/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
# Validator for "latency" Test
#

#
# Development Order #3:
#
# This file determines the required and optional data types which are
# allowed to be in the test spec and result. This is used
# for validation of these structures.
#
# Several existing datatypes are available for use at:
# pscheduler/python-pscheduler/pscheduler/pscheduler/jsonval.py
#

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
13 changes: 4 additions & 9 deletions pscheduler-test-mtu/mtu/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
# Validator for a pScheduler Test
#

# IMPORTANT:
#
# Development Order #3:
#
# This file determines the required and optional data types which are
# allowed to be in the test spec and result. This is used
# for validation of these structures.
#
# Several existing datatypes are available for use at:
# pscheduler/python-pscheduler/pscheduler/pscheduler/jsonval.py
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-netreach/netreach/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "netreach" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

import ipaddress

from pscheduler import json_validate
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-noop/noop/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "noop" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
13 changes: 4 additions & 9 deletions pscheduler-test-openports/openports/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
# Validator for a pScheduler Test
#

# IMPORTANT:
#
# Development Order #3:
#
# This file determines the required and optional data types which are
# allowed to be in the test spec and result. This is used
# for validation of these structures.
#
# Several existing datatypes are available for use at:
# pscheduler/python-pscheduler/pscheduler/pscheduler/jsonval.py
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-psresponse/psresponse/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "psresponse" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-rtt/rtt/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "rtt" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 4
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-s3throughput/s3throughput/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "s3throughput" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate_from_standard_template
from pscheduler import json_standard_template_max_schema

Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-simplestream/simplestream/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "simplestream" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 2
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-snmpget/snmpget/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "snmpget" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-snmpgetbgm/snmpgetbgm/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "snmpget" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 1
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-snmpset/snmpset/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "snmpset" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

# TODO: _ for sensitive values

from pscheduler import json_validate
Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-throughput/throughput/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "throughput" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate
import json

Expand Down
6 changes: 6 additions & 0 deletions pscheduler-test-trace/trace/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Validator for "trace" Test
#

# IMPORTANT:
#
# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate

MAX_SCHEMA = 2
Expand Down
10 changes: 4 additions & 6 deletions pscheduler-test-wifibssid/wifibssid/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
# Validator for a pScheduler test and its result.
#

# IMPORTANT:
#
# Development Order #3: Test specification and result validation
#
# The functions in this file determine whether or not specifications
# and results for this test are valid.
#

# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate_from_standard_template

Expand Down
10 changes: 4 additions & 6 deletions scripts/PDK/templates/test/__PLUGIN_NAME__/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
# Validator for a pScheduler test and its result.
#

# IMPORTANT:
#
# Development Order #3: Test specification and result validation
#
# The functions in this file determine whether or not specifications
# and results for this test are valid.
#

# When making changes to the JSON schemas in this file, corresponding
# changes MUST be made in 'spec-format' and 'result-format' to make
# them capable of formatting the new specifications and results.

from pscheduler import json_validate_from_standard_template

Expand Down

0 comments on commit c181bbd

Please sign in to comment.