Commit Graph

1376 Commits

Author SHA1 Message Date
Andrea Luzzardi 5d10f47b32 integration helpers: move the docker_ functions together
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 23:17:29 -07:00
Andrea Luzzardi b4af7acd83 integration: Run tests using docker master.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 23:17:29 -07:00
Andrea Luzzardi 3bb37e671a integration runner: Use the same CLI as the one available in the image.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 23:17:29 -07:00
Andrea Luzzardi 2ba8acbaca integration: Ensure the client and server are running the same version.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 23:17:29 -07:00
Andrea Luzzardi 86bf53a504 integration: Support using a different CLI.
- `docker` will now use the CLI defined in $DOCKER_BINARY
- In order to communicate with the host docker, one must use
  `docker_host`

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 23:17:29 -07:00
Andrea Luzzardi fdf74cef2a Merge pull request #465 from chanwit/test-create-cluster-on-hub
integration: add a test to verify creating cluster on hub
2015-05-04 22:00:37 -07:00
Chanwit Kaewkasi 6ecf51f458 add integration test for token discovery
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-05-05 11:44:47 +07:00
Chanwit Kaewkasi 89fe217e12 use retry to wait for swarm join
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-05-05 11:44:47 +07:00
Andrea Luzzardi cecfa12a59 Merge pull request #713 from aluzzardi/integration-skip-broken
integration: Fix tests running in Jenkins
2015-05-04 20:45:14 -07:00
Andrea Luzzardi 4b3bc9b35b integration: Fix tests in jenkins.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 20:35:56 -07:00
Victor Vieux 30f88f9777 Merge pull request #710 from vieux/remove_unused_fields
remove unused fields from node
2015-05-04 19:00:28 -07:00
Alexandre Beslic 3338a12295 Merge pull request #712 from aluzzardi/integration-aufs
integration: Use aufs by default.
2015-05-04 17:39:01 -07:00
Alexandre Beslic ebcf4f7272 Merge pull request #711 from aluzzardi/integration-fix-dockerfile
integration: Added missing dependency to Dockerfile.
2015-05-04 17:33:51 -07:00
Andrea Luzzardi 6df673372f integration: Use aufs by default.
The problem has been fixed in the dind images.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 17:29:00 -07:00
Andrea Luzzardi a2862280f1 integration: Added missing dependency to Dockerfile.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 17:25:02 -07:00
Victor Vieux 9dfd82e5ff remove unused fields from node
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-05-04 16:56:55 -07:00
Alexandre Beslic ae77390be2 Merge pull request #709 from aluzzardi/integration-fix-attach
fix attach integration test
2015-05-04 15:41:12 -07:00
Andrea Luzzardi af09d0c432 Merge pull request #704 from jimmyxian/bug-fix-tag
bug fix: add return when not found image
2015-05-04 15:29:39 -07:00
Andrea Luzzardi 97aad7e60c fix attach integration test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 15:18:03 -07:00
Andrea Luzzardi 851e978dcd Merge pull request #696 from aluzzardi/integration-in-docker
integration tests: Support for running within Docker.
2015-05-04 14:54:08 -07:00
Andrea Luzzardi d41e7c89b2 Merge pull request #708 from aluzzardi/integration-dont-build
integration tests: Don't build binaries anymore, it's too slow.
2015-05-04 14:52:01 -07:00
Andrea Luzzardi c236e2f11d integration runner: run tests on a fresh binary.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 14:46:00 -07:00
Andrea Luzzardi 2600c8823b integration tests: Support for running within Docker.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 14:46:00 -07:00
Andrea Luzzardi 4ac0a43753 travis: Lint all shell files.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 14:46:00 -07:00
Andrea Luzzardi f50af455fa integration tests: Don't build binaries anymore, it's too slow.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 14:20:28 -07:00
Andrea Luzzardi aa98a1d5c3 Merge pull request #702 from aluzzardi/integration-fix-exec
DO NOT MERGE - Integration fix exec
2015-05-04 13:44:35 -07:00
Andrea Luzzardi 3cc8a2b5fd Merge pull request #703 from aluzzardi/integration-image
integration: Use the brand new dind image.
2015-05-04 13:43:38 -07:00
Andrea Luzzardi b27e9896bc Merge pull request #700 from aluzzardi/integration-drivers
integration tests: run with native/vfs by default.
2015-05-04 13:43:16 -07:00
Andrea Luzzardi ad98b865b7 integration: Run engines with --net=host.
Since we were mapping the port back to the host anyway, this doesn't
change anything.

However, it does fix `docker exec`.

Fixes #658

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-04 13:36:36 -07:00
Xian Chaobo f802da02d7 bug fix return when not found image
Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
2015-05-04 04:48:44 -04:00
Andrea Luzzardi 24aaaa029e integration: Use the brand new dind image.
We now have dockerswarm/dind:
- Much more lightweight.
- Exists in every version since Docker 1.0.0.

Depends on #700 as it cannot run on aufs.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-03 19:20:47 -07:00
Andrea Luzzardi 671ddc8feb integration tests: run with native/vfs by default.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-03 19:08:02 -07:00
Andrea Luzzardi 92f8c8ec60 Merge pull request #693 from aluzzardi/integration-retry
integration: Add the re-usable "retry" helper.
2015-05-02 16:17:38 -07:00
Victor Vieux a6ad9a073a Merge pull request #690 from aluzzardi/lint-tests
travis: Lint test files (ensure they are not space indented)
2015-04-30 22:32:48 -07:00
Andrea Luzzardi f9a03c62f1 integration: Add the re-usable "retry" helper.
Retry was kind of extracted from wait_until_reachable. The goal is to be
able to wait for a command to succeed, or fail if it doesn't succeed
after a defined number of attempts.

Indirectly improve the error logging: the output of the retry command
won't show up unless it constantly failed.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-30 20:09:54 -07:00
Andrea Luzzardi 85b4163f69 travis: Lint test files (ensure they are not space indented)
Fixed tab/spaces for existing integration tests.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-30 17:31:14 -07:00
Andrea Luzzardi b39e023e03 Merge pull request #673 from vieux/labels_storage
store constraints and affinities as labels
2015-04-30 14:36:23 -07:00
Victor Vieux f53b5df834 store constaints and affinities in labels
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-30 14:33:21 -07:00
Alexandre Beslic 5872d4c7b0 Merge pull request #688 from aluzzardi/fix-integration
fix integration test build of swarm
2015-04-30 14:32:34 -07:00
Andrea Luzzardi d978dcbb9c Merge pull request #675 from snrism/dependency_integration_test
Add Integration test for dependency filters
2015-04-30 13:49:46 -07:00
Sriram Natarajan 1b7d8ce5d3 Add Integration test for dependency filters
Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com>
2015-04-30 20:37:53 +00:00
Andrea Luzzardi 29deacba2f fix integration test build of swarm
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-30 13:28:13 -07:00
Victor Vieux 6eceffacf9 use cluster.ContainerConfig
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-30 11:44:25 -07:00
Andrea Luzzardi 3e8d48f98e Merge pull request #655 from jimmyxian/add-cp-export-history-save-integration-test
Add cp/export/history/save integration test
2015-04-30 11:39:33 -07:00
Andrea Luzzardi e7cfa95b39 Merge pull request #637 from jimmyxian/add-commit-exec-rename-test
Add commit/exec integration test
2015-04-30 11:36:54 -07:00
Victor Vieux 24ea07f9ec Merge pull request #685 from aluzzardi/fix-integration
Fix integration test cleanup.
2015-04-28 16:52:54 -07:00
Andrea Luzzardi 246bee3b62 Merge pull request #684 from vieux/private_pull
support pulling private images from docker pull
2015-04-28 15:48:20 -07:00
Andrea Luzzardi b71d5fa19c Fix integration test cleanup.
- Do not run swarm using a function since it forks a subshell and we end
  up killing it instead of the binary.
- Build a binary at each run instead of using go run. This is faster and
  fixes the cleanup for the same reason as the subshell.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-28 15:47:25 -07:00
Victor Vieux e5f4243dad support pulling private images from docker pull
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-28 11:17:44 -07:00
Victor Vieux 7b459eb4ba Merge pull request #683 from icecrime/fail_fast_on_create
Fast exit from create on invalid command-line
2015-04-28 10:52:20 -07:00