This pull request adds support for the Images Gen. 2 project, including the following changes:
New tags field in Image, ImageCreateOptions, ImageUpdateOptions, and ImageCreateUploadOptions structs
New total_size field in Image struct
New regions field in Image struct
New Client{}.ReplicateImage(...) endpoint method (/images/{image_id}/regions)
New ImageStatus constants relating to image replication
✔️ How to Test
The following test steps assume you have pulled down this PR locally and pointed your local environment to an API instance where Images Gen. 2 is available:
export LINODE_URL=...
export LINODE_TOKEN=...
Integration Testing
make ARGS="-run TestImage_CloudInit" fixtures
make ARGS="-run TestImage_CreateUpload" fixtures
# Not currently ready for testing
make ARGS="-run TestImage_Replicate" fixtures
Unit Testing
make testunit
Manual Testing
The following test steps are expected to be run in a linodego sandbox environment (e.g. dx-devenv).
📝 Description
This pull request adds support for the Images Gen. 2 project, including the following changes:
tags
field in Image, ImageCreateOptions, ImageUpdateOptions, and ImageCreateUploadOptions structstotal_size
field in Image structregions
field in Image structClient{}.ReplicateImage(...)
endpoint method (/images/{image_id}/regions
)✔️ How to Test
The following test steps assume you have pulled down this PR locally and pointed your local environment to an API instance where Images Gen. 2 is available:
Integration Testing
Unit Testing
Manual Testing
The following test steps are expected to be run in a linodego sandbox environment (e.g. dx-devenv).
Testing Manual Images
Testing Uploaded Images