Skip to content

Add import support for service offering resources - #359

Open
dheeraj12347 wants to merge 1 commit into
apache:mainfrom
dheeraj12347:fix-358-service-offering-import
Open

dheeraj12347 wants to merge 1 commit into
apache:mainfrom
dheeraj12347:fix-358-service-offering-import

Conversation

@dheeraj12347

Copy link
Copy Markdown
Contributor

Summary

Fixes #358.

Implemented import support for the following Plugin Framework resources:

  • cloudstack_service_offering_fixed
  • cloudstack_service_offering_constrained
  • cloudstack_service_offering_unconstrained

Each resource now implements resource.ResourceWithImportState and uses resource.ImportStatePassthroughID to populate the id attribute from the import identifier. The existing Read() implementation can then retrieve the service offering by ID.

Added import-state verification steps to the acceptance tests for all three resources.

Testing

  • go test ./cloudstack — passed
  • go test ./... — passed
  • git diff --check — passed

Testing limitation: I do not currently have access to a configured CloudStack environment, so I could not run the acceptance tests against a live CloudStack instance. The local Go test suite passes.

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.

cloudstack_service_offering_fixed/_constrained/_unconstrained do not support terraform import

1 participant