aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjornMagnussonXA <bjorn.magnusson@est.tech>2019-03-06 14:11:57 +0000
committerBjornMagnussonXA <bjorn.magnusson@est.tech>2019-03-06 14:11:57 +0000
commitc4c62f25419e3ac3e660117600eb9ed06c8f2be2 (patch)
tree40e15f88a87a9ea6b144c92c8c8342f341b3f995 /tests
parent3396b7536f5ef986df20788c87470c12bb95123a (diff)
Added DataFile plans and tests
Issue-ID: DCAEGEN2-1313 Change-Id: I21c90190917adc041f24ddb4f6f7446fc882f38c Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/MI.robot74
-rwxr-xr-xtests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/__init__.robot2
2 files changed, 76 insertions, 0 deletions
diff --git a/tests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/MI.robot b/tests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/MI.robot
new file mode 100755
index 00000000..7020042b
--- /dev/null
+++ b/tests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/MI.robot
@@ -0,0 +1,74 @@
+*** Settings ***
+Library OperatingSystem
+Library RequestsLibrary
+
+*** Variables ***
+
+
+*** Test Cases ***
+
+Heartbeat test
+ [Documentation] Check DFC heartbeat
+ Heartbeat I'm living
+
+Stop test
+ [Documentation] Check DFC stop
+ Stop Datafile Service has already been stopped!
+
+Start test
+ [Documentation] Check DFC start
+ Start Datafile Service has been started!
+
+Heartbeat test - secure
+ [Documentation] Check DFC heartbeat, secure
+ Heartbeat-secure I'm living
+
+Stop test - secure
+ [Documentation] Check DFC stop, secure
+ Stop-secure Datafile Service has already been stopped!
+
+
+Start test - secure
+ [Documentation] Check DFC start, secure
+ Start-secure Datafile Service has been started!
+
+
+#PRobably move definitions of common Keywords to a common file
+
+*** Keywords ***
+#Probably simplyfy the test cases by using variables for port numbers/urls etc
+Heartbeat
+ [Arguments] ${respbody}
+ Create Session session http://localhost:8100/heartbeat
+ ${resp}= Get Request session /
+ Should Be Equal ${resp.text} ${respbody}
+
+Heartbeat-secure
+ [Arguments] ${respbody}
+ Create Session session https://localhost:8433/heartbeat
+ ${resp}= Get Request session /
+ Should Be Equal ${resp.text} ${respbody}
+
+Stop
+ [Arguments] ${respbody}
+ Create Session session http://localhost:8100/stopDatafile
+ ${resp}= Get Request session /
+ Should Be Equal ${resp.text} ${respbody}
+
+Stop-secure
+ [Arguments] ${respbody}
+ Create Session session https://localhost:8433/stopDatafile
+ ${resp}= Get Request session /
+ Should Be Equal ${resp.text} ${respbody}
+
+Start
+ [Arguments] ${respbody}
+ Create Session session http://localhost:8100/start
+ ${resp}= Get Request session /
+ Should Be Equal ${resp.text} ${respbody}
+
+Start-secure
+ [Arguments] ${respbody}
+ Create Session session https://localhost:8433/start
+ ${resp}= Get Request session /
+ Should Be Equal ${resp.text} ${respbody}
diff --git a/tests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/__init__.robot b/tests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/__init__.robot
new file mode 100755
index 00000000..c5ea9c60
--- /dev/null
+++ b/tests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/__init__.robot
@@ -0,0 +1,2 @@
+*** Settings ***
+Documentation Management Interface suite