def test_list_tag_properties_order_descending(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)

        prev_last_updated_on = None
        count = 0
        for tag in client.list_tag_properties(repo, order_by=ArtifactTagOrder.LAST_UPDATED_ON_DESCENDING):
            assert "{}:{}".format(repo, tag.name) in tags
            if prev_last_updated_on:
                assert tag.last_updated_on < prev_last_updated_on
            prev_last_updated_on = tag.last_updated_on
            count += 1
        assert count == 4

        prev_last_updated_on = None
        count = 0
        for tag in client.list_tag_properties(repo, order_by="timedesc"):
            assert "{}:{}".format(repo, tag.name) in tags
            if prev_last_updated_on:
                assert tag.last_updated_on < prev_last_updated_on
            prev_last_updated_on = tag.last_updated_on
            count += 1
        assert count == 4