diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2021-11-01 10:40:32 +0000 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2021-11-05 19:18:24 +0000 |
commit | 496b301c101f2a21e8408048dc0fd57c59a12d92 (patch) | |
tree | cc4761ab8dbe6c29caefd08391a2e06341fe29dd /csit/distribution/tests | |
parent | 6db3db236b6987af30a6fdb12ae6f9ea017c3856 (diff) |
Rename username for API and PAP operations.
Use an account other than healthcheck in API and PAP for provisioning of policies.
Issue-ID: POLICY-2744
Change-Id: Id2cbba8e5e5095996622572fbf42383bb854fb43
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/distribution/tests')
-rw-r--r-- | csit/distribution/tests/distribution-test.robot | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/csit/distribution/tests/distribution-test.robot b/csit/distribution/tests/distribution-test.robot index 2513a6ca..8bf4b84d 100644 --- a/csit/distribution/tests/distribution-test.robot +++ b/csit/distribution/tests/distribution-test.robot @@ -8,22 +8,25 @@ Resource ${CURDIR}/../../common-library.robot *** Test Cases *** Healthcheck - [Documentation] Verify policy distribution health check - ${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /healthcheck 200 null - Should Be Equal As Strings ${resp.json()['code']} 200 + [Documentation] Verify policy distribution health check + ${hcauth}= HealthCheckAuth + ${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /healthcheck 200 null ${hcauth} + Should Be Equal As Strings ${resp.json()['code']} 200 Statistics - [Documentation] Verify policy distribution statistics - ${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /statistics 200 null - Should Be Equal As Strings ${resp.json()['code']} 200 + [Documentation] Verify policy distribution statistics + ${hcauth}= HealthCheckAuth + ${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /statistics 200 null ${hcauth} + Should Be Equal As Strings ${resp.json()['code']} 200 Metrics [Documentation] Verify policy-distribution is exporting prometheus metrics - ${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /metrics 200 null + ${hcauth}= HealthCheckAuth + ${resp}= PerformGetRequest ${POLICY_DISTRIBUTION_IP} /metrics 200 null ${hcauth} Should Contain ${resp.text} jvm_threads_current InvokeDistributionAndRunEventOnEngine - Wait Until Keyword Succeeds 5 min 30 sec InvokeDistributionUsingFile And RunEventOnApexEngine + Wait Until Keyword Succeeds 5 min 30 sec InvokeDistributionUsingFile And RunEventOnApexEngine *** Keywords *** |