def test_delete_tag(self, containerregistry_endpoint):
        repo = self.get_resource_name("repo")
        tag = self.get_resource_name("tag")
        tags = ["{}:{}".format(repo, tag + str(i)) for i in range(4)]
        self.import_image(containerregistry_endpoint, HELLO_WORLD, tags)

        client = self.create_registry_client(containerregistry_endpoint)

        client.delete_tag(repo, tag + str(0))

        count = 0
        for tag in client.list_tag_properties(repo):
            assert "{}:{}".format(repo, tag.name) in tags[1:]
            count += 1
        assert count == 3