Use docker image 'alpine' (instead of 'cirros') to avoid conflict
with other tests.
Closes-Bug: #1909454
Change-Id: Idec49b2bef2a2b4a91b301aa1a1a64408511a36e
tempest.Manager has been deprecated for more than 4 years already
and will be removed by [1].
Tempest plugins are expected to consume
tempest.lib.services.clients.ServiceClients directly.
[1] https://review.opendev.org/c/openstack/tempest/+/767628
Change-Id: I84afb611cb994ce0ef5eaa94fd14612d00327182
After introducing the CNI network driver for docker, there are
some delay for container to print out the logs.
This commit modifies the relevant tests to accommodate such delay.
Change-Id: I9a1eddadc0e9729a385713da314ebd5285107850
Move "/bin/sh -c" from command to entrypoint which aligns with
the common practice.
Since entrypoint is supported since api version 1.40, we keep
the old test for testing api version earlier than 1.39.
Change-Id: I3d85fe16f9d992efb2365ec6c78f08323d5950d1
After a capsule is successfully created, iterate each containers
of this capsule and verify its status.
Depends-On: https://review.opendev.org/#/c/730513/
Change-Id: I862ce25f0072724870462a6f5bc9633ac66cea4f
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I16995f9237168d16c834662876683760127aabb3
There are some tests requiring glance service. If glance service
is not available, we want to skip those tests instead of failing
them. The following are the affected tests:
* test_commit_container
* test_run_container_with_image_driver_glance
Change-Id: Iee1f53c905863eb842535090a2bb67c3babf9b05
Tests for verifying docker containers is removed from tempest
test suite and re-introduce in fullstack tests.
This is because tempest tests are supposed to be a pure API tests.
Touching docker containers are beyond the scope of tempest tests
so we split them out.
Depends-On: https://review.opendev.org/#/c/658702/
Change-Id: I5eb04993f39a4098cde4293fccd07f8458a1cd5d
This assertion doesn't work well in multinode gate. This commit
removes them temporarily. Later, we will revisit this logic.
Perhaps, we can re-introduce it in a non-tempest pipeline.
Change-Id: I299ae26ba6de5ed438579dd73d59416a54b0be98
Verify several neutron port attributes when the port is created,
when the port is bound to a container, when the container is deleted.
Change-Id: Ic33cbe2b5a3259718562b510344cd1b537fedde1
We are going to limit users who have admin privilege to access
this field. This commit removes this field from tempest test.
Change-Id: I02438b18c7bf852788f6842e0889acff9cc19ed7
Starting from API version 1.32, the capsule deletion become asynchronized.
After issuing a delete request, we need to continuely check the status
and wait for the deletion to be completed.
Change-Id: I963ee2ded063417dbc4f25705adf39b977fc5171
As we will introduce a new API version 1.32, existing capsule test suit
needs to be updated. This commit skips the existing capsule test suit
unless the API version is 1.31 or lower. A follow-up patch will introduce
a new test suit for API version 1.32 or later.
Change-Id: I9ab335e652f396e039dc9197c51abc4130b5a3c6
Introduce a method 'create_port' in base test class.
This allows subclass reuse the port creation logic.
Change-Id: Ib5ed02b765f22f9231d1d380152ab80478412351
Starting from API version 1.27, there is an API to delete docker
network. This commit modifies the tests to use this new API.
Depends-On: https://review.openstack.org/#/c/615402/
Change-Id: Ib979d911a15818bdadce025db569c24c5dbb49e0
Right now, both container and capsule tests are doing docker
network cleanup at the end of the tests. This commit moves
the cleanup logic to a common base class so that the code becomes
more DRY.
Change-Id: I9320f73f68b50954e57a1b9f0e3cc01c53ba102a
Currently, the container test cases requires API version 1.20
or higher. This commit adds legacy test class to cover
API version 1.19 or lower.
Change-Id: I5e5f23ceab5438f6025beb9dc6ac1ffebd33f9a9
Add a test case to run a container with cinder volume dynamically
created. Assert the volume is actually created in cinder and
it is automatically removed when the container is deleted.
Depends-On: https://review.openstack.org/#/c/606613/
Change-Id: I4535da25c56d7e969b5deac7ca848790889fa661
Related-Bug: #1791469