setting global kubectl voltctl env vars
Change-Id: Ic85343b78feb6b5a32ba42b28106e07732458556
diff --git a/tests/data/sadis-notp-1.json b/tests/data/sadis-notp-1.json
new file mode 100644
index 0000000..a82ef86
--- /dev/null
+++ b/tests/data/sadis-notp-1.json
@@ -0,0 +1,30 @@
+{
+ "apps": {
+ "org.opencord.sadis": {
+ "sadis": {
+ "integration": {
+ "cache": {
+ "enabled": false,
+ "maxsize": 50,
+ "ttl": "PT0m"
+ }
+ },
+ "entries": [
+ {
+ "id": "BBSIMOLT000",
+ "hardwareIdentifier": "00:00:0a:62:ce:e2",
+ "ipAddress": ":OLT_IPADDR:",
+ "nasId": "BBSIMOLT000",
+ "uplinkPort": 65536
+ },
+ {
+ "id": "BBSM00000001-1",
+ "cTag": 900,
+ "sTag": 900,
+ "nasPortId": "PON 2/1/01/1:1.1.1"
+ }
+ ]
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/tests/sanity/sanity.robot b/tests/sanity/sanity.robot
index 7d1b633..ce107af 100644
--- a/tests/sanity/sanity.robot
+++ b/tests/sanity/sanity.robot
@@ -24,9 +24,10 @@
Suite Teardown Teardown
*** Variables ***
-${server_ip} localhost
-${timeout} 90s
-${num_onus} 1
+${server_ip} localhost
+${timeout} 90s
+${num_onus} 1
+${SADIS_CONFIG} ${CURDIR}/../data/sadis-notp-1.json
*** Test Cases ***
Activate Device BBSIM OLT/ONU
@@ -35,10 +36,10 @@
... re-validate deployment
[Tags] activate
#create/preprovision device
- ${rc} ${device_id}= Run and Return Rc and Output voltctl device create -t openolt -H ${BBSIM_SERVICE}:${BBSIM_PORT}
+ ${rc} ${device_id}= Run and Return Rc and Output ${VOLTCTL_CONFIG} voltctl device create -t openolt -H ${BBSIM_SERVICE}:${BBSIM_PORT}
Should Be Equal As Integers ${rc} 0
#enable device
- ${rc} ${output}= Run and Return Rc and Output voltctl device enable ${device_id}
+ ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG} voltctl device enable ${device_id}
Should Be Equal As Integers ${rc} 0
#validate olt states
Wait Until Keyword Succeeds 60s 5s Validate Device ${BBSIM_OLT_SN} ENABLED ACTIVE REACHABLE
@@ -71,10 +72,15 @@
*** Keywords ***
Setup
[Documentation] Setup environment
+ Log Setting up
+ Set Global Variable ${KUBECTL_CONFIG} export KUBECONFIG=%{KUBECONFIG}
+ Set Global Variable ${VOLTCTL_CONFIG} export VOLTCONFIG=%{VOLTCONFIG}
Check CLI Tools Configured
${onos_auth}= Create List karaf karaf
${HEADERS} Create Dictionary Content-Type=application/json
Create Session ONOS http://${server_ip}:${ONOS_REST_PORT} auth=${ONOS_AUTH}
+ ## TODO upload sadis ${sadis_config}
+
Teardown
[Documentation] Delete all http sessions