make testint TEST_SUITE=linode_client
make testint TEST_SUITE=image TEST_CASE=test_image_create_upload
make testint TEST_SUITE=image TEST_CASE=test_get_image
# replication is not functional yet
# make testint TEST_SUITE=image TEST_CASE=test_image_replication
Manual Test
In a sandbox environment, run the following to create an image with tags:
📝 Description
Support the new image fields, including
tags
,total_size
,regions
. Support image replication.✔️ How to Test
Unite test:
Before running the integration test, you'll need to set up these environment variables:
Integration test:
Manual Test
client = LinodeClient( os.getenv("LINODE_TOKEN"), base_url="https://.../v4", ca_path=".../CA.pem", )
linode, _ = client.linode.instance_create( "g6-nanode-1", "us-east", label="test-image-gen2", image="linode/alpine3.19", )
image = client.image_create( disk=linode.disks[0].id, label="image-gen-2", description="Test", tags=["test", "image-gen2"] )
print(image.tags) print(image.total_size)
regions is expected to be empty here since it's not properly functional yet
print(image.regions)
linode.delete() image.delete()