-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
Here are some tests that i've done to test that everything ok: Test case 1 - OK
Test case 2 - OK
Test case 3 - OK
Test case 4 - OK
Test case 5 - OK
Test case 6 - OK
Test case 7 - OK
Test case 8 - OK
Test case 9 - OK
|
Huge thanks to @michaelfmnk for helping me to get familiar with Swagger, advises on how to build provider for testing and with writing code |
Regarding the port specification, could we have a third field called just |
This is awesome idea. I've reached to API developers and asked if it's possible to add new field like "value". Possibly it could be implemented on API side and then we add it into provider. |
Previously it was possible to create only next configuration:
Which was not enough to configure granularity to take advantage of "Zero trust" CloudConnexa's features.
This PR is intended to improve resource "openvpncloud_service" (file "resource_service.go").
Disclaimer:
1/ Every time i run "terraform plan" (both before proposed changes and after) - Terraform wants to modify/rewrite "routes"
(i believe it is not related to scope of this PR, just wanted you to know)
2/ Data format looks little bit "bulky" when multiple ports needed to be specified (see examples below)
How it looks like now:
(maybe it could be optimized or written more optimal in Terraform, but i don't know how to do it properly)
How it could look better (but i don't know how to do it yet, or even possibly API side should be modified as well, because i've checked with Swagger, and in API side it show that it is stored in format above ^^)
or
(I tried to use both examples above, but got error in Terraform and i believe data structure / scheme should be rewritten for this to work)