functest.git
6 years agoAdd python3 for Functest utils 77/48677/2
Cédric Ollivier [Mon, 11 Dec 2017 12:44:42 +0000 (13:44 +0100)]
Add python3 for Functest utils

It also fixes test_utils RegexMatch and SubstrMatch.

Change-Id: I124aa7d0c4110dcd2f50220aae7ba9b299799e93
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd Python3 support in functest/ci 29/48629/1
Cédric Ollivier [Mon, 11 Dec 2017 05:47:33 +0000 (06:47 +0100)]
Add Python3 support in functest/ci

Change-Id: If13bfaa196b8dfab1e83feb28c5a4719c7acd8c7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix yaml format errors in vnf 27/48627/2
Cédric Ollivier [Mon, 11 Dec 2017 04:23:23 +0000 (05:23 +0100)]
Fix yaml format errors in vnf

All Rally yaml files are skipped because they leverage on jinja2.
Now last errors are in functest/api directories [1].

[1] https://jira.opnfv.org/browse/FUNCTEST-897

Change-Id: I4d6c9b3b7c1f3602bd51c9cf7e1c5babf581ab82
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoPull functest-core when only building childs 67/48567/1
Cédric Ollivier [Thu, 7 Dec 2017 21:57:49 +0000 (22:57 +0100)]
Pull functest-core when only building childs

Otherwise it fails if parent and childs containers are not built on
the same host [1].

It would have worked if the docker images were correctly cleant. Then
the last image would have been pulled.

[1] https://build.opnfv.org/ci/job/functest-apex-baremetal-daily-euphrates/362/console

Change-Id: I293829c839c1cf68c9f7668aa643e16889359fcc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Fix the yamllint errors in functest/ci"
Cedric Ollivier [Thu, 7 Dec 2017 15:26:32 +0000 (15:26 +0000)]
Merge "Fix the yamllint errors in functest/ci"

6 years agoAssign heat_stack_owner role to the new user 57/48457/1
Linda Wang [Wed, 6 Dec 2017 14:48:32 +0000 (14:48 +0000)]
Assign heat_stack_owner role to the new user

For heat scenario in rally, assign heat_stack_owner role to
the new created users.

Change-Id: I86a74ca88993ed3782d21b22eb5933d639d86c94
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoRemove the config of promise 51/48451/1
Linda Wang [Wed, 6 Dec 2017 09:30:15 +0000 (09:30 +0000)]
Remove the config of promise

Change-Id: I9e393ce33228f90f724df12af258cf06fae821fc
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoFix the yamllint errors in functest/ci 95/48295/6
Linda Wang [Mon, 4 Dec 2017 06:36:06 +0000 (06:36 +0000)]
Fix the yamllint errors in functest/ci

And also, remove the params "tempest_use_custom_images" and
"unique_names" of vping, rally and tempest.

Change-Id: Ic4243ef2f5e965910e5befa87db8d585cad34fa2
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Fix pylint errors of vping"
Cedric Ollivier [Tue, 5 Dec 2017 19:56:59 +0000 (19:56 +0000)]
Merge "Fix pylint errors of vping"

6 years agoFix pylint errors of vping 97/48297/2
Linda Wang [Mon, 4 Dec 2017 07:09:38 +0000 (07:09 +0000)]
Fix pylint errors of vping

Change-Id: I272f0eb6fb0f2a274484a3dcfacd8ed65e4a5b23
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoCreate a tox env to check yaml files 37/48337/1
Cédric Ollivier [Mon, 4 Dec 2017 19:01:22 +0000 (20:01 +0100)]
Create a tox env to check yaml files

It also fixes all testcases config files.

Change-Id: I81a6ffb8b7acf4239c79129dc842e283d3d32b35
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Adjust timeouts in Vnfs"
Jose Lausuch [Thu, 30 Nov 2017 14:31:11 +0000 (14:31 +0000)]
Merge "Adjust timeouts in Vnfs"

7 years agoMerge "Stop updating test_db_url in config file by env var"
Linda Wang [Thu, 30 Nov 2017 14:11:52 +0000 (14:11 +0000)]
Merge "Stop updating test_db_url in config file by env var"

7 years agoAdjust timeouts in Vnfs 85/48085/2
Cédric Ollivier [Thu, 30 Nov 2017 10:55:02 +0000 (11:55 +0100)]
Adjust timeouts in Vnfs

When testcases fail, the jjobs is aborted and the result isn't
printed.

Change-Id: Ibda6268873303e631705c695a41c50980a3d29e5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoReorder Vnf testcases 81/48081/2
Cédric Ollivier [Thu, 30 Nov 2017 10:37:11 +0000 (11:37 +0100)]
Reorder Vnf testcases

Cloudify IMS testcases could easily tigger jjob timeouts.
Vyos_router should run before as it ends much quickier.

Change-Id: Icd4323a7216615e75613e5fb241ae144f727d4fd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Filter installers for cloudify_vrouter"
Cedric Ollivier [Thu, 30 Nov 2017 08:19:01 +0000 (08:19 +0000)]
Merge "Filter installers for cloudify_vrouter"

7 years agoStop updating test_db_url in config file by env var 55/48055/3
Linda Wang [Thu, 30 Nov 2017 02:31:17 +0000 (02:31 +0000)]
Stop updating test_db_url in config file by env var

If TEST_DB_URL is declared in env variable, use it
before considering the var in config file.

Change-Id: I656ad8765287c48d60af7ab88b421805d76fb231
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Skip modifying creds if Variables.robot is missing"
Cedric Ollivier [Thu, 30 Nov 2017 07:14:01 +0000 (07:14 +0000)]
Merge "Skip modifying creds if Variables.robot is missing"

7 years agoFilter installers for cloudify_vrouter 63/48063/1
Cédric Ollivier [Thu, 30 Nov 2017 05:53:01 +0000 (06:53 +0100)]
Filter installers for cloudify_vrouter

As cloudify_vrouter doesn't support SSL endpoints [1], it shouldn't
be executed if compass or fuel.

[1] https://jira.opnfv.org/browse/FUNCTEST-881

Change-Id: Ieedc0d5eca57f00da2121c9e07dd5cc57f978ef6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Update documentation of Functest"
Cedric Ollivier [Thu, 30 Nov 2017 05:25:16 +0000 (05:25 +0000)]
Merge "Update documentation of Functest"

7 years agoSkip modifying creds if Variables.robot is missing 29/48029/5
Cédric Ollivier [Wed, 29 Nov 2017 18:33:07 +0000 (19:33 +0100)]
Skip modifying creds if Variables.robot is missing

Variable.robot is missing in functest-features [1].
As it's related to ODL csit suites, modifying it could be safely
skipped as odl.py is designed for testing multiple ODL testcases.

[1] https://gerrit.opnfv.org/gerrit/#/c/46225/

Change-Id: Id5f1947a073d251ef7480f418218a4c85fe078c1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdate documentation of Functest 05/48005/1
Linda Wang [Wed, 29 Nov 2017 09:29:24 +0000 (09:29 +0000)]
Update documentation of Functest

Mainly update the robotframework part, according to this patch:
https://gerrit.opnfv.org/gerrit/#/c/47841/

Change-Id: If4dee6233ba65dd83734e0465d0dc6e8d5753da3
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoForce Framework to be fully covered 53/47853/5
Cédric Ollivier [Mon, 27 Nov 2017 15:37:21 +0000 (16:37 +0100)]
Force Framework to be fully covered

Change-Id: Ida120fe28ea7860758a218189d905bebee2e8ba5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove one obsolete test in test_odl.py 93/47993/1
Cédric Ollivier [Wed, 29 Nov 2017 05:59:24 +0000 (06:59 +0100)]
Remove one obsolete test in test_odl.py

It completes "Create RobotFramework class" [1] which decreased
coverage to 99% (test_odl.py)

[1] https://gerrit.opnfv.org/gerrit/#/c/47841/

Change-Id: I2a2d448daeb6d1f50064588167cafd32e07aa502
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoCover vnf.prepare() 89/47989/1
Cédric Ollivier [Wed, 29 Nov 2017 05:16:46 +0000 (06:16 +0100)]
Cover vnf.prepare()

It completes the previous commit [1] which increased the coverage of
Vnf.

[1] https://gerrit.opnfv.org/gerrit/#/c/47851/

Change-Id: Ibb0201d6165d89da2edd1a93b722008092726569
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Fully cover vnf"
Cedric Ollivier [Tue, 28 Nov 2017 19:47:07 +0000 (19:47 +0000)]
Merge "Fully cover vnf"

7 years agoMerge "Create RobotFramework class"
Cedric Ollivier [Tue, 28 Nov 2017 19:46:56 +0000 (19:46 +0000)]
Merge "Create RobotFramework class"

7 years agoFix the doc of snaps test 03/47903/1
Linda Wang [Tue, 28 Nov 2017 04:52:58 +0000 (04:52 +0000)]
Fix the doc of snaps test

snaps_health_check does not allocate a floating ip to the vm,
but a fixed ip instead.

Change-Id: Ia43885993135dec56aba08b0e157ac2c9f715e06
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoFully cover vnf 51/47851/2
Cédric Ollivier [Mon, 27 Nov 2017 15:35:43 +0000 (16:35 +0100)]
Fully cover vnf

clean() is now covered by unit tests.

It must be noted that clean() doesn't warn about the possible
failures when cleaning resources.

Change-Id: If64c0cc5777ac5d2ce8a04ea34cd4f50091ab273
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoCreate RobotFramework class 41/47841/2
Cédric Ollivier [Mon, 27 Nov 2017 10:43:42 +0000 (11:43 +0100)]
Create RobotFramework class

It moves the capability to run any robot script from ODL TestCase
into a new class: RobotFramework.

It updates ODL TestCase and the related unit tests to inherit from
the new parent class.

Change-Id: I73e59ee9652fb63d9d89d7c75c58cce9cf62b0d7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove os_utils call from cloudify ims and vrouter 89/47789/1
Linda Wang [Sat, 25 Nov 2017 02:09:41 +0000 (02:09 +0000)]
Remove os_utils call from cloudify ims and vrouter

Change-Id: I333551125616113484ad275820f2176dae79da6e
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoEnable Doctor testcase for F-release 47/47747/2
Cédric Ollivier [Fri, 24 Nov 2017 06:48:12 +0000 (07:48 +0100)]
Enable Doctor testcase for F-release

doctor conforms with OpenStack Pike requirements then it could be
enabled in functest-features and functest-restapi (master) [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/47283/

Change-Id: I82135a64cf0aac5ebf5b56260ede24b592fca41b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoEnable baro_tests testcase for F-release 39/47739/2
Cédric Ollivier [Thu, 23 Nov 2017 21:18:54 +0000 (22:18 +0100)]
Enable baro_tests testcase for F-release

barometer conforms with OpenStack Pike requirements then it could be
enabled in functest-features and functest-restapi (master) [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/47281/

Change-Id: Iee17bd17192db53075dd8ff8d020d18306394cfa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Remove iniparse and urllib3 dependencies"
Cedric Ollivier [Fri, 24 Nov 2017 06:44:11 +0000 (06:44 +0000)]
Merge "Remove iniparse and urllib3 dependencies"

7 years agoFix relative imports in cloudify_ims_perf 37/47737/2
Cédric Ollivier [Thu, 23 Nov 2017 21:03:43 +0000 (22:03 +0100)]
Fix relative imports in cloudify_ims_perf

It also fixes wrong indents.

JIRA: FUNCTEST-893

Change-Id: Ic54e01c03c14f39c69242c41922fc124c1b45c23
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove iniparse and urllib3 dependencies 15/47715/4
Cédric Ollivier [Thu, 23 Nov 2017 13:36:26 +0000 (14:36 +0100)]
Remove iniparse and urllib3 dependencies

It also moves robotframework addons to the right containers.

Change-Id: I32a8e018bf84685cffc70a04e3736d948bc6d1c4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Remove openstack utils calls in rally and tempest"
Cedric Ollivier [Thu, 23 Nov 2017 16:16:33 +0000 (16:16 +0000)]
Merge "Remove openstack utils calls in rally and tempest"

7 years agoMerge "Remove _set_others() from config"
Jose Lausuch [Thu, 23 Nov 2017 15:36:59 +0000 (15:36 +0000)]
Merge "Remove _set_others() from config"

7 years agoRemove _set_others() from config 09/47709/1
Jose Lausuch [Thu, 23 Nov 2017 11:07:44 +0000 (12:07 +0100)]
Remove _set_others() from config

Change-Id: I39e37ce9f8715e21fcfc4a053b83d508530fad5e
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
7 years agoMerge "Fix how tier_handler is imported"
Linda Wang [Thu, 23 Nov 2017 11:04:27 +0000 (11:04 +0000)]
Merge "Fix how tier_handler is imported"

7 years agoFix how tier_handler is imported 05/47705/1
Cédric Ollivier [Thu, 23 Nov 2017 09:38:43 +0000 (10:38 +0100)]
Fix how tier_handler is imported

Change-Id: I36577ca73042b181b4634c4d6bf3ac5d905fd560
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Remove prepare_env"
Cedric Ollivier [Thu, 23 Nov 2017 08:55:04 +0000 (08:55 +0000)]
Merge "Remove prepare_env"

7 years agoRemove openstack utils calls in rally and tempest 25/47625/7
Linda Wang [Wed, 22 Nov 2017 03:45:45 +0000 (03:45 +0000)]
Remove openstack utils calls in rally and tempest

Mainly, update "rally deployment create --file=rally_conf.json"
to "rally deployment create --fromenv"

Change-Id: I6dd4c7ea2d9d6f47dee49a4fd416e62bd557f45e
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoRemove prepare_env 67/47267/11
Jose Lausuch [Wed, 15 Nov 2017 16:11:41 +0000 (17:11 +0100)]
Remove prepare_env

After moving the rally installation out of prepare_env
It doesn't much sense to keep this script as it doesn't
do useful things any more.

Change-Id: I9ab3b2dd30c8ec0fbb825ee4302a83cce80f1cbe
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
7 years agoMerge "Removal of deprecated SNAPS-OO classes."
Cedric Ollivier [Wed, 22 Nov 2017 12:43:56 +0000 (12:43 +0000)]
Merge "Removal of deprecated SNAPS-OO classes."

7 years agoRemoval of deprecated SNAPS-OO classes. 17/47617/3
spisarski [Tue, 21 Nov 2017 19:09:29 +0000 (12:09 -0700)]
Removal of deprecated SNAPS-OO classes.

JIRA: SNAPS-202

Change-Id: I115b4927b287a5525f4c1b95128d91f5229c7856
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoMerge "Fix "Broken pipe" IOErrors of rally run"
Linda Wang [Tue, 21 Nov 2017 16:02:53 +0000 (16:02 +0000)]
Merge "Fix "Broken pipe" IOErrors of rally run"

7 years agoFix "Broken pipe" IOErrors of rally run 27/47527/3
Juha Kosonen [Mon, 20 Nov 2017 17:56:28 +0000 (19:56 +0200)]
Fix "Broken pipe" IOErrors of rally run

Replace obsolete os.popen with subprocess module usage in command
output retrieval. Do not use shell as the program to execute.

Change-Id: Ic63bb0f393750c3b85a35a37fecd46c1c1b96602
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
7 years agoMerge "Fix rally db issue"
Linda Wang [Tue, 21 Nov 2017 09:14:20 +0000 (09:14 +0000)]
Merge "Fix rally db issue"

7 years agoFix the way of getting endpoint port 53/47553/2
Linda Wang [Tue, 21 Nov 2017 03:38:49 +0000 (03:38 +0000)]
Fix the way of getting endpoint port

It will fail if the endpoint does not contain any port value when
executing self.os_auth_url.rsplit("/")[2].rsplit(":")[1]

JIRA: FUNCTEST-892

Change-Id: Iba4103884b7c6e3b157bb95d775fac02c32ae728
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoFix rally db issue 55/47555/4
Linda Wang [Tue, 21 Nov 2017 06:27:49 +0000 (06:27 +0000)]
Fix rally db issue

Also update "rally-manage db" to "rally db"

Change-Id: I0c9924b9869135d3492dfafe89d085813290f565
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoEnable sdnvpn testcase for F-release 19/47519/1
Cédric Ollivier [Mon, 20 Nov 2017 15:16:04 +0000 (16:16 +0100)]
Enable sdnvpn testcase for F-release

sdnvpn conforms with OpenStack Pike requirements then it could be
enabled in functest-features and functest-restapi (master) [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/47277/

Change-Id: Iedcb645d897684f169e4cf536838bf1f0951b6d9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Support to specify the valid external network name"
Linda Wang [Mon, 20 Nov 2017 12:51:45 +0000 (12:51 +0000)]
Merge "Support to specify the valid external network name"

7 years agoSupport to specify the valid external network name 85/47385/3
Linda Wang [Fri, 17 Nov 2017 02:00:21 +0000 (02:00 +0000)]
Support to specify the valid external network name

In some deployments, the retrieved external network by the
def get_external_networks in Snaps checked by "router:external"
is not available. So it is necessary to specify the available
external network as an env by user.

Change-Id: I333e91dd106ed307541a9a197280199fde86bd30
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoCheck external network 97/47297/4
Linda Wang [Thu, 16 Nov 2017 04:10:58 +0000 (04:10 +0000)]
Check external network

Change-Id: I1ff199fcad99aefccb92807c8f416d4f32ec91a6
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoUpdate documentation for Functest 87/47387/1
Linda Wang [Fri, 17 Nov 2017 03:38:41 +0000 (03:38 +0000)]
Update documentation for Functest

1. Remove the reference of ubuntu based container
2. Remove the domino (terminated) and promise (not in F),
   and move fds to features tier

Change-Id: I62af47a3f873f0a77d5f7e0a1df493651c805834
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoEnable sfc testcase for F-release 43/47343/1
Cédric Ollivier [Thu, 16 Nov 2017 13:35:22 +0000 (14:35 +0100)]
Enable sfc testcase for F-release

sfc conforms with OpenStack Pike requirements then it could be
enabled in functest-features and functest-restapi (master) [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/47279/

Change-Id: I2b79f918dc4f6ca89c2dca18bf64a4bb184bf8b2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Updated from global requirements"
Cedric Ollivier [Thu, 16 Nov 2017 07:12:13 +0000 (07:12 +0000)]
Merge "Updated from global requirements"

7 years agoRemove Domino and Promise testcases 87/47287/3
Cédric Ollivier [Wed, 15 Nov 2017 18:53:01 +0000 (19:53 +0100)]
Remove Domino and Promise testcases

Domino and Promise won't participate in the Fraser Release [1].

[1] https://wiki.opnfv.org/display/SWREL/Projects+Intending+to+Participate+in+the+Fraser+Release

Change-Id: Ib06411769439015549cac9353fa92cebd2f61193
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdated from global requirements 63/47263/3
Cédric Ollivier [Wed, 15 Nov 2017 17:28:15 +0000 (18:28 +0100)]
Updated from global requirements

Change-Id: I654486a96cbfc68c7d3f5508a962e628243a1576
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Remove opnfv module from functest-core"
Jose Lausuch [Wed, 15 Nov 2017 13:14:12 +0000 (13:14 +0000)]
Merge "Remove opnfv module from functest-core"

7 years agoMerge "Remove the tox venv patcharm64"
Cedric Ollivier [Wed, 15 Nov 2017 13:01:29 +0000 (13:01 +0000)]
Merge "Remove the tox venv patcharm64"

7 years agoMerge "Update the version of refstack set to 2017.09"
Jose Lausuch [Wed, 15 Nov 2017 12:28:50 +0000 (12:28 +0000)]
Merge "Update the version of refstack set to 2017.09"

7 years agoMerge "Fix the regular expression for refstack"
Jose Lausuch [Wed, 15 Nov 2017 12:27:31 +0000 (12:27 +0000)]
Merge "Fix the regular expression for refstack"

7 years agoMerge "Update unit test related to vyos_vrouter"
Cedric Ollivier [Wed, 15 Nov 2017 10:53:07 +0000 (10:53 +0000)]
Merge "Update unit test related to vyos_vrouter"

7 years agoRemove the tox venv patcharm64 47/47247/1
Cédric Ollivier [Wed, 15 Nov 2017 10:48:10 +0000 (11:48 +0100)]
Remove the tox venv patcharm64

It's now useless as Jenkins jobs call build.sh which modifies all
Dockerfiles for both architectures.

build.sh allows building private images as opposed to this former tox
entry which only take opnfv into account.

Change-Id: I21e2e5303b4310e053cf013cb7f0e0c4532d5db5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Add shebang in snaps_suite_builder.py"
Linda Wang [Wed, 15 Nov 2017 08:07:00 +0000 (08:07 +0000)]
Merge "Add shebang in snaps_suite_builder.py"

7 years agoUpdate unit test related to vyos_vrouter 79/44779/4
Morgan Richomme [Wed, 11 Oct 2017 11:44:47 +0000 (13:44 +0200)]
Update unit test related to vyos_vrouter

Utilvnf is now mocked to stop triggering the git clone of an
external repo and creating dirs.
Else we may get errors when testing offline.

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ia7e86593ecca9b9add747ef89b1d5e8d6bdb2d7c
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdate the version of refstack set to 2017.09 33/47233/1
Linda Wang [Wed, 15 Nov 2017 07:45:31 +0000 (07:45 +0000)]
Update the version of refstack set to 2017.09

JIRA: FUNCTEST-890

Change-Id: Iac2f833fa2b704cd7caa6083e39e48e2df315890
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoFix the regular expression for refstack 29/47229/1
Linda Wang [Wed, 15 Nov 2017 06:40:51 +0000 (06:40 +0000)]
Fix the regular expression for refstack

Otherwise, this line could not be matched:
{0} tempest.api.identity.v3.test_tokens.TokensV3Test.test_create_token [0.143237s] ... ok
-> the matched result: tempest.api.identity.v3.test_t

Change-Id: I97282a9c98a889a015a40f9ad2d700906bb88fb1
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoRemove opnfv module from functest-core 27/47227/2
Linda Wang [Wed, 15 Nov 2017 03:38:34 +0000 (03:38 +0000)]
Remove opnfv module from functest-core

The releng/opnfv git repo is still kept in upper-constraints
as it is required by sfc. And also delete the functions of
check_env_variables, get_deployment_handler and create_directories.

Change-Id: If498e68f0f94d6ebde1be55f5e3a17d06becaea4
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoDo not use cache when building the image 19/47219/1
Linda Wang [Wed, 15 Nov 2017 02:17:33 +0000 (02:17 +0000)]
Do not use cache when building the image

Change-Id: I4655b631313c923b40304740c0abe06ae885727e
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoAdd shebang in snaps_suite_builder.py 15/47215/1
Cédric Ollivier [Wed, 15 Nov 2017 00:33:30 +0000 (01:33 +0100)]
Add shebang in snaps_suite_builder.py

Change-Id: I3392068b4a47d35bf0d91fe6d93f2de268f198bf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Remove $BRANCH in healthcheck/Dockerfile"
Cedric Ollivier [Tue, 14 Nov 2017 18:03:36 +0000 (18:03 +0000)]
Merge "Remove $BRANCH in healthcheck/Dockerfile"

7 years agoRemove $BRANCH in healthcheck/Dockerfile 97/47197/1
Cédric Ollivier [Tue, 14 Nov 2017 14:52:37 +0000 (15:52 +0100)]
Remove $BRANCH in healthcheck/Dockerfile

This build arg is now useless because the multijobs call build.sh
instead of the previous helper [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/47067/

Change-Id: I52af9a5c4ed0775208d4467853f1b886a543de59
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdate INFO file with new PTL information 79/47179/1
Jose Lausuch [Tue, 14 Nov 2017 10:46:05 +0000 (11:46 +0100)]
Update INFO file with new PTL information

Change-Id: Ic50094032d3d15311384f1fa7fbf004e94ec7acc
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
7 years agoMove rally and tempest in functest-restapi 43/47143/2
Cédric Ollivier [Mon, 13 Nov 2017 20:18:29 +0000 (21:18 +0100)]
Move rally and tempest in functest-restapi

It completes the first patch which partially moved rally and tempest
out of functest-core [1] by updating functest-restapi as well.

os-faults is also installed in the right containers.

[1] https://gerrit.opnfv.org/gerrit/#/c/47115/

Change-Id: Ia460dbe7785e2beffa5ba1a15f5a5bf2083b252a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Remove rally and tempest from core/Dockerfile"
Cedric Ollivier [Mon, 13 Nov 2017 13:11:10 +0000 (13:11 +0000)]
Merge "Remove rally and tempest from core/Dockerfile"

7 years agoRemove rally and tempest from core/Dockerfile 15/47115/3
Linda Wang [Mon, 13 Nov 2017 07:45:34 +0000 (07:45 +0000)]
Remove rally and tempest from core/Dockerfile

JIRA: FUNCTEST-889

Change-Id: I6092c8b6599705d23dcb3aba8c4470b76c41455c
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMove rally and tempest out of functest-core 05/47105/5
Linda Wang [Mon, 13 Nov 2017 04:20:47 +0000 (04:20 +0000)]
Move rally and tempest out of functest-core

JIRA: FUNCTEST-889

Change-Id: I96776da7af50b2c33c34dd731b5500b891d263d6
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoAdd BRANCH as Docker build arg 67/47067/1
Cédric Ollivier [Fri, 10 Nov 2017 22:39:11 +0000 (23:39 +0100)]
Add BRANCH as Docker build arg

It conforms with the prerequisite of the current releng Docker script.
BRANCH can be considered as useless because releng already clones the
right git branch.

It's a temporarily solution before modifying a script used by lots of
OPNFV projects.

Change-Id: I585d7a79a9ebaeaffd69af1da1731c44e131f6b5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Select the subset of snaps test cases"
Cedric Ollivier [Fri, 10 Nov 2017 15:53:11 +0000 (15:53 +0000)]
Merge "Select the subset of snaps test cases"

7 years agoSelect the subset of snaps test cases 13/47013/2
Linda Wang [Fri, 10 Nov 2017 08:35:19 +0000 (08:35 +0000)]
Select the subset of snaps test cases

Change-Id: I03e422d5dae0ced9cd7a5477c31359ffc7795c42
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoRemove the former Dockerfile 07/46907/4
Cédric Ollivier [Thu, 9 Nov 2017 05:05:06 +0000 (06:05 +0100)]
Remove the former Dockerfile

opnfv/functest had been split into multiple containers based on
Alpine (See Docker Slicing [1]) during Euphrates.

As ARM is being switching to them, we can safely remove the related
files.

[1] https://git.opnfv.org/functest/tree/docs/com/pres/dockerslicing/dockerslicing.md?h=stable/euphrates

Change-Id: I30294a94cc742ba80a7bc4f35db9330240385bb0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoStop installing docker/config_install_env.sh 37/46937/1
Cédric Ollivier [Thu, 9 Nov 2017 12:36:55 +0000 (13:36 +0100)]
Stop installing docker/config_install_env.sh

Change-Id: Ie70fadd15df5e878e161d552b893e6033bb70527
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoStop installing enable_remote_api.sh 11/46911/1
Cédric Ollivier [Thu, 9 Nov 2017 06:56:59 +0000 (07:56 +0100)]
Stop installing enable_remote_api.sh

Change-Id: Ibb7798795bd902c990ba2079199592412b257be6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoPatch Functest docker images for ARM 97/46797/3
Delia Popescu [Tue, 7 Nov 2017 15:18:22 +0000 (17:18 +0200)]
Patch Functest docker images for ARM

A new tox env is defined to ease patching all Dockerfiles for ARM.
This env will only patch the Dockerfile related to functest-core when
the manifests are published.

Jenkins jobs can simply apply the next command:
    $ tox -e patcharm64

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Icf69e27c1da95a721ebf67d5ce190c9b8cefce0a
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Fix the format of getting upper-constraints"
Cedric Ollivier [Tue, 7 Nov 2017 08:23:56 +0000 (08:23 +0000)]
Merge "Fix the format of getting upper-constraints"

7 years agoFix the format of getting upper-constraints 71/46771/2
Linda Wang [Tue, 7 Nov 2017 06:31:20 +0000 (06:31 +0000)]
Fix the format of getting upper-constraints

Change-Id: I8a769ec161b1a718ef259ae6b6615aec01e337ec
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMove fds to features tier 25/46225/4
Linda Wang [Thu, 26 Oct 2017 01:37:37 +0000 (01:37 +0000)]
Move fds to features tier

Change-Id: I7aa9d73c7ffbfdad7d5a929968fb640d9a8de62e
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Define thirdparty-requirements.txt for functest-parser"
Cedric Ollivier [Mon, 6 Nov 2017 14:02:57 +0000 (14:02 +0000)]
Merge "Define thirdparty-requirements.txt for functest-parser"

7 years agoMerge "Allow building containers from a gerrit change"
Cedric Ollivier [Mon, 6 Nov 2017 14:02:46 +0000 (14:02 +0000)]
Merge "Allow building containers from a gerrit change"

7 years agoMerge "Update Functest to OpenStack stable/pike"
Morgan Richomme [Mon, 6 Nov 2017 13:58:55 +0000 (13:58 +0000)]
Merge "Update Functest to OpenStack stable/pike"

7 years agoProtect vs exceptions when ext_nets is empty 45/46745/1
Cédric Ollivier [Mon, 6 Nov 2017 09:51:27 +0000 (10:51 +0100)]
Protect vs exceptions when ext_nets is empty

Otherwise several exceptions are raised in TestCase constructors
(those defined in heathcheck).

Change-Id: I4cb054f7092ea9db02cb8c4469e99848533c556b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoDefine thirdparty-requirements.txt for functest-parser 23/46723/2
Cédric Ollivier [Sun, 5 Nov 2017 14:43:07 +0000 (15:43 +0100)]
Define thirdparty-requirements.txt for functest-parser

As Parser python packages has been renamed, they can be defined in
upper-constraints.txt. No conflict can occur between them and the
official OpenStack packages.

The Parser testcase still requires a dedicated container to avoid
conflicts in namespaces.

Change-Id: Ic8d18140f26e72d1e3d04b73d301d3fd870b171a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoAllow building containers from a gerrit change 21/46721/1
Cédric Ollivier [Sun, 5 Nov 2017 14:13:35 +0000 (15:13 +0100)]
Allow building containers from a gerrit change

It leverages on git command instead of pip git support [1].
Otherwise it forces pip master which raises side effects in rally [2]

It is mandatory for implementing Functional testing gating [3]

[1] https://pip.pypa.io/en/stable/reference/pip_install/#git
[2] https://gerrit.opnfv.org/gerrit/#/c/40909/
[3] https://wiki.opnfv.org/display/functest/Functional+testing+gating

Change-Id: Ia18fee3e60fc08da9b96730ce85d5b7c866144aa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Add new cinder scenarios for rally sanity/full"
Cedric Ollivier [Sun, 5 Nov 2017 13:34:11 +0000 (13:34 +0000)]
Merge "Add new cinder scenarios for rally sanity/full"

7 years agoUpdate Functest to OpenStack stable/pike 19/46719/1
Cédric Ollivier [Sun, 5 Nov 2017 12:51:56 +0000 (13:51 +0100)]
Update Functest to OpenStack stable/pike

It updates setup.py, (test-)requirement.txt and upper-constraints.txt
according to OpenStack requirements [1].

It disables all Features testcases as they are not synchronized with
OpenStack stable/pike yet [2].

The docker functest-parser is simplified as it can be based on
functest-core as both Functest and Parser leverage on OpenStack
stable/pike.

ODL_TAG and REFSTACK_TAG variables are set to master again.

[1] http://git.openstack.org/cgit/openstack/requirements/log/?h=stable/pike
[2] https://wiki.opnfv.org/display/functest/Requirements+management

Change-Id: I23fa84f35244c1f4026abd89414b99576f042ee4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix rally cinder scenarios 17/46717/1
Juha Kosonen [Sat, 4 Nov 2017 16:24:55 +0000 (18:24 +0200)]
Fix rally cinder scenarios

Remove network and servers context and set image and flavor as a
scenario parameters.

Change-Id: I5181ccce61c4f58af3737619d1b7d259cf539937
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
7 years agoAdd new cinder scenarios for rally sanity/full 77/46677/1
Juha Kosonen [Fri, 3 Nov 2017 15:10:21 +0000 (17:10 +0200)]
Add new cinder scenarios for rally sanity/full

Included several CinderQos and CinderVolumeTypes scenarios introduced
by the recent Rally version.

Change-Id: Ibd2affa2e0d24ec79d3b4518456ca0f0457ace9f
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>