Commit Graph

12 Commits

Author SHA1 Message Date
Spyros Trigazis 1f81a4e5df Use keystone v3 for functional tests
* Update functional_creds.conf.sample
* and functional_creds.conf in post_gate_hook
* Update python_client_base to use keystone v3 credentials
* Get magnum_url from magnum.conf

Closes-Bug: #1474152
Change-Id: If1ce6e77396857fef68c5c288f0b1c7fecb0b4d4
2016-12-05 15:21:09 +01:00
maliki 07f9e027d5 Add insecure option in functional tests for SSL endpoints
This patch fixes the issue when functional tests are run
against a deployment that has https based endpoints.
The insecure option is not being passed when initiating
magnumclient or keystoneclient as a result we get SSL
error.

Change-Id: I35525917b96b64e57c984924c72b3c696949f67f
Closes-Bug: #1640341
2016-11-09 21:49:11 -08:00
Hongbin Lu 89db1b6495 Use the latest atomic image name
Closes-Bug: #1579571
Change-Id: Iecba9343cc57be3693f6c488649b00dc5897a009
2016-05-09 13:35:18 +00:00
Corey O'Brien 32f917c8d7 Switch to Atomic 23
Change the devstack image to the default Atomic 23 image.
Update templates not to rely on interface naming because the names
changed between Atomic 21 and Atomic 23 images.
Add a functional test to validate minion node registration.
Update docs to refer to a generic Atomic image.

Co-Authored-By: Hongbin Lu <hongbin.lu@huawei.com>

Implements: blueprint atomic23
Change-Id: Id67244e3f452b3c7c3c46fdabcca3a5c141a76c0
2016-04-02 18:17:42 -04:00
Deeksha c171aa12b6 Rename flavor name used in gate tests
A better description than magnum2 would be helpful as
we are creating a smaller vm.
So renamed m1.magnum2 to s1.magnum to indicate its a slave flavor.

Change-Id: Ibd74931e0b5b2ac98dc960b31aa2b64a721200ea
Closes-Bug: #1543338
2016-03-12 11:18:59 +05:30
Hongbin Lu dca02f1d98 Reduce memory consumption of gate tests
Recently, the gate jobs took too long to complete (between 2 to 8
hours). The reason is jenkins slave agent die during the test, which
cause the CI to re-start the whole test in a new VM.

The failure mainly occurred at magnum-api pipeline, but also occurred
at other pipelines. In term of distribution of test nodes, this
failure mainly occurred at OVH nodes, in which there is no dedicated
swap device. As a result, at OVH nodes, local disk is used for swap
when memory is over-consuming. It looks this leads to resource
starvation, which cause the failure.

This patch attempted to reduce the memory consumption of the gate
tests. In the api test, the number of worker nodes was reduced from
2 to 1. In all tests (api/k8s/swarm/mesos), the memory of worker node
was reduced from 1G to 512M.

Closes-Bug: #1542386
Change-Id: If7822d07f95ebc935a8763b92f038f10cf07b5ca
2016-02-09 14:05:19 -05:00
Hongbin Lu fed823f82a Document how to run functional test locally
Closes-Bug: #1513289
Change-Id: Id9fb51b886fb525f5e47be33c1b840473ced2d52
2015-11-05 16:46:54 -05:00
Eli Qiao a89a5a32ad Functional: Split python client functional testing case
This patch splits test_magnum_python_client.py to python_client_base.py
, test_magnum_python_client.py and test_k8s_python_client.py.

python_client_base.py: base class for python client testing.
test_magnum_python_client.py: common python clients testcases.
test_k8s_python_client.py.: k8s specified functional testing.

Futher, there would be swarm/mesos functional testing cases.

Partially implements: blueprint swarm-functional-testing
Change-Id: I1e3e89fd07f7dfe28baeefdc0558f986fd1376bf
2015-09-25 14:48:11 +08:00
Jenkins 76dacd8419 Merge "Functional tests with Tempest - BayModel CRUD" 2015-09-22 12:00:06 +00:00
dimtruck 87db63227e Functional tests with Tempest - BayModel CRUD
This patch will add functional test coverage for
baymodels.  It sets up tempest-lib and core
framework architecture with clients, models,
and data generator abstractions.

Partially implements: blueprint magnum-tempest
Change-Id: I9f4bf4293544ef1fe2a6b8aa209df49ddaabd04b
2015-09-21 16:27:07 -05:00
Ton Ngo 4bfed61fe3 Migrate to Kubernetes Release 1
Kubernetes Release 1.0 was announced at OSCON

A new Fedora Atomic image has been built with version 1.0.4 and
this series of patches will update the templates, scripts, documents
to work with the new image.

The api has also been changed from v1beta3 to v1 and the beta
api is no longer available, so the interface between Magnum and
Kubernetes master are updated as well in this series of patches.

This particular patch will bring up a V1 cluster with the
bay-create command.  Because the switch to the V1 API requires
all the code changes to be applied at once, this patch pulls
in portion of 3 patches together.  The changes include:

1. devstack plugin downloads the new image.

2. k8s conductor and other code calls the new V1 client and
k8s methods.

3. Configuration for k8s services and docker updated with
new parameters.

4. Minion registration and example code updated to V1.

5. Functional tests updated to V1.

6. Gate test setup points to the new image.

Co-Authored-By: Hongbin Lu <hongbin.lu@huawei.com>

Change-Id: I046931ad491e8b7ee45943852901eac5c3df913e
Partially-Implements: blueprint kubernetes-v1
2015-09-21 15:02:58 +08:00
Kai Qiang Wu(Kennan) 986aac0b3e Make functional test work with new tox env
The check-functional-dsvm-magnum gate job was failing due to the
functional tests not picking up valid OpenStack credentials.

Update how we aquire credentials -- fixes side effect of how tox 2.0
handles environment variables

Closes-Bug: #1455102
Change-Id: I56ecd8003594fd436874681670bb9ead19b95dea
2015-05-19 11:07:34 +08:00