Commit graph

33 commits

Author SHA1 Message Date
Manuel Vogel
3f93984d9c
chore(ci): adapt acc test docker version (#266) 2021-08-10 17:43:11 +09: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
renovate[bot]
1ebe5511ef
fix(deps): update module github.com/docker/docker to v20.10.7 (#218)
* fix(deps): update module github.com/docker/docker to v20.10.7
* chore: update GitHub actions and testacc file

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-06-21 09:55:55 +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
Manuel Vogel
c404e0ae51
fix: replace for loops with StateChangeConf (#182)
* fix: create container refresh function
* fix: adapt statefunc delays and timeouts to reflect for loop
* feat: add testaccDockerfile for local development
* chore(ci): bump terraform versions and add 0.15.2
2021-05-11 08:59:40 +02:00
Manuel Vogel
1159e2de73
feat: support darwin arm builds and golang 1.16 (#140)
* chore: bump to golang 1.16

* fix(ci): remove fail fast from non-matrix builds

* chore: rename release workflow from yml to yaml

* fix: use goreleaser for compile tests

* fix(make): use gorelease in compile target

* fix(ci): add gpg import step for compile
2021-03-18 23:21:49 +09:00
Manuel Vogel
ad3e56da2b
feat: migrate to terraform-sdk v2 (#102)
* chore: runs v2 upgrade cmd
* chore: moves all files into the internal provider dir
* feat: migrates main and provider
* fix: migrates tests to provider factories
* fix: replace import state passthrough ctx func
* chore: bump tf-sdk to v2.4.4
* fix: acc test by adding stop grace period
* fix: move to validate diag functions
* test: switch from ctx TODO to Background
* feat: add state upgrade for restart_policy and auth

Co-authored-by: Shunsuke Suzuki <suzuki-shunsuke@users.noreply.github.com>
2021-03-18 08:30:54 +01:00
tanis
8b617bd690
feat: add properties -it (tty and stdin_opn) to docker container
Closes #120
2021-01-18 09:00:26 +01:00
Manuel Vogel
30f2238e0b
feat: add ability to lint/check of links in documentation locally (#98)
* build: adds local check for website links
* build(make): adds website lint and setup target
* docs: fix spellings and hcl blocks
* fix(make): phony cmd for missing targets
* chore: renames website link check workflow
* fix: missing workflow path
* build(make): adds golangci-lint target and tool
* ci: adds website lint workflow
* docs(contributing): adds linter runs
* chore: improves naming of workflow jobs
* ci: moves website lint job
* chore: switches markdown checker imagee to ghcr.io/tcort/markdown-link-check:stable
2020-12-27 19:02:34 +09:00
Suzuki Shunsuke
9f9bbc0773 ci: add gofmt's '-s' option 2020-12-12 19:26:11 +09:00
Manuel Vogel
6a1356c49e
Merge branch 'feature/resource-docker_registry_image' of git://github.com/edgarpoce/terraform-provider-docker into edgarpoce-feature/resource-docker_registry_image 2020-10-07 20:38:10 +02:00
Manuel Vogel
250b58a9f8
feat: adds docker Image build feature (#283) 2020-10-07 20:06:13 +02:00
Manuel Vogel
06a1b8880a
fix: pins docker registry for tests to v2.7.0 2020-08-02 18:09:03 +02:00
edgar poce
6a3c615a30 added docker_registry_image 2020-03-24 16:48:49 -03:00
stephenliberty
5ad4646537
feat: allow use of source file instead of content / content_base64 (#240)
Closes #239 

* Added a 'source' and 'source hash' which will reference a file / file hash to load into the container
* Add to docs
* Adding a test, cleaning up another one
2020-02-03 21:44:46 +01:00
Manuel Vogel
62ddaf9e23
Refactors test setup (#156)
* refactors test setup according to the postgres provider
* updates readme for new test setup
2019-06-01 12:01:42 +02:00
Manuel Vogel
e323be8f55
Fixes for flaky tests (#154)
* adds delay for fetching auth config
* refactor registry auth retrieval. adds retry if not found
* reactivates full build in script and travis
2019-05-31 15:08:32 +02: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
Alex Pilon
17a658bdd0
remove turn modules off for gox installation 2019-03-11 18:19:31 -04:00
Radek Simko
82a52bc0d8
tests: Simplify Dockerfile(s) 2019-03-05 08:20:44 +00:00
Manuel Vogel
f710743d71
Support for random external port for containers (#103)
* fixes container port mapping by switching from set to list. Closes #102 
* adapts mapper and flattener
* updates CHANGELOG
2018-10-16 18:49:57 +02: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
1f563cc913
Migrate/docker-client (#70)
Migrates to the official docker client to connect to the Docker API/Deamon. Closes #32
2018-07-03 17:30:53 +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
c8c1f9e662
Fixing build and private image 2018-04-10 08:47:28 +02:00
Manuel Vogel
9e643ac13d
added 3rd test image and made build more generic 2018-04-09 20:31:09 +02:00
Manuel Vogel
37e3301e98
updated test script to clean up properly 2018-04-09 20:20:40 +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
Jake Champlin
ae9022e117
Fix Changelog Links Script for docker provider 2017-06-26 09:49:48 -05:00
Jake
d8ce3db14a initial commit 2017-06-05 20:59:08 +00:00