Commit Graph

9 Commits

Author SHA1 Message Date
Chandan Kumar 53fa3accea Remove intree magnum tempest plugin
* It removes magnum tempest plugin reference in favour of using
  newly magnum-tempest-plugin.
* We removed tempest tests resides under functional.api.v1.test-*
  files as they are tempest tests and keeping the rest as they are
  used by functional tests.

Depends-On: Ibdddd26da9cfb0d08c2977660320b2c052d7261b
Change-Id: Ida2fa1ef5880ebead787e3b27ac7ebf5aa498f62
2017-12-14 15:48:47 +05:30
Hongbin Lu b3de59206d Create a base class for tempest tests
The tempest tests (gate-functional-dsvm-magnum-api) requires
importing modules that other tests don't require. Right now, we
import tempest modules in the common base class, which is
undesirable. This commit splitted tempest codes out so that other
tests don't need to import tempest modules.

Change-Id: I4871acdc27d66e098e2321809d7d31d4e8416abf
Related-Bug: #1596778
Closes-Bug: #1553035
2016-07-28 17:59:03 -05:00
Eli Qiao d560cbddff Replace tempest-lib with tempest.lib
tempest-lib is deprecated for future bug-fixes and code changes
in favor of tempest.

On gate testing, we installed tempest from source code so remove
it from test-requirements.txt.
Closes-Bug: #1553047
Change-Id: I405ad31e1c218868c6dbffb967a755163674fc80
2016-05-03 02:12:30 +00:00
dimtruck 6ccda1ad10 Add magnum certificate api tests
This patch will add cert API test for signing and showing
certificates.

The tests for certificates are integrated into test_bay
tests in order to reuse an already existing bay for
cert testing.  As a side effect, this patch also
combines update bay test with create, list, and delete
to minimize the time spent waiting on bay create.

Implements: blueprint magnum-tempest

Change-Id: Ifbb4c779376fa401ca2538aba5097f7af8b4973e
2016-02-12 09:47:41 -06:00
houming-wang 7ff50ef310 Enable test_magnum_service_list_needs_admin
After this patch Ie5a7d138cdb8b226686c189ae86f251c0a1329c8 was merged.
Non-admin user do a 'magnum service-list' will raise a 403 exception.
We can enable this test_magnum_service_list_needs_admin now.

Change-Id: Ic2a0b7c72a76e3561e9f36c801f3039971321b5b
Related-Bug: #1520311
2016-01-14 20:23:02 +08:00
dimtruck a66a532c99 Add magnum bay api tempest tests
This will add magnum bay CRUD tempest tests

The timeout to create bays is set to 10 minutes,
which may need to be tweaked based on how long it
takes to spin up a bay.

Implements: blueprint magnum-tempest

Change-Id: If4a34d7fd317e10b55d5f07bd51ffe37e6d4bc20
2016-01-11 14:28:13 -06:00
dimtruck 5dc3211b71 Swithc to using dynamic credentials in tempest tests
Switch to using DynamicCredentialProvider, which
provides a unique non-admin user per test case, making
it possible to functional test in parallel.

Change-Id: I6bb5d493bb01d0dd2b4cd092f87f111b13b1fe02
2016-01-05 16:35:20 -06:00
Bertrand Lallau 6b97b9a7cd Fix argument order in assertEqual to (expect, obs)
assertEqual expects that the arguments provided to it should be
(expected, observed). If a particular order is kept as a convention,
then it helps to provide a cleaner message to the developer if Unit Tests
fail. There are several Unit Test files where the arguments for assertEqual
have been swapped.

Closes-Bug: #1259292
Change-Id: I17930c8ba8168baba9baddbdb7a54d54497f6a6d
2015-10-26 21:01:02 +01:00
Surojit Pathak 3eba5b3969 Functional tests for magnum service
Adding functional tests for 'magnum service-list'. This ensures
end-to-end working of CLI/API/DB/RPC/CONDUCTOR for this feature.

Change-Id: I0bbf45a799cca232484ed7f3652b14692e47daf2
Closes-bug: #1501002
2015-10-09 23:05:52 +00:00