예제 #1
0
 def test_repository_manifest(self):
     url = mock_v2_registry()
     client = DockerRegistryClient(url)
     repository = client.repositories()[TEST_NAME]
     manifest, digest = repository.manifest(TEST_TAG)
     repository.delete_manifest(digest)
 def test_get_manifest_and_digest(self):
     url = mock_v2_registry()
     manifest, digest = BaseClientV2(url).get_manifest_and_digest(TEST_NAME,
                                                                  TEST_TAG)
 def test_initv2(self):
     url = mock_v2_registry()
     Repository(BaseClientV2(url), TEST_NAME)
 def test_check_status(self):
     url = mock_v2_registry()
     BaseClientV2(url).check_status()
예제 #5
0
 def test_get_manifest_and_digest(self):
     url = mock_v2_registry()
     manifest, digest = BaseClientV2(url).get_manifest_and_digest(
         TEST_NAME, TEST_TAG)
예제 #6
0
 def test_check_status(self):
     url = mock_v2_registry()
     BaseClientV2(url).check_status()
예제 #7
0
 def test_initv2(self):
     url = mock_v2_registry()
     Repository(BaseClientV2(url), TEST_NAME)
 def test_repository_manifest(self):
     url = mock_v2_registry()
     client = DockerRegistryClient(url)
     repository = client.repositories()[TEST_NAME]
     manifest, digest = repository.manifest(TEST_TAG)
     repository.delete_manifest(digest)