aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/robotframework/tests/02_policy_queries.robot
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-01-24 16:40:18 +0100
committerLiam Fallon <liam.fallon@est.tech>2021-02-10 16:18:33 +0000
commitad9f3334d908cce1d4c3c0f0d71a64f7ab6e6084 (patch)
tree58b7ba582eb9bb33ac2fc32301ae6b52c1adf8ca /src/test/resources/robotframework/tests/02_policy_queries.robot
parentcd3f004747d8513f34ded969d86cadad845505e7 (diff)
Add new Camel route
Add the new rest endpoint in camel + add new permission type + add robot test for that route + small refactoring of trst files Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I623cc8ec1724513cdb92eeea000adca5c2433bae (cherry picked from commit 9d04a9cc8c6f4b12ae60cc0d4d42f71085f72328)
Diffstat (limited to 'src/test/resources/robotframework/tests/02_policy_queries.robot')
-rw-r--r--src/test/resources/robotframework/tests/02_policy_queries.robot21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/resources/robotframework/tests/02_policy_queries.robot b/src/test/resources/robotframework/tests/02_policy_queries.robot
new file mode 100644
index 000000000..e62e03476
--- /dev/null
+++ b/src/test/resources/robotframework/tests/02_policy_queries.robot
@@ -0,0 +1,21 @@
+*** Settings ***
+Library Collections
+Library RequestsLibrary
+Library OperatingSystem
+Library json
+Library OperatingSystem
+*** Variables ***
+${login} admin
+${passw} password
+${reponse_pdp_group} pdpGroupInfo
+*** Keywords ***
+Create the sessions
+*** Test Cases ***
+Get Requests policies list ok
+ ${port} = Get Environment Variable CLAMP_PORT
+ ${auth} = Create List ${login} ${passw}
+ Create Session clamp http://localhost:${port} auth=${auth} disable_warnings=1
+ Set Global Variable ${clamp_session} clamp
+ ${response_query}= Get Request ${clamp_session} /restservices/clds/v2/policies/list
+ Should Be Equal As Strings ${response_query.status_code} 200
+ Should Contain ${response_query.text} ${reponse_pdp_group} \ No newline at end of file