Commit 01267670 authored by Claudia Carballo Gonzalez's avatar Claudia Carballo Gonzalez
Browse files

Add test 103 for visibility rules priority

- Tests: Add visibility_control-103 to verify that when multiple rules have the same specificity, the engine correctly prioritizes the most recently updated one.
parent 40c8a5b4
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -481,6 +481,13 @@ Discover Published service APIs by Unauthorised API Invoker Visibility Control (
    Dictionary Should Contain Key    ${resp.json()}    detail
    Should Be Equal As Strings    ${resp.json()['detail']}    API Invoker ${invoker_id} has no visible APIs after applying visibility rules

    # Build provider selector from published API and provider registration
    ${aef_list}=    Create List    ${register_user_info['aef_id']}
    ${apiId_list}=    Create List    ${service_api_description_published['apiId']}
    ${apiName_list}=    Create List    ${service_api_description_published['apiName']}
    
    ${provider_selector}=    Create Dictionary    aefId=${aef_list}    apiId=${apiId_list}    apiName=${apiName_list}    userName=${register_user_info['apf_username']}
    
    # Prepare the request body
    ${body}=    Create Visibility Control Rule Body 5    ${invoker_id}    ${provider_selector}