Closed ctreatma closed 4 months ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Attention: Patch coverage is 0%
with 31 lines
in your changes missing coverage. Please review.
Project coverage is 34.40%. Comparing base (
f8c2ab9
) to head (8c1d06a
).
Files | Patch % | Lines |
---|---|---|
internal/resources/metal/connection/resource.go | 0.00% | 31 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This issue came out of investigation into Metal acceptance test failures in which the tests appear to be failing because a connection that was deleted came back from the API with status
deleted
The metal_connection resource and data source were previously migrated from the deprecated packngo SDK to equinix-sdk-go, but in that migration the Delete function for the metal_connection resource was missed.
This updates the resource Delete function to use equinix-sdk-go instead of packngo. This requires adding a state waiter to replicate the wait functionality that was built in to packngo. As part of this migration, the waiter is updated to allow the
deleted
status that can be returned by the API for a deleted connection.