diff --git a/pscheduler-test-clock/clock/validate.py b/pscheduler-test-clock/clock/validate.py index 84bd36c14..d272de30a 100644 --- a/pscheduler-test-clock/clock/validate.py +++ b/pscheduler-test-clock/clock/validate.py @@ -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 diff --git a/pscheduler-test-dhcp/dhcp/validate.py b/pscheduler-test-dhcp/dhcp/validate.py index d083d9698..902bc2829 100644 --- a/pscheduler-test-dhcp/dhcp/validate.py +++ b/pscheduler-test-dhcp/dhcp/validate.py @@ -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 diff --git a/pscheduler-test-disk-to-disk/disk-to-disk/validate.py b/pscheduler-test-disk-to-disk/disk-to-disk/validate.py index 0eddd508b..c6bac7263 100644 --- a/pscheduler-test-disk-to-disk/disk-to-disk/validate.py +++ b/pscheduler-test-disk-to-disk/disk-to-disk/validate.py @@ -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 diff --git a/pscheduler-test-dns/dns/validate.py b/pscheduler-test-dns/dns/validate.py index 083e1e297..96ba0ad2d 100644 --- a/pscheduler-test-dns/dns/validate.py +++ b/pscheduler-test-dns/dns/validate.py @@ -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 diff --git a/pscheduler-test-dot1x/dot1x/validate.py b/pscheduler-test-dot1x/dot1x/validate.py index 0cf07d776..154ffa817 100644 --- a/pscheduler-test-dot1x/dot1x/validate.py +++ b/pscheduler-test-dot1x/dot1x/validate.py @@ -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 diff --git a/pscheduler-test-http/http/validate.py b/pscheduler-test-http/http/validate.py index 9ef6d2010..8ee681b0d 100644 --- a/pscheduler-test-http/http/validate.py +++ b/pscheduler-test-http/http/validate.py @@ -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 diff --git a/pscheduler-test-idle/idle/validate.py b/pscheduler-test-idle/idle/validate.py index 84377fc33..b32a365e1 100644 --- a/pscheduler-test-idle/idle/validate.py +++ b/pscheduler-test-idle/idle/validate.py @@ -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 diff --git a/pscheduler-test-idlebgm/idlebgm/validate.py b/pscheduler-test-idlebgm/idlebgm/validate.py index 6d723f35c..c254c638e 100644 --- a/pscheduler-test-idlebgm/idlebgm/validate.py +++ b/pscheduler-test-idlebgm/idlebgm/validate.py @@ -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 diff --git a/pscheduler-test-idleex/idleex/validate.py b/pscheduler-test-idleex/idleex/validate.py index 479353ed0..b94a0ab36 100644 --- a/pscheduler-test-idleex/idleex/validate.py +++ b/pscheduler-test-idleex/idleex/validate.py @@ -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 diff --git a/pscheduler-test-latency/latency/validate.py b/pscheduler-test-latency/latency/validate.py index 28859b327..813d08cdc 100644 --- a/pscheduler-test-latency/latency/validate.py +++ b/pscheduler-test-latency/latency/validate.py @@ -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 diff --git a/pscheduler-test-latencybg/latencybg/validate.py b/pscheduler-test-latencybg/latencybg/validate.py index 83d615175..bff1aafe9 100644 --- a/pscheduler-test-latencybg/latencybg/validate.py +++ b/pscheduler-test-latencybg/latencybg/validate.py @@ -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 diff --git a/pscheduler-test-mtu/mtu/validate.py b/pscheduler-test-mtu/mtu/validate.py index 56317269a..291c0d5c4 100644 --- a/pscheduler-test-mtu/mtu/validate.py +++ b/pscheduler-test-mtu/mtu/validate.py @@ -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 diff --git a/pscheduler-test-netreach/netreach/validate.py b/pscheduler-test-netreach/netreach/validate.py index 1c347469c..6cb539ad8 100644 --- a/pscheduler-test-netreach/netreach/validate.py +++ b/pscheduler-test-netreach/netreach/validate.py @@ -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 diff --git a/pscheduler-test-noop/noop/validate.py b/pscheduler-test-noop/noop/validate.py index 844f221af..8ab16faf7 100644 --- a/pscheduler-test-noop/noop/validate.py +++ b/pscheduler-test-noop/noop/validate.py @@ -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 diff --git a/pscheduler-test-openports/openports/validate.py b/pscheduler-test-openports/openports/validate.py index ef0c0b686..8dad5b53d 100755 --- a/pscheduler-test-openports/openports/validate.py +++ b/pscheduler-test-openports/openports/validate.py @@ -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 diff --git a/pscheduler-test-psresponse/psresponse/validate.py b/pscheduler-test-psresponse/psresponse/validate.py index a0c32d669..1b2b610e0 100644 --- a/pscheduler-test-psresponse/psresponse/validate.py +++ b/pscheduler-test-psresponse/psresponse/validate.py @@ -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 diff --git a/pscheduler-test-rtt/rtt/validate.py b/pscheduler-test-rtt/rtt/validate.py index 16742e322..8efc704be 100644 --- a/pscheduler-test-rtt/rtt/validate.py +++ b/pscheduler-test-rtt/rtt/validate.py @@ -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 diff --git a/pscheduler-test-s3throughput/s3throughput/validate.py b/pscheduler-test-s3throughput/s3throughput/validate.py index 4ce16a3aa..dd0df548a 100644 --- a/pscheduler-test-s3throughput/s3throughput/validate.py +++ b/pscheduler-test-s3throughput/s3throughput/validate.py @@ -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 diff --git a/pscheduler-test-simplestream/simplestream/validate.py b/pscheduler-test-simplestream/simplestream/validate.py index 37dc826dc..c8aab34af 100644 --- a/pscheduler-test-simplestream/simplestream/validate.py +++ b/pscheduler-test-simplestream/simplestream/validate.py @@ -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 diff --git a/pscheduler-test-snmpget/snmpget/validate.py b/pscheduler-test-snmpget/snmpget/validate.py index 1c7f186cc..1e4c0b3eb 100644 --- a/pscheduler-test-snmpget/snmpget/validate.py +++ b/pscheduler-test-snmpget/snmpget/validate.py @@ -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 diff --git a/pscheduler-test-snmpgetbgm/snmpgetbgm/validate.py b/pscheduler-test-snmpgetbgm/snmpgetbgm/validate.py index 3b88eb66f..332336fbc 100644 --- a/pscheduler-test-snmpgetbgm/snmpgetbgm/validate.py +++ b/pscheduler-test-snmpgetbgm/snmpgetbgm/validate.py @@ -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 diff --git a/pscheduler-test-snmpset/snmpset/validate.py b/pscheduler-test-snmpset/snmpset/validate.py index caa3dc310..fd676bb8d 100644 --- a/pscheduler-test-snmpset/snmpset/validate.py +++ b/pscheduler-test-snmpset/snmpset/validate.py @@ -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 diff --git a/pscheduler-test-throughput/throughput/validate.py b/pscheduler-test-throughput/throughput/validate.py index 2953d3df7..ec41bee01 100644 --- a/pscheduler-test-throughput/throughput/validate.py +++ b/pscheduler-test-throughput/throughput/validate.py @@ -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 diff --git a/pscheduler-test-trace/trace/validate.py b/pscheduler-test-trace/trace/validate.py index d5145da8e..e6504ba50 100644 --- a/pscheduler-test-trace/trace/validate.py +++ b/pscheduler-test-trace/trace/validate.py @@ -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 diff --git a/pscheduler-test-wifibssid/wifibssid/validate.py b/pscheduler-test-wifibssid/wifibssid/validate.py index ba8979434..fa0d81ace 100644 --- a/pscheduler-test-wifibssid/wifibssid/validate.py +++ b/pscheduler-test-wifibssid/wifibssid/validate.py @@ -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 diff --git a/scripts/PDK/templates/test/__PLUGIN_NAME__/validate.py b/scripts/PDK/templates/test/__PLUGIN_NAME__/validate.py index 00f6a3e39..9fb9f8ee7 100644 --- a/scripts/PDK/templates/test/__PLUGIN_NAME__/validate.py +++ b/scripts/PDK/templates/test/__PLUGIN_NAME__/validate.py @@ -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