This repository was archived by the owner on Aug 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed
Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 66import yaml
77import pytest
88
9+ from gcip .addons .container .config import DockerClientConfig
10+
911
1012def check (output : Dict [str , Any ]) -> None :
1113 yaml_output = yaml .safe_dump (output , default_flow_style = False , sort_keys = False )
@@ -58,3 +60,11 @@ def gitlab_ci_environment_variables(monkeypatch):
5860 monkeypatch .setenv ("CI_COMMIT_REF_NAME" , "my_awsome_feature_branch" )
5961 monkeypatch .setenv ("CI_COMMIT_TAG" , "11.22.33" )
6062 monkeypatch .setenv ("CI_PROJECT_DIR" , "/path/to/project" )
63+
64+
65+ @pytest .fixture ()
66+ def docker_client_config () -> DockerClientConfig :
67+ dcc = DockerClientConfig ()
68+ dcc .add_auth (registry = "index.docker.io" )
69+ dcc .add_cred_helper ("0132456789.dkr.eu-central-1.amazonaws.com" , cred_helper = "ecr-login" )
70+ return dcc
Original file line number Diff line number Diff line change 1- import pytest
2-
31from gcip import Pipeline
42from tests import conftest
53from gcip .core .image import Image
64from gcip .addons .container .jobs import crane
7- from gcip .addons .container .config import DockerClientConfig
85from gcip .addons .container .registries import Registry
96
107
11- @pytest .fixture ()
12- def docker_client_config () -> DockerClientConfig :
13- dcc = DockerClientConfig ()
14- dcc .add_auth (registry = "index.docker.io" )
15- dcc .add_cred_helper ("0132456789.dkr.eu-central-1.amazonaws.com" , cred_helper = "ecr-login" )
16- return dcc
17-
18-
198def test_simple_crane_copy_job (gitlab_ci_environment_variables ):
209 pipeline = Pipeline ()
2110
You can’t perform that action at this time.
0 commit comments