functest.git
7 years agoSync thirdparty-requirements.txt 03/36903/1
Cédric Ollivier [Tue, 4 Jul 2017 09:26:25 +0000 (11:26 +0200)]
Sync thirdparty-requirements.txt

It fixes the condition about the tempest version [1].

[1] https://git.openstack.org/cgit/openstack/requirements/plain/global-requirements.txt?h=stable/ocata

Change-Id: Iaa1f58aec1f58b372ff6280b1f1e4a5422986a55
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix upper-constraints.txt url 01/36901/2
Cédric Ollivier [Tue, 4 Jul 2017 09:17:20 +0000 (11:17 +0200)]
Fix upper-constraints.txt url

Change-Id: I44f7b476d56bcd7cdac4ba0e5c85717bd41f7e45
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Remove the former link /home/opnfv/repos/functest"
Cedric Ollivier [Tue, 4 Jul 2017 07:46:55 +0000 (07:46 +0000)]
Merge "Remove the former link /home/opnfv/repos/functest"

7 years agoMerge "Update cli commands to call console scripts"
Cedric Ollivier [Tue, 4 Jul 2017 07:46:50 +0000 (07:46 +0000)]
Merge "Update cli commands to call console scripts"

7 years agoMerge "Apply restrictive file permissions"
Cedric Ollivier [Tue, 4 Jul 2017 07:46:34 +0000 (07:46 +0000)]
Merge "Apply restrictive file permissions"

7 years agoMerge "Energy monitoring SDK update."
Jose Lausuch [Mon, 3 Jul 2017 14:13:24 +0000 (14:13 +0000)]
Merge "Energy monitoring SDK update."

7 years agoMerge "Stop modifying unix perm in cloudify_ims"
Jose Lausuch [Mon, 3 Jul 2017 08:14:46 +0000 (08:14 +0000)]
Merge "Stop modifying unix perm in cloudify_ims"

7 years agoMerge "Fix unix permissions in docs/com"
Jose Lausuch [Mon, 3 Jul 2017 07:41:26 +0000 (07:41 +0000)]
Merge "Fix unix permissions in docs/com"

7 years agoMerge "Remove useless files in docs/com"
Jose Lausuch [Mon, 3 Jul 2017 07:40:43 +0000 (07:40 +0000)]
Merge "Remove useless files in docs/com"

7 years agoMerge "Fix typos in docs"
Morgan Richomme [Sun, 2 Jul 2017 21:10:10 +0000 (21:10 +0000)]
Merge "Fix typos in docs"

7 years agoRemove the former link /home/opnfv/repos/functest 27/36827/5
Cédric Ollivier [Sun, 2 Jul 2017 10:10:29 +0000 (12:10 +0200)]
Remove the former link /home/opnfv/repos/functest

All operations required have been applied [1].

All documentations are updated as well to close the topic.
It should be noted that runfunctest.rst must be hugely updated
because all $PS1 are wrong.

[1] https://gerrit.opnfv.org/gerrit/#/q/project:functest+branch:master+topic:dockerfile

JIRA: FUNCTEST-836

Change-Id: I26658be109fd785d068389816be4260cff823705
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdate cli commands to call console scripts 29/36829/2
Cédric Ollivier [Sun, 2 Jul 2017 10:56:09 +0000 (12:56 +0200)]
Update cli commands to call console scripts

Change-Id: I401879d7ec713b5307817da8b001838c35d9d731
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoApply restrictive file permissions 23/36823/3
Cédric Ollivier [Sun, 2 Jul 2017 08:16:05 +0000 (10:16 +0200)]
Apply restrictive file permissions

It conforms with [1] by creating a new venv which checks the unix
permissions. As jjobs call Functest console scripts [2], all perms
can be 644.

Dockerfiles are updated as well.

[1] https://security.openstack.org/guidelines/dg_apply-restrictive-file-permissions.html
[2] https://gerrit.opnfv.org/gerrit/#/c/36805/

Depends-On: I9209e6efa1b493e24135402a46df72aaa14115d1
Change-Id: I31bc7f12b775928845e23b6b40288b0a50b87219
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoStop modifying unix perm in cloudify_ims 25/36825/2
Cédric Ollivier [Sun, 2 Jul 2017 09:45:18 +0000 (11:45 +0200)]
Stop modifying unix perm in cloudify_ims

It should be noted that several mockey patches should have been added
in the related unit tests.

Change-Id: I04bf003bc6beed1580c5d052c588f6f4ac23f768
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix unix permissions in docs/com 21/36821/1
Cédric Ollivier [Sun, 2 Jul 2017 08:13:08 +0000 (10:13 +0200)]
Fix unix permissions in docs/com

It applies restrictive file permissions [1].

[1] https://security.openstack.org/guidelines/dg_apply-restrictive-file-permissions.html

Change-Id: I2b86eaeb44afca999e485308b250004181e103b2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove useless files in docs/com 19/36819/1
Cédric Ollivier [Sun, 2 Jul 2017 08:12:09 +0000 (10:12 +0200)]
Remove useless files in docs/com

Change-Id: Id4aa3080d2be75bc8fa188136b191034724c357e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix typos in docs 17/36817/1
Martin Kulhavy [Fri, 30 Jun 2017 12:21:29 +0000 (15:21 +0300)]
Fix typos in docs

Fixed multiple typos and minor spelling errors found in the
documentation.

Change-Id: I102e3b7d3d421042dbef66f261e2183b0dfe24a8
Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
7 years agoEnergy monitoring SDK update. 97/36797/3
Benoit HERARD [Fri, 30 Jun 2017 11:30:19 +0000 (13:30 +0200)]
Energy monitoring SDK update.

add get_current scenario in EnergyRecorder class
enable_recording decorator change:
If a recording session was existing at startup, restart it at the end,
else stop recording

Change-Id: I91524824acb60275e0329452b7d7df2346d7884f
Signed-off-by: Benoit HERARD <benoit.herard@orange.com>
7 years agoDefine download_images.sh and check_os.sh as scripts 87/36787/3
Cédric Ollivier [Fri, 30 Jun 2017 07:13:17 +0000 (09:13 +0200)]
Define download_images.sh and check_os.sh as scripts

It also updates all python scripts which call check_os.sh.
The former healthcheck.sh is removed.

No shell script must be executable in git.

Change-Id: If4e8deb50ebd635a9091e3bb79ef61c07b9660dc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoDefine console_scripts 81/36781/6
Cédric Ollivier [Fri, 30 Jun 2017 04:24:11 +0000 (06:24 +0200)]
Define console_scripts

Only prepare_env.py and run_tests.py remain executable to avoid
breaking the gate.

As soon as the jenkins jobs are updated to run them from $PATH, tox
will be updated to protect against chmod a+x py files. Dockerfile
will be simplified as well.

Change-Id: Iac1a7ceb6b344e800177226ea39919826f6d3735
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix unix permissions 79/36779/2
Cédric Ollivier [Fri, 30 Jun 2017 04:12:17 +0000 (06:12 +0200)]
Fix unix permissions

Tox will be updated to forbid chmod +ax py files.

Change-Id: I85d4b4a64ec7f3151ab2f24ad09bd7c1144ebe18
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdate securityscanning section in testcases.yaml 73/36773/2
Cédric Ollivier [Fri, 30 Jun 2017 03:31:37 +0000 (05:31 +0200)]
Update securityscanning section in testcases.yaml

It follows the next updates of the securityscanning package:
  - Define config.ini as data_file [1]
  - Define security_scan console script [2]

[1] https://gerrit.opnfv.org/gerrit/36635
[2] https://gerrit.opnfv.org/gerrit/36771

Depends-On: I54ffa61f4bcd366c185596056b49e492c88cc78b
Change-Id: I342c00392bb68aad704a89060841eac665e91bdb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Added unit tests for vping."
Jose Lausuch [Fri, 30 Jun 2017 09:32:12 +0000 (09:32 +0000)]
Merge "Added unit tests for vping."

7 years agoDefine ODL console_script 69/36769/1
Cédric Ollivier [Fri, 30 Jun 2017 03:04:20 +0000 (05:04 +0200)]
Define ODL console_script

main() is excluded from coverage as it usually parses argv.
It also renames ODLTests main() to run_suites() not to exclude this
method.

Change-Id: I3109a65166b21d93e3e376912a32d364931a7ba5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "SNAPS tests now support offline testing."
Jose Lausuch [Thu, 29 Jun 2017 17:17:33 +0000 (17:17 +0000)]
Merge "SNAPS tests now support offline testing."

7 years agoRemove networking-bgpvpn from Functest requirements 25/36525/2
jose.lausuch [Mon, 26 Jun 2017 14:23:37 +0000 (16:23 +0200)]
Remove networking-bgpvpn from Functest requirements

SDNVPN team will take care of installing the module themselves
See https://gerrit.opnfv.org/gerrit/#/c/36505/

Change-Id: Ida38c8324e155906bcd18b12a418e7a62e55e3f0
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoRemove BGPVPN utils in Functest 09/36709/1
jose.lausuch [Thu, 29 Jun 2017 09:07:47 +0000 (11:07 +0200)]
Remove BGPVPN utils in Functest

These util functions should be under control of the SDNVPN
project. After [1] and [2] it is safe to remove them in Functest

[1] https://gerrit.opnfv.org/gerrit/#/c/36655/
[2] https://gerrit.opnfv.org/gerrit/#/c/36505/

Change-Id: I2f6596cd60678bb0c50adb9b4bc0d59545c3fb0a
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Fix refstack_defcore"
Jose Lausuch [Thu, 29 Jun 2017 07:35:17 +0000 (07:35 +0000)]
Merge "Fix refstack_defcore"

7 years agoGet install_rally.sh from git.openstack.org 73/36673/1
Cédric Ollivier [Wed, 28 Jun 2017 16:52:13 +0000 (18:52 +0200)]
Get install_rally.sh from git.openstack.org

Change-Id: I99a87e2399c1be79dabc9109e10665fc9ef8bee2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoSwitch to official tosca-parser and heat-translator 71/36671/1
Cédric Ollivier [Wed, 28 Jun 2017 20:23:50 +0000 (22:23 +0200)]
Switch to official tosca-parser and heat-translator

They replace the python packages located in parser which don't
meet OpenStack's upper constraints [1].

It completes [2] which simply keeps the wrong logic of
parser/tests/parser_install.sh.

[1] https://build.opnfv.org/ci/job/functest-docker-build-push-master/1170/console
[2] https://gerrit.opnfv.org/gerrit/#/c/36653/

Change-Id: If108b8d1fad08237b8a57d82bf5601f4d6ecf64e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoLeverage on parser python packages in Dockerfile 53/36653/1
Cédric Ollivier [Wed, 28 Jun 2017 12:36:56 +0000 (14:36 +0200)]
Leverage on parser python packages in Dockerfile

It also stops calling parser_install.sh.
This file is replaced by the 2 new requirements in
docker/thirdparty-requirements.txt:
  - tosca-parser
  - heat-translator

Change-Id: Ic9dcdd81df9800fc8e559a07f9c100a20bea2290
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdate paths in functest/ci/testcases.yaml 37/36637/1
Cédric Ollivier [Wed, 28 Jun 2017 09:46:46 +0000 (11:46 +0200)]
Update paths in functest/ci/testcases.yaml

It follows the changes switching to python packages.
It shall be noted  that several cmds could be enhanced.

Change-Id: I8cf3595d1e8044b650deb4ec733bf973c0bf1b3f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix refstack_defcore 63/36463/11
Linda Wang [Mon, 26 Jun 2017 03:23:40 +0000 (03:23 +0000)]
Fix refstack_defcore

As refstack-client is reinstalled only by the shell setup_env, the path of
.venv and .tempest have been changed.

Change-Id: Id50d0c6384295c2448705961942104abbd799b9b
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Remove Rally requests scenario"
Jose Lausuch [Wed, 28 Jun 2017 07:58:57 +0000 (07:58 +0000)]
Merge "Remove Rally requests scenario"

7 years agoAdded unit tests for vping. 71/35671/4
spisarski [Thu, 1 Jun 2017 14:38:22 +0000 (08:38 -0600)]
Added unit tests for vping.

Also removed some instance variables and unnecessary methods.

JIRA: FUNCTEST-813

Change-Id: I13895674a9fd3de16c6a19410661440c5380c2f8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoSNAPS tests now support offline testing. 93/35593/5
spisarski [Wed, 31 May 2017 18:46:36 +0000 (12:46 -0600)]
SNAPS tests now support offline testing.

Images by type (cirros, centos, ubuntu) can now have the download URL be
overridden, told to leverage a local file, or have custom configuration
when using the snaps.openstack.tests.openstack_tests.py image settings
helper functions.

JIRA: FUNCTEST-809

Change-Id: I790094a7a26eb5a55f53d6e875c658dc5e7ac2f9
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoRemove Rally requests scenario 03/36603/2
Juha Kosonen [Tue, 27 Jun 2017 15:14:55 +0000 (18:14 +0300)]
Remove Rally requests scenario

HttpRequests scenario is not directly related to OpenStack and not
supported by Rally in https environment.

Change-Id: I2e91d129d82dfaba62eca25e3e4890ff54f52ac6
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
7 years agoUpdated fds testcase criteria 95/36595/1
juraj.linkes [Tue, 27 Jun 2017 14:54:08 +0000 (16:54 +0200)]
Updated fds testcase criteria

Initially, we only executed fds testcase on odl_l2 fdio scenarios.
Now we're extending this to all odl fdio scenarios.

Change-Id: Ieb2454f02847361fdf3274b11f20a996a916ad90
Signed-off-by: juraj.linkes <jlinkes@cisco.com>
7 years agoMerge "Increase timeout of Open Baton installation"
Jose Lausuch [Tue, 27 Jun 2017 13:37:47 +0000 (13:37 +0000)]
Merge "Increase timeout of Open Baton installation"

7 years agoMerge "Add sfc in thirdparty-requirements.txt"
Jose Lausuch [Tue, 27 Jun 2017 13:34:01 +0000 (13:34 +0000)]
Merge "Add sfc in thirdparty-requirements.txt"

7 years agoMerge "Add securityscanning in thirdparty-requirements.txt"
Jose Lausuch [Tue, 27 Jun 2017 13:31:22 +0000 (13:31 +0000)]
Merge "Add securityscanning in thirdparty-requirements.txt"

7 years agoMerge "Remove obsolete repos in functest/ci/config_functest.yaml"
Jose Lausuch [Tue, 27 Jun 2017 13:31:15 +0000 (13:31 +0000)]
Merge "Remove obsolete repos in functest/ci/config_functest.yaml"

7 years agoAdd sfc in thirdparty-requirements.txt 79/36579/1
Cédric Ollivier [Tue, 27 Jun 2017 12:04:43 +0000 (14:04 +0200)]
Add sfc in thirdparty-requirements.txt

Now it can be installed via python package [1] and then be listed in
thirdparty-requirements.txt.

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

Change-Id: Iae7482865917e51a96a180b0a987ab0ff26a0190
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoIncrease timeout of Open Baton installation 77/36577/1
Michael Pauls [Tue, 27 Jun 2017 11:50:02 +0000 (13:50 +0200)]
Increase timeout of Open Baton installation

Change-Id: Ifdc24a3fc9e2c315b41f9e68bccb88df36252b0c
JIRA: ORCHESTRA-14
Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
7 years agoRemove Tempest repo and use the one created by Refstack 65/36565/2
jose.lausuch [Tue, 27 Jun 2017 09:54:41 +0000 (11:54 +0200)]
Remove Tempest repo and use the one created by Refstack

Refstack clones the repo in /home/opnfv/.tempest. Rally can use
that repo which is checked out to the REFSTACK_TAG=15.0.0
This way, we avoid having twice the same files.

Change-Id: I9b05d29b1c9bdf3d10539b771d0d20abb2b7cc37
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "enable doctor-notification test case"
Morgan Richomme [Tue, 27 Jun 2017 09:34:50 +0000 (09:34 +0000)]
Merge "enable doctor-notification test case"

7 years agoMerge "Added unit tests for api_check, health_check, and smoke tests."
Jose Lausuch [Tue, 27 Jun 2017 09:31:17 +0000 (09:31 +0000)]
Merge "Added unit tests for api_check, health_check, and smoke tests."

7 years agoMerge "Don't display functest report for single test cases"
Jose Lausuch [Tue, 27 Jun 2017 09:28:06 +0000 (09:28 +0000)]
Merge "Don't display functest report for single test cases"

7 years agoenable doctor-notification test case 61/36561/1
Ryota MIBU [Tue, 27 Jun 2017 08:47:48 +0000 (08:47 +0000)]
enable doctor-notification test case

Change-Id: If2b6b46f3f192f58636c55f3ddc9e80b9e22be3c
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
7 years agoFix floating ips issue in openstack_clean 29/36529/5
jose.lausuch [Mon, 26 Jun 2017 15:44:47 +0000 (17:44 +0200)]
Fix floating ips issue in openstack_clean

floatingips is a list of dictionaries where the attributes
are a bit different than in the previous implementation.

Change-Id: I8e8429b1819bba35a4a829f274c60b77ab2eea7e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Make rally support https insecure deployment"
Jose Lausuch [Mon, 26 Jun 2017 14:41:07 +0000 (14:41 +0000)]
Merge "Make rally support https insecure deployment"

7 years agoFixed problem to vping userdata introducted by SNAPS-OO patch. 21/36521/1
spisarski [Mon, 26 Jun 2017 14:10:49 +0000 (08:10 -0600)]
Fixed problem to vping userdata introducted by SNAPS-OO patch.

Changed get_vm_inst() to return a domain object forgot to change the call
in vping_userdata.py.

JIRA: SNAPS-92

Change-Id: I7585dcde483c39fa850e5184686f42bbf2e8f3c5
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoAdd securityscanning in thirdparty-requirements.txt 81/36481/2
Cédric Ollivier [Mon, 26 Jun 2017 06:59:53 +0000 (08:59 +0200)]
Add securityscanning in thirdparty-requirements.txt

Now it can be installed via python package [1] and then be listed in
thirdparty-requirements.txt.

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

Change-Id: Ib9489de1f46993fa9fe35485fa95baf003d44974
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove obsolete repos in functest/ci/config_functest.yaml 73/36473/3
Cédric Ollivier [Mon, 26 Jun 2017 04:27:49 +0000 (06:27 +0200)]
Remove obsolete repos in functest/ci/config_functest.yaml

It completes "Use directly OpenStack project packages" [1].
kingbird becomes a dependency.

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

Change-Id: I2cb9e3a2146a2b2bbae89dde9917c5ace70048a6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Use glance to list images"
Jose Lausuch [Mon, 26 Jun 2017 10:06:41 +0000 (10:06 +0000)]
Merge "Use glance to list images"

7 years agoMerge "Change floating ips management from nova to neutron"
Jose Lausuch [Mon, 26 Jun 2017 10:06:30 +0000 (10:06 +0000)]
Merge "Change floating ips management from nova to neutron"

7 years agoMerge "Enable vping offline"
Jose Lausuch [Mon, 26 Jun 2017 09:20:59 +0000 (09:20 +0000)]
Merge "Enable vping offline"

7 years agoMerge "Take OpenStack's constraints into account"
Jose Lausuch [Mon, 26 Jun 2017 09:15:40 +0000 (09:15 +0000)]
Merge "Take OpenStack's constraints into account"

7 years agoMerge "Define logger as Feature instance attribute"
Jose Lausuch [Mon, 26 Jun 2017 09:14:35 +0000 (09:14 +0000)]
Merge "Define logger as Feature instance attribute"

7 years agoMerge "Install opera via python package"
Jose Lausuch [Mon, 26 Jun 2017 09:14:31 +0000 (09:14 +0000)]
Merge "Install opera via python package"

7 years agoMerge "Install OPNFV sdnvpn via python package"
Jose Lausuch [Mon, 26 Jun 2017 09:14:28 +0000 (09:14 +0000)]
Merge "Install OPNFV sdnvpn via python package"

7 years agoMerge "Stop personalizing the common Dockerfile"
Jose Lausuch [Mon, 26 Jun 2017 09:14:25 +0000 (09:14 +0000)]
Merge "Stop personalizing the common Dockerfile"

7 years agoChange floating ips management from nova to neutron 15/36415/6
jose.lausuch [Fri, 23 Jun 2017 09:32:56 +0000 (11:32 +0200)]
Change floating ips management from nova to neutron

Nova does not longer support floating ip creation/deletion.
This patch moves that logic to neutron client.

Change-Id: I2c4146149fe5be534d9c50d78d831b5af1957ad7
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoDon't display functest report for single test cases 13/36413/2
jose.lausuch [Fri, 23 Jun 2017 08:49:15 +0000 (10:49 +0200)]
Don't display functest report for single test cases

When executing a single test case, it is not neccessary
to show duplicated information about the result of the test
case. The functest report only makes sense when running
multiple tests.
e.g. functest testcase run vping_ssh

The report is still showed when doing:
     functest testcase run all

Change-Id: I92d97d6111ecd9484a14c72cf4bb0c2bbe3ae6bf
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoTake OpenStack's constraints into account 71/36471/2
Cédric Ollivier [Mon, 26 Jun 2017 03:39:23 +0000 (05:39 +0200)]
Take OpenStack's constraints into account

upper-constraints.txt contains a pinned list of the entire set of
transitive requirements for OpenStack [1].

We will add OPNFV's constraints as well for OPNFV projects and
their requirements when they are ready.

[1] https://specs.openstack.org/openstack/openstack-specs/specs/requirements-management.html

Change-Id: I2e23584f957e4de191341800d24c8b2776ef9143
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMake rally support https insecure deployment 47/36447/2
Linda Wang [Sat, 24 Jun 2017 09:15:56 +0000 (09:15 +0000)]
Make rally support https insecure deployment

When running in https environment, rally should support insecure
deployment if no cacert file is provided.

JIRA: FUNCTEST-828

Change-Id: I29b0fc8c2e1b74a1ce08293706cd9f11f975b6d5
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Remove calls to deployment handler in prepare env"
Jose Lausuch [Sat, 24 Jun 2017 08:51:55 +0000 (08:51 +0000)]
Merge "Remove calls to deployment handler in prepare env"

7 years agoUse glance to list images 05/36405/5
Linda Wang [Fri, 23 Jun 2017 05:11:31 +0000 (05:11 +0000)]
Use glance to list images

1. Images list is not supported by novaclient 8.0.0
2. It moves images list out of nova and into glance

Change-Id: I2a2d40a2ca3a0cf1ebfb55697b3c58af8748a805
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Enable https insecure for functest"
Jose Lausuch [Fri, 23 Jun 2017 08:04:44 +0000 (08:04 +0000)]
Merge "Enable https insecure for functest"

7 years agoEnable vping offline 09/36409/1
Linda Wang [Fri, 23 Jun 2017 07:32:36 +0000 (07:32 +0000)]
Enable vping offline

Images used are changed to leverage local file.

Change-Id: I42a89c8c33054a23e226d22358fe268770986a76
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Revert rally version to 0.8.1"
Serena Feng [Fri, 23 Jun 2017 06:40:12 +0000 (06:40 +0000)]
Merge "Revert rally version to 0.8.1"

7 years agoRemove calls to deployment handler in prepare env 67/36367/1
jose.lausuch [Thu, 22 Jun 2017 09:50:08 +0000 (11:50 +0200)]
Remove calls to deployment handler in prepare env

The reason is that some installers have changed the mechanism and the adapters
are not valid any more and the method to access the deployment information fails
Fuel -> MCP
Compass -> Containers

This shall be deactivated to avoid errors in CI until the new installer
adapters are implememnted.

Change-Id: I995b914bf55d5da76f27e715d170dd22e84d677c
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Clone tempest repository in the Docker image"
Jose Lausuch [Thu, 22 Jun 2017 07:49:18 +0000 (07:49 +0000)]
Merge "Clone tempest repository in the Docker image"

7 years agoRevert rally version to 0.8.1 59/36359/1
Linda Wang [Thu, 22 Jun 2017 07:21:09 +0000 (07:21 +0000)]
Revert rally version to 0.8.1

1. Now rally version 0.9.1 is installed via "bash install_rally.sh
   --yes", cause the default RALLY_GIT_BRANCH is master. Then
   some rally related tests will fail as rally tests have not been
   updated in functest
2. rally version 0.8.1 can be installed via --branch 0.8.1

Change-Id: I04003134f070a1a35db2c02f2209e77365be592f
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoClone tempest repository in the Docker image 09/36309/3
jose.lausuch [Wed, 21 Jun 2017 14:20:13 +0000 (16:20 +0200)]
Clone tempest repository in the Docker image

Rally needs to have a copy of the Tempest repository
in order to install the verifier. Otherwise, rally will
clone it automatically anyway.

This also uplifts the tempest version to 15.0.0 which targets
Ocata deployments according to [1]

[1]: https://releases.openstack.org/ocata/

Change-Id: I30e922a261a4ab1875d48c4754df09426b5f67e4
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoFix command in prepare env to execute check_os.sh 01/36301/2
jose.lausuch [Wed, 21 Jun 2017 12:55:01 +0000 (14:55 +0200)]
Fix command in prepare env to execute check_os.sh

[1] introduced a bug when adding "sh" to the call.
There is no need to use sh or bash in the command string.

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

Change-Id: I9ce443721b69945a4a749da0caa6c008cc8ca284
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoDefine logger as Feature instance attribute 05/36005/7
Jose Lausuch [Mon, 12 Jun 2017 15:10:51 +0000 (23:10 +0800)]
Define logger as Feature instance attribute

It allows any Feature subclass to print warning messages in console
and debug messages in a dedicated file.

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ic5b1b1184c16cf50f0baadc3904075d0acdf3c6d
Signed-off-by: Jose Lausuch <jose.lausuch@ericsson.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoInstall opera via python package 29/36129/6
Cédric Ollivier [Thu, 15 Jun 2017 20:12:24 +0000 (22:12 +0200)]
Install opera via python package

It should be noted that the other OPNFV projects cannot currently be
installed via python packages for many reasons (e.g. binaries not
included, no setup.py...).

Change-Id: Iaf1c960471b2dd8916eb1a49cb46f50b7dfb9b88
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoInstall OPNFV sdnvpn via python package 35/35835/7
jose.lausuch [Tue, 6 Jun 2017 13:10:26 +0000 (15:10 +0200)]
Install OPNFV sdnvpn via python package

Change-Id: Ibcaef4eb8658bfe7d1900a8cd6a7b48740524526
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoStop personalizing the common Dockerfile 27/36127/8
Cédric Ollivier [Thu, 15 Jun 2017 19:00:04 +0000 (21:00 +0200)]
Stop personalizing the common Dockerfile

Any personal config can be applied to another Dockerfile which
inherits from this one.

Change-Id: Ifb77c0d5821c2b40f2f3e1d6adee6f83d0cd0b29
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoEnable https insecure for functest 27/35327/7
Linda Wang [Thu, 25 May 2017 08:51:48 +0000 (08:51 +0000)]
Enable https insecure for functest

1. When running in https environment, functest should provide an
   option to disable server certificate verification.
2. For check_os.sh, the param "--insecure" is passed to openstack
   cli, e.g.. openstack --insecure server list.

JIRA: FUNCTEST-828

Change-Id: Ie2c5b14152c92e87318fcfaf8b234f59275eb6b8
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Use directly OpenStack project packages"
Jose Lausuch [Wed, 21 Jun 2017 08:38:51 +0000 (08:38 +0000)]
Merge "Use directly OpenStack project packages"

7 years agoMerge "Change barometer module to load"
Jose Lausuch [Wed, 21 Jun 2017 08:38:05 +0000 (08:38 +0000)]
Merge "Change barometer module to load"

7 years agoMerge "Remove all references to /home/opnfv/repos/functest"
Jose Lausuch [Wed, 21 Jun 2017 08:33:02 +0000 (08:33 +0000)]
Merge "Remove all references to /home/opnfv/repos/functest"

7 years agoUse directly OpenStack project packages 25/36125/6
Cédric Ollivier [Thu, 15 Jun 2017 18:48:21 +0000 (20:48 +0200)]
Use directly OpenStack project packages

It stops cloning via git for the next OpenStack projects:
  - networking-bgpvpn
  - rally
  - tempest
  - kingbird
  - refstack-client

It should be noted that refstack_client's setup_env is not designed
to run in Alpine.

Change-Id: I00d17912cad39a0c872d317317e98a78ca9ded2c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoChange barometer module to load 25/36025/11
Jose Lausuch [Tue, 13 Jun 2017 03:26:52 +0000 (11:26 +0800)]
Change barometer module to load

As [1] is merged, the way to call the barometer test case is
different as it is hosted in Barometer repo instead of Functest.
The former files are also simply removed too.

baro-tests is no longer a requirement. It is installed as any
third party project.

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

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Iea56b48fa781600eb3a6ac74662ea8a29f556f99
Signed-off-by: Jose Lausuch <jose.lausuch@ericsson.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoAdded unit tests for api_check, health_check, and smoke tests. 61/35661/3
spisarski [Thu, 1 Jun 2017 14:04:24 +0000 (08:04 -0600)]
Added unit tests for api_check, health_check, and smoke tests.

In addition to the creation of the unit tests, this patch simplifies
the mocks for connection check as there was an unused annotation.
This patch also refactors the building of the test suite from the
constructor to the run() method.

JIRA: FUNCTEST-813

Change-Id: I7ff5d0389db36141a33ee3a8f76e04b922f8a95f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoRemove all references to /home/opnfv/repos/functest 63/36163/3
Cédric Ollivier [Sun, 18 Jun 2017 21:43:51 +0000 (23:43 +0200)]
Remove all references to /home/opnfv/repos/functest

It also removes relative (and incomplete) references which could be
defined in modules instead of this global configuration.

Change-Id: Ie20dc3547e49b6224aa8100cd380d37b87ece5a9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Promote Linda Wang as a committer"
Jose Lausuch [Tue, 20 Jun 2017 07:57:36 +0000 (07:57 +0000)]
Merge "Promote Linda Wang as a committer"

7 years agoStop getting git data from functest dir 61/36161/1
Cédric Ollivier [Sun, 18 Jun 2017 11:14:46 +0000 (13:14 +0200)]
Stop getting git data from functest dir

Functest is no longer a git clone.

Change-Id: Ieaceacaa820e9a7a3c64e8c1fbd2a8a9321f234d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoClean requirements.txt 59/36159/1
Cédric Ollivier [Sun, 18 Jun 2017 07:14:29 +0000 (09:14 +0200)]
Clean requirements.txt

It removes all requirements which are not detected by pipreqs [1]
except:
  - robotframework-httplibrary
  - robotframework-requests==0.4.7
  - robotframework-sshlibrary==2.1.3

They seem indirectly required for the next ODL suites: old_netvirt
and fds.

It also defines pbr as requirement and orders dnspython3 conditions.

[1] https://github.com/bndr/pipreqs

Change-Id: Idcd01296e5a5862ff8528dc083468b5c4905c9f9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove module references __file__ 57/36157/1
Cédric Ollivier [Sun, 18 Jun 2017 07:10:19 +0000 (09:10 +0200)]
Remove module references __file__

It allows functest to be run directly from a zip file [1].

[1] https://setuptools.readthedocs.io/en/latest/setuptools.html#setting-the-zip-safe-flag

Change-Id: I596a71e8cf2bed6dd79655bd5beeb047876a188c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Update Suite details pushed to DB"
Morgan Richomme [Thu, 15 Jun 2017 01:49:03 +0000 (01:49 +0000)]
Merge "Update Suite details pushed to DB"

7 years agoMerge "Update (test-)requirements.txt"
Jose Lausuch [Wed, 14 Jun 2017 10:22:51 +0000 (10:22 +0000)]
Merge "Update (test-)requirements.txt"

7 years agoUpdate Suite details pushed to DB 57/36057/3
Cédric Ollivier [Tue, 13 Jun 2017 22:14:59 +0000 (00:14 +0200)]
Update Suite details pushed to DB

It now reports stats and dumps stream into details.
By the way, it fixes a bug when serializing the former details.

Change-Id: Idd388708071ca3185e5a07bc7e977f2d9837dc95
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Refactor core VNF class"
valentin boucher [Tue, 13 Jun 2017 08:20:56 +0000 (08:20 +0000)]
Merge "Refactor core VNF class"

7 years agoUpdate (test-)requirements.txt 15/36015/2
Cédric Ollivier [Mon, 12 Jun 2017 06:30:23 +0000 (08:30 +0200)]
Update (test-)requirements.txt

It updates requirements.txt and test-requirements.txt according to
OpenStack stable/ocata. It removes useless copyrights.

Change-Id: I603b3030df231f210af47232f20aef85a08e20ba
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoPromote Linda Wang as a committer 07/36007/1
Jose Lausuch [Mon, 12 Jun 2017 15:31:14 +0000 (23:31 +0800)]
Promote Linda Wang as a committer

Change-Id: I13528178e97c0b83843888444c5925600cc8c720
Signed-off-by: Jose Lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Leverage on pbr (Python Build Reasonableness)"
Jose Lausuch [Thu, 8 Jun 2017 13:18:25 +0000 (13:18 +0000)]
Merge "Leverage on pbr (Python Build Reasonableness)"

7 years agoMerge "Configure the param auth_version in tempest.conf"
Cedric Ollivier [Wed, 7 Jun 2017 13:21:03 +0000 (13:21 +0000)]
Merge "Configure the param auth_version in tempest.conf"