MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / push

Method push

python/example_code/ecr/test/conftest.py:50–64  ·  view source on GitHub ↗
(
        self,
        repository: str,
        auth_config: dict[str, str],
        tag: str,
        stream: bool,
        decode: bool,
    )

Source from the content-addressed store, hash-verified

48 self.password = None
49
50 def push(
51 self,
52 repository: str,
53 auth_config: dict[str, str],
54 tag: str,
55 stream: bool,
56 decode: bool,
57 ) -> list[str]:
58 assert repository == self.repository, "MockDockerAPI.push"
59 assert auth_config["username"] == self.username, "MockDockerAPI.push"
60 assert auth_config["password"] == self.password, "MockDockerAPI.push"
61 assert tag == self.tag, "MockDockerAPI.push"
62 assert stream == True, "MockDockerAPI.push"
63 assert decode == True, "MockDockerAPI.push"
64 return ["pushing", "push complete"]
65
66
67class MockDockerClient:

Callers 15

helloCognitoFunction · 0.80
listImageSetVersionsFunction · 0.80
searchImageSetsFunction · 0.80
listDICOMImportJobsFunction · 0.80
listDatastoresFunction · 0.80
___cxa_begin_catchFunction · 0.80
ClassHandle_deleteLaterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected