Closed kwilczynski closed 6 years ago
To do:
Related to #93.
There are no unit tests.
Acceptance tests:
$ make testacc TEST=./triton TESTARGS='-run TestAccTritonFabricNetwork'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./triton -v -run TestAccTritonFabricNetwork -timeout 120m
=== RUN TestAccTritonFabricNetwork_MissingArguments
--- PASS: TestAccTritonFabricNetwork_MissingArguments (0.01s)
=== RUN TestAccTritonFabricNetwork_BadArguments
--- PASS: TestAccTritonFabricNetwork_BadArguments (0.00s)
=== RUN TestAccTritonFabricNetwork_NotFound
--- PASS: TestAccTritonFabricNetwork_NotFound (6.97s)
=== RUN TestAccTritonFabricNetwork_Basic
--- PASS: TestAccTritonFabricNetwork_Basic (29.06s)
PASS
ok github.com/hashicorp/terraform-website/ext/providers/triton/triton 36.051s
Added documentation:
This LGTM! thanks for this @kwilczynski
terraform-provider-triton [kwilczynski-add-triton_fabric_network-data-source] % acctests triton TestAccTritonFabricNetwork_
=== RUN TestAccTritonFabricNetwork_MissingArguments
--- PASS: TestAccTritonFabricNetwork_MissingArguments (0.00s)
=== RUN TestAccTritonFabricNetwork_BadArguments
--- PASS: TestAccTritonFabricNetwork_BadArguments (0.00s)
=== RUN TestAccTritonFabricNetwork_NotFound
--- PASS: TestAccTritonFabricNetwork_NotFound (7.01s)
=== RUN TestAccTritonFabricNetwork_Basic
--- PASS: TestAccTritonFabricNetwork_Basic (27.70s)
PASS
ok github.com/terraform-providers/terraform-provider-triton/triton 34.731s
This commit adds new data source called
triton_fabric_network
, which allows the end-user to find details about a particular Fabric Network based on the unique name of the network, which is used as a filter.Signed-off-by: Krzysztof Wilczynski kw@linux.com