<?xml version="1.0" encoding="utf-8"?><testsuites name="pytest tests"><testsuite name="pytest" errors="2" failures="3" skipped="11" tests="184" time="3911.403" timestamp="2026-07-29T20:58:11.347109+00:00" hostname="maas-group-test-z97zd-e2e-maas-openshift-pod"><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyCRUD" name="test_create_api_key" time="0.238" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyCRUD" name="test_list_api_keys" time="0.148" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyCRUD" name="test_revoke_api_key" time="0.107" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyAuthorization" name="test_admin_manage_other_users_keys" time="0.134" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyAuthorization" name="test_non_admin_cannot_access_other_users_keys" time="0.088" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyBulkOperations" name="test_bulk_revoke_own_keys" time="0.239" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyBulkOperations" name="test_bulk_revoke_other_user_forbidden" time="0.036" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyBulkOperations" name="test_bulk_revoke_admin_can_revoke_any_user" time="0.089" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyExpiration" name="test_create_key_within_expiration_limit" time="0.028" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyExpiration" name="test_create_key_at_expiration_limit" time="0.029" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyExpiration" name="test_create_key_exceeds_expiration_limit" time="0.030" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyExpiration" name="test_create_key_without_expiration" time="0.030" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyExpiration" name="test_create_key_with_short_expiration" time="0.030" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyModelInference" name="test_api_key_model_access_success" time="0.092" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyModelInference" name="test_invalid_api_key_rejected" time="0.024" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyModelInference" name="test_no_auth_header_rejected" time="0.022" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyModelInference" name="test_revoked_api_key_rejected" time="2.120" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyModelInference" name="test_api_key_chat_completions" time="0.038" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyRevocationE2E" name="test_double_revoke_returns_404" time="0.102" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyRevocationE2E" name="test_revoke_nonexistent_key_returns_404" time="0.033" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyRevocationE2E" name="test_revoke_then_create_new_key_works" time="0.144" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyRevocationE2E" name="test_individual_revoke_multiple_keys" time="0.181" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeyRevocationE2E" name="test_revoke_keys_rejected_at_gateway" time="0.282" /><testcase classname="test.e2e.tests.test_api_keys.TestEphemeralKeyCleanup" name="test_cronjob_exists_and_configured" time="0.135" /><testcase classname="test.e2e.tests.test_api_keys.TestEphemeralKeyCleanup" name="test_cleanup_networkpolicy_exists" time="0.117" /><testcase classname="test.e2e.tests.test_api_keys.TestEphemeralKeyCleanup" name="test_create_ephemeral_key" time="0.094" /><testcase classname="test.e2e.tests.test_api_keys.TestEphemeralKeyCleanup" name="test_trigger_cleanup_preserves_active_keys" time="0.485" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeySubscriptionPhases" name="test_create_key_for_active_subscription" time="5.315" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeySubscriptionPhases" name="test_create_key_for_degraded_subscription" time="15.151" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeySubscriptionPhases" name="test_create_key_for_failed_subscription" time="5.306" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeySubscriptionPhases" name="test_create_key_for_pending_subscription" time="80.481" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeySubscriptionPhases" name="test_reject_key_for_unreconciled_subscription" time="19.457" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeySubscriptionFilter" name="test_search_filters_by_subscription" time="6.655" /><testcase classname="test.e2e.tests.test_api_keys.TestAPIKeySubscriptionFilter" name="test_search_without_subscription_returns_all" time="5.330" /><testcase classname="test.e2e.tests.test_namespace_scoping.TestMaaSAPIWatchNamespace" name="test_subscription_in_subscription_namespace_visible_to_api" time="0.001"><skipped type="pytest.skip" message="test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true">/workspace/source/test/e2e/tests/test_namespace_scoping.py:212: test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true</skipped></testcase><testcase classname="test.e2e.tests.test_namespace_scoping.TestMaaSAPIWatchNamespace" name="test_subscription_in_another_namespace_not_visible_to_api" time="0.000"><skipped type="pytest.skip" message="test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true">/workspace/source/test/e2e/tests/test_namespace_scoping.py:245: test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true</skipped></testcase><testcase classname="test.e2e.tests.test_namespace_scoping.TestMaaSControllerWatchNamespace" name="test_authpolicy_and_subscription_in_maas_subscription_namespace" time="0.000"><skipped type="pytest.skip" message="test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true">/workspace/source/test/e2e/tests/test_namespace_scoping.py:283: test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true</skipped></testcase><testcase classname="test.e2e.tests.test_namespace_scoping.TestMaaSControllerWatchNamespace" name="test_authpolicy_and_subscription_in_another_namespace" time="0.000"><skipped type="pytest.skip" message="test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true">/workspace/source/test/e2e/tests/test_namespace_scoping.py:320: test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true</skipped></testcase><testcase classname="test.e2e.tests.test_namespace_scoping.TestModelRef" name="test_auth_policy_model_ref" time="0.001"><skipped type="pytest.skip" message="test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true">/workspace/source/test/e2e/tests/test_namespace_scoping.py:377: test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true</skipped></testcase><testcase classname="test.e2e.tests.test_namespace_scoping.TestModelRef" name="test_subscription_model_ref" time="0.000"><skipped type="pytest.skip" message="test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true">/workspace/source/test/e2e/tests/test_namespace_scoping.py:453: test_namespace_scoping validates single-tenant dormant mode; skipped when ENABLE_TENANT_NAMESPACE_DISCOVERY=true</skipped></testcase><testcase classname="test.e2e.tests.test_negative_security.TestHeaderSpoofing" name="test_injected_identity_headers_ignored" time="6.552" /><testcase classname="test.e2e.tests.test_negative_security.TestHeaderSpoofing" name="test_duplicate_subscription_headers_ignored" time="0.177" /><testcase classname="test.e2e.tests.test_negative_security.TestExpiredKeyRejection" name="test_expired_key_rejected_at_gateway" time="5.065" /><testcase classname="test.e2e.tests.test_negative_security.TestCrossModelAccess" name="test_key_cannot_access_model_outside_subscription" time="0.177" /><testcase classname="test.e2e.tests.test_negative_security.TestAuthPolicyRemoval" name="test_authpolicy_deletion_revokes_access" time="11.454" /><testcase classname="test.e2e.tests.test_negative_security.TestMissingModelRef" name="test_subscription_with_nonexistent_model_ref" time="0.972" /><testcase classname="test.e2e.tests.test_negative_security.TestMissingModelRef" name="test_authpolicy_with_nonexistent_model_ref" time="11.204" /><testcase classname="test.e2e.tests.test_negative_security.TestHeaderAbuse" name="test_special_characters_in_subscription_header" time="0.294" /><testcase classname="test.e2e.tests.test_negative_security.TestWebhookValidation" name="test_subscription_rejected_in_unlabeled_namespace" time="6.220" /><testcase classname="test.e2e.tests.test_negative_security.TestWebhookValidation" name="test_authpolicy_rejected_in_unlabeled_namespace" time="5.950" /><testcase classname="test.e2e.tests.test_subscription.TestAuthEnforcement" name="test_authorized_user_gets_200" time="0.080" /><testcase classname="test.e2e.tests.test_subscription.TestAuthEnforcement" name="test_no_auth_gets_401" time="0.021" /><testcase classname="test.e2e.tests.test_subscription.TestAuthEnforcement" name="test_invalid_token_gets_403" time="0.061" /><testcase classname="test.e2e.tests.test_subscription.TestAuthEnforcement" name="test_wrong_group_gets_403" time="0.031" /><testcase classname="test.e2e.tests.test_subscription.TestAPIKeySubscriptionBinding" name="test_create_api_key_uses_highest_priority_subscription" time="0.289" /><testcase classname="test.e2e.tests.test_subscription.TestAPIKeySubscriptionBinding" name="test_create_api_key_with_explicit_simulator_subscription" time="0.058" /><testcase classname="test.e2e.tests.test_subscription.TestAPIKeySubscriptionBinding" name="test_create_api_key_nonexistent_subscription_errors" time="0.244" /><testcase classname="test.e2e.tests.test_subscription.TestSubscriptionEnforcement" name="test_subscribed_user_gets_200" time="0.035" /><testcase classname="test.e2e.tests.test_subscription.TestSubscriptionEnforcement" name="test_auth_pass_no_subscription_gets_403" time="8.409" /><testcase classname="test.e2e.tests.test_subscription.TestSubscriptionEnforcement" name="test_rate_limit_exhaustion_gets_429" time="19.806" /><testcase classname="test.e2e.tests.test_subscription.TestSubscriptionEnforcement" name="test_models_endpoint_exempt_from_rate_limiting" time="23.184" /><testcase classname="test.e2e.tests.test_subscription.TestMultipleSubscriptionsPerModel" name="test_user_in_one_of_two_subscriptions_gets_200" time="4.376" /><testcase classname="test.e2e.tests.test_subscription.TestMultipleAuthPoliciesPerModel" name="test_two_auth_policies_or_logic" time="10.776" /><testcase classname="test.e2e.tests.test_subscription.TestMultipleAuthPoliciesPerModel" name="test_delete_one_auth_policy_other_still_works" time="12.513" /><testcase classname="test.e2e.tests.test_subscription.TestCascadeDeletion" name="test_delete_subscription_rebuilds_trlp" time="4.492" /><testcase classname="test.e2e.tests.test_subscription.TestCascadeDeletion" name="test_trlp_persists_during_multi_subscription_deletion" time="17.280" /><testcase classname="test.e2e.tests.test_subscription.TestCascadeDeletion" name="test_delete_last_subscription_denies_access" time="7.703" /><testcase classname="test.e2e.tests.test_subscription.TestCascadeDeletion" name="test_unconfigured_model_denied_by_gateway_auth" time="0.466" /><testcase classname="test.e2e.tests.test_subscription.TestOrderingEdgeCases" name="test_subscription_before_auth_policy" time="20.150" /><testcase classname="test.e2e.tests.test_subscription.TestManagedAnnotation" name="test_authpolicy_managed_false_prevents_update" time="4.233"><skipped type="pytest.skip" message="gateway-only mode: per-model AuthPolicy is not created">/workspace/source/test/e2e/tests/test_subscription.py:1055: gateway-only mode: per-model AuthPolicy is not created</skipped></testcase><testcase classname="test.e2e.tests.test_subscription.TestManagedAnnotation" name="test_trlp_managed_false_prevents_update" time="12.316" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_with_both_access_and_subscription_gets_200" time="27.009" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_with_access_but_no_subscription_gets_403" time="9.177" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_with_subscription_but_no_access_gets_403" time="26.794" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_single_subscription_auto_selects" time="9.470" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_multiple_subscriptions_separate_keys_gets_200" time="9.442" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_mint_api_key_denied_for_inaccessible_subscription" time="9.653" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_group_based_access_gets_200" time="9.035" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_group_based_auth_but_no_subscription_gets_403" time="9.191" /><testcase classname="test.e2e.tests.test_subscription.TestE2ESubscriptionFlow" name="test_e2e_group_based_subscription_but_no_auth_gets_403" time="26.589" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_subscription_active_status_with_valid_model" time="15.851" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_subscription_failed_status_with_missing_model" time="4.771" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_authpolicy_active_status_with_valid_model" time="15.439" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_authpolicy_failed_status_with_missing_model" time="15.317" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_subscription_degraded_status_with_partial_models" time="5.089" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_subscription_degraded_trlp_blocks_inference" time="100.492" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_authpolicy_degraded_status_with_partial_models" time="15.319" /><testcase classname="test.e2e.tests.test_subscription.TestStatusReporting" name="test_subscription_status_transitions_on_model_deletion" time="20.604" /><testcase classname="test.e2e.tests.test_subscription.TestDegradedSubscriptionFiltering" name="test_degraded_healthy_model_allows_inference" time="15.162" /><testcase classname="test.e2e.tests.test_subscription.TestDegradedSubscriptionFiltering" name="test_failed_subscription_blocks_inference" time="15.458" /><testcase classname="test.e2e.tests.test_subscription.TestDegradedSubscriptionFiltering" name="test_models_endpoint_with_degraded_subscription_api_key" time="15.211" /><testcase classname="test.e2e.tests.test_subscription.TestDegradedSubscriptionFiltering" name="test_models_endpoint_with_degraded_subscription_kube_token" time="15.150" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_single_subscription_auto_select" time="16.390" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_explicit_subscription_header" time="8.692" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_empty_subscription_header_value" time="4.390" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_models_filtered_by_subscription" time="4.765" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_deduplication_same_model_multiple_refs" time="9.146" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_different_modelrefs_same_model_id" time="41.391" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_multiple_distinct_models_in_subscription" time="19.951" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_user_token_returns_all_models" time="17.127" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_user_token_with_subscription_header_filters" time="8.994" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_empty_model_list" time="11.158" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_response_schema_matches_openapi" time="4.371" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_model_metadata_preserved" time="4.375" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_api_key_scoped_to_subscription" time="9.188" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_api_key_with_deleted_subscription_403" time="13.146" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_api_key_with_inaccessible_subscription_403" time="9.354" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_invalid_subscription_header_403" time="9.009" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_access_denied_to_subscription_403" time="9.634" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_api_key_ignores_subscription_header" time="18.378" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_multiple_api_keys_different_subscriptions" time="16.403" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_service_account_token_multiple_subs_no_header" time="28.430" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_service_account_token_multiple_subs_with_header" time="27.583" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_unauthenticated_request_401" time="0.022" /><testcase classname="test.e2e.tests.test_models_endpoint.TestModelsEndpoint" name="test_central_models_endpoint_exempt_from_rate_limiting" time="23.618" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelDiscovery" name="test_maasmodelref_created" time="22.449" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelDiscovery" name="test_reconciler_created_httproute" time="0.125" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelDiscovery" name="test_reconciler_created_backend_service" time="0.122" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelAuth" name="test_invalid_key_returns_401" time="0.046" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelAuth" name="test_no_key_returns_401" time="0.023" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelEgress" name="test_request_forwarded_returns_200" time="0.141" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelCleanup" name="test_delete_removes_httproute" time="12.685" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelPathRouting" name="test_wrong_path_returns_not_found" time="0.032" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelBodyRouting" name="test_correct_model_in_body_succeeds" time="0.091" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelBodyRouting" name="test_wrong_model_in_body_does_not_error" time="0.143" /><testcase classname="test.e2e.tests.test_external_models.TestExternalModelBodyRouting" name="test_missing_model_in_body_does_not_error" time="1.236" /><testcase classname="test.e2e.tests.test_tenant.TestTenantLifecycle" name="test_tenant_ready_and_phase_healthy" time="0.351" /><testcase classname="test.e2e.tests.test_tenant.TestTenantLifecycle" name="test_payload_processing_deployed_with_active_tenant" time="0.239" /><testcase classname="test.e2e.tests.test_tenant.TestTenantContract" name="test_status_has_phase_and_conditions" time="0.117" /><testcase classname="test.e2e.tests.test_tenant.TestTenantContract" name="test_spec_is_well_formed" time="0.109" /><testcase classname="test.e2e.tests.test_tenant.TestTenantContract" name="test_conditions_use_kubernetes_metav1_shape" time="0.111" /><testcase classname="test.e2e.tests.test_tenant.TestTenantNoFalseOwnership" name="test_maas_user_crs_not_owned_by_tenant" time="0.351" /><testcase classname="test.e2e.tests.test_aitenant_lifecycle.TestAITenantLifecycle" name="test_default_aitenant_bootstraps_maas_tenant_config_without_gateway_mutation" time="1.685" /><testcase classname="test.e2e.tests.test_aitenant_lifecycle.TestAITenantLifecycle" name="test_aitenant_rejected_outside_ai_tenants_namespace" time="6.467" /><testcase classname="test.e2e.tests.test_aitenant_lifecycle.TestAITenantLifecycle" name="test_aitenant_create_bootstrap_resources" time="35.088" /><testcase classname="test.e2e.tests.test_aitenant_lifecycle.TestAITenantLifecycle" name="test_aitenant_migrates_legacy_tenant_to_maas_tenant_config" time="35.123" /><testcase classname="test.e2e.tests.test_aitenant_lifecycle.TestAITenantLifecycle" name="test_aitenant_delete_cleans_maas_resources_and_preserves_user_objects" time="36.380" /><testcase classname="test.e2e.tests.test_aitenant_lifecycle.TestAITenantLifecycle" name="test_aitenant_derives_non_default_tenant_namespace" time="34.986" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantNamespaceDiscovery" name="test_labeled_tenant_namespace_is_discovered" time="29.123" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantNamespaceDiscovery" name="test_label_removal_stops_reconciliation" time="33.035" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantNamespaceDiscovery" name="test_unlabeled_namespace_ignored" time="21.888" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantNamespaceDiscovery" name="test_dynamic_discovery_after_label_added" time="27.852" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantNamespaceDiscovery" name="test_per_tenant_oidc_configuration" time="0.001"><skipped type="pytest.skip" message="OIDC_ISSUER_URL not set; per-tenant OIDC E2E requires external OIDC deploy">/workspace/source/test/e2e/tests/test_tenant_namespace_discovery.py:186: OIDC_ISSUER_URL not set; per-tenant OIDC E2E requires external OIDC deploy</skipped></testcase><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantNamespaceDiscovery" name="test_namespace_qualified_collision_prevention" time="588.107"><failure message="AssertionError: tokenratelimitpolicy/maas-trlp-facebook-opt-125m-simulated in llm did not satisfy condition. Last object: {'apiVersion': 'kuadrant.io/v1alpha1', 'kind': 'TokenRateLimitPolicy', 'metadata': {'annotations': {'maas.opendatahub.io/subscriptions': 'models-as-a-service/simulator-subscription'}, 'creationTimestamp': '2026-07-29T21:10:32Z', 'generation': 19, 'labels': {'app.kubernetes.io/component': 'token-rate-limit-policy', 'app.kubernetes.io/managed-by': 'maas-controller', 'app.kubernetes.io/part-of': 'maas-subscription', 'maas.opendatahub.io/model': 'facebook-opt-125m-simulated', 'maas.opendatahub.io/model-namespace': 'llm'}, 'name': 'maas-trlp-facebook-opt-125m-simulated', 'namespace': 'llm', 'ownerReferences': [{'apiVersion': 'gateway.networking.k8s.io/v1', 'blockOwnerDeletion': True, 'controller': True, 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route', 'uid': '6de99e50-c32d-4081-933a-d906ad35ccb9'}], 'resourceVersion': '50469', 'uid': '18d0a3c4-88b1-40a3-a2cb-d332eb064766'}, 'spec': {'limits': {'models-as-a-service-simulator-subscription-facebook-opt-125m-simulated-tokens': {'counters': [{'expression': 'auth.identity.userid'}], 'rates': [{'limit': 100, 'window': '1m'}], 'when': [{'predicate': 'auth.identity.selected_subscription_key == &quot;models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated&quot; &amp;&amp; !request.path.endsWith(&quot;/v1/models&quot;)'}]}}, 'targetRef': {'group': 'gateway.networking.k8s.io', 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route'}}, 'status': {'conditions': [{'lastTransitionTime': '2026-07-29T21:10:37Z', 'message': 'TokenRateLimitPolicy has been accepted', 'reason': 'Accepted', 'status': 'True', 'type': 'Accepted'}, {'lastTransitionTime': '2026-07-29T21:21:32Z', 'message': 'TokenRateLimitPolicy has been successfully enforced', 'reason': 'Enforced', 'status': 'True', 'type': 'Enforced'}], 'observedGeneration': 19}}">self = &lt;test_tenant_namespace_discovery.TestTenantNamespaceDiscovery object at 0x7f3c1c5f8490&gt;

    def test_namespace_qualified_collision_prevention(self):
        """1.5: Same-named CRs in two tenant namespaces use namespace-qualified TRLP tracking."""
        case_a = new_discovery_case()
        case_b = new_discovery_case()
        shared_policy_name = f"e2e-shared-policy-{case_a['suffix']}"
        shared_sub_name = f"e2e-shared-sub-{case_a['suffix']}"
        case_a["policy_name"] = shared_policy_name
        case_a["subscription_name"] = shared_sub_name
        case_b["policy_name"] = shared_policy_name
        case_b["subscription_name"] = shared_sub_name
    
        try:
            for case in (case_a, case_b):
                bootstrap_aitenant_tenant(case)
                apply_maas_auth_policy(shared_policy_name, case["tenant_ns"])
                apply_maas_subscription(shared_sub_name, case["tenant_ns"])
                wait_for_finalizer("maasauthpolicy", shared_policy_name, case["tenant_ns"], FINALIZER_AUTHPOLICY)
                wait_for_finalizer("maassubscription", shared_sub_name, case["tenant_ns"], FINALIZER_SUBSCRIPTION)
                _wait_for_maas_auth_policy_phase(shared_policy_name, namespace=case["tenant_ns"], timeout=120,
                                                 require_enforced=False)
    
            assert_no_per_model_authpolicy(MODEL_REF, MODEL_NAMESPACE)
    
            expected_a_sub = f"{case_a['tenant_ns']}/{shared_sub_name}"
            expected_b_sub = f"{case_b['tenant_ns']}/{shared_sub_name}"
&gt;           sub_contributors = wait_for_annotation_contains(
                "tokenratelimitpolicy",
                f"maas-trlp-{MODEL_REF}",
                MODEL_NAMESPACE,
                "maas.opendatahub.io/subscriptions",
                [expected_a_sub, expected_b_sub],
            )

test/e2e/tests/test_tenant_namespace_discovery.py:232: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/e2e/tests/multitenancy_helpers.py:358: in wait_for_annotation_contains
    wait_for_json(kind, name, namespace, predicate=_predicate, timeout=timeout, interval=interval)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

kind = 'tokenratelimitpolicy', name = 'maas-trlp-facebook-opt-125m-simulated'
namespace = 'llm'

    def wait_for_json(
        kind: str,
        name: str,
        namespace: Optional[str] = None,
        *,
        predicate=None,
        timeout: int = 180,
        interval: int = 5,
    ) -&gt; dict:
        deadline = time.time() + timeout
        last_obj = None
        while time.time() &lt; deadline:
            obj = get_json_or_none(kind, name, namespace)
            if obj is not None:
                last_obj = obj
                if predicate is None or predicate(obj):
                    return obj
            time.sleep(interval)
&gt;       raise AssertionError(
            f"{kind}/{name} in {namespace or '&lt;cluster&gt;'} did not satisfy condition. Last object: {last_obj}"
        )
E       AssertionError: tokenratelimitpolicy/maas-trlp-facebook-opt-125m-simulated in llm did not satisfy condition. Last object: {'apiVersion': 'kuadrant.io/v1alpha1', 'kind': 'TokenRateLimitPolicy', 'metadata': {'annotations': {'maas.opendatahub.io/subscriptions': 'models-as-a-service/simulator-subscription'}, 'creationTimestamp': '2026-07-29T21:10:32Z', 'generation': 19, 'labels': {'app.kubernetes.io/component': 'token-rate-limit-policy', 'app.kubernetes.io/managed-by': 'maas-controller', 'app.kubernetes.io/part-of': 'maas-subscription', 'maas.opendatahub.io/model': 'facebook-opt-125m-simulated', 'maas.opendatahub.io/model-namespace': 'llm'}, 'name': 'maas-trlp-facebook-opt-125m-simulated', 'namespace': 'llm', 'ownerReferences': [{'apiVersion': 'gateway.networking.k8s.io/v1', 'blockOwnerDeletion': True, 'controller': True, 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route', 'uid': '6de99e50-c32d-4081-933a-d906ad35ccb9'}], 'resourceVersion': '50469', 'uid': '18d0a3c4-88b1-40a3-a2cb-d332eb064766'}, 'spec': {'limits': {'models-as-a-service-simulator-subscription-facebook-opt-125m-simulated-tokens': {'counters': [{'expression': 'auth.identity.userid'}], 'rates': [{'limit': 100, 'window': '1m'}], 'when': [{'predicate': 'auth.identity.selected_subscription_key == "models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated" &amp;&amp; !request.path.endsWith("/v1/models")'}]}}, 'targetRef': {'group': 'gateway.networking.k8s.io', 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route'}}, 'status': {'conditions': [{'lastTransitionTime': '2026-07-29T21:10:37Z', 'message': 'TokenRateLimitPolicy has been accepted', 'reason': 'Accepted', 'status': 'True', 'type': 'Accepted'}, {'lastTransitionTime': '2026-07-29T21:21:32Z', 'message': 'TokenRateLimitPolicy has been successfully enforced', 'reason': 'Enforced', 'status': 'True', 'type': 'Enforced'}], 'observedGeneration': 19}}

test/e2e/tests/multitenancy_helpers.py:227: AssertionError</failure></testcase><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantNamespaceDiscovery" name="test_tenant_admin_rbac_is_namespace_scoped" time="33.475" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantWebhookValidation" name="test_maassubscription_rejected_without_tenant_config_cr" time="6.269" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantWebhookValidation" name="test_maasauthpolicy_rejected_without_tenant_config_cr" time="6.131" /><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestTenantDiscoveryDormantMode" name="test_dormant_mode_ignores_labeled_namespace" time="0.001"><skipped type="pytest.skip" message="Dormant-mode test mutates controller flags; set ENABLE_TENANT_DISCOVERY_DORMANT_E2E=true">/workspace/source/test/e2e/tests/test_tenant_namespace_discovery.py:352: Dormant-mode test mutates controller flags; set ENABLE_TENANT_DISCOVERY_DORMANT_E2E=true</skipped></testcase><testcase classname="test.e2e.tests.test_tenant_namespace_discovery.TestLegacyDefaultNamespaceStillWorks" name="test_models_as_a_service_namespace_reconciles" time="0.616" /><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestGatewayAuthPolicyStructure" name="test_target_ref_points_to_gateway" time="0.244" /><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestGatewayAuthPolicyStructure" name="test_no_per_model_authpolicy_for_fixture_model" time="0.134" /><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestGatewayAuthPolicyLifecycle" name="test_gateway_auth_embeds_model_allowlist" time="15.464" /><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestGatewayAuthPolicyLifecycle" name="test_only_one_gateway_authpolicy_named_maas_gateway_auth" time="0.224" /><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestGatewayAuthPolicyManagementEndpointAccess" name="test_gateway_auth_rego_allows_empty_model_identity" time="0.109" /><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestGatewayAuthPolicyManagementEndpointAccess" name="test_gateway_auth_subscription_check_gated_by_model_identity" time="0.121" /><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestGatewayAuthPolicyManagementEndpointAccess" name="test_gateway_default_auth_scoped_if_present" time="0.109"><skipped type="pytest.skip" message="gateway-default-auth not present (maas-gateway-auth is active); scoping is validated by unit tests">/workspace/source/test/e2e/tests/test_gateway_scoped_authpolicy.py:183: gateway-default-auth not present (maas-gateway-auth is active); scoping is validated by unit tests</skipped></testcase><testcase classname="test.e2e.tests.test_gateway_scoped_authpolicy.TestEnforcementGapAfterAuthPolicyChange" name="test_controller_holds_pending_while_unenforced" time="104.892" /><testcase classname="test.e2e.tests.test_multi_tenant_integration.TestMultiTenantIntegration" name="test_full_tenant_lifecycle_create_to_delete" time="135.295" /><testcase classname="test.e2e.tests.test_multi_tenant_integration.TestMultiTenantIntegration" name="test_default_tenant_unaffected_by_multitenancy_enablement" time="11.219" /><testcase classname="test.e2e.tests.test_multi_tenant_integration.TestMultiTenantIntegration" name="test_same_named_resources_across_tenants" time="586.809"><failure message="AssertionError: tokenratelimitpolicy/maas-trlp-facebook-opt-125m-simulated in llm did not satisfy condition. Last object: {'apiVersion': 'kuadrant.io/v1alpha1', 'kind': 'TokenRateLimitPolicy', 'metadata': {'annotations': {'maas.opendatahub.io/subscriptions': 'models-as-a-service/simulator-subscription'}, 'creationTimestamp': '2026-07-29T21:10:32Z', 'generation': 23, 'labels': {'app.kubernetes.io/component': 'token-rate-limit-policy', 'app.kubernetes.io/managed-by': 'maas-controller', 'app.kubernetes.io/part-of': 'maas-subscription', 'maas.opendatahub.io/model': 'facebook-opt-125m-simulated', 'maas.opendatahub.io/model-namespace': 'llm'}, 'name': 'maas-trlp-facebook-opt-125m-simulated', 'namespace': 'llm', 'ownerReferences': [{'apiVersion': 'gateway.networking.k8s.io/v1', 'blockOwnerDeletion': True, 'controller': True, 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route', 'uid': '6de99e50-c32d-4081-933a-d906ad35ccb9'}], 'resourceVersion': '63487', 'uid': '18d0a3c4-88b1-40a3-a2cb-d332eb064766'}, 'spec': {'limits': {'models-as-a-service-simulator-subscription-facebook-opt-125m-simulated-tokens': {'counters': [{'expression': 'auth.identity.userid'}], 'rates': [{'limit': 100, 'window': '1m'}], 'when': [{'predicate': 'auth.identity.selected_subscription_key == &quot;models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated&quot; &amp;&amp; !request.path.endsWith(&quot;/v1/models&quot;)'}]}}, 'targetRef': {'group': 'gateway.networking.k8s.io', 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route'}}, 'status': {'conditions': [{'lastTransitionTime': '2026-07-29T21:10:37Z', 'message': 'TokenRateLimitPolicy has been accepted', 'reason': 'Accepted', 'status': 'True', 'type': 'Accepted'}, {'lastTransitionTime': '2026-07-29T21:36:37Z', 'message': 'TokenRateLimitPolicy has been successfully enforced', 'reason': 'Enforced', 'status': 'True', 'type': 'Enforced'}], 'observedGeneration': 23}}">self = &lt;test_multi_tenant_integration.TestMultiTenantIntegration object at 0x7f3c1c30ed30&gt;

    def test_same_named_resources_across_tenants(self):
        """7.3: Same-named MaaS resources in separate tenant namespaces both contribute safely."""
        case_a = new_discovery_case()
        case_b = new_discovery_case()
        shared_policy = f"e2e-shared-int-policy-{case_a['suffix']}"
        shared_sub = f"e2e-shared-int-sub-{case_a['suffix']}"
        for case in (case_a, case_b):
            case["policy_name"] = shared_policy
            case["subscription_name"] = shared_sub
    
        try:
            for case in (case_a, case_b):
                bootstrap_aitenant_tenant(case)
                apply_maas_auth_policy(shared_policy, case["tenant_ns"])
                apply_maas_subscription(shared_sub, case["tenant_ns"])
                wait_for_finalizer("maasauthpolicy", shared_policy, case["tenant_ns"], FINALIZER_AUTHPOLICY)
                wait_for_finalizer("maassubscription", shared_sub, case["tenant_ns"], FINALIZER_SUBSCRIPTION)
                wait_for_status_phase("maasauthpolicy", shared_policy, case["tenant_ns"], expected_phase="Active")
    
            expected_subs = [f"{case_a['tenant_ns']}/{shared_sub}", f"{case_b['tenant_ns']}/{shared_sub}"]
&gt;           wait_for_annotation_contains(
                "tokenratelimitpolicy",
                f"maas-trlp-{MODEL_REF}",
                MODEL_NAMESPACE,
                "maas.opendatahub.io/subscriptions",
                expected_subs,
            )

test/e2e/tests/test_multi_tenant_integration.py:188: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/e2e/tests/multitenancy_helpers.py:358: in wait_for_annotation_contains
    wait_for_json(kind, name, namespace, predicate=_predicate, timeout=timeout, interval=interval)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

kind = 'tokenratelimitpolicy', name = 'maas-trlp-facebook-opt-125m-simulated'
namespace = 'llm'

    def wait_for_json(
        kind: str,
        name: str,
        namespace: Optional[str] = None,
        *,
        predicate=None,
        timeout: int = 180,
        interval: int = 5,
    ) -&gt; dict:
        deadline = time.time() + timeout
        last_obj = None
        while time.time() &lt; deadline:
            obj = get_json_or_none(kind, name, namespace)
            if obj is not None:
                last_obj = obj
                if predicate is None or predicate(obj):
                    return obj
            time.sleep(interval)
&gt;       raise AssertionError(
            f"{kind}/{name} in {namespace or '&lt;cluster&gt;'} did not satisfy condition. Last object: {last_obj}"
        )
E       AssertionError: tokenratelimitpolicy/maas-trlp-facebook-opt-125m-simulated in llm did not satisfy condition. Last object: {'apiVersion': 'kuadrant.io/v1alpha1', 'kind': 'TokenRateLimitPolicy', 'metadata': {'annotations': {'maas.opendatahub.io/subscriptions': 'models-as-a-service/simulator-subscription'}, 'creationTimestamp': '2026-07-29T21:10:32Z', 'generation': 23, 'labels': {'app.kubernetes.io/component': 'token-rate-limit-policy', 'app.kubernetes.io/managed-by': 'maas-controller', 'app.kubernetes.io/part-of': 'maas-subscription', 'maas.opendatahub.io/model': 'facebook-opt-125m-simulated', 'maas.opendatahub.io/model-namespace': 'llm'}, 'name': 'maas-trlp-facebook-opt-125m-simulated', 'namespace': 'llm', 'ownerReferences': [{'apiVersion': 'gateway.networking.k8s.io/v1', 'blockOwnerDeletion': True, 'controller': True, 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route', 'uid': '6de99e50-c32d-4081-933a-d906ad35ccb9'}], 'resourceVersion': '63487', 'uid': '18d0a3c4-88b1-40a3-a2cb-d332eb064766'}, 'spec': {'limits': {'models-as-a-service-simulator-subscription-facebook-opt-125m-simulated-tokens': {'counters': [{'expression': 'auth.identity.userid'}], 'rates': [{'limit': 100, 'window': '1m'}], 'when': [{'predicate': 'auth.identity.selected_subscription_key == "models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated" &amp;&amp; !request.path.endsWith("/v1/models")'}]}}, 'targetRef': {'group': 'gateway.networking.k8s.io', 'kind': 'HTTPRoute', 'name': 'facebook-opt-125m-simulated-kserve-route'}}, 'status': {'conditions': [{'lastTransitionTime': '2026-07-29T21:10:37Z', 'message': 'TokenRateLimitPolicy has been accepted', 'reason': 'Accepted', 'status': 'True', 'type': 'Accepted'}, {'lastTransitionTime': '2026-07-29T21:36:37Z', 'message': 'TokenRateLimitPolicy has been successfully enforced', 'reason': 'Enforced', 'status': 'True', 'type': 'Enforced'}], 'observedGeneration': 23}}

test/e2e/tests/multitenancy_helpers.py:227: AssertionError</failure></testcase><testcase classname="test.e2e.tests.test_multi_tenant_integration.TestMultiTenantIntegration" name="test_tenant_namespace_label_change_triggers_reconciliation" time="38.295" /><testcase classname="test.e2e.tests.test_tenant_model_inference.TestTenantModelInference" name="test_model_routes_through_tenant_gateway" time="99.418" /><testcase classname="test.e2e.tests.test_tenant_model_inference.TestTenantModelInference" name="test_inference_succeeds_through_tenant_gateway" time="4.286" /><testcase classname="test.e2e.tests.test_tenant_model_inference.TestTenantModelInference" name="test_tenant_isolation_cross_gateway_blocked" time="0.350" /><testcase classname="test.e2e.tests.test_tenant_model_inference.TestTenantBodyRouting" name="test_correct_model_in_body_succeeds" time="9.208" /><testcase classname="test.e2e.tests.test_tenant_model_inference.TestTenantBodyRouting" name="test_wrong_model_in_body_rejected" time="4.226" /><testcase classname="test.e2e.tests.test_tenant_model_inference.TestTenantBodyRouting" name="test_missing_model_in_body_rejected" time="4.219" /><testcase classname="test.e2e.tests.test_tenant_model_inference.TestTenantBodyRouting" name="test_each_tenant_routes_to_own_model" time="45.343" /><testcase classname="test.e2e.tests.test_multi_tenant_maas_api.TestPerTenantMaaSAPI" name="test_aitenant_creates_dedicated_maas_api_infrastructure" time="58.734" /><testcase classname="test.e2e.tests.test_multi_tenant_maas_api.TestPerTenantMaaSAPI" name="test_tenant_name_environment_variable_set" time="0.222" /><testcase classname="test.e2e.tests.test_multi_tenant_maas_api.TestPerTenantMaaSAPI" name="test_service_routing_isolation" time="0.442" /><testcase classname="test.e2e.tests.test_multi_tenant_maas_api.TestPerTenantMaaSAPI" name="test_httproute_tenant_attachment" time="0.234" /><testcase classname="test.e2e.tests.test_multi_tenant_maas_api.TestPerTenantMaaSAPI" name="test_default_and_multiple_tenants_coexist" time="46.364" /><testcase classname="test.e2e.tests.test_tenant_auth_isolation.TestTenantAuthIsolation" name="test_api_key_creation_scoped_to_tenant" time="148.679" /><testcase classname="test.e2e.tests.test_tenant_auth_isolation.TestTenantAuthIsolation" name="test_api_key_validates_against_correct_tenant" time="46.308" /><testcase classname="test.e2e.tests.test_tenant_auth_isolation.TestTenantAuthIsolation" name="test_api_key_rejected_cross_tenant" time="45.301" /><testcase classname="test.e2e.tests.test_tenant_auth_isolation.TestTenantAuthIsolation" name="test_oidc_token_validation_per_tenant" time="0.001"><skipped type="pytest.skip" message="Per-tenant OIDC tokens unavailable — set OIDC_TOKEN_URL (tenant-a) and OIDC_TOKEN_URL_TENANT_B (tenant-b), or OIDC_TOKEN_TENANT_A / OIDC_TOKEN_TENANT_B">/workspace/source/test/e2e/tests/test_tenant_auth_isolation.py:212: Per-tenant OIDC tokens unavailable — set OIDC_TOKEN_URL (tenant-a) and OIDC_TOKEN_URL_TENANT_B (tenant-b), or OIDC_TOKEN_TENANT_A / OIDC_TOKEN_TENANT_B</skipped></testcase><testcase classname="test.e2e.tests.test_tenant_auth_isolation.TestTenantAuthIsolation" name="test_api_key_list_scoped_to_tenant" time="45.262" /><testcase classname="test.e2e.tests.test_tenant_auth_isolation.TestTenantAuthIsolation" name="test_api_key_metadata_not_leaked_cross_tenant" time="45.260" /><testcase classname="test.e2e.tests.test_tenant_auth_isolation.TestTenantAuthIsolation" name="test_api_key_subscription_selection_uses_tenant_namespace" time="49.645" /><testcase classname="test.e2e.tests.test_tenant_subscription_isolation.TestTenantSubscriptionIsolation" name="test_subscription_list_scoped_to_tenant" time="99.089" /><testcase classname="test.e2e.tests.test_tenant_subscription_isolation.TestTenantSubscriptionIsolation" name="test_subscription_selection_per_tenant" time="67.477"><failure message="AssertionError: create API key for e2e-shared-a-b69e52 failed: status=401 body=&#10;assert 401 in (200, 201)&#10; +  where 401 = &lt;Response [401]&gt;.status_code">self = &lt;test_tenant_subscription_isolation.TestTenantSubscriptionIsolation object at 0x7f3c1c6224c0&gt;
tenant_subscriptions = {'auth_policy': 'e2e-sub-iso-auth-daeb46', 'shared': 'e2e-shared-sub-daeb46', 'tenant_a': {'base_url': 'https://e2e-sh...est-model-b69e52', 'model_namespace': 'ai-tenant-e2e-shared-a-b69e52', ...}, 'tenant_a_only': 'e2e-a-only-daeb46', ...}

    def test_subscription_selection_per_tenant(self, tenant_subscriptions):
        """4.2: Same-named subscriptions resolve to the namespace behind each tenant endpoint."""
        shared = tenant_subscriptions["shared"]
        tenant_a = tenant_subscriptions["tenant_a"]
        tenant_b = tenant_subscriptions["tenant_b"]
&gt;       key_a = _create_key_for_subscription(tenant_a, shared)

test/e2e/tests/test_tenant_subscription_isolation.py:185: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tenant = {'base_url': 'https://e2e-shared-a-b69e52.apps.fbdc818f-be73-44da-8635-be9c76a2e1db.prod.konfluxeaas.com/maas-api', 'g... 'e2e-shared-a-b69e52', 'model_name': 'sub-test-model-b69e52', 'model_namespace': 'ai-tenant-e2e-shared-a-b69e52', ...}
subscription = 'e2e-shared-sub-daeb46'

    def _create_key_for_subscription(tenant: dict[str, str], subscription: str) -&gt; str:
        response = create_api_key_at(
            tenant["base_url"],
            _get_cluster_token(),
            f"e2e-sub-iso-{uuid.uuid4().hex[:6]}",
            subscription=subscription,
        )
&gt;       assert response.status_code in (200, 201), (
            f"create API key for {tenant['name']} failed: {response_summary(response)}"
        )
E       AssertionError: create API key for e2e-shared-a-b69e52 failed: status=401 body=
E       assert 401 in (200, 201)
E        +  where 401 = &lt;Response [401]&gt;.status_code

test/e2e/tests/test_tenant_subscription_isolation.py:152: AssertionError</failure></testcase><testcase classname="test.e2e.tests.test_tenant_rate_limit_isolation.TestTenantRateLimitIsolation" name="test_rate_limit_enforced_per_tenant" time="122.690"><error message="failed on setup with &quot;AssertionError: status=401 body=&#10;assert 401 in (200, 201)&#10; +  where 401 = &lt;Response [401]&gt;.status_code&quot;">tenant_env = ({'backend_model_name': 'facebook/opt-125m', 'base_url': 'https://e2e-shared-a-b69e52.apps.fbdc818f-be73-44da-8635-be9...db.prod.konfluxeaas.com/maas-api', 'gateway_name': 'e2e-shared-b-ac47f7', 'model_name': 'rate-test-model-ac47f7', ...})

    @pytest.fixture
    def tenant_rate_limit_setup(tenant_env):
        suffix = uuid.uuid4().hex[:6]
        tenant_a, tenant_b = tenant_env
        policy_name = f"e2e-rate-iso-auth-{suffix}"
        sub_a = f"e2e-rate-iso-a-{suffix}"
        sub_b = f"e2e-rate-iso-b-{suffix}"
        try:
            for tenant in tenant_env:
                apply_maas_auth_policy(
                    policy_name,
                    tenant["namespace"],
                    model_ref=tenant["model_name"],
                    model_namespace=tenant["model_namespace"],
                )
                wait_for_status_phase(
                    "maasauthpolicy",
                    policy_name,
                    tenant["namespace"],
                    expected_phase="Active",
                )
    
            for tenant in (tenant_a, tenant_b):
                wait_for_gateway_authpolicy_ready(tenant["gateway_name"])
    
            apply_maas_subscription(
                sub_a,
                tenant_a["namespace"],
                model_ref=tenant_a["model_name"],
                model_namespace=tenant_a["model_namespace"],
                token_limit=3,
                window="1m",
            )
            apply_maas_subscription(
                sub_b,
                tenant_b["namespace"],
                model_ref=tenant_b["model_name"],
                model_namespace=tenant_b["model_namespace"],
                token_limit=100,
                window="1m",
            )
            for name, namespace in ((sub_a, tenant_a["namespace"]), (sub_b, tenant_b["namespace"])):
                wait_for_status_phase(
                    "maassubscription",
                    name,
                    namespace,
                    expected_phase=("Active", "Degraded"),
                )
                _wait_for_subscription_trlp_status(
                    name,
                    expected_ready=True,
                    namespace=namespace,
                    timeout=120,
                )
            for tenant in (tenant_a, tenant_b):
                wait_for_status_phase(
                    "maasmodelref",
                    tenant["model_name"],
                    tenant["namespace"],
                    expected_phase="Ready",
                    timeout=180,
                )
    
            oc_token = _get_cluster_token()
            key_a_response = create_api_key_at(
                tenant_a["base_url"],
                oc_token,
                f"e2e-rate-a-{suffix}",
                subscription=sub_a,
            )
&gt;           assert key_a_response.status_code in (200, 201), response_summary(key_a_response)
E           AssertionError: status=401 body=
E           assert 401 in (200, 201)
E            +  where 401 = &lt;Response [401]&gt;.status_code

test/e2e/tests/test_tenant_rate_limit_isolation.py:128: AssertionError</error></testcase><testcase classname="test.e2e.tests.test_tenant_rate_limit_isolation.TestTenantRateLimitIsolation" name="test_independent_tenant_rate_limits" time="96.010"><error message="failed on setup with &quot;AssertionError: status=401 body=&#10;assert 401 in (200, 201)&#10; +  where 401 = &lt;Response [401]&gt;.status_code&quot;">tenant_env = ({'backend_model_name': 'facebook/opt-125m', 'base_url': 'https://e2e-shared-a-b69e52.apps.fbdc818f-be73-44da-8635-be9...db.prod.konfluxeaas.com/maas-api', 'gateway_name': 'e2e-shared-b-ac47f7', 'model_name': 'rate-test-model-ac47f7', ...})

    @pytest.fixture
    def tenant_rate_limit_setup(tenant_env):
        suffix = uuid.uuid4().hex[:6]
        tenant_a, tenant_b = tenant_env
        policy_name = f"e2e-rate-iso-auth-{suffix}"
        sub_a = f"e2e-rate-iso-a-{suffix}"
        sub_b = f"e2e-rate-iso-b-{suffix}"
        try:
            for tenant in tenant_env:
                apply_maas_auth_policy(
                    policy_name,
                    tenant["namespace"],
                    model_ref=tenant["model_name"],
                    model_namespace=tenant["model_namespace"],
                )
                wait_for_status_phase(
                    "maasauthpolicy",
                    policy_name,
                    tenant["namespace"],
                    expected_phase="Active",
                )
    
            for tenant in (tenant_a, tenant_b):
                wait_for_gateway_authpolicy_ready(tenant["gateway_name"])
    
            apply_maas_subscription(
                sub_a,
                tenant_a["namespace"],
                model_ref=tenant_a["model_name"],
                model_namespace=tenant_a["model_namespace"],
                token_limit=3,
                window="1m",
            )
            apply_maas_subscription(
                sub_b,
                tenant_b["namespace"],
                model_ref=tenant_b["model_name"],
                model_namespace=tenant_b["model_namespace"],
                token_limit=100,
                window="1m",
            )
            for name, namespace in ((sub_a, tenant_a["namespace"]), (sub_b, tenant_b["namespace"])):
                wait_for_status_phase(
                    "maassubscription",
                    name,
                    namespace,
                    expected_phase=("Active", "Degraded"),
                )
                _wait_for_subscription_trlp_status(
                    name,
                    expected_ready=True,
                    namespace=namespace,
                    timeout=120,
                )
            for tenant in (tenant_a, tenant_b):
                wait_for_status_phase(
                    "maasmodelref",
                    tenant["model_name"],
                    tenant["namespace"],
                    expected_phase="Ready",
                    timeout=180,
                )
    
            oc_token = _get_cluster_token()
            key_a_response = create_api_key_at(
                tenant_a["base_url"],
                oc_token,
                f"e2e-rate-a-{suffix}",
                subscription=sub_a,
            )
&gt;           assert key_a_response.status_code in (200, 201), response_summary(key_a_response)
E           AssertionError: status=401 body=
E           assert 401 in (200, 201)
E            +  where 401 = &lt;Response [401]&gt;.status_code

test/e2e/tests/test_tenant_rate_limit_isolation.py:128: AssertionError</error></testcase></testsuite></testsuites>