This PR implements functionality and tests for managing Reserved IP addresses in the Linodego client. These changes align with the updated Linode API, providing comprehensive support for Reserved IP operations. The changes include:
Implementation of core operations:
Deleting a Linode while retaining the Reserved IP
Retrieving IP information for Linodes, including Reserved IPs
Listing all IP addresses, including Reserved IPs
Allocating and assigning new Reserved IP addresses
Assigning Reserved IPs to Linodes
Fetching particular IP address, including Reserved IPs
Converting between Ephemeral and Reserved IPs
Test Coverage:
TestAccResourceInstance_deleteWithReservedIP - Verifies that deleting an instance created with a reserved IP does not delete the reserved IP.
TestAccDataSourceInstanceNetworking_basicwithReseved - Confirms that the IP addresses of a Linode are returned with the updated reserved status.
TestAccDataSourceNetworkingIP_list, TestAccDataSourceNetworkingIP_filterReserved - Tests the listing of IP addresses and the ability to filter them based on their reserved status.
TestAccResourceNetworkingIP_reserved - Evaluates the allocation of reserved and ephemeral IP addresses to Linodes, as well as the creation of both types of IP addresses.
TestAccResourceNetworkingIPsAssign - Tests the assignment of multiple reserved and ephemeral IP addresses to Linodes within a specific region.
TestAccResourceRDNS_unreservedToReserved - Verifies the conversion of ephemeral IP addresses into reserved IP addresses
TestAccDataSourceNetworkingIP_basic - Tests fetching a specific IP address, including its updated reserved status.
✔️ How to Test
Ensure you have a valid Linode API token. Set up your environment:
export LINODE_TOKEN="your_token_here"
To test the above mentioned functionalities individually :
make int-test PKG_NAME="linode/networkingip" ARGS="-run TestAccResourceNetworkingIP_reserved"
Verify the test output for any failures or unexpected behavior.
Note:
Ensure you have proper permissions and sufficient quota in your Linode account to perform Reserved IP operations. Some tests may create and delete resources, so use a testing environment if possible.
📝 Description
This PR implements functionality and tests for managing Reserved IP addresses in the Linodego client. These changes align with the updated Linode API, providing comprehensive support for Reserved IP operations. The changes include:
Implementation of core operations:
Test Coverage:
✔️ How to Test
Ensure you have a valid Linode API token. Set up your environment:
export LINODE_TOKEN="your_token_here"
To test the above mentioned functionalities individually :
make int-test PKG_NAME="linode/networkingip" ARGS="-run TestAccResourceNetworkingIP_reserved"
Verify the test output for any failures or unexpected behavior.
Note:
Ensure you have proper permissions and sufficient quota in your Linode account to perform Reserved IP operations. Some tests may create and delete resources, so use a testing environment if possible.