From 9d91f89a23d204ba174ac60327702dcc97b9c2f8 Mon Sep 17 00:00:00 2001 From: Julien Perrochet Date: Wed, 20 Mar 2024 16:07:22 +0100 Subject: [PATCH] [uss_qualifier] Op Intent Reference access control uses states from flight intents (#566) --- .../astm/utm/dss/op_intent_ref_access_control.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_access_control.py b/monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_access_control.py index 8e7f6e7345..7597ff3996 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_access_control.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_access_control.py @@ -353,7 +353,7 @@ def _create_op_intents(self): oi_id=self._oid_1, extents=self._volumes1.to_f3548v21(), key=[], - state=OperationalIntentState.Accepted, + state=self._flight1_planned.request.operational_intent.state, base_url=DUMMY_USS_BASE_URL, ) self.record_query(q1) @@ -378,7 +378,7 @@ def _create_op_intents(self): oi_id=self._oid_2, extents=self._volumes2.to_f3548v21(), key=[self._current_ref_1.ovn], - state=OperationalIntentState.Accepted, + state=self._flight2_planned.request.operational_intent.state, base_url=DUMMY_USS_BASE_URL, ) self.record_query(q2) @@ -414,13 +414,13 @@ def _check_mutation_on_non_owned_intent_fails(self): self._pid + self._uids, ) as check: try: - # Attempt to update the state of the intent created with the main credentials using the second credentials + # Attempt to update the uss_base_url of the intent created with the main credentials using the second credentials (ref, notif, q) = self._dss_separate_creds.put_op_intent( oi_id=self._oid_1, extents=self._volumes1.to_f3548v21(), key=[self._current_ref_2.ovn], - state=OperationalIntentState.Accepted, - base_url=self._current_ref_1.uss_base_url, + state=self._flight1_planned.request.operational_intent.state, + base_url=self._current_ref_1.uss_base_url + "/mutated", ovn=self._current_ref_1.ovn, ) self.record_query(q)