Added support for updated Reserved IP behavior to existing resources (instance, network_ips) #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 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
What are the steps to reproduce the issue or verify the changes?
Ensure you have a valid Linode API token. Set up your environment:
export LINODE_TOKEN="your_token_here"
Additionally you need to set the following if you want to test it in a different environment:
Navigate to the test directory within the linodego project. Update the LINODE_TOKEN in the Makefile:
LINODE_TOKEN="your_token_here"
Run the tests using one of the following commands: To run all integration tests:
make testint
To run a specific test:
go test -v ./integration -run TestInstance_DeleteInstanceVariants
Verify the test output for any failures or unexpected behavior.
Note:
Ensure that you have enough quota to reserve IP before adding it to an existing linode. Ensure the IPMAX limit is enough to allocate/ assign a reserved IP to a linode.