Remove token auth suite and it's testplan 90/90590/2
authorJamo Luhrsen <jluhrsen@gmail.com>
Mon, 22 Jun 2020 23:19:43 +0000 (16:19 -0700)
committerVenkatrangan Govindarajan <vgovindarajan@luminanetworks.com>
Tue, 23 Jun 2020 04:45:18 +0000 (04:45 +0000)
Neon is no longer supported or tested and was the
last release that had token authentication. So,
remove the relevant resources.

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Change-Id: I324f3de5ce83b6b6ff9ce437bf604e772c448cdd

csit/suites/aaa/authn/010_Credential_Authentication.robot [deleted file]
csit/testplans/aaa-authn-neon.txt [deleted file]

diff --git a/csit/suites/aaa/authn/010_Credential_Authentication.robot b/csit/suites/aaa/authn/010_Credential_Authentication.robot
deleted file mode 100644 (file)
index dc57663..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-*** Settings ***
-Documentation     AAA System Tests
-Suite Setup       SetupUtils.Setup_Utils_For_Setup_And_Teardown
-Suite Teardown    Delete All Sessions
-Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
-Library           Collections
-Library           HttpLibrary.HTTP
-Library           OperatingSystem
-Library           RequestsLibrary
-Library           String
-Library           ../../../libraries/Common.py
-Resource          ../../../libraries/AAAKeywords.robot
-Resource          ../../../libraries/KarafKeywords.robot
-Resource          ../../../libraries/SetupUtils.robot
-Resource          ../../../libraries/Utils.robot
-Resource          ../../../variables/Variables.robot
-
-*** Variables ***
-
-*** Test Cases ***
-Get Token With Valid Username And Password
-    [Documentation]    Sanity test to ensure default user/password can get a token
-    ${auth_token}=    Get Auth Token
-    Should Be String    ${auth_token}
-    Log    Token: ${auth_token}
-    Validate Token Format    ${auth_token}
-
-Fail To Get Token With Invalid Username And Password
-    [Documentation]    Negative test to verify invalid user/password is denied a token
-    ${bad_user}=    Set Variable    notTheAdmin
-    ${auth_data}=    Create Auth Data    ${bad_user}    notTheAdminPassword
-    ${resp}=    AAA Login    ${ODL_SYSTEM_IP}    ${auth_data}
-    Should Be Equal As Strings    ${resp.status_code}    401
-    Log    ${resp.content}
-    ${error_msg}=    Extract Value From Content    ${resp.content}    /error    strip
-    Should Contain    ${error_msg}    User :${bad_user} does not exist
-
-Create Token with Client Authorization
-    [Documentation]    Get a token using client domain
-    ${auth_token}=    Get Auth Token    ${USER}    ${PWD}    ${SCOPE}    dlux    secrete
-    Should Be String    ${auth_token}
-    Log    Token: ${auth_token}
-    Validate Token Format    ${auth_token}
-
-Token Authentication In REST Request
-    [Documentation]    Use a token to make a successful REST transaction
-    ${auth_token}=    Get Token And Verify
-    [Teardown]    Report_Failure_Due_To_Bug    AAA-101
-
-Revoke Token And Verify Transaction Fails
-    [Documentation]    negative test to revoke valid token and check that REST transaction fails
-    ${auth_token}=    Wait Until Keyword Succeeds    10s    1s    Get Token and Verify
-    Revoke Auth Token    ${auth_token}
-    Make REST Transaction    401    ${auth_token}
-
-Disable Authentication And Re-Enable Authentication
-    [Documentation]    Toggles authentication off and verifies that no login credentials are needed for REST transactions.
-    ...    Test has been disabled due to the fact that this interface has changed. Authentication is now disabled
-    ...    through modification of shiro.ini, which requires controller restart and is not suit for this test.
-    [Tags]    exclude
-    Disable Authentication On Controller    ${ODL_SYSTEM_IP}
-    Wait Until Keyword Succeeds    10s    1s    Make REST Transaction    200
-    Enable Authentication On Controller    ${ODL_SYSTEM_IP}
-    Wait Until Keyword Succeeds    10s    1s    Validate That Authentication Fails With Wrong Token
-    ${auth_token}=    Get Token And Verify
-    [Teardown]    Report_Failure_Due_To_Bug    4922
-
-*** Keywords ***
-Get Token And Verify
-    ${auth_token}=    Get Auth Token
-    Make REST Transaction    200    ${auth_token}
-    [Return]    ${auth_token}
-
-Validate That Authentication Fails With Wrong Token
-    ${bad_token}=    Set Variable    notARealToken
-    Make REST Transaction    401    ${bad_token}
-
-Make REST Transaction
-    [Arguments]    ${expected_status_code}    ${auth_data}=${EMPTY}
-    Create Session    ODL_SESSION    http://${ODL_SYSTEM_IP}:8181
-    ${headers}=    Create Dictionary    Content-Type=application/x-www-form-urlencoded
-    Run Keyword If    "${auth_data}" != "${EMPTY}"    Set To Dictionary    ${headers}    Authorization    Bearer ${auth_data}
-    ${resp}=    RequestsLibrary.GET Request    ODL_SESSION    ${MODULES_API}    headers=${headers}
-    Log    STATUS_CODE: ${resp.status_code} CONTENT: ${resp.content}
-    Should Be Equal As Strings    ${resp.status_code}    ${expected_status_code}
diff --git a/csit/testplans/aaa-authn-neon.txt b/csit/testplans/aaa-authn-neon.txt
deleted file mode 100644 (file)
index 74e30d9..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place the suites in run order:
-integration/test/csit/suites/aaa/authn
-