Commit Graph

49 Commits

Author SHA1 Message Date
zhurong dc558104bd Remove congress and mistral functional integration tests
The Congress and Mistral functional integration tests has moved to
http://git.openstack.org/cgit/openstack/murano-tempest-plugin

Change-Id: I537f0173926a26cce00f404d2c23e40174491715
Depends-On: https://review.openstack.org/#/c/586761/
2018-07-31 00:38:52 +00:00
chao liu 3186a72942 use . instead of source.
Code conventions: Use “.” to source script files
When you have to source a script file, for example,
a credentials file to gain access to user-only or
admin-only CLI commands, use . instead of source.
See more:
http://docs.openstack.org/contributor-guide/writing-style/code-conventions

Change-Id: Ia823df50f65b26695458a509a0e0d94a4646afb3
2018-02-10 03:00:30 +00:00
zhurong 6e1dc58b8e Fix murano-congress-devstack-dsvm job
Change-Id: I2ecfef6e287c0a8adfbde7728de0c1393778a29a
2017-12-02 05:10:32 +00:00
Victor Ryzhenkin 66f310b227 Change Murano API detection in tests and fix tests itself
- Use 401 error to determine work of Murano API in shell via curl
- Change tempest parameters in utils
- Rename mistralclient.py to workflowclient.py due names conflict in
path.

Closes-Bug: #1614602

Change-Id: I91bdda91da929b183393c4210af86bce619a53ec
2016-08-22 19:02:09 +00:00
Nguyen Hung Phuong 1b847ff6c4 Fix typos in Murano files
Change-Id: I01995f63ff7e3989ad32b900dc5ce36738236955
2016-03-30 13:20:53 +07:00
Kirill Zaitsev 26455ee925 Cap pip to <8 for dsvm job
Also update hooks to use murano install_venv and update script to fix
all the typos

Co-Authored-By: Nikolay Starodubtsev <starodubcevna@gmail.com>
Co-Authored-By: Victor Ryzhenkin <vryzhenkin@mirantis.com>
Closes-Bug: #1536614
Change-Id: I17de28570d543d30e80d41113425e32b0f4c26b2
2016-01-21 16:24:06 +03:00
Victor Ryzhenkin f215c047ed Remove libs and libs usage from murano and murano hooks
- Remove devstack libs
- Remove libs usage in congress hooks

Change-Id: Ieeb76dcbe0ab953dba156413af0906bcd8cb6b45
Closes-Bug: #1508165
2015-12-10 16:21:29 +03:00
Jenkins 41067eca0b Merge "Remove libs and extras.d usage from gate hooks" 2015-10-21 13:46:06 +00:00
Victor Ryzhenkin c868846bd1 Adjust tempest config file path
- Add environment variable TEMPEST_CONFIG_DIR based on TEMPEST_DIR
for congress and mistral gate integration

Change-Id: Ifbed19cfb44146c3aef090bc64c15820f4374f3a
Closes-Bug: #1508242
2015-10-21 02:17:34 +03:00
Victor Ryzhenkin 7c43943a61 Remove libs and extras.d usage from gate hooks
- Remove libs and extras installation in gates.

This helps to suppress warnings by devstack scripts.

Change-Id: I103639942edd8084a1de9185db720ddaa025d975
Partial-Bug: #1508165
2015-10-21 02:07:33 +03:00
Victor Ryzhenkin af9b93a8da Remove mistral libs installation from test-hooks
After the https://review.openstack.org/#/c/225960/ landed, we need to
remove mistral libs installation to devstack.

Change-Id: I1824f9dd026fdc016d5a34292542d13d393ba566
Related-Bug: #1497913
2015-09-21 23:51:53 +03:00
Victor Ryzhenkin 11f0aeeb5e Remove tethering between func and api tests and use venv for tempest
In this patch removed tethering between functional tests and api tests
which blocks test runs when tempest installation uses venv.
Also, in this patch implemented tempest venv using for main gate job,
which gave to main gate a beautiful stability against version conflicts.

Change-Id: I577399552341f4b8085637e5dab975ccdd28cd2b
Closes-Bug: #1476759
2015-09-01 22:03:20 +03:00
Victor Ryzhenkin a823f2848a Move congress/mistral integration related tests to separated dir
- Move congress/mistral related integration tests to 'integration' dir in
murano/tests/functional
- Change launch test shell script considering to change above.

Change-Id: I35df5de320134280aaa022a4da8e0ee76546eb7c
Closes-Bug: #1490952
2015-09-01 15:13:01 +03:00
Ruslan Kamaldinov d80ad455fc Removed CLI tests from repo
CLI tests moved to python-muranoclient. It is safe to remove them
from this repo now.

Change-Id: I5f740817d5eac5bfba5ef5c52be273f1d5d68765
2015-05-13 15:29:05 +03:00
Ruslan Kamaldinov c4172d652d Update from global-requirements.txt and fix cli tests
Commit ID from openstack/requirements:
40b86ac9cb707ff97f5b140d4f5fe5f1dcbbb2ed

There are a few changes in how CLI client is setup in functional
tests after tempest-lib updated to 0.5. A temporary workaround
is introduced to overcome lack of current configuration of CLI
client tests. Next step - move CLI tests to python-muranoclient
since this is a common direction in community.

Change-Id: I059be13fc0af4a0faec917322b4f82d0f4a81117
2015-05-09 16:39:14 +03:00
Filip Blaha 49579168e9 Mistral integration functional tests - scripts
Shell scripts preparing dsvm environment for mistral integration tests.
Tests require devstack with Mistral installed.
Jenkins job https://review.openstack.org/#/c/150401/

Partially Implements blueprint murano-mistral-integration

Change-Id: I784e63a5f913d5a026b03571bd0dfbf79767fcc2
2015-02-26 14:50:15 +01:00
Filip Blaha 1e8113866d Policy enforcement functional tests - scripts
Shell scripts preparing dsvm environment for policy enforcement tests.
Tests require devstack with Congress installed.
Some original scripts where changed to reuse functionality.
Jenkins job https://review.openstack.org/#/c/150401/

Partially Implements blueprint congress-support-in-murano

Change-Id: Ib3c26168043f74d4e7ec76f3557f8857cf4304a4
2015-02-19 10:22:46 +01:00
Viktor Ryzhenkin 27c39337a9 Fix for tempest tests
Fixed run_tests.sh after a change in devstack

Change-Id: If89698acadc43566f36b4c7b4dbc6caf96739390
2015-02-10 19:08:30 +03:00
Sergey Murashov efd90a7036 Add simple smoke tests for Murano CLI client
Add the following tests:
- Check environment list
- Check package list
- Check category list

Change-Id: Ib29f3e555ed79c5c7350cac0333e0473e91ab389
Implements: blueprint cli-simple-read-only-tests
2014-08-04 15:29:36 +04:00
Ekaterina Fedorova 26f486cc1d Move and rename functional tests
Now, functional tests would be located in murano/tests folder

Group all unit tests to the corresponding folder under tests

Run only unit tests in Opentack gate

Change-Id: I5ebea265fd7cdef7e77a47eedae40d23f91638d0
Partly-Closes-Bug: #1349383
2014-07-29 22:29:27 +04:00
Jenkins 3befd0e5ff Merge "Add failure messages in engine functional tests" 2014-07-24 09:59:18 +00:00
Sergey Murashov c801531ea5 Fix tests which checks stack deletion
Change-Id: I78a00afa257c487cc8cd6923a6b16c42f3c18859
Closes-bug: #1346798
2014-07-22 13:50:13 +04:00
Jenkins e82c6c5bc1 Merge "Inherit api tests from tempest base test class" 2014-07-20 11:14:12 +00:00
Sergey Murashov 2ed2016330 Add failure messages in engine functional tests
Change-Id: Ia8dfeb906a441efcb5d80f220a372dc01fa2a244
Closes-bug: #1337742
2014-07-16 16:56:24 +04:00
Sergey Murashov 724cdac4ff Inherit api tests from tempest base test class
Functional api tests based on tempest and would be right
to inherit from tempest base test class

Change-Id: Idbf89867968c4846fc9947bd27f3f714384ec47b
Closes-bug: #1342026
2014-07-16 13:55:26 +04:00
Serg Melikyan 9cb1b2e203 Delete Heat stack when environment is deleted
Added new action 'destroy' to io.murano.Environment that handles
deletion of Heat stack when environment is deleted.

Note: changeset include changes in io.murano package, during update
this package should be re-uploaded to application catalog

Closes-Bug: #1321487
Change-Id: I92268b90cb762d58669208aef3f5fce85e06d355
2014-07-11 16:19:10 +04:00
Serg Melikyan 4da6c43dd2 Fix stack inconsistency after app deletion
To expose IP addresses of Instance in MuranoPL we place new entry to
outputs section in Heat template that reference corresponding
OS::Nova::Server resource. During clean-up stage, if some application
was deleted from environment, we remove corresponding OS::Nova::Server
resource, but reference in outputs section stays.

Stack with reference to resource that is not present in template is
invalid - environment deployment fails.

This change add code that removes references to OS::Nova::Server when
corresponding Instance is deleted.

Attention: this change fix issue that can break murano-ci gate

Closes-bug: #1339630
Co-Authored-By: Stan Lagun <slagun@mirantis.com>
Change-Id: I74d32034969dd7f554d74fac87f407388e52dd7e
2014-07-11 16:13:11 +04:00
TimurNurlygayanov 34440a05d9 Fixed issues with port checks timeout
Sometimes we can see that integration tests failed
because some application started with delay and we
should perform several attemps for checks of port
availability.

Change-Id: I073efd905646ed8713135a721270f9395248c502
Closes-Bug: #1339697
2014-07-09 19:11:26 +04:00
Ruslan Kamaldinov 414fb984c5 Fix pep8 issues
Apparently functional tests code caused oslo.config to try to parse cli
arguments. After that openstack/common/log.py tried to register cli opts,
but failed because cli opts can't be registered after cli args were parsed.

This patch moves config initialization to a separate method to prevent
cli args from being parsed on the load time

Change-Id: If40409b306a7aabdbd3cf467319a1574b440a690
2014-06-29 00:25:02 +04:00
Sergey Murashov 3b533ec04a Add port checks after deployment success
Implements blueprint: additional-checks-for-murano-engine-tests

Change-Id: Ia993d659bd4f6052efe9ac4bec25116aca11a1f9
2014-06-25 12:52:22 +04:00
Sergey Murashov 64c0f52751 Fix issue with incorrect uploading packages
Fixed issue with incorrect uploading packages
in engine's functional tests setUpClass.

Change-Id: I0748d9d96c1c692109f39318a64de2ca8a71a94e
2014-06-10 10:15:53 +04:00
Sergey Murashov a265520b71 Add new deployment tests
-Add test which checks postgresql deployment
-Add test which checks tomcat deployment

Change-Id: Ie02c7eac383d232bed0c03481a0833b6a5edea93
2014-06-05 17:27:51 +04:00
Sergey Murashov ab330be463 Add initial tests for application deployments
* Tests for telnet application deployemts
* Tests for apache application deployemts

Change-Id: I6c36e39194cad2fc3e00f7636f4836b869646ab6
2014-05-27 12:33:20 +00:00
Ruslan Kamaldinov 86a4c4710d Rename muranoapi to murano
Partially-implements blueprint: rename-murano-api-to-murano

Change-Id: I2d7f52ef4073bce800cedc77f81f5d242c4d5d98
2014-05-27 15:14:44 +04:00
Alexander Tivelkov dfe024d2d3 Removed version prefix from the endpoint urls
The service endpoint being registered in Keystone should not contain the version suffix,
as the different versions of an API should co-exist at the same endpoint

Partial-Bug: #1318794
Closes-Bug: #1320937
Change-Id: I853dfa30d1ad3538fad55826bb498dedae3e14f6
2014-05-22 14:33:39 +04:00
Steve McLellan 92b3d1866f Fix credentials passed to tempest
Tempest auth Manager recently changed to enforce the use of
Credentials objects in its public interface. Change lets tempest
take the CONF.identity defaults and decide how best to authorize.

Change-Id: If116d8cef145c310bd3a7077b3ae9780e705dc89
Closes-Bug: 1317549
2014-05-09 09:26:00 -05:00
Alexander Tivelkov 3e7eaee594 Basic Security Groups implementation
Change-Id: I6a7f9953206f28b2b1fa6223bcceab60ddaadb13
Closes-bug: #1308623
2014-05-05 15:08:22 +04:00
Sergey Murashov 5fa2e9f0c3 Add negative tests for murano repository
Add negative tests which expect Forbidden(403 status code)

Change-Id: I41c09758772e2dae8d830152182cc56563578710
2014-04-28 10:42:59 +00:00
Sergey Murashov e09de3adf1 Add negative tests for murano repository
Add negative tests which expect NotFound(404 status code)

Change-Id: I5b79a7a3d2cb2f077642f437a8ba4f5486fe87d4
2014-04-28 06:31:13 +00:00
Sergey Murashov 809ea6f700 Changed tests for murano repository
Change base methods for actions with packages
and add tests for this actions

Change-Id: Ib6af8933c18ea9670a388dca53f1c55a92180208
2014-04-25 10:22:34 +04:00
Ruslan Kamaldinov 2e1785a61b Fix Murano gate job
There were two patches which broke our gate:
1. https://review.openstack.org/#/c/80690/
   This one forces Devstack installation to fail if a project has dependencies
   not listed in the global-requirements file. Fix description:
   Devstack has two functions to install a project:
    * setup_develop
    * setup_package

   The first one does the requirements check and fails on Murano installation.
   The latter one doesn't perform any checks (it is called internally from the
   first function right after the requirements check was performed). We will
   use the latter one until all Murano requirements match global-requirements.

2. https://review.openstack.org/#/c/85032/
   This one introduced a nosetests plugin for MuranoPL. Somehow (I have no
   idea how) it breaks Tempest run in the gate. It causes our functional tests
   to behave wierdly, not recognise tempest config file and throw exception:
   "DuplicateOptError: duplicate option: use-syslog", see complete log at
   http://logs.openstack.org/13/85113/7/check/gate-murano-devstack-dsvm/4939248/console.html

   Fix description:
   Temporarily disable nosetests plugin until we figure out how to enable
   it and avoid Tempest problems in the gate.

Change-Id: I369f91fdabdc887d5ff3fb6e16d85a4d12de9f03
2014-04-07 10:43:19 +00:00
Sergey Murashov fe627d1bbb Refactor murano functional tests
Change-Id: I5f60d47bea135e25a5cee022187f499bf177439c
2014-04-02 10:22:40 +00:00
Stan Lagun e006eaf133 Adoption of pre-0.5 environment API to MuranoPL format
This is transitional API with minimum possible changes from API of Murano 0.4

Change-Id: Ic29e4cdbae13c6fdc388c005719aa4235bdccfa6
Closes-bug: #1297791
2014-04-01 17:38:12 +04:00
Sergey Murashov cd62190c35 Add repository API tests
Change-Id: I7cd0e2f6164facf70a9ffce56dc215955a82be83
2014-03-27 18:35:48 +04:00
Sergey Murashov dc6d02e342 Add services tests
Partly-Implements: blueprint murano-api-devstack-gates

Change-Id: I88cb5f1602951a0948991f64c217075493e6eda0
2014-03-21 14:54:30 +04:00
Sergey Murashov 022aa36830 Added sessions tests
Partly-Implements: blueprint murano-api-devstack-gates

Change-Id: I0c7c8d09c81a30ff01594a32ee6cf8794da298af
2014-03-20 16:23:56 +04:00
Sergey Murashov fc8b256f6f Added environments tests
Change-Id: I4e343f44dd2ad405ee1e9050310f7836bf3d8936
Partly-Implements: blueprint murano-api-devstack-gates
2014-03-20 14:23:39 +04:00
Ruslan Kamaldinov e2107ae5ee Added base for Tempest tests in dvsm jobs
Change-Id: I0410f83c87ae2f020393501100ea82d5a37eb064
Partly-Implements: blueprint murano-api-devstack-gates
2014-03-17 15:45:18 +00:00
Ruslan Kamaldiniv 785872573e Added Devstack integration
Note:
this patch enables only murano-api service.

Change-Id: I5f072b65c48ca3eebf244075491f058f8f50efad
Partly-Implements: blueprint murano-api-devstack-gates
2014-03-17 15:25:17 +00:00