functest.git
6 years agoRemove dns server from juju_epc config 33/51833/1
Cédric Ollivier [Wed, 7 Feb 2018 07:16:31 +0000 (08:16 +0100)]
Remove dns server from juju_epc config

The dns server shoud be set by the Cloud provider via Neutron configs.
Snaps is currently enforcing 8.8.8.8 as default too.

Change-Id: I3e9a25d8bbfbab4cd1d44e394235b329df86e82e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Disable orchestra_* testcases"
Linda Wang [Wed, 7 Feb 2018 01:58:35 +0000 (01:58 +0000)]
Merge "Disable orchestra_* testcases"

6 years agoFix rally cinder volume attach scenarios 59/51759/1
Juha Kosonen [Tue, 6 Feb 2018 11:50:05 +0000 (13:50 +0200)]
Fix rally cinder volume attach scenarios

Add network id to following scenarios:

CinderVolumes.create_snapshot_and_attach_volume
CinderVolumes.create_nested_snapshots_and_attach_volume

JIRA: FUNCTEST-929

Change-Id: If95babebf9ea6205684494395bdfd72d5203f4bf
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoDisable orchestra_* testcases 49/51749/1
Cédric Ollivier [Tue, 6 Feb 2018 07:05:20 +0000 (08:05 +0100)]
Disable orchestra_* testcases

They can be simply disabled and they unsuccessfully run vs Daily only.

In a second step, moving the related python modules in a new
orchestra repository could be a good solution simply because they
don't reach our coding criteria.

The best way is still to update them according to our rules and to
check all installers thanks to these two vnfs.

Change-Id: If36b16f0ed95d7039db9455a32c18f7fd1a739ef
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoStop printing data sent to DB 29/51729/1
Cédric Ollivier [Mon, 5 Feb 2018 22:02:49 +0000 (23:02 +0100)]
Stop printing data sent to DB

https://build.opnfv.org/ci/view/functest/job/functest-daisy-baremetal-daily-master/lastFailedBuild/console

Change-Id: I0f794159d05fe21f659ecf3b5a9fa407620b723d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix docstrings 83/51683/2
Cédric Ollivier [Mon, 5 Feb 2018 16:13:53 +0000 (17:13 +0100)]
Fix docstrings

Else sphinx can't parse snaps_suite_builder.py and IxRestUtils.py.

Change-Id: Iab231a043120154bce708263474b9f9926c1f715
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoSwitch to the readthedocs theme for api docs 73/51673/2
Cédric Ollivier [Mon, 5 Feb 2018 10:20:11 +0000 (11:20 +0100)]
Switch to the readthedocs theme for api docs

It also adds a requirement file for external doc tools wich couldn't
handle upper constraints.

Change-Id: Idf8f43e5e1a845055ce248f1dc8b8d676a3ac37b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoRemove yamllint from upper-constraints.txt 71/51671/2
Cédric Ollivier [Mon, 5 Feb 2018 12:41:44 +0000 (13:41 +0100)]
Remove yamllint from upper-constraints.txt

OpenStack doesn't list test requirements in upper constraints [1].

[́1] https://github.com/openstack/requirements/blob/stable/pike/upper-constraints.txt

Change-Id: I7472158d385beb311c159563bc3bb973c4a2d4c7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd build_sphinx section in setup.cfg 69/51669/2
Cédric Ollivier [Mon, 5 Feb 2018 10:36:33 +0000 (11:36 +0100)]
Add build_sphinx section in setup.cfg

Change-Id: Ieac48a1a213bc5cd62a42dab1c74c80761e82fd1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoBlacklist Quotas.nova_update_and_delete test 79/51679/1
Juha Kosonen [Mon, 5 Feb 2018 15:23:34 +0000 (17:23 +0200)]
Blacklist Quotas.nova_update_and_delete test

Excluded since the test occasionally fails due to race condition issue
on quota manipulation in nova [1].

[1] https://bugs.launchpad.net/nova/+bug/1552622

Change-Id: Ib979c1e371727aa3adea9dc0b5955e7ed24881cf
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoMerge "Add modules docstrings in snaps"
Juha Kosonen [Mon, 5 Feb 2018 14:13:19 +0000 (14:13 +0000)]
Merge "Add modules docstrings in snaps"

6 years agoIncrease Rally full criteria 55/51655/1
Cédric Ollivier [Mon, 5 Feb 2018 09:43:52 +0000 (10:43 +0100)]
Increase Rally full criteria

Even if several tests are currently under investigation, it seems
relevant to expect a full success here.

Change-Id: I6a8c5fb5a7dd4bfb5c3a2e7a93de1c0bec77c878
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd modules docstrings in snaps 47/51647/1
Linda Wang [Mon, 5 Feb 2018 04:05:22 +0000 (04:05 +0000)]
Add modules docstrings in snaps

JIRA: FUNCTEST-922

Change-Id: I058486427fe55e1d1ce939fce20d75ff7afde85c
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoUpdate results printed in configguide.rst 33/51633/2
Cédric Ollivier [Sun, 4 Feb 2018 13:21:22 +0000 (14:21 +0100)]
Update results printed in configguide.rst

It updates the entry points and all results.
It also takes into account that:
  - juju_epc was added
  - fds was moved to features

It should be noted that refstack_defcore, parser and several vnfs are
failing from the time being.

Change-Id: I918a7767005569f03115749ad121a6c7a04c04a9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix links in configguide.rst 27/51627/3
Cédric Ollivier [Sat, 3 Feb 2018 20:49:04 +0000 (21:49 +0100)]
Fix links in configguide.rst

It also removes trailing whitespaces.

Change-Id: I6a7e4aaff700a85ff1c0c2741624e9359441e0ac
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix JujuEpc prepare() and deploy_orchestrator() 19/51419/7
Cédric Ollivier [Wed, 31 Jan 2018 21:20:42 +0000 (22:20 +0100)]
Fix JujuEpc prepare() and deploy_orchestrator()

It bypasses a known unfixed Juju bug [1] by creating a second
'_member_' user [1]. An 'admin' user is still required to create
flavors and by snaps when listing virtual machines.
It highlights a possible bug in user_creator.get_os_creds().

It partially rewrites the testcase by cleaning instance attributes and
by taking several os.system() returns into account. It sets the new
password automatically generated [2] and starts switching from
openstack utils to snaps in vEPC.

This patchset must be completed by unit tests and by another patch
fully switching to snaps in the last methods.

It should be noted that the testcase sets 8.8.8.8 as dns server which
could raise side effects.

[1] https://bugs.launchpad.net/juju/+bug/1710848
[2] https://gerrit.opnfv.org/gerrit/#/c/50747/

Change-Id: Id18b4b185aa1825196e91f6692338169f51faea8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Do not use shell to execute commands in tempest"
Linda Wang [Sat, 3 Feb 2018 05:02:51 +0000 (05:02 +0000)]
Merge "Do not use shell to execute commands in tempest"

6 years agoMerge "Stop setting ext net in config"
Cedric Ollivier [Fri, 2 Feb 2018 23:12:14 +0000 (23:12 +0000)]
Merge "Stop setting ext net in config"

6 years agoMerge "Install vEPC dependencies in Dockerfile"
Cedric Ollivier [Fri, 2 Feb 2018 23:12:07 +0000 (23:12 +0000)]
Merge "Install vEPC dependencies in Dockerfile"

6 years agoDo not use shell to execute commands in tempest 95/51495/1
Juha Kosonen [Fri, 2 Feb 2018 11:27:33 +0000 (13:27 +0200)]
Do not use shell to execute commands in tempest

Change-Id: I4d699481fdc63058c12ca9cfe18138e87025e9b3
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoStop setting ext net in config 91/51491/2
Cédric Ollivier [Fri, 2 Feb 2018 07:22:00 +0000 (08:22 +0100)]
Stop setting ext net in config

It simply relies on the related env var as expected.

Change-Id: Ibbb1a2ab2cccdff8cafe6f409af383a24778b1f5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Fix a typo in docstring"
Linda Wang [Fri, 2 Feb 2018 02:26:38 +0000 (02:26 +0000)]
Merge "Fix a typo in docstring"

6 years agoRename a common credential file for OS and K8S 83/51283/5
Linda Wang [Mon, 29 Jan 2018 07:37:37 +0000 (07:37 +0000)]
Rename a common credential file for OS and K8S

Change-Id: Ib8d24be4b29ab1de00d5dd5e3442146b2437cb94
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoInstall vEPC dependencies in Dockerfile 59/51459/2
Cédric Ollivier [Thu, 1 Feb 2018 13:44:47 +0000 (14:44 +0100)]
Install vEPC dependencies in Dockerfile

It also cleans sources and packages.

Change-Id: Ie3a1a836c27af295b93386e8df63c0ae5accde84
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Use snaps_utils to get credentials in tempest"
Serena Feng [Thu, 1 Feb 2018 13:52:46 +0000 (13:52 +0000)]
Merge "Use snaps_utils to get credentials in tempest"

6 years agoFix a typo in docstring 17/51417/1
Cédric Ollivier [Wed, 31 Jan 2018 21:22:44 +0000 (22:22 +0100)]
Fix a typo in docstring

Change-Id: I4826240a56141771df202b9b3b416d64d2db2cf4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd tempest and rally in functest-features 13/51413/1
Cédric Ollivier [Wed, 31 Jan 2018 17:57:46 +0000 (18:57 +0100)]
Add tempest and rally in functest-features

SDNVPN also requires these packages.
It would be refactored in a second step when xtesting is published.

Change-Id: I069ecf8d60dc0ee1a755d0974913b686f4c7ae61
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Removal of deprecated SNAPS-OO classes in juju_epc"
Cedric Ollivier [Wed, 31 Jan 2018 13:03:22 +0000 (13:03 +0000)]
Merge "Removal of deprecated SNAPS-OO classes in juju_epc"

6 years agoUse snaps_utils to get credentials in tempest 93/51393/2
Juha Kosonen [Wed, 31 Jan 2018 11:54:46 +0000 (13:54 +0200)]
Use snaps_utils to get credentials in tempest

Change-Id: I1d240d5edd536d71c87a7dff4e2676715697d0e2
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoMerge "Fix pylint errors/warnings in rally"
Cedric Ollivier [Wed, 31 Jan 2018 09:33:25 +0000 (09:33 +0000)]
Merge "Fix pylint errors/warnings in rally"

6 years agoMerge "proper instance status handling"
Juha Kosonen [Wed, 31 Jan 2018 07:05:01 +0000 (07:05 +0000)]
Merge "proper instance status handling"

6 years agoRemoval of deprecated SNAPS-OO classes in juju_epc 63/51363/3
Cédric Ollivier [Tue, 30 Jan 2018 18:40:20 +0000 (19:40 +0100)]
Removal of deprecated SNAPS-OO classes in juju_epc

It completes the first commit about that topic [1].

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

Change-Id: I1a55b45f0535ae98681546d4d24bb424cf892aa8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix pylint errors/warnings in rally 07/51307/6
Juha Kosonen [Mon, 29 Jan 2018 13:57:11 +0000 (15:57 +0200)]
Fix pylint errors/warnings in rally

JIRA: FUNCTEST-906

Change-Id: I484f9a291d5adbedb855450e4ff067dfa4a3b2ae
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoMerge "Remove duplicated code related to snaps creds"
Cedric Ollivier [Tue, 30 Jan 2018 19:11:27 +0000 (19:11 +0000)]
Merge "Remove duplicated code related to snaps creds"

6 years agoRemove duplicated code related to snaps creds 51/51351/1
Juha Kosonen [Tue, 30 Jan 2018 12:59:05 +0000 (14:59 +0200)]
Remove duplicated code related to snaps creds

Add support for providing credentials in snaps_utils.

JIRA: FUNCTEST-916

Change-Id: I3e027229d213d3791a115920f7012309cc027712
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoFix pylint errors about refstack 95/51295/2
Linda Wang [Mon, 29 Jan 2018 10:26:16 +0000 (10:26 +0000)]
Fix pylint errors about refstack

JIRA: FUNCTEST-907

Change-Id: Ib08a88523c700d35894b9b89b7585425a02065c3
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Create subnet and net within the same project"
Cedric Ollivier [Mon, 29 Jan 2018 15:29:56 +0000 (15:29 +0000)]
Merge "Create subnet and net within the same project"

6 years agoMerge "Enable epc unit tests"
Cedric Ollivier [Mon, 29 Jan 2018 13:46:57 +0000 (13:46 +0000)]
Merge "Enable epc unit tests"

6 years agoMerge "Fix warnings in all snaps-related modules"
Cedric Ollivier [Mon, 29 Jan 2018 13:46:50 +0000 (13:46 +0000)]
Merge "Fix warnings in all snaps-related modules"

6 years agoMerge "Fix pylint errors in several utils modules"
Cedric Ollivier [Mon, 29 Jan 2018 13:46:44 +0000 (13:46 +0000)]
Merge "Fix pylint errors in several utils modules"

6 years agoMerge "Avoid duplicating get_parameter_from_yaml"
Cedric Ollivier [Mon, 29 Jan 2018 13:46:38 +0000 (13:46 +0000)]
Merge "Avoid duplicating get_parameter_from_yaml"

6 years agoMerge "Fix last Pylint error in Functest"
Cedric Ollivier [Mon, 29 Jan 2018 13:46:23 +0000 (13:46 +0000)]
Merge "Fix last Pylint error in Functest"

6 years agoEnable epc unit tests 05/51305/1
Cédric Ollivier [Mon, 29 Jan 2018 12:45:43 +0000 (13:45 +0100)]
Enable epc unit tests

It adds the missing __init__.py to activate vepc unit tests.
They are disabled because they are currently false (otherwise
it would block next changes).

Change-Id: I65b32490efde4cc8f6b3d9e6ee19257dcf02c2dd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix the connect issue when checking deployment 75/51275/2
Linda Wang [Mon, 29 Jan 2018 01:26:17 +0000 (01:26 +0000)]
Fix the connect issue when checking deployment

Socket.connect() requires only one param with type tuple.

Change-Id: I63aa4633e80bde3ad5e1b5af9d67d8f46eb84571
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoCreate subnet and net within the same project 77/51277/1
Linda Wang [Mon, 29 Jan 2018 01:39:58 +0000 (01:39 +0000)]
Create subnet and net within the same project

It is required to create a network and subnet within the same project
for some SUTs.

Change-Id: Icd02edb0aebee93713f315cdbbeb021e9ae82dae
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoFix warnings in all snaps-related modules 59/51259/1
Cédric Ollivier [Sun, 28 Jan 2018 10:30:47 +0000 (11:30 +0100)]
Fix warnings in all snaps-related modules

It also adds vping/__init__.py to stop skipping vping unit tests.
It removes the useless import os which is not required for mock (here
the mock patch was simply false).

It should be noted that the code is partially duplicated between
snaps_test_runner.py and vping_base_base.py. A small part of code has
been rewritten to fix that without multi inheritance.

Change-Id: I2e3e181ad7dab8aa41afb1e63d0b6795ff0d1610
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Refactor rally report generation"
Cedric Ollivier [Sat, 27 Jan 2018 10:02:12 +0000 (10:02 +0000)]
Merge "Refactor rally report generation"

6 years agoFix pylint errors in several utils modules 95/51195/5
Cédric Ollivier [Fri, 26 Jan 2018 13:29:01 +0000 (14:29 +0100)]
Fix pylint errors in several utils modules

All utils which are moving to xtesting are now fixed.
It remains OpenStack and Functest utils (+ the related unit tests)
which doesn't move to the new package.

Change-Id: If13c627c8444c62d5c6bf9c8057d6413aa0e56c7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAvoid duplicating get_parameter_from_yaml 13/51213/2
Cédric Ollivier [Fri, 26 Jan 2018 16:41:02 +0000 (17:41 +0100)]
Avoid duplicating get_parameter_from_yaml

It switches to this helper which was locally copied.

Change-Id: Iaa30d83e8c0e2d4472f4ef8fe1da4943e424ebb3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix last Pylint error in Functest 93/51193/2
Cédric Ollivier [Fri, 26 Jan 2018 08:49:49 +0000 (09:49 +0100)]
Fix last Pylint error in Functest

It also fixes all pylint warnings in router and the related unit
tests. tox.ini is updated to ensure that no error is introduced.

Change-Id: Iddd74b0dac7b6581d72b04369140006c9e19f998
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoRefactor rally report generation 85/51185/1
Juha Kosonen [Fri, 26 Jan 2018 10:37:57 +0000 (12:37 +0200)]
Refactor rally report generation

- statistic data based on Rally results report
- fix statistics calculations
- use PrettyTable in generating the report

Change-Id: Ic84adc5e30d446aea1f3045ba997c3ddf895e9f5
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoproper instance status handling 79/51179/1
Periyasamy Palanisamy [Fri, 26 Jan 2018 08:56:12 +0000 (09:56 +0100)]
proper instance status handling

This would fix the exception happening in the SDNVPN CI testsuite.
Example: http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-01-21_17-18-06/bgpvpn.log

Change-Id: Ie22dcdbba5299177d4e98e5995433553df5bfa68
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
6 years agoFix pylint warnings/errors in cli 49/51049/2
Cédric Ollivier [Tue, 23 Jan 2018 10:19:41 +0000 (11:19 +0100)]
Fix pylint warnings/errors in cli

cli_testcase and cli_tier have been refactored to avoid duplicating
code. Then functest/cli and funtest/unit/cli can be added to the list
of modules rated 10/10.

Change-Id: Iec90e806397248a10f39080ec554e3f0a6eda7c1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoDelete functest_vacation.py 47/51047/1
Cédric Ollivier [Wed, 24 Jan 2018 12:49:55 +0000 (13:49 +0100)]
Delete functest_vacation.py

Change-Id: Id0e2769a1989e6778ae41f67ed634e2e5002a83d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge RegexMatch into test_cli_env.py 45/51045/1
Cédric Ollivier [Wed, 24 Jan 2018 12:33:20 +0000 (13:33 +0100)]
Merge RegexMatch into test_cli_env.py

It also deletes SubstrMatch which is not called (then uncovered).

Change-Id: Ifde1e2491ab5e0e75652eb4b25b359e859c2aa95
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoDisable all missing-docstring warnings in unit tests 83/50883/1
Cédric Ollivier [Sun, 21 Jan 2018 20:20:25 +0000 (21:20 +0100)]
Disable all missing-docstring warnings in unit tests

Change-Id: I22b7bbdab5f000b4ade6c2ba3a4029c146887cbd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoPartially rewrite test_run_tests.py 81/50881/1
Cédric Ollivier [Sun, 21 Jan 2018 20:11:48 +0000 (21:11 +0100)]
Partially rewrite test_run_tests.py

It mainly fixes pylint issues and leverages on decorators.
It should be noted that run_tests.py is not fully covered (see
xtesting requirements).

Change-Id: I114b67c3c5bfe61d72d004829af513e2014ad8b8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFully test and cover functest/ci/tier_* 71/50871/7
Cédric Ollivier [Sun, 21 Jan 2018 00:02:20 +0000 (01:02 +0100)]
Fully test and cover functest/ci/tier_*

It also fixes check_deployment.py and ci unit tests which were wrong
when testing exceptions.

Now ci modules are rated 10/10 and fully covered.

Change-Id: I30dca491b44cc54aa1abc0d0433c00b4dcabfdc4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMove push_results_to_db to TestCase 57/49757/7
Cédric Ollivier [Sat, 20 Jan 2018 13:41:32 +0000 (14:41 +0100)]
Move push_results_to_db to TestCase

It removes the link between TestCase and Functest utils (xtesting).
It should be noted that testresults url can only be set by env var.

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ie072c675890d0ae2e63619c599d2684a8c7d762d
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoConfigure password for the user in vnf 47/50747/9
Linda Wang [Thu, 18 Jan 2018 03:38:46 +0000 (03:38 +0000)]
Configure password for the user in vnf

For some SUTs, the password for creating user is not allowed to
be the same as user name, and some even is required to contain
at least 8 characters and three types of characters for security.

It also turns yamllint warnings into errors and fixes the remaining
warnings.

Change-Id: Icf25a7b9ff1c8cee55899198f1e519c9209877ff
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Fix Rally output retrieval"
Linda Wang [Wed, 17 Jan 2018 01:12:45 +0000 (01:12 +0000)]
Merge "Fix Rally output retrieval"

6 years agoFix Rally output retrieval 03/50703/1
Juha Kosonen [Tue, 16 Jan 2018 14:45:46 +0000 (16:45 +0200)]
Fix Rally output retrieval

Read stdout until nothing left instead of stopping once the child
process is terminated.

Change-Id: I46a2eb93fd614e2e7ff676727eb9dc132c29d03f
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoUpdate set of region identity attribut 77/50677/1
Samuel Bartel [Tue, 16 Jan 2018 09:12:16 +0000 (10:12 +0100)]
Update set of region identity attribut

Use OS_REGION_NAME environment variable if defined

Change-Id: Ifcdfc468fa4931ab62ac0f3ead103e15af7c0de6
Signed-off-by: Samuel Bartel <samuel.bartel@orange.com>
6 years agoBuild functest-parser for arm64 via travis-ci 71/50471/3
Cédric Ollivier [Thu, 11 Jan 2018 17:03:11 +0000 (18:03 +0100)]
Build functest-parser for arm64 via travis-ci

Even if clearwater-live-test dependencies have been updated [1], the
next containers can be built for ARM (ruby raises SEGFAULT via
qemu-user-static):
  - functest-vnf
  - functest-restapi

The related manifest is also updated.

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

Change-Id: Ie1eb78436a3da5eb7b5c1028b7f8323e8c3e73a2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Switch to absolute paths in Dockerfiles"
Cedric Ollivier [Fri, 12 Jan 2018 19:10:59 +0000 (19:10 +0000)]
Merge "Switch to absolute paths in Dockerfiles"

6 years agoSwitch to absolute paths in Dockerfiles 75/50475/2
Cédric Ollivier [Fri, 12 Jan 2018 06:29:05 +0000 (07:29 +0100)]
Switch to absolute paths in Dockerfiles

It updates functest-smoke and functest-restapi.

Change-Id: If4d48f8a6ead1b9b7726a9b7b7baf6b51340a926
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoDelete the updated Alpine image 83/50483/1
Cédric Ollivier [Fri, 12 Jan 2018 08:52:28 +0000 (09:52 +0100)]
Delete the updated Alpine image

It completes "Update Alpine to 3.7" [1].

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

Change-Id: If836a7ca80f5869c9ffeea65a1c0eacf1042ffab
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Build vnf and restapi containers for ARM"
Cedric Ollivier [Thu, 11 Jan 2018 16:56:57 +0000 (16:56 +0000)]
Merge "Build vnf and restapi containers for ARM"

6 years agoBuild vnf and restapi containers for ARM 95/50295/8
Delia Popescu [Tue, 9 Jan 2018 09:54:52 +0000 (11:54 +0200)]
Build vnf and restapi containers for ARM

The root cause of the problem was the installation
of unf_ext packet. The Gemfile.lock in
https://github.com/boucherv-orange/clearwater-live-test
asked for version 0.0.6 and this version was not found for arm.
When it tried to build the package, the conversion from int
to char error was thrown (issue reported here
https://github.com/knu/ruby-unf_ext/issues/15).

As now version 0.0.7.4 is selected, then the vnf docker
images are built without any other errors.

Gemfile.lock was updated in the original repo,
this fix enables vnf and restapi containers build for ARM.

JIRA: FUNCTEST-899

Change-Id: Id2c5fe82cb3705f58a8175fcf0a17f443e9b7d9d
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
6 years agoFix tempest error on Apex 89/50389/2
Linda Wang [Thu, 11 Jan 2018 03:02:18 +0000 (03:02 +0000)]
Fix tempest error on Apex

1. Reconfigure v3_endpoint_type only when it is not None. It is
   adminURL by default.
2. Ignore the setting of api_v2_admin, as it only applies if api_v2
   is set to True.

Change-Id: I48b166bdb274467519390af3c1aa5ebf30b38c6d
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Introduce Euphrates main changes"
Linda Wang [Thu, 11 Jan 2018 01:56:00 +0000 (01:56 +0000)]
Merge "Introduce Euphrates main changes"

6 years agoIntroduce Euphrates main changes 77/44677/6
Morgan Richomme [Tue, 10 Oct 2017 13:22:25 +0000 (15:22 +0200)]
Introduce Euphrates main changes

6 topics:
- functest framework
- requirement management
- python packages
- docker slicing
- docker builds
- REST API

Change-Id: Ib25a2df9f1a723861606355aea95f61d53495794
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoRemove the judgement of OS_ENDPOINT_TYPE 07/50307/3
Linda Wang [Tue, 9 Jan 2018 15:51:39 +0000 (15:51 +0000)]
Remove the judgement of OS_ENDPOINT_TYPE

Remove the judgement of OS_ENDPOINT_TYPE when configuring
[identity-feature-enabled] section in tempest.conf

Change-Id: Ia0f6926cdd6e063c953358df5108b537917418bc
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Config physical network when creating tempest net"
Cedric Ollivier [Thu, 4 Jan 2018 09:44:12 +0000 (09:44 +0000)]
Merge "Config physical network when creating tempest net"

6 years agoMerge "Configure physical_network when creating network"
Cedric Ollivier [Thu, 4 Jan 2018 09:43:05 +0000 (09:43 +0000)]
Merge "Configure physical_network when creating network"

6 years agoMerge "Remove the obsolete configs in config yaml"
Cedric Ollivier [Thu, 4 Jan 2018 09:42:36 +0000 (09:42 +0000)]
Merge "Remove the obsolete configs in config yaml"

6 years agoModify cmd for parser 11/49911/1
shangxdy [Wed, 3 Jan 2018 06:41:32 +0000 (14:41 +0800)]
Modify cmd for parser

The modification is related to https://gerrit.opnfv.org/gerrit/#/c/49649/

Change-Id: I51ec841da49dd05ee454896514a9e1b7761ee035
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
6 years agoRemove the obsolete configs in config yaml 03/49903/1
Linda Wang [Wed, 3 Jan 2018 03:58:28 +0000 (03:58 +0000)]
Remove the obsolete configs in config yaml

Change-Id: I389f3f4b09274529f92d7a74ebfb0cdd257c493a
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoConfigure physical_network when creating network 41/49641/3
Linda Wang [Tue, 26 Dec 2017 02:40:16 +0000 (02:40 +0000)]
Configure physical_network when creating network

When the network_type is vlan, configuring physical_network
and segmentation_id should be supported by snaps.

JIRA: SNAPS-252

Change-Id: I2d3270a82991230385fdc18889ed5c5e979672b5
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoDisable keystone v2 if keystone v3 is available 55/49755/1
Linda Wang [Fri, 29 Dec 2017 06:24:37 +0000 (06:24 +0000)]
Disable keystone v2 if keystone v3 is available

Change-Id: I9ae18ac6702b6bc1df80e5ff794307929e4aefb9
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Update Alpine to 3.7"
Linda Wang [Fri, 29 Dec 2017 03:33:51 +0000 (03:33 +0000)]
Merge "Update Alpine to 3.7"

6 years agoMerge "Execute feature command by subprocess directly"
Linda Wang [Fri, 29 Dec 2017 03:33:26 +0000 (03:33 +0000)]
Merge "Execute feature command by subprocess directly"

6 years agoUpdate Alpine to 3.7 41/49741/1
Cédric Ollivier [Thu, 28 Dec 2017 14:16:48 +0000 (15:16 +0100)]
Update Alpine to 3.7

It conforms with the last release [1] and Docker latest [2].

[1] https://alpinelinux.org/posts/Alpine-3.7.0-released.html
[2] https://hub.docker.com/_/alpine/

Change-Id: I731b455bd9eb9900c7794643b8605bf73a15726d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Clean base images only if 1 container was built"
Linda Wang [Thu, 28 Dec 2017 02:49:20 +0000 (02:49 +0000)]
Merge "Clean base images only if 1 container was built"

6 years agoExecute feature command by subprocess directly 49/49649/4
Linda Wang [Tue, 26 Dec 2017 09:17:13 +0000 (09:17 +0000)]
Execute feature command by subprocess directly

Change-Id: I77e86af4e96310c6520d743e4d16c9a7b2e9adf5
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoConfig physical network when creating tempest net 69/49669/3
Linda Wang [Wed, 27 Dec 2017 01:35:01 +0000 (01:35 +0000)]
Config physical network when creating tempest net

When the network_type is vlan, physical_network and
segmentation_id could be configured.
This also supports to config physical network when creating
rally net.

Change-Id: I9770968537c1509c5712eada66925a4bf8f6678c
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoMerge "Dynamic region name of juju cloud"
Cedric Ollivier [Mon, 25 Dec 2017 23:04:19 +0000 (23:04 +0000)]
Merge "Dynamic region name of juju cloud"

6 years agoClean base images only if 1 container was built 37/49637/1
Cédric Ollivier [Mon, 25 Dec 2017 22:46:26 +0000 (23:46 +0100)]
Clean base images only if 1 container was built

Change-Id: I0134082d2d150a6dc58e679f9ade81eb6c040266
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoClean Docker images after builds 01/48801/3
Jose Lausuch [Wed, 13 Dec 2017 14:51:23 +0000 (15:51 +0100)]
Clean Docker images after builds

Compared to the related Releng script, it only focuses on cleaning
images. It's considered out of scope to remove remaining docker
containers.

It doesn't force to remove images because base images (e.g. Alpine)
could be selected by other OPNFV projects too. It ensures O is
returned even if one image cannot be removed.

functest-core is removed at the end because all Functest containers
depend on it.

The script works well in a nominal building env. Any remaining
Functest images or containers must be removed by hand.

JIRA: FUNCTEST-898

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I72d8214b711680ec7958af1d427b23dee6337bf6
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoDynamic region name of juju cloud 29/49529/5
soumaya [Fri, 22 Dec 2017 06:13:42 +0000 (11:43 +0530)]
Dynamic region name of juju cloud

Region name in juju cloud has been made dynamic now, region name
will be added in cloud file from os environment variable.
It fixes the issues when runnit juju_epc vs Apex [1].

It also updates ubuntu images to xenial.

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

Change-Id: I9422af3086141cd40b99e6482883a7081f58c2ea
Signed-off-by: soumaya <soumaya.nayek@rebaca.com>
6 years agoAdd Docker build opts 75/49575/3
Cédric Ollivier [Sat, 23 Dec 2017 11:41:10 +0000 (12:41 +0100)]
Add Docker build opts

Change-Id: I91fcb833b6b6216338b4fcb888f093a2086264a7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd euphrates as a docker tag to the release notes 47/49547/1
Jose Lausuch [Fri, 22 Dec 2017 11:31:35 +0000 (12:31 +0100)]
Add euphrates as a docker tag to the release notes

Change-Id: I35080b3e701de6341926f86e8aa1910ef777f565
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
6 years agoUpdate cirros image to 0.4.0 59/49459/1
Michael Polenchuk [Thu, 21 Dec 2017 10:34:48 +0000 (14:34 +0400)]
Update cirros image to 0.4.0

ChangeLog: https://git.launchpad.net/cirros/plain/ChangeLog

Change-Id: Ic41bec08b9dbfa7f1a501d5ba18602ba455fb5d0
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
6 years agoEnable orchestra testcases for Daisy only 49/49449/2
Cédric Ollivier [Thu, 21 Dec 2017 08:56:55 +0000 (09:56 +0100)]
Enable orchestra testcases for Daisy only

The current testcases have several issues which limit the
possible successful runs to Daisy [1].

[1] https://jira.opnfv.org/browse/ORCHESTRA-17

Change-Id: Iecaf21738e19aae6a88171385f11afcffd28a348
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Get auth token when checking deployment"
Cedric Ollivier [Thu, 21 Dec 2017 08:45:29 +0000 (08:45 +0000)]
Merge "Get auth token when checking deployment"

6 years agoMerge "Remove logger_test_results"
Cedric Ollivier [Thu, 21 Dec 2017 07:23:18 +0000 (07:23 +0000)]
Merge "Remove logger_test_results"

6 years agoMerge "Suggest to pull manifests instead of arch tags"
Cedric Ollivier [Thu, 21 Dec 2017 07:22:42 +0000 (07:22 +0000)]
Merge "Suggest to pull manifests instead of arch tags"

6 years agoMerge "Remove openstack_[clean,snapshot]"
Linda Wang [Thu, 21 Dec 2017 01:54:28 +0000 (01:54 +0000)]
Merge "Remove openstack_[clean,snapshot]"

6 years agoSuggest to pull manifests instead of arch tags 15/49415/1
Cédric Ollivier [Wed, 20 Dec 2017 19:29:20 +0000 (20:29 +0100)]
Suggest to pull manifests instead of arch tags

Change-Id: I17d45782feb38946f9524859354f24d392b56f25
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoRemove logger_test_results 91/49391/1
Cédric Ollivier [Wed, 20 Dec 2017 18:19:20 +0000 (19:19 +0100)]
Remove logger_test_results

It was only called in Feature which the result is already printed
(see __str__()).

It also eases moving Feature to xtesting as it breaks the link to
functest_utils.

Change-Id: Ib72d651dc7d89598704ff4d52d8b1ecb2bdade5b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>