Commit graph

17 commits

Author SHA1 Message Date
Martin
7f114046e2
feat: Update used goversion to 1.18. (#449) 2022-09-01 15:35:14 +02:00
Martin
401ff5e8ad
fix: Correctly handle build files and context for docker_registry_image (#398)
* tests: Add file_permission test which is failing for now.

* tests: Add whitelist_dockerignore test which is failing for now.

* fix: Various issues with docker_registry_image build process.
2022-07-11 15:18:55 +02:00
Marcel Meulemans
af072b22aa
fix: compare relative paths when excluding, fixes kreuzwerker#280 (#397) 2022-07-07 15:08:57 +02:00
renovate[bot]
5fb3f23792
chore(deps): update golang to v1.17 (#272)
* chore(deps): update golang docker tag to v1.17
* chore: update to golang 1.17

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-09-07 14:13:40 +02:00
Manuel Vogel
b759b8f2c9
fix(registry_image): consider .dockerignore in image build (#240)
* fix(registry_image): consider .dockerignore in image build
* test: for respecting dockerignore in registry image build
2021-07-07 10:35:18 +02:00
Manuel Vogel
0588c2071b
chore/refactor tests (#201)
* chore: format test configs for datasources

* chore: outlines load test config helper and structure

* docs(contributing): add command for resouce tests

to have an example of the regex

* refactor: move container test configs into separate files

* fix: add insecure_skip_verify for image pulls

to fix the local test setup with invalid certs

* chore(ci): remove insecure registry adaption

* chore: regenerate website

* chore: update gitignore for scipts/testing dir

* fix: replace nodejs services with go versions

* fix: move testing program versions in separate files

* test: reactivate flaky test from travis

* chore: fix linter on all go files

* fix(linter): testing go servers

* chore(ci): add env for go version

* chore(ci): name workflow steps

also moves description of available docker versions in to acc dockerfile

* Revert "test: reactivate flaky test from travis"

This reverts commit b02654acc4d6b7d02c8f3ba090e6a3f248741b10.

* docs: fix provider-ssh example

* chore: use alpine als final image for tests

* refactor: move test configs from folder into testname.tf files

* refactor: image delete log is now debug and indented

* refactor: image test config into seprate files

* refactor: move network test config into seperate files

* refactor: move plugin test config into seperate files

* chore: rename registry image test file

* refactor: move registry_image test config into seperate files

* chore: format secret test configs

* refactor: inline volume test configs

* fix: remove unused volume label test function

* refactor: move service test configs into seperate files

* test: reactivate and fix service test

* chore: simplify insecure skip verify add to http client

* chore(ci): debug into service test

* chore(ci): add testacc setup

* chore: format tf config for provider test

* chore(ci): add debug output for config.json

* fix: check service auth for emptyness

* fix: remove re-read of provider auth config

because the bug occured only in CI as the meta object might be GCd

* test: pass auth to service instead of provider

* chore: reactivate all acc tests

* test: outlines service inspect json check for full spec

* test: add service inspect json checks

* test: finish service inspect json checks

* chore(service): move test helper to end to of the file

* chore: move mapEquals to test helpers

* test: add json inspect for config

* chore: add debug inspect log for plugin, secret and volume

* test: add json inspect for secret

* test: add json inspect for image

* test: add json inspect for network

* test: add json inspect for plugin

* test: add json inspect for volume

* test: inline ds plugin test configs

* test: inline network configs

* test: move ds reg image configs into separate files

* test: reactivates container upload checks

* chore: adapt issues ref from old to new xw repo

* fix: reactivate network ingress test

and provide helpers for removing the default ingress network and leaving the swamr

* docs: rerun website gen

* test: fix reg image build and keep test

* chore: add name to todo

* chore: move ds network and plugin specs to file

* chore: format provider test spec

* chore: use simpler error message for empty strings
2021-05-31 16:11:49 +09:00
Lexy2
96a6a8dbee
fix: test spaces for windows (#190)
* fix running tests in directories with spaces
* REGISTRY_STORAGE_DELETE
* Updated Windows testing scripts

Co-authored-by: Zhitenev-Lexy <Zhitenev.Lexy@bcg.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-05-11 10:00:02 +02:00
tanis
8b617bd690
feat: add properties -it (tty and stdin_opn) to docker container
Closes #120
2021-01-18 09:00:26 +01:00
edgar poce
6a3c615a30 added docker_registry_image 2020-03-24 16:48:49 -03:00
Manuel Vogel
a6fdf4c2a6
Fixes for image pulling and local registry (#143)
Multiple fixes for handling private registries and login credential retrieval on OSX.

- Fixes check for image locally before pulling it: #24
- Fixes image prefix workaround: #120
- Fixes passing of the `--with-registry-auth` flag: #77 
- Fixes docker registry credentials in osxkeychain: #125
2019-05-26 11:42:53 +02:00
Radek Simko
82a52bc0d8
tests: Simplify Dockerfile(s) 2019-03-05 08:20:44 +00:00
André Caron
064d2a96d1 Add support for running tests on Windows (#90)
* Add batch file clones of the unix shell scripts
* Update go-winio
* Document procedure for running tests on Windows
2018-09-28 16:18:48 +02:00
Manuel Vogel
dc824c1030
Feat/swarm 4 new resources (#40)
Adds docker swarm features to the provider for the Docker Engine 17.09.1 and API Version 1.32. 

The spec is close to the API. By default, the swarm services are fire and forget. A converging config implements the features of the docker cli to ensure a service and all its replicas are up and running. Furthermore, service can have configs, secrets, networks, mounts and be added to a network.
2018-05-16 18:00:04 +02:00
Manuel Vogel
9e643ac13d
added 3rd test image and made build more generic 2018-04-09 20:31:09 +02:00
Manuel Vogel
bbab6d2075
Using absolute paths instead of relative in test scripts 2018-04-09 15:30:15 +02:00
Manuel Vogel
4270949de8
Updated private registry port to 15000 for fix teamcity build. 2018-04-09 15:17:06 +02:00
Manuel Vogel
d7038e7560 Feat/swarm 3 acc test infra (#39)
* Set up test infrastructure with local registry and custom images.

* Updated travis docker version and usage of new test infra.

* Made acc tests constantly output test results.

* Tmp acc test files are ignored.

* Fixed tests with new infra.

* Allowing insecure registries for acc tests. Added fallback for v1 registries.

* Added private image cleanup after tests.

* Refined acc test structure to confirm tf provider standards with make testacc.
2018-02-09 13:11:30 -06:00