Skip to content

Commit

Permalink
[uss_qualifer] Add data validation scenario to ASTM F3548-21 suite (#324
Browse files Browse the repository at this point in the history
)

* Added data validation scenario to suite

* Fixing format

* Adding missing comments
  • Loading branch information
punamverma authored Nov 7, 2023
1 parent d4a864c commit f48a5df
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ v1:
conflicting_flights: conflicting_flights
priority_preemption_flights: priority_preemption_flights
invalid_flight_intents: invalid_flight_intents
non_conflicting_flights: non_conflicting_flights
dss: dss
mock_uss: mock_uss

# This block defines all the resources available in the resource pool.
# Presumably all resources defined below would be used either
Expand Down Expand Up @@ -71,6 +73,14 @@ v1:
file:
path: test_data.che.flight_intents.invalid_flight_intents

# Details of non-conflicting flights (used in data validation scenario)
non_conflicting_flights:
resource_type: resources.flight_planning.FlightIntentsResource
specification:
planning_time: '0:05:00'
file:
path: file://./test_data/usa/kentland/flight_intents/non_conflicting.yaml

# Location of DSS instance that can be used to verify flight planning outcomes
dss:
resource_type: resources.astm.f3548.v21.DSSInstanceResource
Expand All @@ -81,6 +91,16 @@ v1:
participant_id: uss1
base_url: http://dss.uss1.localutm

# Mock USS that can be used in tests for flight planning, modifying data sharing behavior and recording interuss interactions
mock_uss:
resource_type: resources.interuss.mock_uss.client.MockUSSResource
dependencies:
auth_adapter: utm_auth
specification:
participant_id: mock_uss
mock_uss_base_url: http://scdsc.log.uss6.localutm


# When a test run is executed, a "baseline signature" is computed uniquely identifying the "baseline" of the test,
# usually excluding exactly what systems are participating in the test (the "environment"). This is a list of
# elements within this configuration to exclude from the configuration when computing the baseline signature.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .get_op_data_validation import GetOpResponseDataValidationByUSS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import Optional
from loguru import logger

from monitoring.uss_qualifier.resources.astm.f3548.v21 import DSSInstanceResource
from monitoring.uss_qualifier.resources.astm.f3548.v21.dss import DSSInstance
Expand Down Expand Up @@ -46,7 +47,12 @@ def __init__(
self.control_uss = control_uss.mock_uss
self.dss = dss.dss

def run(self):
def run(self, context):
self.begin_test_scenario(context)
pass
self.end_test_scenario()

def cleanup(self):
self.begin_cleanup()
pass
self.end_cleanup()
45 changes: 32 additions & 13 deletions monitoring/uss_qualifier/suites/astm/utm/f3548_21.md

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions monitoring/uss_qualifier/suites/astm/utm/f3548_21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ resources:
conflicting_flights: resources.flight_planning.FlightIntentsResource
priority_preemption_flights: resources.flight_planning.FlightIntentsResource
invalid_flight_intents: resources.flight_planning.FlightIntentsResource
non_conflicting_flights: resources.flight_planning.FlightIntentsResource
nominal_planning_selector: resources.flight_planning.FlightPlannerCombinationSelectorResource?
priority_planning_selector: resources.flight_planning.FlightPlannerCombinationSelectorResource?
mock_uss: resources.interuss.mock_uss.client.MockUSSResource
actions:
- action_generator:
generator_type: action_generators.astm.f3548.ForEachDSS
Expand Down Expand Up @@ -95,6 +97,29 @@ actions:
scenario_type: scenarios.astm.utm.AggregateChecks
resources:
flight_planners: flight_planners

- action_generator:
generator_type: action_generators.flight_planning.FlightPlannerCombinations
resources:
flight_planners: flight_planners
non_conflicting_flights: non_conflicting_flights
dss: dss
mock_uss: mock_uss
specification:
action_to_repeat:
test_scenario:
scenario_type: scenarios.astm.utm.data_exchange_validation.GetOpResponseDataValidationByUSS
resources:
tested_uss: uss1
control_uss: mock_uss
dss: dss
flight_intents: non_conflicting_flights
on_failure: Continue
flight_planners_source: flight_planners
roles:
- uss1
on_failure: Continue

participant_verifiable_capabilities:
- id: scd
name: Strategic Conflict Detection
Expand Down
43 changes: 30 additions & 13 deletions monitoring/uss_qualifier/suites/faa/uft/message_signing.md

Large diffs are not rendered by default.

43 changes: 30 additions & 13 deletions monitoring/uss_qualifier/suites/uspace/flight_auth.md

Large diffs are not rendered by default.

43 changes: 30 additions & 13 deletions monitoring/uss_qualifier/suites/uspace/required_services.md

Large diffs are not rendered by default.

0 comments on commit f48a5df

Please sign in to comment.