aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xci/exec_test.sh3
-rw-r--r--testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot27
-rwxr-xr-xtestcases/OpenStack/rally/run_rally-cert.py2
-rw-r--r--testcases/security_scan/config.ini4
4 files changed, 31 insertions, 5 deletions
diff --git a/ci/exec_test.sh b/ci/exec_test.sh
index 2269aa7f..3af16495 100755
--- a/ci/exec_test.sh
+++ b/ci/exec_test.sh
@@ -134,8 +134,7 @@ function run_test(){
# ${repos_dir}/ovno/Testcases/RunTests.sh
;;
"security_scan")
- # To be enabled once verified manually
- # python ${FUNCTEST_REPO_DIR}/Testcases/security_scan/security_scan.py --config config.ini
+ python ${FUNCTEST_REPO_DIR}/testcases/security_scan/security_scan.py --config ${FUNCTEST_REPO_DIR}/testcases/security_scan/config.ini
;;
*)
echo "The test case '${test_name}' does not exist."
diff --git a/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot b/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot
new file mode 100644
index 00000000..d5ec842e
--- /dev/null
+++ b/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot
@@ -0,0 +1,27 @@
+*** Variables ***
+${NeutronNorthbound} /controller/nb/v2/neutron
+${NetworkNorthbound} ${NeutronNorthbound}/networks
+${SubnetNorthbound} ${NeutronNorthbound}/subnets
+${PortNorthbound} ${NeutronNorthbound}/ports
+
+*** Settings ***
+Suite Setup Create Session ODL http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+Suite Teardown Delete All Sessions
+Library RequestsLibrary
+Variables ../../../variables/Variables.py
+
+*** Test Cases ***
+Get the complete list of networks
+ [Tags] reachability
+ ${resp} get request ODL ${NetworkNorthbound}
+ Should be Equal As Strings ${resp.status_code} 200
+
+Get the complete list of subnets
+ [Tags] reachability
+ ${resp} get request ODL ${SubnetNorthbound}
+ Should be Equal As Strings ${resp.status_code} 200
+
+Get the complete list of ports
+ [Tags] reachability
+ ${resp} get request ODL ${PortNorthbound}
+ Should be Equal As Strings ${resp.status_code} 200
diff --git a/testcases/OpenStack/rally/run_rally-cert.py b/testcases/OpenStack/rally/run_rally-cert.py
index abff07be..7822c7e9 100755
--- a/testcases/OpenStack/rally/run_rally-cert.py
+++ b/testcases/OpenStack/rally/run_rally-cert.py
@@ -266,7 +266,7 @@ def get_output(proc, test_name):
'success': success_avg}
SUMMARY.append(scenario_summary)
- logger.info("\n" + result)
+ logger.debug("\n" + result)
return result
diff --git a/testcases/security_scan/config.ini b/testcases/security_scan/config.ini
index bfbcf82d..9d97fc12 100644
--- a/testcases/security_scan/config.ini
+++ b/testcases/security_scan/config.ini
@@ -10,7 +10,7 @@ user = heat-admin
scantype = xccdf
secpolicy = /usr/share/xml/scap/ssg/content/ssg-centos7-xccdf.xml
cpe = /usr/share/xml/scap/ssg/content/ssg-rhel7-cpe-dictionary.xml
-profile = standard
+profile = stig-rhel7-server-upstream
report = report.hmtl
results = results.xml
reports_dir=/home/opnfv/functest/results/security_scan/
@@ -22,7 +22,7 @@ user = heat-admin
scantype = xccdf
secpolicy = /usr/share/xml/scap/ssg/content/ssg-centos7-xccdf.xml
cpe = /usr/share/xml/scap/ssg/content/ssg-rhel7-cpe-dictionary.xml
-profile = standard
+profile = sstig-rhel7-server-upstream
report = report.hmtl
results = results.xml
reports_dir=/home/opnfv/functest/results/security_scan/