diff --git a/.github/workflows/CI.md b/.github/workflows/CI.md index 4c0a32a935..7056641ec2 100644 --- a/.github/workflows/CI.md +++ b/.github/workflows/CI.md @@ -29,6 +29,8 @@ Steps: Steps: -* test_docker_fully_mocked.sh +* test_docker_fully_mocked.sh with following configurations: +1. U-Space (configurations.dev.uspace) +2. ASTM NETRID v19 (configurations.dev.netrid_v19) -### prober tests (`make test` in monitoring/prober) \ No newline at end of file +### prober tests (`make test` in monitoring/prober) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff29a910fd..cc1c0ade2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,10 +54,20 @@ jobs: run: | cd monitoring/mock_uss make test - - name: uss_qualifier tests + - name: uss_qualifier tests - U-Space Test Suite run: | cd monitoring/uss_qualifier make test + env: + RID_VERSION: F3411-22a + CONFIG_NAME: configurations.dev.local_test + - name: uss_qualifier tests - ASTM NetRID F3411-19 Test Suite + run: | + cd monitoring/uss_qualifier + make test + env: + RID_VERSION: F3411-19 + CONFIG_NAME: configurations.dev.netrid_v19 - name: prober tests run: | cd monitoring/prober diff --git a/Makefile b/Makefile index f11ac23e97..a18adbc4e2 100644 --- a/Makefile +++ b/Makefile @@ -74,9 +74,12 @@ collect-local-logs: -docker logs atproxy > logs/atproxy.log 2>&1 -docker logs mock_uss_scdsc > logs/mock_uss_scdsc.log 2>&1 -docker logs mock_uss_ridsp > logs/mock_uss_ridsp.log 2>&1 + -docker logs mock_uss_ridsp_v22a > logs/mock_uss_ridsp_v22a.log 2>&1 -docker logs mock_uss_riddp > logs/mock_uss_riddp.log 2>&1 + -docker logs mock_uss_riddp_v22a > logs/mock_uss_riddp_v22a.log 2>&1 -docker logs mock_uss_geoawareness > logs/mock_uss_geoawareness.log 2>&1 -docker logs mock_uss_tracer > logs/mock_uss_tracer.log 2>&1 + -docker logs mock_uss_tracer_v22a > logs/mock_uss_tracer_v22a.log 2>&1 -docker logs mock_uss_atproxy_client > logs/mock_uss_atproxy_client.log 2>&1 .PHONY: stop-locally diff --git a/monitoring/mock_uss/run_locally_riddp.sh b/monitoring/mock_uss/run_locally_riddp.sh index 05fa961bfb..180d699615 100755 --- a/monitoring/mock_uss/run_locally_riddp.sh +++ b/monitoring/mock_uss/run_locally_riddp.sh @@ -6,12 +6,14 @@ if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then fi AUTH="DummyOAuth(http://host.docker.internal:8085/token,uss1)" -DSS="http://host.docker.internal:8082" +DSS=${MOCK_USS_DSS_URL:-"http://host.docker.internal:8082"} +RID_VERSION=${MOCK_USS_RID_VERSION:-"F3411-22a"} PUBLIC_KEY="/var/test-certs/auth2.pem" AUD=${MOCK_USS_TOKEN_AUDIENCE:-localhost,host.docker.internal} -container_name="mock_uss_riddp" +CONTAINER_NAME=${MOCK_CONTAINER_NAME:-"mock_uss_riddp"} -PORT=8073 +PORT=${PORT:-8083} +BASE_URL="http://${MOCK_USS_TOKEN_AUDIENCE:-host.docker.internal}:${PORT}" if [ "$CI" == "true" ]; then docker_args="--add-host host.docker.internal:host-gateway" # Required to reach other containers in Ubuntu (used for Github Actions) @@ -19,15 +21,17 @@ else docker_args="-it" fi -docker container rm -f ${container_name} || echo "No pre-existing ${container_name} container to remove" +docker container rm -f "${CONTAINER_NAME}" || echo "No pre-existing ${CONTAINER_NAME} container to remove" # shellcheck disable=SC2086 -docker run ${docker_args} --name ${container_name} \ +docker run ${docker_args} --name "${CONTAINER_NAME}" \ -e MOCK_USS_AUTH_SPEC="${AUTH}" \ -e MOCK_USS_DSS_URL="${DSS}" \ + -e MOCK_USS_BASE_URL="${BASE_URL}" \ -e MOCK_USS_PUBLIC_KEY="${PUBLIC_KEY}" \ -e MOCK_USS_TOKEN_AUDIENCE="${AUD}" \ -e MOCK_USS_SERVICES="riddp" \ + -e MOCK_USS_RID_VERSION="${RID_VERSION}" \ -p ${PORT}:5000 \ -v "${SCRIPT_DIR}/../../build/test-certs:/var/test-certs:ro" \ "$@" \ diff --git a/monitoring/mock_uss/run_locally_riddp_v19.sh b/monitoring/mock_uss/run_locally_riddp_v19.sh new file mode 100755 index 0000000000..ed63462e89 --- /dev/null +++ b/monitoring/mock_uss/run_locally_riddp_v19.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then + "${SCRIPT_DIR}/../build.sh" || exit 1 +fi + +MOCK_CONTAINER_NAME="mock_uss_riddp_v19" \ +MOCK_USS_RID_VERSION="F3411-19" \ +PORT=8073 \ +"${SCRIPT_DIR}/run_locally_riddp.sh" "$@" \ No newline at end of file diff --git a/monitoring/mock_uss/run_locally_ridsp.sh b/monitoring/mock_uss/run_locally_ridsp.sh index 7f3b10fd9a..3260cbe52e 100755 --- a/monitoring/mock_uss/run_locally_ridsp.sh +++ b/monitoring/mock_uss/run_locally_ridsp.sh @@ -6,12 +6,13 @@ if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then fi AUTH="DummyOAuth(http://host.docker.internal:8085/token,uss1)" -DSS="http://host.docker.internal:8082" +DSS=${MOCK_USS_DSS_URL:-"http://host.docker.internal:8082"} +RID_VERSION=${MOCK_USS_RID_VERSION:-"F3411-22a"} PUBLIC_KEY="/var/test-certs/auth2.pem" AUD=${MOCK_USS_TOKEN_AUDIENCE:-localhost,host.docker.internal} -container_name="mock_uss_ridsp" +CONTAINER_NAME=${MOCK_CONTAINER_NAME:-"mock_uss_ridsp"} -PORT=8071 +PORT=${PORT:-8081} BASE_URL="http://${MOCK_USS_TOKEN_AUDIENCE:-host.docker.internal}:${PORT}" if [ "$CI" == "true" ]; then @@ -20,16 +21,17 @@ else docker_args="-it" fi -docker container rm -f ${container_name} || echo "No pre-existing ${container_name} container to remove" +docker container rm -f "${CONTAINER_NAME}" || echo "No pre-existing ${CONTAINER_NAME} container to remove" # shellcheck disable=SC2086 -docker run ${docker_args} --name ${container_name} \ +docker run ${docker_args} --name "${CONTAINER_NAME}" \ -e MOCK_USS_AUTH_SPEC="${AUTH}" \ -e MOCK_USS_DSS_URL="${DSS}" \ -e MOCK_USS_PUBLIC_KEY="${PUBLIC_KEY}" \ -e MOCK_USS_TOKEN_AUDIENCE="${AUD}" \ -e MOCK_USS_BASE_URL="${BASE_URL}" \ -e MOCK_USS_SERVICES="ridsp" \ + -e MOCK_USS_RID_VERSION="${RID_VERSION}" \ -p ${PORT}:5000 \ -v "${SCRIPT_DIR}/../../build/test-certs:/var/test-certs:ro" \ "$@" \ diff --git a/monitoring/mock_uss/run_locally_ridsp_v19.sh b/monitoring/mock_uss/run_locally_ridsp_v19.sh new file mode 100755 index 0000000000..42f787b771 --- /dev/null +++ b/monitoring/mock_uss/run_locally_ridsp_v19.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then + "${SCRIPT_DIR}/../build.sh" || exit 1 +fi + +MOCK_CONTAINER_NAME="mock_uss_ridsp_v19" \ +MOCK_USS_RID_VERSION="F3411-19" \ +PORT=8071 \ +"${SCRIPT_DIR}/run_locally_ridsp.sh" "$@" \ No newline at end of file diff --git a/monitoring/mock_uss/run_locally_scdsc.sh b/monitoring/mock_uss/run_locally_scdsc.sh index f9665ffeff..e2ba90bf6e 100755 --- a/monitoring/mock_uss/run_locally_scdsc.sh +++ b/monitoring/mock_uss/run_locally_scdsc.sh @@ -9,9 +9,9 @@ AUTH="DummyOAuth(http://host.docker.internal:8085/token,uss1)" DSS="http://host.docker.internal:8082" PUBLIC_KEY="/var/test-certs/auth2.pem" AUD=${MOCK_USS_TOKEN_AUDIENCE:-localhost,host.docker.internal} -container_name="mock_uss_scdsc" +CONTAINER_NAME=${CONTAINER_NAME:-"mock_uss_scdsc${PORT}"} -PORT=8074 +PORT=${PORT:-8074} BASE_URL="http://${MOCK_USS_TOKEN_AUDIENCE:-host.docker.internal}:${PORT}" if [ "$CI" == "true" ]; then @@ -20,10 +20,10 @@ else docker_args="-it" fi -docker container rm -f ${container_name} || echo "No pre-existing ${container_name} container to remove" +docker container rm -f "${CONTAINER_NAME}" || echo "No pre-existing ${CONTAINER_NAME} container to remove" # shellcheck disable=SC2086 -docker run ${docker_args} --name ${container_name} \ +docker run ${docker_args} --name "${CONTAINER_NAME}" \ -e MOCK_USS_AUTH_SPEC="${AUTH}" \ -e MOCK_USS_DSS_URL="${DSS}" \ -e MOCK_USS_PUBLIC_KEY="${PUBLIC_KEY}" \ diff --git a/monitoring/mock_uss/run_locally_tracer.sh b/monitoring/mock_uss/run_locally_tracer.sh index 33abfaa2e7..7497b18842 100755 --- a/monitoring/mock_uss/run_locally_tracer.sh +++ b/monitoring/mock_uss/run_locally_tracer.sh @@ -26,7 +26,7 @@ DSS=${MOCK_USS_DSS_URL:-"http://host.docker.internal:8082"} PUBLIC_KEY="/var/test-certs/auth2.pem" AUD=${MOCK_USS_TOKEN_AUDIENCE:-localhost,host.docker.internal} -RID_VERSION=${MOCK_USS_RID_VERSION:-"F3411-19"} +RID_VERSION=${MOCK_USS_RID_VERSION:-"F3411-22a"} CONTAINER_NAME=${MOCK_CONTAINER_NAME:-"mock_uss_tracer"} BASE_URL="http://${MOCK_USS_TOKEN_AUDIENCE:-host.docker.internal}:${PORT}" diff --git a/monitoring/mock_uss/run_locally_tracer_v22a.sh b/monitoring/mock_uss/run_locally_tracer_v19.sh similarity index 78% rename from monitoring/mock_uss/run_locally_tracer_v22a.sh rename to monitoring/mock_uss/run_locally_tracer_v19.sh index b648783232..88a9062a49 100755 --- a/monitoring/mock_uss/run_locally_tracer_v22a.sh +++ b/monitoring/mock_uss/run_locally_tracer_v19.sh @@ -5,8 +5,8 @@ if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then "${SCRIPT_DIR}/../build.sh" || exit 1 fi -MOCK_CONTAINER_NAME="mock_uss_tracer_v22a" \ -MOCK_USS_RID_VERSION="F3411-22a" \ +MOCK_CONTAINER_NAME="mock_uss_tracer_v19" \ +MOCK_USS_RID_VERSION="F3411-19" \ MOCK_USS_DSS_URL="http://host.docker.internal:8082" \ PORT=8088 \ "${SCRIPT_DIR}/run_locally_tracer.sh" "$@" \ No newline at end of file diff --git a/monitoring/mock_uss/start_all_local_mocks.sh b/monitoring/mock_uss/start_all_local_mocks.sh index e6811b2177..c06a81e396 100755 --- a/monitoring/mock_uss/start_all_local_mocks.sh +++ b/monitoring/mock_uss/start_all_local_mocks.sh @@ -12,15 +12,21 @@ else fi cd "${BASEDIR}/../.." || exit 1 +RID_VERSION=${RID_VERSION:-"F3411-22a"} +RID_EXT="" +if [ "$RID_VERSION" = "F3411-19" ]; then + RID_EXT="_v19" +fi + monitoring/mock_uss/run_locally_scdsc.sh -d export DO_NOT_BUILD_MONITORING=true -monitoring/mock_uss/run_locally_ridsp.sh -d -monitoring/mock_uss/run_locally_riddp.sh -d +monitoring/mock_uss/run_locally_ridsp${RID_EXT}.sh -d +monitoring/mock_uss/run_locally_riddp${RID_EXT}.sh -d monitoring/mock_uss/run_locally_geoawareness.sh -d monitoring/mock_uss/run_locally_atproxy_client.sh -d -monitoring/mock_uss/run_locally_tracer.sh -d +monitoring/mock_uss/run_locally_tracer${RID_EXT}.sh -d monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_scdsc -monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_ridsp -monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_riddp +monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_ridsp${RID_EXT} +monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_riddp${RID_EXT} monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_geoawareness -monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_tracer +monitoring/mock_uss/wait_for_mock_uss.sh mock_uss_tracer${RID_EXT} diff --git a/monitoring/mock_uss/stop_all_local_mocks.sh b/monitoring/mock_uss/stop_all_local_mocks.sh index d1f9eea1d2..ee4cc160bd 100755 --- a/monitoring/mock_uss/stop_all_local_mocks.sh +++ b/monitoring/mock_uss/stop_all_local_mocks.sh @@ -10,4 +10,10 @@ else fi cd "${BASEDIR}/../.." || exit 1 -docker container rm -f mock_uss_scdsc mock_uss_ridsp mock_uss_riddp mock_uss_geoawareness mock_uss_atproxy_client mock_uss_tracer +RID_VERSION=${RID_VERSION:-"F3411-22a"} +RID_EXT="" +if [ "$RID_VERSION" = "F3411-19" ]; then + RID_EXT="_v19" +fi + +docker container rm -f mock_uss_scdsc mock_uss_ridsp${RID_EXT} mock_uss_riddp${RID_EXT} mock_uss_geoawareness mock_uss_atproxy_client mock_uss_tracer${RID_EXT} \ No newline at end of file diff --git a/monitoring/uss_qualifier/configurations/dev/environment.yaml b/monitoring/uss_qualifier/configurations/dev/environment.yaml index 400f5154a2..f267ff1a3f 100644 --- a/monitoring/uss_qualifier/configurations/dev/environment.yaml +++ b/monitoring/uss_qualifier/configurations/dev/environment.yaml @@ -7,7 +7,7 @@ common: environment_variable_containing_auth_spec: AUTH_SPEC net_rid: - netrid_service_providers: + netrid_service_providers_v19: resource_type: resources.netrid.NetRIDServiceProviders dependencies: auth_adapter: utm_auth @@ -15,7 +15,15 @@ net_rid: service_providers: - participant_id: uss1 injection_base_url: http://host.docker.internal:8071/ridsp/injection - netrid_observers: + netrid_service_providers_v22a: + resource_type: resources.netrid.NetRIDServiceProviders + dependencies: + auth_adapter: utm_auth + specification: + service_providers: + - participant_id: uss1 + injection_base_url: http://host.docker.internal:8081/ridsp/injection + netrid_observers_v19: resource_type: resources.netrid.NetRIDObserversResource dependencies: auth_adapter: utm_auth @@ -23,6 +31,14 @@ net_rid: observers: - participant_id: uss2 observation_base_url: http://host.docker.internal:8073/riddp/observation + netrid_observers_v22a: + resource_type: resources.netrid.NetRIDObserversResource + dependencies: + auth_adapter: utm_auth + specification: + observers: + - participant_id: uss2 + observation_base_url: http://host.docker.internal:8083/riddp/observation netrid_dss_instances_v19: resource_type: resources.astm.f3411.DSSInstancesResource dependencies: @@ -35,6 +51,18 @@ net_rid: - participant_id: uss2 rid_version: F3411-19 base_url: http://host.docker.internal:8082 + netrid_dss_instances_v22a: + resource_type: resources.astm.f3411.DSSInstancesResource + dependencies: + auth_adapter: utm_auth + specification: + dss_instances: + - participant_id: uss1 + rid_version: F3411-22a + base_url: http://host.docker.internal:8082/rid/v2/ + - participant_id: uss2 + rid_version: F3411-22a + base_url: http://host.docker.internal:8082/rid/v2/ f3548: flight_planners: @@ -49,6 +77,7 @@ f3548: # uss2 uses atproxy, with requests being fulfilled by mock_uss with atproxy_client functionality enabled - participant_id: uss2 injection_base_url: http://host.docker.internal:8075/scd + dss: resource_type: resources.astm.f3548.v21.DSSInstanceResource dependencies: diff --git a/monitoring/uss_qualifier/configurations/dev/local_test.json b/monitoring/uss_qualifier/configurations/dev/local_test.json index bdcd00924b..46ab5f0e43 100644 --- a/monitoring/uss_qualifier/configurations/dev/local_test.json +++ b/monitoring/uss_qualifier/configurations/dev/local_test.json @@ -15,8 +15,8 @@ "adjacent_circular_storage_config": "adjacent_circular_storage_config", "kml_flights_data": "kml_flights_data", "kml_storage_config": "kml_storage_config", - "service_providers": "netrid_service_providers", - "observers": "netrid_observers", + "service_providers": "netrid_service_providers_v22a", + "observers": "netrid_observers_v22a", "evaluation_configuration": "netrid_observation_evaluation_configuration", "flight_planners": "flight_planners", "conflicting_flights": "conflicting_flights", @@ -24,7 +24,7 @@ "invalid_flight_intents": "invalid_flight_intents", "invalid_flight_auth_flights": "invalid_flight_auth_flights", "dss": "dss", - "netrid_dss_instances_v19": "netrid_dss_instances_v19" + "netrid_dss_instances_v22a": "netrid_dss_instances_v22a" } } } diff --git a/monitoring/uss_qualifier/configurations/dev/netrid_v19.yaml b/monitoring/uss_qualifier/configurations/dev/netrid_v19.yaml index 17d6efd017..2545ca0147 100644 --- a/monitoring/uss_qualifier/configurations/dev/netrid_v19.yaml +++ b/monitoring/uss_qualifier/configurations/dev/netrid_v19.yaml @@ -38,7 +38,7 @@ v1: dss_instances: - participant_id: uss1 rid_version: F3411-19 - base_url: http://host.docker.internal:8082/rid/v2 + base_url: http://host.docker.internal:8082 action: test_suite: suite_type: suites.astm.netrid.f3411_19 diff --git a/monitoring/uss_qualifier/configurations/dev/netrid_v22a.yaml b/monitoring/uss_qualifier/configurations/dev/netrid_v22a.yaml index ee9d666860..c017609e4d 100644 --- a/monitoring/uss_qualifier/configurations/dev/netrid_v22a.yaml +++ b/monitoring/uss_qualifier/configurations/dev/netrid_v22a.yaml @@ -18,7 +18,7 @@ v1: specification: service_providers: - participant_id: uss1 - injection_base_url: http://host.docker.internal:8071/ridsp/injection + injection_base_url: http://host.docker.internal:8081/ridsp/injection # USS mock ridsp_v22a observers: resource_type: resources.netrid.NetRIDObserversResource dependencies: @@ -26,7 +26,7 @@ v1: specification: observers: - participant_id: uss2 - observation_base_url: http://host.docker.internal:8073/riddp/observation + observation_base_url: http://host.docker.internal:8083/riddp/observation # USS mock riddp_v22a observation_evaluation_configuration: resource_type: resources.netrid.EvaluationConfigurationResource specification: {} diff --git a/monitoring/uss_qualifier/configurations/dev/non_docker/local_test.json b/monitoring/uss_qualifier/configurations/dev/non_docker/local_test.json index 264d872392..93461544bd 100644 --- a/monitoring/uss_qualifier/configurations/dev/non_docker/local_test.json +++ b/monitoring/uss_qualifier/configurations/dev/non_docker/local_test.json @@ -14,15 +14,15 @@ "adjacent_circular_storage_config": "adjacent_circular_storage_config", "kml_flights_data": "kml_flights_data", "kml_storage_config": "kml_storage_config", - "service_providers": "netrid_service_providers", - "observers": "netrid_observers", + "service_providers": "netrid_service_providers_v22a", + "observers": "netrid_observers_v22a", "evaluation_configuration": "netrid_observation_evaluation_configuration", "flight_planners": "flight_planners", "conflicting_flights": "conflicting_flights", "priority_preemption_flights": "priority_preemption_flights", "invalid_flight_auth_flights": "invalid_flight_auth_flights", "dss": "dss", - "netrid_dss_instances_v19": "netrid_dss_instances_v19" + "netrid_dss_instances_v22a": "netrid_dss_instances_v22a" } } } @@ -41,14 +41,14 @@ }, { "name": "Service Provider role", - "requirement_set": "astm.f3411.v19.service_provider", + "requirement_set": "astm.f3411.v22a.service_provider", "participants": [ "uss1" ] }, { "name": "Display Provider role", - "requirement_set": "astm.f3411.v19.service_provider", + "requirement_set": "astm.f3411.v22a.service_provider", "participants": [ "uss2" ] diff --git a/monitoring/uss_qualifier/configurations/dev/non_docker/resources.yaml b/monitoring/uss_qualifier/configurations/dev/non_docker/resources.yaml index 713d3874f6..03d7d17fee 100644 --- a/monitoring/uss_qualifier/configurations/dev/non_docker/resources.yaml +++ b/monitoring/uss_qualifier/configurations/dev/non_docker/resources.yaml @@ -10,7 +10,7 @@ uspace: net_rid: $ref: '#/common' - netrid_service_providers: + netrid_service_providers_v19: resource_type: resources.netrid.NetRIDServiceProviders dependencies: auth_adapter: utm_auth @@ -18,7 +18,15 @@ net_rid: service_providers: - participant_id: uss1 injection_base_url: http://localhost:8071/ridsp/injection - netrid_observers: + netrid_service_providers_v22a: + resource_type: resources.netrid.NetRIDServiceProviders + dependencies: + auth_adapter: utm_auth + specification: + service_providers: + - participant_id: uss1 + injection_base_url: http://localhost:8081/ridsp/injection + netrid_observers_v19: resource_type: resources.netrid.NetRIDObserversResource dependencies: auth_adapter: utm_auth @@ -26,6 +34,14 @@ net_rid: observers: - participant_id: uss2 observation_base_url: http://localhost:8073/riddp/observation + netrid_observers_v22a: + resource_type: resources.netrid.NetRIDObserversResource + dependencies: + auth_adapter: utm_auth + specification: + observers: + - participant_id: uss2 + observation_base_url: http://localhost:8083/riddp/observation netrid_observation_evaluation_configuration: resource_type: resources.netrid.EvaluationConfigurationResource specification: {} @@ -41,7 +57,18 @@ net_rid: - participant_id: uss2 rid_version: F3411-19 base_url: http://localhost:8082 - + netrid_dss_instances_v22a: + resource_type: resources.astm.f3411.DSSInstancesResource + dependencies: + auth_adapter: utm_auth + specification: + dss_instances: + - participant_id: uss1 + rid_version: F3411-22a + base_url: http://localhost:8082/rid/v2/ + - participant_id: uss2 + rid_version: F3411-22a + base_url: http://localhost:8082/rid/v2/ net_rid_sims: adjacent_circular_flights_data: resource_type: resources.netrid.FlightDataResource diff --git a/monitoring/uss_qualifier/configurations/dev/uspace.yaml b/monitoring/uss_qualifier/configurations/dev/uspace.yaml new file mode 100644 index 0000000000..3a69bf522d --- /dev/null +++ b/monitoring/uss_qualifier/configurations/dev/uspace.yaml @@ -0,0 +1,43 @@ +v1: + test_run: + non_baseline_inputs: + - configurations.dev.environment + resources: + resource_declarations: + "$ref": resources.yaml#/all + action: + test_suite: + suite_type: suites.dev.uspace + resources: + adjacent_circular_flights_data: adjacent_circular_flights_data + adjacent_circular_storage_config: adjacent_circular_storage_config + kml_flights_data: kml_flights_data + kml_storage_config: kml_storage_config + service_providers: netrid_service_providers_v22a + observers: netrid_observers_v22a + evaluation_configuration: netrid_observation_evaluation_configuration + flight_planners: flight_planners + conflicting_flights: conflicting_flights + priority_preemption_flights: priority_preemption_flights + invalid_flight_intents: invalid_flight_intents + invalid_flight_auth_flights: invalid_flight_auth_flights + dss: dss + netrid_dss_instances_v22a: netrid_dss_instances_v22a + artifacts: + tested_roles: + report_path: output/tested_requirements.html + roles: + - name: Strategic Coordination role + requirement_set: astm.f3548.v21.scd + participants: + - uss1 + - uss2 + - name: Service Provider role + requirement_set: astm.f3411.v22a.service_provider + participants: + - uss1 + - name: Display Provider role + requirement_set: astm.f3411.v22a.display_provider + participants: + - uss2 + "$ref": artifacts.yaml#/relative diff --git a/monitoring/uss_qualifier/scripts/test_docker_fully_mocked.sh b/monitoring/uss_qualifier/scripts/test_docker_fully_mocked.sh index 5b4c08e63e..4b6e2bc16a 100755 --- a/monitoring/uss_qualifier/scripts/test_docker_fully_mocked.sh +++ b/monitoring/uss_qualifier/scripts/test_docker_fully_mocked.sh @@ -50,9 +50,17 @@ echo "=============" make start-locally make start-uss-mocks +RID_VERSION=${RID_VERSION:-"F3411-22a"} +CONFIG_NAME=${CONFIG_NAME:-"configurations.dev.local_test"} +echo "Selecting configuration" +echo "=============" +echo "RID_VERSION: $RID_VERSION" +echo "CONFIG_NAME: $CONFIG_NAME" + + echo "Run the standard local tests." echo "=============" -monitoring/uss_qualifier/run_locally.sh +monitoring/uss_qualifier/run_locally.sh "$CONFIG_NAME" # Ensure all tests passed successful=$(python build/dev/extract_json_field.py report.test_suite.successful < monitoring/uss_qualifier/output/report.json) diff --git a/monitoring/uss_qualifier/suites/dev/local_test.yaml b/monitoring/uss_qualifier/suites/dev/local_test.yaml index 7f91713f0a..931091a61f 100644 --- a/monitoring/uss_qualifier/suites/dev/local_test.yaml +++ b/monitoring/uss_qualifier/suites/dev/local_test.yaml @@ -14,8 +14,7 @@ resources: invalid_flight_intents: resources.flight_planning.FlightIntentsResource invalid_flight_auth_flights: resources.flight_planning.FlightIntentsResource dss: resources.astm.f3548.v21.DSSInstanceResource - - netrid_dss_instances_v19: resources.astm.f3411.DSSInstancesResource + netrid_dss_instances_v22a: resources.astm.f3411.DSSInstancesResource actions: - test_suite: suite_type: suites.interuss.generate_test_data @@ -39,5 +38,5 @@ actions: service_providers: service_providers observers: observers evaluation_configuration: evaluation_configuration - netrid_dss_instances: netrid_dss_instances_v19 - on_failure: Continue + netrid_dss_instances: netrid_dss_instances_v22a + on_failure: Continue \ No newline at end of file