equinix / terraform-provider-metal

DEPRECATED Equinix Metal standalone TF provider. Use the unified Equinix Terraform Provider.
https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_equinix_metal
Mozilla Public License 2.0
14 stars 11 forks source link

add ds plans in all tests with a metal_device to check available hardware #239

Closed ocobles closed 2 years ago

ocobles commented 2 years ago

This PR adds metal_plans.test data source in all tests with a metal_device to check the availability of plans/metros/facilities

metal_plans filters are a predefined list of plans/metros so we can control what plans and locations are suitable for the tests

codecov-commenter commented 2 years ago

Codecov Report

Merging #239 (5d16236) into main (4cc4b84) will increase coverage by 80.05%. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##           main     #239       +/-   ##
=========================================
+ Coverage      0   80.05%   +80.05%     
=========================================
  Files         0       51       +51     
  Lines         0     6980     +6980     
=========================================
+ Hits          0     5588     +5588     
- Misses        0     1134     +1134     
- Partials      0      258      +258     
Impacted Files Coverage Δ
metal/datasource_metal_virtual_circuit.go 95.49% <100.00%> (ø)
metal/resource_metal_spot_market_request.go 58.01% <0.00%> (ø)
metal/datasource_metal_reserved_ip_block.go 85.33% <0.00%> (ø)
metal/volume_stub.go 25.00% <0.00%> (ø)
metal/datasource_metal_project.go 78.61% <0.00%> (ø)
metal/resource_metal_vrf.go 86.61% <0.00%> (ø)
metal/resource_metal_project_api_key.go 79.48% <0.00%> (ø)
metal/resource_metal_gateway.go 83.94% <0.00%> (ø)
metal/resource_metal_port.go 86.66% <0.00%> (ø)
metal/resource_metal_vlan.go 64.95% <0.00%> (ø)
... and 42 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4cc4b84...5d16236. Read the comment docs.