mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
feat: add plain-HTTP listeners for various repository configurations to support non-HTTPS access
Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
env_list = py313,py314,coverage,packaging,packaging-amd64,packaging-arm64,publish,module-python,module-apt,module-yum,module-apk,module-java,module-certificates,module-php,module-npm,module-rust,module-go,module-ruby,module-nuget,config-url
|
||||
env_list = py313,py314,coverage,packaging,packaging-amd64,packaging-arm64,publish,module-python,module-python-http,module-apt,module-apt-http,module-yum,module-yum-http,module-apk,module-apk-http,module-java,module-java-http,module-certificates,module-php,module-php-http,module-npm,module-npm-http,module-rust,module-rust-http,module-go,module-go-http,module-ruby,module-ruby-http,module-nuget,module-nuget-http,config-url
|
||||
isolated_build = true
|
||||
requires =
|
||||
tox>=4
|
||||
@@ -91,6 +91,7 @@ passenv =
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/pypi-repo.Dockerfile
|
||||
expose =
|
||||
PYPI_REPO_PORT=8443/tcp
|
||||
PYPI_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/simple/idconfiguratortestpkg/ || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -106,17 +107,41 @@ docker =
|
||||
pypi-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
PYPI_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Python.yaml.j2 {env_dir}/configs/Python.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-arg PYPI_REPO_PORT={env:PYPI_REPO_PORT} --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Python-alpine.Dockerfile -t id-configurator-python .
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-arg PYPI_REPO_SCHEME={env:PYPI_REPO_SCHEME} --build-arg PYPI_REPO_PORT={env:PYPI_REPO_PORT} --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Python-alpine.Dockerfile -t id-configurator-python .
|
||||
docker rmi id-configurator-python
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-arg PYPI_REPO_PORT={env:PYPI_REPO_PORT} --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Python.Dockerfile -t id-configurator-python .
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-arg PYPI_REPO_SCHEME={env:PYPI_REPO_SCHEME} --build-arg PYPI_REPO_PORT={env:PYPI_REPO_PORT} --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Python.Dockerfile -t id-configurator-python .
|
||||
docker rmi id-configurator-python
|
||||
|
||||
[testenv:module-python-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
pypi-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-python, but against a plain-HTTP index, to verify pip's
|
||||
trusted-host is configured correctly for a non-HTTPS repository.
|
||||
set_env =
|
||||
PYPI_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Python.yaml.j2 {env_dir}/configs/Python.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-arg PYPI_REPO_SCHEME={env:PYPI_REPO_SCHEME} --build-arg PYPI_REPO_PORT={env:PYPI_REPO_HTTP_PORT} --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Python-alpine.Dockerfile -t id-configurator-python-http .
|
||||
docker rmi id-configurator-python-http
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-arg PYPI_REPO_SCHEME={env:PYPI_REPO_SCHEME} --build-arg PYPI_REPO_PORT={env:PYPI_REPO_HTTP_PORT} --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Python.Dockerfile -t id-configurator-python-http .
|
||||
docker rmi id-configurator-python-http
|
||||
|
||||
[docker:apt-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/apt-repo.Dockerfile
|
||||
expose =
|
||||
APT_REPO_PORT=8443/tcp
|
||||
APT_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/Packages || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -132,15 +157,37 @@ docker =
|
||||
apt-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
APT_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Apt.yaml.j2 {env_dir}/configs/Apt.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Apt.Dockerfile -t id-configurator-apt .
|
||||
docker rmi id-configurator-apt
|
||||
|
||||
[testenv:module-apt-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
apt-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-apt, but against a plain-HTTP source, since apt's trust
|
||||
model is the signed-by keyring, independent of transport scheme.
|
||||
set_env =
|
||||
APT_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Apt.yaml.j2 {env_dir}/configs/Apt.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Apt.Dockerfile -t id-configurator-apt-http .
|
||||
docker rmi id-configurator-apt-http
|
||||
|
||||
[docker:yum-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/yum-repo.Dockerfile
|
||||
expose =
|
||||
YUM_REPO_PORT=8443/tcp
|
||||
YUM_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/repodata/repomd.xml || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -156,15 +203,37 @@ docker =
|
||||
yum-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
YUM_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Yum.yaml.j2 {env_dir}/configs/Yum.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Yum.Dockerfile -t id-configurator-yum .
|
||||
docker rmi id-configurator-yum
|
||||
|
||||
[testenv:module-yum-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
yum-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-yum, but against a plain-HTTP repository, since yum/dnf's
|
||||
trust model is the imported GPG key, independent of transport scheme.
|
||||
set_env =
|
||||
YUM_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Yum.yaml.j2 {env_dir}/configs/Yum.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Yum.Dockerfile -t id-configurator-yum-http .
|
||||
docker rmi id-configurator-yum-http
|
||||
|
||||
[docker:apk-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/apk-repo.Dockerfile
|
||||
expose =
|
||||
APK_REPO_PORT=8443/tcp
|
||||
APK_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/APKINDEX.tar.gz || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -189,15 +258,39 @@ description =
|
||||
native platform keeps them in agreement everywhere (including under
|
||||
QEMU emulation on non-amd64 hosts); CI runners are amd64, so this still
|
||||
matches the other envs there.
|
||||
set_env =
|
||||
APK_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Apk.yaml.j2 {env_dir}/configs/Apk.yaml
|
||||
docker buildx build --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Apk.Dockerfile -t id-configurator-apk .
|
||||
docker rmi id-configurator-apk
|
||||
|
||||
[testenv:module-apk-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
apk-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-apk, but against a plain-HTTP repository, since apk's
|
||||
trust model is the signed index, independent of transport scheme. See
|
||||
module-apk's own description for why this isn't pinned to --platform
|
||||
linux/amd64 either.
|
||||
set_env =
|
||||
APK_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Apk.yaml.j2 {env_dir}/configs/Apk.yaml
|
||||
docker buildx build --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Apk.Dockerfile -t id-configurator-apk-http .
|
||||
docker rmi id-configurator-apk-http
|
||||
|
||||
[docker:java-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/java-repo.Dockerfile
|
||||
expose =
|
||||
JAVA_REPO_PORT=8443/tcp
|
||||
JAVA_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/org/interdiode/idconfiguratortestpkg/0.0.1/idconfiguratortestpkg-0.0.1.pom || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -213,11 +306,31 @@ docker =
|
||||
java-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
JAVA_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Java.yaml.j2 {env_dir}/configs/Java.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Java.Dockerfile -t id-configurator-java .
|
||||
docker rmi id-configurator-java
|
||||
|
||||
[testenv:module-java-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
java-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-java, but against a plain-HTTP repository.
|
||||
set_env =
|
||||
JAVA_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Java.yaml.j2 {env_dir}/configs/Java.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Java.Dockerfile -t id-configurator-java-http .
|
||||
docker rmi id-configurator-java-http
|
||||
|
||||
[docker:certificate-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/certificate-repo.Dockerfile
|
||||
expose =
|
||||
@@ -251,6 +364,7 @@ commands =
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/php-repo.Dockerfile
|
||||
expose =
|
||||
PHP_REPO_PORT=8443/tcp
|
||||
PHP_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/packages.json || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -266,15 +380,37 @@ docker =
|
||||
php-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
PHP_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Php.yaml.j2 {env_dir}/configs/Php.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Php.Dockerfile -t id-configurator-php .
|
||||
docker rmi id-configurator-php
|
||||
|
||||
[testenv:module-php-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
php-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-php, but against a plain-HTTP repository, to verify
|
||||
secure-http is disabled (and packagist.org too) for a non-HTTPS source.
|
||||
set_env =
|
||||
PHP_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Php.yaml.j2 {env_dir}/configs/Php.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Php.Dockerfile -t id-configurator-php-http .
|
||||
docker rmi id-configurator-php-http
|
||||
|
||||
[docker:npm-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/npm-repo.Dockerfile
|
||||
expose =
|
||||
NPM_REPO_PORT=8443/tcp
|
||||
NPM_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/idconfiguratortestpkg || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -290,15 +426,36 @@ docker =
|
||||
npm-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
NPM_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Npm.yaml.j2 {env_dir}/configs/Npm.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Npm.Dockerfile -t id-configurator-npm .
|
||||
docker rmi id-configurator-npm
|
||||
|
||||
[testenv:module-npm-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
npm-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-npm, but against a plain-HTTP registry.
|
||||
set_env =
|
||||
NPM_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Npm.yaml.j2 {env_dir}/configs/Npm.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Npm.Dockerfile -t id-configurator-npm-http .
|
||||
docker rmi id-configurator-npm-http
|
||||
|
||||
[docker:cargo-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/cargo-repo.Dockerfile
|
||||
expose =
|
||||
CARGO_REPO_PORT=8443/tcp
|
||||
CARGO_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/config.json || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -314,15 +471,36 @@ docker =
|
||||
cargo-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
CARGO_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Rust.yaml.j2 {env_dir}/configs/Rust.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Rust.Dockerfile -t id-configurator-rust .
|
||||
docker rmi id-configurator-rust
|
||||
|
||||
[testenv:module-rust-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
cargo-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-rust, but against a plain-HTTP sparse registry.
|
||||
set_env =
|
||||
CARGO_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Rust.yaml.j2 {env_dir}/configs/Rust.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Rust.Dockerfile -t id-configurator-rust-http .
|
||||
docker rmi id-configurator-rust-http
|
||||
|
||||
[docker:go-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/go-repo.Dockerfile
|
||||
expose =
|
||||
GO_REPO_PORT=8443/tcp
|
||||
GO_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/example.invalid/idconfiguratortestpkg/@v/list || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -338,15 +516,37 @@ docker =
|
||||
go-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
GO_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Go.yaml.j2 {env_dir}/configs/Go.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Go.Dockerfile -t id-configurator-go .
|
||||
docker rmi id-configurator-go
|
||||
|
||||
[testenv:module-go-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
go-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-go, but against a plain-HTTP module proxy, to verify
|
||||
GOINSECURE is configured correctly for a non-HTTPS GOPROXY.
|
||||
set_env =
|
||||
GO_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Go.yaml.j2 {env_dir}/configs/Go.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Go.Dockerfile -t id-configurator-go-http .
|
||||
docker rmi id-configurator-go-http
|
||||
|
||||
[docker:ruby-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/ruby-repo.Dockerfile
|
||||
expose =
|
||||
RUBY_REPO_PORT=8443/tcp
|
||||
RUBY_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/versions || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -362,15 +562,36 @@ docker =
|
||||
ruby-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
RUBY_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Ruby.yaml.j2 {env_dir}/configs/Ruby.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Ruby.Dockerfile -t id-configurator-ruby .
|
||||
docker rmi id-configurator-ruby
|
||||
|
||||
[testenv:module-ruby-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
ruby-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-ruby, but against a plain-HTTP gem source.
|
||||
set_env =
|
||||
RUBY_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/Ruby.yaml.j2 {env_dir}/configs/Ruby.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/Ruby.Dockerfile -t id-configurator-ruby-http .
|
||||
docker rmi id-configurator-ruby-http
|
||||
|
||||
[docker:nuget-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/nuget-repo.Dockerfile
|
||||
expose =
|
||||
NUGET_REPO_PORT=8443/tcp
|
||||
NUGET_REPO_HTTP_PORT=8080/tcp
|
||||
healthcheck_cmd = wget --no-check-certificate -qO- https://127.0.0.1:8443/index.json || exit 1
|
||||
healthcheck_interval = 1
|
||||
healthcheck_retries = 30
|
||||
@@ -386,11 +607,32 @@ docker =
|
||||
nuget-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
set_env =
|
||||
NUGET_REPO_SCHEME = https
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/NuGet.yaml.j2 {env_dir}/configs/NuGet.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/NuGet.Dockerfile -t id-configurator-nuget .
|
||||
docker rmi id-configurator-nuget
|
||||
|
||||
[testenv:module-nuget-http]
|
||||
package = skip
|
||||
labels = end-to-end
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = dev
|
||||
docker =
|
||||
nuget-repo
|
||||
allowlist_externals =
|
||||
docker
|
||||
description =
|
||||
Same as module-nuget, but against a plain-HTTP feed, to verify
|
||||
allowInsecureConnections is configured correctly for a non-HTTPS source.
|
||||
set_env =
|
||||
NUGET_REPO_SCHEME = http
|
||||
commands =
|
||||
python3 -m id_tools test render-config {tox_root}/tests/configs/NuGet.yaml.j2 {env_dir}/configs/NuGet.yaml
|
||||
docker buildx build --platform linux/amd64 --add-host=host.docker.internal:host-gateway --build-context generated-config={env_dir}/configs -f {tox_root}/tests/dockerfiles/NuGet.Dockerfile -t id-configurator-nuget-http .
|
||||
docker rmi id-configurator-nuget-http
|
||||
|
||||
[docker:config-url-repo]
|
||||
dockerfile = {tox_root}/tests/dockerfiles/repos/config-url-repo.Dockerfile
|
||||
expose =
|
||||
|
||||
Reference in New Issue
Block a user