Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform Support for Managing Reserved IP Addresses #1598

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

AniJ98
Copy link

@AniJ98 AniJ98 commented Sep 26, 2024

📝 Description

This PR introduces comprehensive functionality and tests for Reserved IP Addresses in the terraform provider. The changes are necessary to provide robust support for managing Reserved IP addresses through terraform. The changes include:

Implementation of core Reserved IP operations:

  • Listing Reserved IPs
  • Getting a specific Reserved IP
  • Reserving a new IP
  • Deleting a Reserved IP

Test coverage:

  • Resource test - Covers testing the functionality of reserving and deleting a reserved IP Address
  • Datasource test - Covers testing the functionality of listing all reserved IP addresses and fetching a particular reserved IP Address.

✔️ How to Test

What are the steps to reproduce the issue or verify the changes?

  1. Ensure you have a valid Linode API token.
Set up your environment:


    export LINODE_TOKEN="your_token_here"


  2. To run only Reserved IP related tests:


    make int-test PKG_NAME="linode/networkreservedips"

To run a specific test:

  make int-test PKG_NAME="linode/networkreservedips" ARGS="-run TestAccDataSource_reservedIP"
  1. 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. This test expects the account to have 0 prior reservations.

@AniJ98 AniJ98 requested a review from a team as a code owner September 26, 2024 15:15
@AniJ98 AniJ98 requested review from zliang-akamai and yec-akamai and removed request for a team September 26, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant