diff options
Diffstat (limited to 'test/csit/tests/clamp/APIs/04__Verify_API_Models.robot')
-rw-r--r-- | test/csit/tests/clamp/APIs/04__Verify_API_Models.robot | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot b/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot index 3ae6aeeb9..7b9e2bc16 100644 --- a/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot +++ b/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot @@ -10,9 +10,7 @@ ${passw} password *** Test Cases *** Verify HolmesModel1 - ${auth}= Create List ${login} ${passw} - Create Session clamp http://localhost:8080 auth=${auth} - ${resp}= Get Request clamp /restservices/clds/v1/clds/model/ClHolmes1 + ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/ClHolmes1 Should Contain Match ${resp} *templateHolmes1* Should Contain Match ${resp} *DC1* Should Contain Match ${resp} *DC2* @@ -23,9 +21,7 @@ Verify HolmesModel1 Should Contain Match ${resp} *Config Policy name1* Verify HolmesModel2 - ${auth}= Create List ${login} ${passw} - Create Session clamp http://localhost:8080 auth=${auth} - ${resp}= Get Request clamp /restservices/clds/v1/clds/model/ClHolmes2 + ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/ClHolmes2 Should Contain Match ${resp} *templateHolmes2* Should Contain Match ${resp} *DC2* Should Contain Match ${resp} *DC3* @@ -37,9 +33,7 @@ Verify HolmesModel2 Should Contain Match ${resp} *Config Policy Name2* Verify TCAModel1 - ${auth}= Create List ${login} ${passw} - Create Session clamp http://localhost:8080 auth=${auth} - ${resp}= Get Request clamp /restservices/clds/v1/clds/model/ClTCA1 + ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/ClTCA1 Should Contain Match ${resp} *templateTCA1* Should Contain Match ${resp} *enbRecipe* Should Contain Match ${resp} *DC1* @@ -50,9 +44,7 @@ Verify TCAModel1 Should Contain Match ${resp} *ONSET* Verify TCAModel2 - ${auth}= Create List ${login} ${passw} - Create Session clamp http://localhost:8080 auth=${auth} - ${resp}= Get Request clamp /restservices/clds/v1/clds/model/ClTCA2 + ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/ClTCA2 Should Contain Match ${resp} *templateTCA2* Should Contain Match ${resp} *enbRecipe* Should Contain Match ${resp} *DC1* @@ -65,9 +57,7 @@ Verify TCAModel2 Should Contain Match ${resp} *VM* Get model names - ${auth}= Create List ${login} ${passw} - Create Session clamp http://localhost:8080 auth=${auth} - ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names + ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names Should Contain Match ${resp} *ClHolmes1* Should Contain Match ${resp} *ClHolmes2* Should Contain Match ${resp} *ClTCA1* |