Loading ansible/tests/r2_e2e/test_deploy_to_ti.py +9 −7 Changes for ansible/tests/r2_e2e/test_deploy_to_ti.py: 9 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -41,8 +41,10 @@ def _scenario_resource(request, operators, checkpoint): evidence.update(preflight(operator, profile), last_verified_phase="preflight") scopes = EAM_SCOPES + INSTANCE_SCOPES products = ("edge-application-management",) if evidence["checkpoint"] == "ti": if evidence["checkpoint"] in ("ti", "network"): scopes += TI_SCOPES if evidence["checkpoint"] == "network": scopes += ("traffic-influence:traffic-influence-devices:write",) products += ("traffic-influence",) # Attempt cleanup even if client provisioning fails halfway through. created = True Loading Loading @@ -160,9 +162,8 @@ def test_oeg_ti_targets_the_deployed_application_endpoint(sdk_scenario): sdk_scenario.influence(endpoint, lambda method, url: http(method, url, token)) NETWORK_SCOPES = ("location-retrieval:read", "traffic-influence:traffic-influence-devices:write", *( f"quality-on-demand:sessions:{action}" for action in ("create", "read", "delete")), *( f"traffic-influence:traffic-influences:{action}" for action in ("write", "read", "delete"))) NETWORK_SCOPES = ("location-retrieval:read", *( f"quality-on-demand:sessions:{action}" for action in ("create", "read", "delete"))) TI = '/traffic-influence/v0.10/traffic-influences' Loading @@ -176,7 +177,7 @@ def network_caller(request, operators): client_id='network-e2e-'+uuid4().hex[:12] try: secret=admin.make_client(client_id,'app-provider', oeg_roles=('quality-on-demand','location-retrieval','traffic-influence'), oeg_roles=('quality-on-demand','location-retrieval'), scopes=NETWORK_SCOPES) token=op.client_token('oop',client_id,secret) import base64 Loading Loading @@ -250,8 +251,9 @@ def test_location_without_device_is_rejected(network_caller): @pytest.mark.platform_acceptance def test_device_ti_uses_the_deployed_application_endpoint(network_caller,progressive_scenario,public_endpoint): op,profile,token=network_caller def test_device_ti_uses_the_deployed_application_endpoint(progressive_scenario,public_endpoint): # The application owner requests TI; a different test client is another tenant. op,profile,token=progressive_scenario.operator,progressive_scenario.profile,progressive_scenario.token qod=profile['qod'] base=qod['base_url']+'/3gpp-traffic-influence/v1/af/subscriptions' identity=None Loading Loading
ansible/tests/r2_e2e/test_deploy_to_ti.py +9 −7 Changes for ansible/tests/r2_e2e/test_deploy_to_ti.py: 9 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -41,8 +41,10 @@ def _scenario_resource(request, operators, checkpoint): evidence.update(preflight(operator, profile), last_verified_phase="preflight") scopes = EAM_SCOPES + INSTANCE_SCOPES products = ("edge-application-management",) if evidence["checkpoint"] == "ti": if evidence["checkpoint"] in ("ti", "network"): scopes += TI_SCOPES if evidence["checkpoint"] == "network": scopes += ("traffic-influence:traffic-influence-devices:write",) products += ("traffic-influence",) # Attempt cleanup even if client provisioning fails halfway through. created = True Loading Loading @@ -160,9 +162,8 @@ def test_oeg_ti_targets_the_deployed_application_endpoint(sdk_scenario): sdk_scenario.influence(endpoint, lambda method, url: http(method, url, token)) NETWORK_SCOPES = ("location-retrieval:read", "traffic-influence:traffic-influence-devices:write", *( f"quality-on-demand:sessions:{action}" for action in ("create", "read", "delete")), *( f"traffic-influence:traffic-influences:{action}" for action in ("write", "read", "delete"))) NETWORK_SCOPES = ("location-retrieval:read", *( f"quality-on-demand:sessions:{action}" for action in ("create", "read", "delete"))) TI = '/traffic-influence/v0.10/traffic-influences' Loading @@ -176,7 +177,7 @@ def network_caller(request, operators): client_id='network-e2e-'+uuid4().hex[:12] try: secret=admin.make_client(client_id,'app-provider', oeg_roles=('quality-on-demand','location-retrieval','traffic-influence'), oeg_roles=('quality-on-demand','location-retrieval'), scopes=NETWORK_SCOPES) token=op.client_token('oop',client_id,secret) import base64 Loading Loading @@ -250,8 +251,9 @@ def test_location_without_device_is_rejected(network_caller): @pytest.mark.platform_acceptance def test_device_ti_uses_the_deployed_application_endpoint(network_caller,progressive_scenario,public_endpoint): op,profile,token=network_caller def test_device_ti_uses_the_deployed_application_endpoint(progressive_scenario,public_endpoint): # The application owner requests TI; a different test client is another tenant. op,profile,token=progressive_scenario.operator,progressive_scenario.profile,progressive_scenario.token qod=profile['qod'] base=qod['base_url']+'/3gpp-traffic-influence/v1/af/subscriptions' identity=None Loading