diff options
author | Eddie Arrage <eddie.arrage@huawei.com> | 2018-04-09 15:15:50 -0700 |
---|---|---|
committer | Georg Kunz <georg.kunz@ericsson.com> | 2018-04-10 18:47:53 +0000 |
commit | 71ba21ff906d4104a81442d4712aac13cf4906d4 (patch) | |
tree | 7b5f208f955286be3707d6024d846b9f9576d53f | |
parent | d596c9988d82cb6876b0acd12e79a89319bdbd0b (diff) |
Add functest healthcheck test suite
- Add Functest healthcheck tier to Dovetail as new test suite
- Intention is that these test cases are not part of mandatory
test cases in compliance program
- Use for debug and SUT pre-flight check
- May consider running tc001 (connection_check) at other
test execution stages to determine if SUT is still functioning, as
this test takes < 10 sec (more important as test complexity increases
such as in vnf test tier)
- Replacement for patch:
https://gerrit.opnfv.org/gerrit/#/c/52461/
- Removed CI filters, as suggested
Change-Id: I2e72931b27e43359d6250f6959a17af8526c5094
Signed-off-by: Eddie Arrage <eddie.arrage@huawei.com>
-rw-r--r-- | etc/compliance/healthcheck.yml | 9 | ||||
-rw-r--r-- | etc/conf/dovetail_config.yml | 2 | ||||
-rw-r--r-- | etc/testcase/healthcheck.tc001.yml | 9 | ||||
-rw-r--r-- | etc/testcase/healthcheck.tc002.yml | 9 | ||||
-rw-r--r-- | etc/testcase/healthcheck.tc003.yml | 9 | ||||
-rw-r--r-- | etc/userconfig/testcases.yaml | 62 |
6 files changed, 100 insertions, 0 deletions
diff --git a/etc/compliance/healthcheck.yml b/etc/compliance/healthcheck.yml new file mode 100644 index 00000000..99844917 --- /dev/null +++ b/etc/compliance/healthcheck.yml @@ -0,0 +1,9 @@ +--- +# Pre-flight check before running more complex tests +# Will be used for running on CI +healthcheck: + name: healthcheck + testcases_list: + - dovetail.healthcheck.tc001 + - dovetail.healthcheck.tc002 + - dovetail.healthcheck.tc003 diff --git a/etc/conf/dovetail_config.yml b/etc/conf/dovetail_config.yml index a77ac2af..f4e0d034 100644 --- a/etc/conf/dovetail_config.yml +++ b/etc/conf/dovetail_config.yml @@ -34,6 +34,7 @@ testsuite_supported: - compliance_set - proposed_tests - debug + - healthcheck - ovp.1.0.0 - onap.1.0.0 # testarea supported, should adjust accordingly @@ -50,6 +51,7 @@ testarea_supported: - mandatory - full - smoke + - healthcheck - vnf - lifecycle diff --git a/etc/testcase/healthcheck.tc001.yml b/etc/testcase/healthcheck.tc001.yml new file mode 100644 index 00000000..e71f063e --- /dev/null +++ b/etc/testcase/healthcheck.tc001.yml @@ -0,0 +1,9 @@ +--- +dovetail.healthcheck.tc001: + name: dovetail.healthcheck.tc001 + objective: check OpenStack API services connectivity through SNAPS framework + validate: + type: functest + testcase: connection_check + report: + sub_testcase_list: diff --git a/etc/testcase/healthcheck.tc002.yml b/etc/testcase/healthcheck.tc002.yml new file mode 100644 index 00000000..84ca2516 --- /dev/null +++ b/etc/testcase/healthcheck.tc002.yml @@ -0,0 +1,9 @@ +--- +dovetail.healthcheck.tc002: + name: dovetail.healthcheck.tc002 + objective: verify OpenStack API with simple queries + validate: + type: functest + testcase: api_check + report: + sub_testcase_list: diff --git a/etc/testcase/healthcheck.tc003.yml b/etc/testcase/healthcheck.tc003.yml new file mode 100644 index 00000000..83fb8919 --- /dev/null +++ b/etc/testcase/healthcheck.tc003.yml @@ -0,0 +1,9 @@ +--- +dovetail.healthcheck.tc003: + name: dovetail.healthcheck.tc003 + objective: basic VM instance creation with port and IPv4 address through DHCP + validate: + type: functest + testcase: snaps_health_check + report: + sub_testcase_list: diff --git a/etc/userconfig/testcases.yaml b/etc/userconfig/testcases.yaml index 1452a45d..f1cb6ae1 100644 --- a/etc/userconfig/testcases.yaml +++ b/etc/userconfig/testcases.yaml @@ -1,6 +1,68 @@ --- tiers: - + name: healthcheck + order: 0 + ci_loop: '(daily)|(weekly)' + description: >- + First tier to be executed to verify the basic + operations in the VIM. + testcases: + - + case_name: connection_check + project_name: functest + criteria: 100 + blocking: true + description: >- + This test case verifies the retrieval of OpenStack clients: + Keystone, Glance, Neutron and Nova and may perform some + simple queries. When the config value of + snaps.use_keystone is True, functest must have access to + the cloud's private network. + dependencies: + installer: '' + scenario: '' + run: + module: + 'functest.opnfv_tests.openstack.snaps.connection_check' + class: 'ConnectionCheck' + + - + case_name: api_check + project_name: functest + criteria: 100 + blocking: true + description: >- + This test case verifies the retrieval of OpenStack clients: + Keystone, Glance, Neutron and Nova and may perform some + simple queries. When the config value of + snaps.use_keystone is True, functest must have access to + the cloud's private network. + dependencies: + installer: '' + scenario: '' + run: + module: 'functest.opnfv_tests.openstack.snaps.api_check' + class: 'ApiCheck' + + - + case_name: snaps_health_check + project_name: functest + criteria: 100 + blocking: true + description: >- + This test case creates executes the SimpleHealthCheck + Python test class which creates an, image, flavor, network, + and Cirros VM instance and observes the console output to + validate the single port obtains the correct IP address. + dependencies: + installer: '' + scenario: '' + run: + module: 'functest.opnfv_tests.openstack.snaps.health_check' + class: 'HealthCheck' + + - name: smoke order: 1 ci_loop: '(daily)|(weekly)' |