NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules
Go modules, #3145 by repository stars
Latest stable
v0.31.1
Last release 6 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 3 months
Nearly every release is documented
notes for 58 of 58 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
65 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
PR #261 [TechDebt: Issue #260] Plugin execution improvements
d28a81d Merge pull request #262 from dikhan/version/0.31.1 e1199fa update version to 0.31.1 18c6879 Merge pull request #261 from dikhan/feature/cache-improvements 9bd205e add debug message when hitting/loading resource path cache cba25ec Merge branch 'feature/cache-improvements' of github.com:dikhan/terraform-provider-openapi into feature/cache-improvements 8dd22d1 add resolvedPathCached to the SpecV2Resource 8459b48 assert that cache is populated for happy paths a3ee1ac change it back to previous value 7f3a425 make timeToProcess shorter cc0605e added logging for caching 520c22b Merge branch 'feature/cache-improvements' of github.com:dikhan/terraform-provider-openapi into feature/cache-improvements bf0a216 refactor getResourceDataOKExists and setResourceDataProperty fdc91a5 add parentResourceInfoCached on SpecV2Resource 747493e moved type check to top of the method to fail faster if type is missing 9814993 add caching support for GetResourceSchema 7c005f4 Merge pull request #259 from dikhan/standarize-tests 12da6e9 Merge branch 'standarize-tests' of github.com:dikhan/terraform-provider-openapi into standarize-tests 0d9961b remove extra Convey statements in openapi spec tests (causing unnecessary loops) 6988bd3 go mode dep updates 566fd97 fix vet issues 4b6f875 remove redundant conveys ffee28e standarized some tests 4c6d083 standarized some tests c68a796 standarized some tests 78b5bf6 standarized plugin_config_test tests 0d3f3fc standarized provider_configuration_endpoints_test tests 66d937d refactored provider_configuration_tests tests 834a19d refactor tests removing extra convey levels d287c04 refactor tests removing extra convey levels cc92815 Merge branch 'standarize-tests' of github.com:dikhan/terraform-provider-openapi into standarize-tests c6672ba refactor tests removing extra convey levels 58df65e remove extra Convey statements in openapi spec security tests (causing unnecessary loops) 1ee58b4 fix issue with convey second level using t 7dee746 Merge branch 'standarize-tests' of github.com:dikhan/terraform-provider-openapi into standarize-tests debe681 add coverage for panics df2d97c Merge branch 'standarize-tests' of github.com:dikhan/terraform-provider-openapi into standarize-tests b4c086f remove extra Convey statements in openapi_spec_resource_schema_definition_test.go (causing unnecessary loops) 68c788d Merge branch 'standarize-tests' of github.com:dikhan/terraform-provider-openapi into standarize-tests 334484e format tests to match standards 94f16cb remove extra Convey statements in openapi_spec_resource_schema_definition_property_test.go (causing unnecessary loops) 4c7f855 remove extra Convey statements in openapi_spec_authenticator tests 5c650af remove extra Convey statements in openapi_spec_analyser_test.go (causing unnecessary loops) c22ed02 remove extra Convey statements in openapi_client_test.go (causing unnecessary loops) f6a28d5 remove extra Convey statements in common_test.go (causing unnecessary loops) 4dbdaa3 fix extra conveys and update test with new format 7e3ac36 add another test example when the given is not applicable 0ff3241 add testing documentation 56a6d2e fix sections in readme cc3eca8 Merge branch 'master' into standarize-tests b1fa363 Merge branch 'standarize-tests' of github.com:dikhan/terraform-provider-openapi into standarize-tests da7e6d8 update TestIsOptionalComputedWithDefault test with new testing standard 2924d93 Merge branch 'standarize-tests' of github.com:dikhan/terraform-provider-openapi into standarize-tests 866ca16 update 2 of the common tests to follow naming standards 2399230 update TestIsBoolExtensionEnabled test with new testing standard 8d52986 set up the tests before convey to avoid extra not needed loops d0c49c0 create unittest target
Your coding agent can read these notes before it upgrades. Set up the MCP server →
PR #255 [TechDebt: Issue #256] Support description field in array items schema
2ef0b0a Merge pull request #257 from dikhan/new-release-0.31.0 9e11d14 new release 0.31.0 fcc2b62 Merge pull request #255 from dikhan/feature/add-array-items-descriptions 10ac207 Merge branch 'feature/add-array-items-descriptions' of github.com:dikhan/terraform-provider-openapi into feature/add-array-items-descriptions 1570c5c add default description for parent properties in the doc generator 1945141 refactor tests avoiding extra loop iterations in convey 9d8f250 add support for array items description cd41f2b Merge pull request #254 from dikhan/address-gosec-alerts 521bd03 rename helper test file so its not treated as production code f674524 go mod dep updates a32d96d remove not longer used code that was migrated to commons 5d5fdb7 add gosec to the contribution guidelines 3ebc352 add install-deps and make it a dependency of gosec target 531cf8a remove not needed filed parentPropertyNames from stub 81db694 add tests for getParentID 37e1db4 ignoring not applicable gosec issue, this code is only used for testing purposes 2e79577 run gosec as part of the test target 52e5167 add gosec target that checks both openapi and tests directories aaef93a remove createTmpFile since it was being used only once (no need for the method yet) 6776310 update resource factory import to check error from data.Set 51af33c handle error f2ca1cf ignore G204 779a57a ignoring n/a G304 4e61bfa new version 0.30.1 8a3fd94 add nosec comments for G101, G304, and G402
PR #251 [TechDebt: Issue #250] Update PR template to include issue closing keyword
0f896de Merge pull request #252 from dikhan/version/0.30.1 2a77837 new version 0.30.1 d57f1a0 Merge pull request #251 from dikhan/update-PR-with-closing-keyword f607369 update PR to include closing keyword 70bb072 Merge pull request #249 from dikhan/feature/add-documentaton-sections 5abd8c2 update readme to note that the library uses the text/template package 43b590a update test with text/template 5687a81 use text/template instead f167a67 comment out printing the resource test output (used for debugging) 0d66630 fix spacing issue where example title was printing an empty paragraph when there was no title 9371651 Merge branch 'feature/add-documentaton-sections' of github.com:dikhan/terraform-provider-openapi into feature/add-documentaton-sections c9d932e update failing tests - changes in spacing a46d3c4 add Description property to DataSource 8e2e53c render again the example documentation f934557 rename example output file a01f25a fix broken link to example rendered documentation file 8657068 add provider name to import example b1c9c87 add KnownIssues property to Resource 63d8a17 add Title property to ExampleUsage 756f414 add provider notes section below table of contents
PR #246 [FeatureRequest: Issue #245] OpenAPI Terraform automated documentation generator
6528f9a Merge pull request #247 from dikhan/version/update-to-0.30.0 129770f bump up version to 0.30.0 4fbe17b Update README with a ref to the documentation renderer 1f51e40 Merge pull request #246 from dikhan/feature/openapi-terraform-doc-renderer b5f65ed make arguments more readable for the sake of the example 34d1ef0 add tests to render method 4c2e6cc Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer 736ebd7 update README 40981e0 add example output e01f0a4 move doc render library into pkg folder 087c0d9 go mod dep updates d434ba2 rename package to meet lint go standards 9d5671e add docs NewTerraformProviderDocGenerator 784520a use example swagger file in main go 654e1ad show no resources/data sources if lists are empty 7656a0a fix path 17dcdb2 fix tests after updating arguments/attributes format 6d4edea show dash only if description is populated 8914b96 show required/optional after dash and then description a45b9da remove no longer needed files f69ea71 remo no longer needed comments 8db3781 fix test after package rename 18b8596 Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer 5851a21 remove render from each struct and have the consumer method renderZendeskHTML figure out the right tempalte and right struct to use 2707a28 Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer 602c8c6 add TestDataSourcesTmpl b681aa8 don't use struct render methods 57b70d2 move all template related tests to openapi_terraform_template_html_test 6a7c730 move TestProviderConfigurationTmpl to openapi_terraform_template_html_test c3eb8c7 simplify TestProviderResources_RenderZendesk a082c0a add TestAttributeReferenceTmpl b1a1d3f Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer 533ed10 update TestArgumentReferenceTmpl with test cases bb17957 reuse attribute reference 9482b5c remove template package and have all html tmlp in one file 54d1f36 package rename to openapi_terraform_docs_generator f284a74 Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer d5f7257 add SetParentResourceName to ParentResourceInfo ff24a9a organise structs and tests within their own files de91b52 fix compilation error 79dd007 add public RenderHTML method to pass in the zendesk templates 3965adc add TestContainsResourcesWithSecretProperties 1449f85 refactor documentation structs to hold a reference to their templates 4800be7 add assertions to check the html output rendered by each template be3021f test resource and data source rendering separately (TestDataSources_RenderZendesk and TestProviderResources_RenderZendesk) 53848db update signature for GetAllHeaderParameters() on SpecAnalyser e8f2791 ignore error from getDataSourceInstances fd086b8 Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer a903ab0 make template rendering testable f483b64 add error case to GenerateDocumentation - error getting data source filters 0cf7f1e Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer ec72622 refactor doc generator spec analyser stub to return methods 6b6fe72 Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer f3b87f1 add initial test for TestTerraformProviderDocumentation_RenderZendeskHTML c7002be refactor TestGetSecurity to use a table driven test 65461bc refactor TestGetRegions to be table driven d001cf0 add coverage to ContainsComputedSubProperties a830c47 add test coverage for BuildImportIDsExample 5e6710e start to add error test cases for GenerateDocumentation c792ed3 add tests for NewTerraformProviderDocGenerator and GenerateDocumentation 687ded7 fix GenerateDocumentation to return errors 839d533 Merge branch 'feature/openapi-terraform-doc-renderer' of github.com:dikhan/terraform-provider-openapi into feature/openapi-terraform-doc-renderer
PR #243 [BugFix: Issue #242] Plugin should not log payload from resource API to prevent printing sensitive props
abb36b3 Merge pull request #244 from dikhan/version/update-to-0.29.4 44c7c99 Merge branch 'master' into version/update-to-0.29.4 85af2b4 bump up verson to v0.29.4 7901741 Merge pull request #243 from dikhan/bugfix/dont-log-req-resp-payloads 9db7920 update debug entry for req payload 1749e29 remove response payload logging to avoid disclosing potential sensitive properties
PR #240 [BugFix: Issue #239] Ignore list items order if the property is configured with x-ignore-order
d4466b5 Merge pull request #241 from dikhan/pump-to-v0.29.3 c6abc86 pump version to v0.29.3 a5700fc Merge pull request #240 from dikhan/bugfix/ignore-order-for-subprorpoerties-too ff30b76 gomod deps version updates 5a6ca1e solve lint issue 875b6b8 ignore order if property is set with ignore order 735fc30 add more test coverage
PR #237 [BugFix: Issue #236] Don't update the state if the import fails
1b794f8 Merge pull request #238 from dikhan/pump-v-0.29.2 7533ac6 pump version to v0.29.2 c125d4b Merge pull request #237 from dikhan/bugfix/dont-create-state-if-import-failed 9397953 fix TestImporter - if import returns an err, then data should be nil 5d37b3d if the import fails return the error and set the data to nil
PR #234 [FeatureRequest: Issue #233 ] Add support for x-ignore-order
aee1ba2 Merge pull request #235 from dikhan/new-version/v0.29.1 76dc67f pump version to 0.29.1 f3028cb Merge pull request #234 from dikhan/feagture/support-for-x-ignore-order 097e21b add support for x-ignore-order bbf6e65 Merge pull request #232 from dikhan/bugfix/error-when-importing-nonexistent-resource cfa1d86 Merge branch 'bugfix/error-when-importing-nonexistent-resource' of github.com:dikhan/terraform-provider-openapi into bugfix/error-when-importing-nonexistent-resource efe7503 integrate readWithOptions into import method 99b28a5 add case to TestReadWithOptions - if error isn't an openapi error f8d726f move resourceFactory read logic to readWithOptions
PR #229 [FeatureRequest: Issue #228] Ignore array prop ordering
ca1fe4d Merge pull request #230 from dikhan/feature/pump-version-0.29.0 68a1fb0 pump version to 0.29.0 2355a80 Merge pull request #229 from dikhan/ignore-array-prop-ordering ace46ff go mod dep updates 8110f81 add x-terraform-ignore-order documentation efe0ba4 add test TestUpdateStateWithPayloadDataAndOptions cec48c5 add check for nil remoteValue 5a29d95 enable ignoreListOrderEnabled depending whether a resource or data source called the method 7378bc1 go mod dep updates 890eb6b vet cleanup beb4fa3 fix integration test adding the newly supported extension x-terraform-ignore-order: true 0cf8295 integrate processIgnoreOrderIfEnabled in updateStateWithPayloadData 172d295 add new use cases to check for input value being nil 488cb67 update test name to match the method under test 7f1f8c0 remove non needed switch 440babc Update TestEqual to TestEqualItems (new method name) 17452fe Add more test cases to TestCastValueToArray 04c14a4 Add TestCastValueToArray 4dbf266 Rename compare to equalItems (more descriptive) c5cc347 - rename the compareInputPropertyValueWithPayloadPropertyValue to a more clear name processIgnoreOrderIfEnabled - processIgnoreOrderIfEnabled now checks whether the property has the flag IgnoreItemsOrder enabled, otherwise returns the remote list (keeping the current behaviour) - if the casting returns nil we return the remotelist too (eg< use case for list of bools with the IgnoreItemsOrder set to true, this is not supported at the moment) ef12e1b Add TestValidateValueType 28ad45d Add bool switch case in compare method b6c4307 Add TestCompare for specSchemaDefinitionProperty 66240a8 Add test case to TestCompareInputPropertyValue afc971f fixed bug where once all the object prop values had been checked it was falling back to the regulat item check (instead of returning true) resulting into casting errors dd575ca fix typo 81479d7 remove unnecessary duplicated code de6be5f add support for compare and compareItems in the specSchemaDefinitionProperty 381cf8f Add float case to castValueToArray 29d5087 added int use case test coverage 593c526 cast to array of interfaces to simplify processing of different elem types a8150e9 Add test cases to TestCompareInputPropertyValueWithPayloadPropertyValue 337ae09 modify logic to cover the new set of use cases 16107a5 Add method (shouldIgnoreArrayItemsOrder) and related test to see if property has the x-terraform-ignore-order ext set 258e2a8 Merge branch 'ignore-array-prop-ordering' of github.com:dikhan/terraform-provider-openapi into ignore-array-prop-ordering 830e55a Update compareInputPropertyValueWithPayloadPropertyValue - cast to []string 05c25c3 Merge branch 'ignore-array-prop-ordering' of github.com:dikhan/terraform-provider-openapi into ignore-array-prop-ordering 8c9e2c1 add support for x-terraform-ignore-order extension 692767b Add initial checks on typeList in compareInputPropertyValueWithPayloadPropertyValue 8aeb727 add typeFloat and typeBool use case 7484ad8 create method that compares local proeprty value with remote 3582dd5 add TestAccCDN_CreateResourceWithIgnoreListOrderExtension
PR #225 [FeatureRequest: Issue #224] Add telemetry to data sources
a02d7cb Merge pull request #226 from dikhan/pump-v-0.28.1 abadc8e pump version to 0.28.1 7de5204 Merge pull request #225 from dikhan/add-telemetry-to-data-sources b52901e fix test ensuring we check the expected indexes contain the expected metric f9ea39d fix failing test a30327a Integrate submitTelemetryMetric into the resource factory aec649a Add TestDataSourceInstanceRead_Fails_NilOpenAPIResource 4d4094d test data source with filters in the integration test too dc0edb6 Update httpendpoint telemetry e2e test to check data source telemetry ef68816 update '.terraform.provider' docs a937e6d integrate telemetry into dataSourceInstanceFactory read operation 44fb943 add test to TestSubmitTelemetryMetric ee84ba8 Update data source factory to submit telemetry on read operation 5dce956 Create new functions to submit telemetry metrics for resources and data sources
…dep to GetTelemetryHandler 262e956 Remove deprecated telemetry submit metrics method 04362ba Move telemetry handler and submit metric from plugin conf…
6f2c3a9 Merge pull request #223 from dikhan/version/update-to-0.28.0 db1df80 Update version to 0.28.0 1e1bbfd Merge pull request #222 from dikhan/feature/telemetry-support-resource-metrics 6cf4233 update graphite docs with tags info and 'terraform.provider' metric updates 62a46bc update http endpoint docs with new resource metric/tag format for '<prefix>.terraform.provider' a12af43 fix log entries in the test api server 676b6cc fix flaky test 111fcd8 Merge branch 'feature/telemetry-support-resource-metrics' of github.com:dikhan/terraform-provider-openapi into feature/telemetry-support-resource-metrics 67a9ffe fix graphite test e7ffc30 Update assertions in e2e provider config test with http endpoint telemetry b7f08fe fix go vet issues b7efcb7 Add todo to implement sending the terraform version with the plugin execution counter 93c4328 Remove provider total runs counter from telemetry provider 4dc5d6f add e2e test to confirm metrics are being submitted correctly 07d134a Update resource create, read, update and delete methods to use telemetry handler stub 10b87b8 integrate telemetry metric into import operation 0edd263 Update resource delete method to submit telemetry metric 3a65717 Update resource update method to submit telemetry metric 7f18d35 Update resource read to submit telemetry metric 93e981c integrate submitTelemetryMetric into create operation 17eb2e6 add check for nil providerClient 0966080 Add submitTelemetryMetric to resourceFactory and associated test 8046a0d Update TestProviderClientGetTelemetryHandler to use &telemetryHandlerTimeoutSupport 54bcaf2 support GetTelemetryHandler() telemetryHandler in the ClientOpenAPI 9ac7ae6 integrate telemetryHandler into ProviderClient 4e65d49 Separate success and failure tests for SubmitPluginExecutionMetrics a655c3b Add SubmitResourceExecutionMetrics to telemetry handler 149c77d Update TelemetryProvider interface with IncServiceProviderResourceTotalRunsCounter f8edfc3 Add IncServiceProviderResourceTotalRunsCounter to the telemetry provider stub 70d3c83 fix failing test 7b3e783 add IncServiceProviderResourceTotalRunsCounter to graphite telemetry 04f8b72 use TelemetryResourceOperationCreate instead of hardcoded string 30f745d document operation with specific type TelemetryResourceOperation 7690e10 Add IncServiceProviderResourceTotalRunsCounter to HTTP endpoint telemetry 855f86d Merge pull request #220 from dikhan/feature/submit-provider-props-in-http-endpint-telemetry 964c721 return nil telemetry handler if telemetry validation fails d37d6ae check if telemetryProvider is nil before validating 40945a9 update doc with actual implementation behaviour aa54222 update e2e HTTPEndpointTelemetry test to include provider_schema_properties ead2375 validate telemetry provider before creating the telemetryHandlerTimeoutSupport 511fe4e update docs 08e3824 Merge branch 'feature/submit-provider-props-in-http-endpint-telemetry' of github.com:dikhan/terraform-provider-openapi into feature/submit-provider-props-in-http-endpint-telemetry 2d5c455 Update provider factory test to check for telemetry metric tags 24a56b2 Merge branch 'feature/submit-provider-props-in-http-endpint-telemetry' of github.com:dikhan/terraform-provider-openapi into feature/submit-provider-props-in-http-endpint-telemetry b2c5e53 updated telemetry documentation including provider_schema_properties information 0ed925f Merge branch 'feature/submit-provider-props-in-http-endpint-telemetry' of github.com:dikhan/terraform-provider-openapi into feature/submit-provider-props-in-http-endpint-telemetry 8a29e90 Update telemetry metric struct to submit a list of tags to be associated with each metric 5ccd8f1 add coverage to TestGetSchemaPropertyConfiguration 6c2803d add more coverage for TestTelemetryProviderHttpEndpointSubmitMetric 368c18f change TelemetryProviderConfiguration to have interface{} values instead 05f153e add telemetryProviderConfiguration as dependency to createNewRequest dda8a3b add TelemetryProviderConfiguration as input param for IncOpenAPIPluginVersionTotalRunsCounter and IncServiceProviderTotalRunsCounter 6c5fa6b Update provider factory test to check for expected headers from http endpoint telemetry b45f062 Update TelemetryProvider interface with a GetTelemetryProviderConfiguration 4fe281b Update e2e plugin config tests with new telemetry config 1654f33 Fix golint errors 75ce657 add resourceData dep to GetTelemetryHandler 262e956 Remove deprecated telemetry submit metrics method 04362ba Move telemetry handler and submit metric from plugin config to provider factory c5bfdde Remove telemetry handler and add todo to test logic after migrated e5101af Update test get telemetry config - expected type should be pointer eddb669 Update test to get service provider config de74810 Comment out Telemetry Handler SubmitPluginExecutionMetrics - pending changes to logic aa1d732 Fix plugin config marshal test 7620f64 add omit empty tags 944c7e7 update stub with GetTelemetryConfiguration implementation a89e1c7 telemetryHandlerTimeoutSupport now accepts resource data and telemetryProvider 989419c move TelemetryConfig to service configuration level
PR #216 [BugFix: Issue #217] Fix marshal nil pointer caused when marshalling TelemetryProviderHTTPEndpoint
00f4074 Merge pull request #218 from dikhan/version/update-to-0.27.1 81117e2 Merge branch 'master' into version/update-to-0.27.1 ce8da78 Update version to 0.27.1 5c2c992 Merge pull request #216 from dikhan/bugfix/telemetry_http_endpoint_marshall_issue 8de9eba fix marshall nil pointer caused when marshalling TelemetryProviderHTTPEndpoint
PR #215 [BugFix: Issue #214] Fix x-terraform-sensitive description
x-terraform-sensitive descriptiona21d807 Merge pull request #213 from dikhan/version-update-0.27.0 bf0abec Merge branch 'master' into version-update-0.27.0 bcd83c1 Merge pull request #215 from dikhan/bugfix/x-terraform-sensitive-doc fa642a9 fix x-terraform-sensitive description cd51785 Update version to 0.27.0 1b2abe8 Merge pull request #211 from dikhan/bugfix/makefile-travis-error 5ca09b0 Remove extra ')' in Makefile ef3d40a Merge pull request #210 from dikhan/feature/add-telemetry-http-endpoint-support 00a9df6 replace spaces withs tabs 6f95581 commenting out github release install step for now 2a657e5 uncomment github-release-notes installation 2e853d4 locking github.com/google/go-github dep to a compatible version for github.com/buchanae/github-release-notes 9328f93 commenting out github release install step for now 96e88d3 Merge branch 'feature/add-telemetry-http-endpoint-support' of github.com:dikhan/terraform-provider-openapi into feature/add-telemetry-http-endpoint-support ef2593f go mod deps updates 1b4ad37 Merge branch 'feature/add-telemetry-http-endpoint-support' of github.com:dikhan/terraform-provider-openapi into feature/add-telemetry-http-endpoint-support dde4ec5 Go mod updates a4254c8 Cleanup - lint errors (HTTP should be all caps) 583a7a2 make more explicit the test api endpoints 6357548 Some cleanup - add comments to test check functions and correct typo 06f45d3 created TestAcc_ProviderConfiguration_PluginExternalFile into e2e e88a278 Add integration test (TestAccProviderConfiguration_PluginExternalFile_WithTelemetry) with telemetry 88db5b5 Update comment for HttpEndpoint in TelemetryConfig struct 50a8748 Correction to httpendpoint docs - replace reference to Graphite bfe8115 Merge branch 'feature/add-telemetry-http-endpoint-support' of github.com:dikhan/terraform-provider-openapi into feature/add-telemetry-http-endpoint-support 4952cb2 update plugin config docs with http endpoint telemetry info eb596e6 Update TestGetTelemetryHandler with new test cases f461313 Merge branch 'feature/add-telemetry-http-endpoint-support' of github.com:dikhan/terraform-provider-openapi into feature/add-telemetry-http-endpoint-support 1370573 integrate HttpEndpoint into TelemetryConfig 8c7b168 add test to confirm nil telemetryProviders does not blow up 83b7e41 Refactor TestCreateNewRequest to use more descriptive assertions a95289e Merge branch 'feature/add-telemetry-http-endpoint-support' of github.com:dikhan/terraform-provider-openapi into feature/add-telemetry-http-endpoint-support 1d23e9a Add crappy path to TestCreateNewRequest - bad url 958358a add tests for createNewCounterMetric 52b88e5 add logic for IncServiceProviderTotalRunsCounter 68fbdad add test IncOpenAPIPluginVersionTotalRunsCounter 881c92c test failure scenarios 0e58456 Refactor TestCreateNewRequest - check only the OpenAPI user agent and not the os and arch 295f7a0 add happy path test for TestTelemetryProviderHttpEndpointSubmitMetric 38ac321 Add TestCreateNewRequest with happy path ec7ee4c Refactor telemetry provider httpendpoint ab0ba93 add content type header const e027816 add impl for IncOpenAPIPluginVersionTotalRunsCounter 31d6fc6 add TestTelemetryProviderHttpEndpoint_Validate test 89e993c add a quick todo as a reminder 8d341f7 create scaffolding for TelemetryProviderHttpEndpoint 97e21c7 re-organize a bit the code
PR #205 [FeatureRequest: Issue #204] Provide telemetry in OpenAPI Terraform Provider
b836442 Merge pull request #206 from dikhan/new-version/0.26.0 86fa8c7 [NewRelease] v0.26.0 d433468 Merge pull request #205 from dikhan/add-metrics 4f5b731 refactor graphite provider submitMetric to return result of c.Incr 8947947 add TestTelemetryProviderGraphite_BuildMetricName 190d9d4 expose telemetry configurtion on NewPluginConfigSchemaV1 cbab29d create assertExpectedMetric to reuse code across tests that need the udpserver 59f0419 go mod dep updates 6c5ecd3 fixing go vet issues 6ddd5b0 Merge branch 'add-metrics' of github.com:dikhan/terraform-provider-openapi into add-metrics 12e3a1f add a channel to udpServer 7d0b6e1 add documentation d576a44 Merge branch 'add-metrics' of github.com:dikhan/terraform-provider-openapi into add-metrics d9a02ea add more tests to cover when telemetry configuration is not present f9ed7ee Merge branch 'add-metrics' of github.com:dikhan/terraform-provider-openapi into add-metrics 8ea171e add tests for plugin version and service provider counters with a bad host ff6dd8b go mod dep updates 9b96879 submit metrics once the plugin config is configured with telemetry 01dfe0c create telemetry timeout ea00451 Merge branch 'add-metrics' of github.com:dikhan/terraform-provider-openapi into add-metrics aec4540 Merge branch 'add-metrics' of github.com:dikhan/terraform-provider-openapi into add-metrics 3c8c803 add happy path tests for IncOpenAPIPluginVersionTotalRunsCounter and IncServiceProviderTotalRunsCounter c370964 add logging to IncOpenAPIPluginVersionTotalRunsCounter and IncServiceProviderTotalRunsCounter 98fd3d8 updated test description to match reality aa7c26c Integrate GetTelemetryHandler into the PluginConfigSchema interface 36d7c49 Add GetTelemetryHandler in charge of building TelemetryHandler with validated telemetry providers 529deb8 Add TelemetryConfig to the PluginConfigSchemaV1 bff33c9 Merge branch 'add-metrics' of github.com:dikhan/terraform-provider-openapi into add-metrics f5ba459 remove terraform version counter 42558fc add implementaion for TelemetryHandler c582501 add TestTelemetryProviderGraphite_Validate db5ee3a add fields to struct 34797cd provide implementation for TelemetryConfig 5f03c38 add dd lib to push metrics to graphite
PR #199 [FeatureRequest: Issue #198] Updating release documentation
ed0d4c4 Merge pull request #203 from dikhan/quick-update 056d106 Merge branch 'quick-update' of github.com:dikhan/terraform-provider-openapi into quick-update bf76658 remove test from release-version 0e33fea Merge branch 'master' into quick-update 6ddd5f0 make sure we use gomodules when releasing too 19e1106 Merge pull request #202 from dikhan/quick-update bb37746 run test before releasing forcing deps to be pulled too e4aa09b Merge pull request #201 from dikhan/version/pump-up-0.25.0 687bf80 Merge branch 'master' into version/pump-up-0.25.0 bcc2626 update PR template to require 1 reviewer/assignee 8f00195 remove new lines in PR template 8931293 add release-notes to gitignore b34b52a Merge pull request #200 from dikhan/version/pump-up-0.25.0 36ca014 bump up version to 0.25.0 58850ee Merge pull request #199 from dikhan/new-release-docs 7f97af8 update go mod 92b418b update contribution guidelines 065d2d8 update bug report and feature request templates 6897d09 update the pull request template c43b44b add make target test-all (runs all tests, including int tests) 5958b76 update release docs with new process 8c5a6f0 remove delete-tag make target 1eeb924 add release-pre-requirements to makefile - installs deps if needed 47b9613 go mod updates 4892201 update release_notes.sh to use correct repo and PR title bf6ef47 Merge pull request #198 from dikhan/feature/automate-release-process 309a021 go mod version updates 7581c9d update travis pipeline to support automatic releases too 92dde69 update make release-version 79d8db0 add semver script to compare whether current proposed version is greater than latest release c398cb9 create release_notes script that produces a release note (release-notes.md) including PRs information
Tech Debt #194: Fix deprecation goreleaser warning when releasing new version
2c80032e Merge pull request #196 from dikhan/version/update-to-0.24.0 ad1b5988 bump up version to 0.24.0 c9bdaea7 Merge pull request #195 from dikhan/tech-debt/fix-deprecate-warn-goreleaser-config 5fc97504 Merge branch 'master' into tech-debt/fix-deprecate-warn-goreleaser-config 57bb20ba Merge pull request #193 from dikhan/feature/validate-secdefs-header-values-before-api-call 17e6fac7 Merge branch 'feature/validate-secdefs-header-values-before-api-call' of github.com:dikhan/terraform-provider-openapi into feature/validate-secdefs-header-values-before-api-call a7446672 go mod dep updates fc07ca9d Merge branch 'master' into feature/validate-secdefs-header-values-before-api-call 8632cf62 go mod updates 4f4587b5 typo fix 6a8d4024 Merge pull request #191 from dikhan/feature/do-not-fail-when-cmd-exec-fails 17cf167e Merge branch 'master' into tech-debt/fix-deprecate-warn-goreleaser-config 635b0b7f quick fix updating to archives as per deprecation warning and upgrade documentation c74aa9ad fix int test and update key name to represent the expected behaviour c7135d4e make it expliciut that the provider config 'required_header_example' is empty a7ed78f9 go mod dep updates 48a10838 remove no longer applicable tests since the check is done before API is performed instead 97347524 fix unit tests adding required flag set to true c1be2971 make the check safer comparing against the string trimmed cbd12848 add int tests covering APKIKeyHeader, APKIKeyQuery and RefreshToken c2357227 set authenticator value to empty if not present in the provider configuration 59afe8f1 fix unit tests dfb6574e return error when prepare auth fails 5e15b1a6 integrate authenticator.validate() when looping through the authenticators edf06f53 refactor prepareAuth test to use table tests 1f139b30 refactor test to use table driven 3d79d8c2 add new validate method to specAPIKeyAuthenticator d12eefac fix compilation issues after updating the authenticator struct 89dc9bd9 add validate function to check the apiKeyHeaderAuthenticator contains an api key value 1e171d07 add validate function to check the apiKeyQueryAuthenticator contains an api key value cee77ef1 add validate function to check the apiRefreshTokenAuthenticator contains an api key value 0579cae6 roll back changes related to config file path 7d676ea4 update expected error message when sec def is missing 6ed39bf9 fix integration test expected error 9112116c remove header validation from newProviderConfiguration c88495fe more user friendly error 1c802623 update error to be more user friendly 7227d0f8 validate if header is required and if the value is present a8a767d2 make field public dd974085 update header registration setting if header is required eb2cf50e fix compile issues a68e4cba add support in SpecHeaderParam to mark as required the parameter 24d9c53d add integration test documenting expected behaviour when required security definition for a resource is missing the value 30a1c005 add integration test documenting expected behaviour when required header for a resource is missing the value 043ed0de go mod dep updates 92ae3e7e fix lint issue ad179482 more go mod dep updates b1097d03 update int tests to document that failures to execute cmd or read external source file containing the property value will not stop the plugin execution 0e50ef99 [bug-fix] error out when external config file does not exists b650381c go mod dep updates c8128a49 update documentaiton bd98280d Merge branch 'master' into feature/do-not-fail-when-cmd-exec-fails e25c6ab0 Merge pull request #187 from smutel/feature/BeAbleToUseDash 7b0622e2 extend test to check default values too e168fbf7 don't stop plugin execution when provider schema property config contains a command that fails or fails to get the value from external source file 604a8037 provide more details in the error when cmd execution fails 0c95f975 test case when extenal file is json but the keyname is wrong 662e7c42 add coverage when external config file does not exists ca11f142 Merge branch 'master' into feature/BeAbleToUseDash 4128b6e6 Replace dash by underscore 0383df28 Change regex to be able to use dash in resource name 58689e82 Add tests for resource with dash
Nothing published for this version
…given a spec.PathItem 94d83895 remove todo for deprecating x-terraform-resource-name on post 12717dad go mod updates to golang ad509e7b Merge pull req…
391a8c95 Merge pull request #189 from dikhan/bump-up-version-to-0.23.0 5c58b657 bump up version to 0.23.0 d5a7d3ff Merge pull request #186 from dikhan/tf-preferred-resource-name-on-path cf28316a extend fat tests to cover preferred name on root path lavel and data sources df55226f extend TestBuildResourceName with more test to meet acceptance criteria ef9f7c5c go mod dep updates 9049b458 quick refactor to bring getPreferredName under SpecV2Resource namespace 9e23f899 update documentation for x-terraform-resource-name f22147bb remove extra #'s in a couple headers in the docs - rendering incorrectly c536da0d go mod updates to golang b2d66a10 remove test cases from TestGetTerraformResource 88801c23 integrate getPreferredName into getParentResourceInfo and getResourceTerraformName 181af3d9 add getPreferredName func to get preferred name given a spec.PathItem 94d83895 remove todo for deprecating x-terraform-resource-name on post 12717dad go mod updates to golang ad509e7b Merge pull request #185 from dikhan/fix-subresource-parent-assert f4666461 go mod updates to golang 49bef1c9 remove TestGetTerraformCompliantResources failing assert on subresource parent property b6463439 remove todo in TestGetTerraformCompliantResources - assert instead on parentPropExists be3abc5e fix failing convey in TestGetTerraformCompliantResources da49c31e update swagger in gray_box_cdns_test to have x-terraform-resource-name on root path rather than on post 76698c3e add test case to TestResourceTerraformName - preferred name ext on both root and post levels 34daa8be refactor getResourceTerraformName when post has preferred name ext and root path has another extension 939bdf11 go mod updates to golang ea306d0f refactor getResourceTerraformName to check the root level path for the x-terraform-resource-name extension e3220455 extend TestGetResourceTerraformName with a case where x-terraform-resource-name is on the root level path 4dd23f51 new integration test TestAcc_PreferredResourceNameOnPathLevel
Bug Fix #182: Parent id required arrays subresources
a648b0b8 Merge pull request #183 from dikhan/update-version-0.22.3 e277406c pump up version to 0.22.3 682ebe59 Merge pull request #182 from dikhan/bugfix-181/parent-id-required-arrays-subresources 97634064 moved tests to either TestGetResourceSchema or TestGetSchemaDefinition to better document expected behaviour 8dd9ea16 flesh out TestGetSchemaDefinitionWithOptions tests 20d077b7 make use of map instead to avoid dups 8345e031 create getSchemaDefinitionWithOptions which will force parent props addition if dealing with first level 619eef07 document in tests two bugs found
Feature #171: Support resources where POST operation does not expect any inputs
3e592077 pump up minor and bug version 253b209c Merge pull request #177 from dikhan/bugfix/duplicate-resources a654640d add subresource root level get operation to reproduce bug found and confirm fix 3a1ae9b4 return the providerConfigEndPoints :) cee6ec13 go mod deps update 6e1db8a0 add subresource check and data source instance on subresource into fat test c0a3682d remove provider name from resource name list build a1d36aa0 pass in providerConfigurationEndPoints to createTerraformProviderSchema bbad6d3e implement getResourceNames that given the resource map builds the list of resource name list b74f9706 remove specAnalyser dep from providerConfigurationEndPoints and instead configure the struct with resourceNames fcbe235b acept providerConfigurationEndPoints as input dbdd80fc add test for subresource paths findMatchingResourceRootPath 944abca4 make isResourceInstanceEndPoint only return true if the path ends with path param or path param with trailing slash 221a3373 add more logging to isEndPointFullyTerraformResourceCompliant aaa6e921 add more logging to findMatchingResourceRootPath f19dc8cf Merge pull request #175 from dikhan/feature/post-opeartion-with-no-inputs bbe1408c update go mod deps ebd6ac12 fix go vet issues 753953bc add missing coverage for case where successful response schema is missing 80fc4422 update docu with the new use case b646b83c go fmt 92c23f5d update int test and make it green 3939a653 integrate (special case for resources with POST operations that do not expect any input) logic into validateRootPath dfdc4b29 add implementation for getSuccessfulResponseDefinition 11d03ee2 remove redundant tests in TestValidateResourceSchemaDefinition 6749ff50 add todos as ref to pick up next 7384ccc3 WIP implement validateResourceSchemaDefWithOptions 89fa2b20 add test for Test_getBodyParameterBodySchema 08732cf5 refactor getBodyParameterBodySchema to pull out logic into new function (bodyParameterExists) 8941d42f add unit test describing expected behaviour for resource that is missing post body operation 4e534788 add test for new use case where valid resource (with no inputs for creation) is not considered terraform compatible
Bug Fix #169 : Do not error out when API returns properties that are not specified in the resource definition model
9dcdbcc7 update go mod deps 96a7c861 pump bug version 3565e38a Merge pull request #174 from dikhan/api-props-not-in-schema-no-err ed38c9e9 update TestAccCDN_CreateWithZeroValues with new error message for updating an immutable prop 741126ff update go mod deps 3b04de5a update error messaging when user tries to update an immutable prop 770190d2 remove error when API returns property not specified in resource schema def
Feature #164: Migrate OpenAPI plugin terraform core imports to Terraform Plugin SDK
d4eeccb9 pump up minor and bug version 71f1a045 pump up bug version number dcf9b98e Merge pull request #170 from dikhan/fix-goreportcard-issues-2 340f3895 Merge branch 'master' into fix-goreportcard-issues-2 d177dc6d Merge pull request #173 from dikhan/bugfix/allow-multiple-digit-version 54ede22c update test name c92455da Merge branch 'master' into bugfix/allow-multiple-digit-version df038d96 enable multiple digits in regex that checks binary name and extracts the provider name 13935ba1 do not use iterating object for assignment 2a9f4d83 handle error b7e7c521 Merge pull request #168 from dikhan/fix-goreportcard-issues cdeebf19 ineffassign 42148826 run go fmt simplify 8ed6a938 fix misspells 8df5c40a fix 'occured' misspells 5e6c2a14 fix 'reponse' misspells 21680012 fix 'Adn' misspells f091831b fix 'shoudl' misspells 59509016 Merge pull request #167 from dikhan/making-repo-awesome 41c0da0d Merge branch 'making-repo-awesome' of github.com:dikhan/terraform-provider-openapi into making-repo-awesome 70e2ca3b remove hidden dot e3ea0a22 Merge branch 'master' into making-repo-awesome 46fac18e push code cov report from ci build too efc30f2a Merge pull request #166 from dikhan/making-repo-awesome fe1c3a23 add CodeCov link and badge 8c521c19 add go doc and goreportcard links/badges ae07d244 Merge pull request #165 from dikhan/feature/use-terraform-plugin-sdk 127011a4 go mod deps updates 3a4ce459 ran tf-sdk-migrator migrate da82815b fix more issues related to the arrays of interfaces a36fc778 fix issues after upgrading terraform to 0.12.10
Added support for security definition x-terraform-refresh-token-url extension
4abb5c82 pump minor version 8bed9e59 Merge pull request #163 from dikhan/feature/refresh-token-authenticator 25187b50 rename variable name to make govet happy 0c9360fa Merge branch 'master' into feature/refresh-token-authenticator 9de64472 add tests for specAPIKeyHeaderRefreshTokenSecurityDefinition 03b105a8 go mod dep updates 8a8845ba add docu for x-terraform-refresh-token-url extension e5b7c041 remove x-terraform-refresh-token-url from example 7e9d49fa add response status check 706b0336 quick refactor in assertion 1d94875e removed unapplicatle Todo, that struct feels a lot like a Java class with all private methods and because it doesn't shows behaviors it shouldn't be "tested directly" c8e7041e unittested apiRefreshTokenAuthenticator.prepareAuth() 58b1073d removed unapplicable todo 6ed5f896 add coverage for APIKeyHeaderRefreshTokenSecurityDefinition 9dad72ce remove no longer applable TODO 2d2bdba1 cover use case where location is not supported 2e6ac2cf add test for refresh token auth 26872dd1 add coverage for bearer query sec def 4c181f83 update dup test to cover bearer header security def 3c596311 Add TestIsRefreshTokenAuth d5226c29 add TODOs as a reference to the missing bits and bobs 2afb6ac4 integrate refresh token api call to prepareAuth and then attach to the auth context the access token received 18067213 update also input arguments after specAPIKeyHeaderRefreshTokenSecurityDefinition contructor signature refactoring b5650d93 quick struct rename to specAPIKeyHeaderRefreshTokenSecurityDefinition 87163361 create int test to cover refresh token authenticator 60631de9 update cons names to be more explicit dc49dfda Merge branch 'master' into feature/refresh-token-authenticator f91faa80 design proposal for refresh token authenticator
Bug Fix #159: immutable properties where the value has not changed not working properly.
54223498 pumping up bug version number 12ff85c1 Merge pull request #162 from dikhan/various-bug-fix 0b544cf7 update readme with object and optional property child info 8f886749 go mod dep updates 8f031bb7 fix issue where immutable check was done after the list size was checked resulting into an error being thrown for props that are actually mutable aff7008b Merge branch 'master' into various-bug-fix 9927fd35 update docu for x-terraform-immutable 6796f8dc Merge pull request #158 from dikhan/bugfix/install-script 20631d8f fetch version from github instead of relying on local dir 49e700b6 Merge pull request #157 from childish-sambino/patch-1 a8051640 update error message in int test d7b81508 check if property (list of primitives) is immutable before checking for diffs 39151b66 fix bug where properties within objects were always treated as immutable 052034a2 add special case in float where if actual float is being compared then check directly the values (with no casting) c3d409ef add new test mutable list of objects where some properties are immutable and values are not updated d9760470 fix issue where json marshalling always converts int into float64 ab45e065 update go mod deps ddb84b25 go vet name update 01ceecd9 fix bug where read remote was not considering parentIDs (only for subresources) 0e03254e fix put tests f6608611 add test when api returns more props than the ones specified in the schema definition fc7d1bb7 cover when client returns an error 7c01af7f added coverage for immutable list size is updated 0f1c65a0 fix issue where objects that were not immutable but had properties immutable were being ignored 154fd619 fixed docu for isComputed and isOptionalComputed methods 645b73a0 add missing prop to the test 378839a8 check size of local list and remote before going through the list elems c9efbaec move readOnly checks inside validateImmutableProperty so recursive calls also ensure ignore readonly and parent props 7a142ac1 panic when marshalling fails 1d42689e add support for list with objects immutable checks 78b505f7 refactor code removing not needed extra method validateImmutableProperties ce186ad7 add coverage for immutable object property is updated 5fb697be add support and coverate for immutable objects 388269e3 fix checkImmutableFields bugs 8e377185 reverting changes related to post/put having different methods to build the payload bf877dbf push changes for createPayloadFromLocalStateData 62faaa0c refactoring on createPayloadFromLocalStateData 3ff73d41 add better logging 516a963c create string zeo prop 8bdbda22 use computed param not used before c4ebe4f6 create helper function to build parent props 9a4773ed go mod deps 0fbd8413 fix issue with version 5b5db359 do not inject readonly properties into the payload 14d9d75a Add git dir to script installation instructions
Feature #154 : Added support for data source instance. More info here
b482df76 pump up minor version e4dec0cc Merge pull request #155 from dikhan/feature/data-source-instance 4325ef7d add documentation 1ba6f3b8 go mod dep updates 02c77789 remove default values when processing data source computed properties 3f02a7d2 go mod dep updates f50fa497 add coverage for data source instance to fat unit test 56334658 add subresource test for DataSourceInstanceRead c3209186 refactor createTerraformProviderResourceMap to return both resources and data source instance 622654f3 handle createDataSourceSchema error returned d071248d create createTerraformProviderDataSourceInstanceMap 9afcba7e add read support for data source instance d4fdfbc4 create data source instance factory f4a8dc21 add integration test for new data source type (instance)
Nothing published for this version
Feature #5: Added support for data sources. More info here
c1505b67 Merge pull request #152 from dikhan/feature/data-source-support 328c37bb Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support 75e8e25b Update TestCreateTerraformProviderDataSourceMap to use dataSources on the specAnalyserStub 28768593 add info that subresource paths are also supported in data sources f2b1886d Fix case in TestCreateProvider for createTerraformProviderDataSourceMap failure 0f95b4d8 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support 7c9c762f WIP add case to TestCreateProvider to exercise error when createTerraformProviderDataSourceMap fails 3a6736d4 go mod update 4cf3593c add timing telemetry and debug info 2504e343 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support 61e6129c add fat test for subresource data sources ffca75e7 Expand TestOpenAPIProvider to check more data types a4264f7b add TestDataSourceRead_Subresource 0a1ff7e3 add test TestCreateDataSourceSchema_Subresources f53c1265 use get property based on terraform name 96c7d942 do not override parent id property config if found 2750c71f update test to represent the schema input configuration 427e2afd some more dry up 18b8389d Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support c524b823 create helper function to assert data source schema configs 62906c90 [wip] applying a filter on a nested struct while reading from a DataSource 70a09659 fixed case in which the datasource contains Elems which are primitive e7f55ba6 [wip] all the nested object properties attributes are set to the correct values for the data source b1dd16c5 [wip] adding nested object support 9d4b3e54 Merge branch 'master' into feature/data-source-support 03cf8a20 added todo to cover nested objects and make sure they are made computed too 0944432d update the schema to incluide an array of strings and assert the state contains the owners too 4696163d extend model def to include array of strings prop 6bad267c Merge pull request #151 from dikhan/update-version-to-0.18.0 714ee7d3 Update version to 0.18.0 d45cc044 Merge pull request #150 from dikhan/feature/data-source-support 51e72569 Add case to TestCreateProvider where createTerraformProviderResourceMap fails e257db3c Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support d7e9ecef make assertions on data source map too bc534db9 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support f2ffbf8c WIP add coverage to TestCreateProvider for createTerraformProviderResourceMap failure f5fe35ff Remove error check from GetTerraformCompliantDataSources - no longer returns an error 145cd1f1 remove empty line ecdef721 add data source documentation 221d817a Add case to TestCreateProvider where specAnalyser has an error on the backendConfiguration 8e3125cf create specific int test for data source 9a7c567c remove not needed assertions c3833a1a Add case to TestCreateProvider where specAnalyser has an error 01b50094 Add integration test for data source 9f79f4fd add todo with missing coverage 7d14132a remove redundant test (perhaps copy pasta mistake) ece4e314 TestOpenAPIProvider now includes the Integration without mock of DataSources dec17f76 removed unapplicable todo 15936e84 covered happy and crappy paths for createTerraformProviderDataSourceMap 104047eb implemented logic remaining in createTerraformProviderDataSourceMap and completed its "integration" test 8d2468e8 [wip] the integration test is now running properly 267e900b [wip] attempt to test the createProvider() methods widthou that much stubbing this technically will increase confidence in the code as a real SPECV2Analyzer is being use to test prod code 7ef96069 Added tests for TestGetTerraformCompliantDataSources() and changed its signature to return NO error 97f93897 Remove invalid specSchemaDefinition testcase from TestFilterMatch faa8d187 mod dep 794a9273 fix lint issue 09908a7b fix failing test after making list operation rely on root level get response operation config 5db8c137 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support d55cb549 Remove error checking from filterMatch and validateInput - already caught when data source constructed 1550a54f fix issue with test assertion ef9be96b add more todos bc056da0 add implementation to GetTerraformCompliantDataSources 1496b345 create constructor for newSpecV2DataSource 9fb9a037 use List operation when figuring out configuration for list operation bdfe95e2 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support 69309e66 update test to check expected struct hearirchy for data sources d998691b add todo as reminder to add a test for subresoruce data source too 0fb66ab0 add logic to check if a path is data source compliant 840ed387 Add TestDataSourceRead_Fails_Because_Bad_Status_Code 7df603f0 Add TestCreateTerraformDataSource d32ba166 skeleton design to integrate data source functionality 1563b4f9 Add TestDataSourceRead_Fails_Because_List_Operation_Returns_Err for List returning error 0958c3d4 [wip] covering crappy paths in read() 32f78d1a added the ID to the data source and improved assertions 56642598 [wip] extracted setStateID() from resource_factory.go to common.go as it will be used in data_source_factory.go too d6280d19 [wip] introduced new todos as annotation on code coverage and correctness 4954c340 removed unapplicable or old todos 8627defb Fixed filter for float property 6becdd74 [wip] polishing and removing unapplicable or solved todos 75074a30 Update TestCreateTerraformDataSourceSchema to check for an expectedError 5027d687 Update createTerraformDataSourceSchema to return an error e63fc0db Remove todo to get and return the data source schema in createTerraformDataSourceSchema 02a719c8 Update createTerraformDataSourceSchema to return the created data source schema d1a6920c [wip] on createTerraformDataSourceSchema 9589386e both sad and happy path covered for createDataSourceSchema() cd282083 both sad and happy path covered for createDataSourceSchema() c3a5172d [wip] happy path for createDataSourceSchema() e032097e add support for createDataSourceSchema ffae702f Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support efdfb7b3 add test for TestCreateTerraformDataSourceSchema that documents what is the expectation for data source schema configuration f4ba8af2 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support 3249311e Add happy path testcases to TestFilterMatch for int, float, bool properties e0204258 add some info why the test fails 7bf7c124 flesh out todo comment 262e44ac add ref todo comment with missing logic to make the read operation work fine d52c9ce7 integrate updateStateWithPayloadData so state gets updated with the filtered result 26aa11e9 fix assertion issue and only assert state when error is nil fd7e365c add test case for validate input fails d97d4770 remove no longer applicable TODO 6ca95966 add test coverage for: 79a96b1b Add TestFilterMatch to validate filterMatch on dataSourceFactory 07534ed6 Add error property to specStubResource so getResourceSchema() can return an error a046e705 refactor TestCheckHTTPStatusCode and TestResponseContainsExpectedStatus 6af5c247 move common functionality for datasource and resources to commons 1ad586df add filterMatch logic 636e1ffd make validateInput return list of filters with name and value d45f5055 add test for TestDataSourceRead 750aa620 remove redundant err check and update error message returned 078546eb update response payload to be array of items 5b6e3470 enable list testing adding responseListPayload to clientOpenAPIStub 230c94ea dry up label set up 56fab159 add test coverage for isPrimitiveProperty 22246e5c remove n/a todo comment 267e9784 add check for primitive and values size 78cfe373 refactor test to use test driven table c666a98e use const for schema property names to avoid bugs due to typos (reused names across) c5c40da5 add some test for validateInput 5428780e add dataSourceFactory struct 90dd66a2 extend ClientAPI with new operation to list instances d5d26c6e move common functionality for resource and data source factories to commons
Nothing published for this version
Added support for complex objects #147. More info here.
5a6e1e78 Merge pull request #149 from dikhan/bumping-ver-0.17.0 759d05bc added details in the release.md doc 91a8ef0b bump version to 0.17.0 e4b109a0 Merge pull request #148 from dikhan/investigation/nested-objects-readonly-props-diffing 75351e0c Merge branch 'investigation/nested-objects-readonly-props-diffing' of github.com:dikhan/terraform-provider-openapi into investigation/nested-objects-readonly-props-diffing fea7dde5 fix broken link f0c1c652 Merge branch 'investigation/nested-objects-readonly-props-diffing' of github.com:dikhan/terraform-provider-openapi into investigation/nested-objects-readonly-props-diffing cf2b1f61 added a new test case to cover //unstested path e5b20c27 add documentation about 0db47f56 Dry-ed test case 34a181f0 remove //untested comments for tested code 53cf5347 add a test for invalid terraform names for getPropertyPayload() 61851ab5 add TestGetPropertyBasedOnTerraformName() de2b288a replace git.apache.org dependency to github c2ece774 Remove obsolete //untested marker cde92947 Merge remote-tracking branch 'origin/investigation/nested-objects-readonly-props-diffing' into investigation/nested-objects-readonly-props-diffing 6e816941 merge master accb1b78 Merge remote-tracking branch 'origin/investigation/nested-objects-readonly-props-diffing' into investigation/nested-objects-readonly-props-diffing 71f66d4b if a datavalue is null, then test the return behavior 6983dee7 Mark untested logic in updated function 7f54cfa9 Fix "swagger schema definition property that is not of type 'object'", which was passing for the wrong reason 17804e3c De-convey TestSpecSchemaDefinitionIsPropertyWithNestedObjects 65e7e38c Simplify TestSpecSchemaDefinitionIsPropertyWithNestedObjects 021567f8 Introduce "Given a swagger schema definition property that is not of type object" in TestSpecSchemaDefinitionIsPropertyWithNestedObjects c0c1c135 Simplify TestIsLegacyComplexObjectExtensionEnabled d6bbee25 tested objectSchema, err := s.terraformObjectSchema() 2bec2cbd Merge remote-tracking branch 'origin/investigation/nested-objects-readonly-props-diffing' into investigation/nested-objects-readonly-props-diffing ede3a270 De-Convey TestIsLegacyComplexObjectExtensionEnabled 40a707ad Merge branch 'investigation/nested-objects-readonly-props-diffing' of github.com:dikhan/terraform-provider-openapi into investigation/nested-objects-readonly-props-diffing c0a2d213 Mark untested logic in new and updated functions d568b4f3 quick convey test name update to make it more explicit difference bw simple and complex objects de84c8f7 Clean up obsolete TODO; introduce new tests for getPropertyPayload. 85e6ab84 update go mod deps 8174b681 remove unnecessary error returned from isPropertyWithNestedObjects a9aae5c2 Merge branch 'investigation/nested-objects-readonly-props-diffing' of github.com:dikhan/terraform-provider-openapi into investigation/nested-objects-readonly-props-diffing d3e90b39 added test coverage for complex object types in TestConvertPayloadToLocalStateDataValue 36c76241 handled error when a resource miss the specSchemaDefinition d5beb47a Merge branch 'investigation/nested-objects-readonly-props-diffing' of github.com:dikhan/terraform-provider-openapi into investigation/nested-objects-readonly-props-diffing 31065080 Add a test scenario where a nested object contains a complex object 9ce8475f Introduce Test_shouldUseLegacyTerraformSDKBlockApproachForComplexObjects aa754e9e Add a test scenario where a nested object contains a complex object 36a53b71 fix merge conflicts - replaced name to isLegacyComplexObjectExtensionEnabled 8be8c384 Merge branch 'investigation/nested-objects-readonly-props-diffing' of github.com:dikhan/terraform-provider-openapi into investigation/nested-objects-readonly-props-diffing cb28dc23 add test coverage for shouldEnableLegacyComplexObjectBlockConfiguration a82a3189 simplified function name e23c975e Merge remote-tracking branch 'origin/investigation/nested-objects-readonly-props-diffing' into investigation/nested-objects-readonly-props-diffing afde7ced simplified return boolean values 591caff6 remove no longer applicable todo commnet 15d6fa6f add test coverage for isBoolExtensionEnabled bd2a77d7 centralise bool check logic into its own method isBoolExtensionEnabled ad216da3 remove unneeded fmt print line 9b4bd4b7 add test coverage for x-terraform-complex-object-legacy-config extension 1a999327 add TODOs with remaining missing coverage 31d3398b centralised all the logic related to legacy block approach for complex objecs under one method (shouldUseLegacyTerraformSDKBlockApproachForComplexObjects) e79b4ebd update extension name 7b59209f delete no longer needed test file d52bf67c add two option on how to handle object types without diffs c8e7d6c8 better docs ac7facfa That's my take on this issues, check my TODOs fcc823c2 add some bits to the test to reproduce the error cdc7361e add readonly YAML to the grey box testing a11201cc add new unit test to prove that nested objects with readonly props are configured properly in terraform schema
Added support for nested structs #108. More info here.
NOTE: This release includes a non backwards compatible change for property names that had a number and were not terraform name compatible following the snake case pattern, were translated automatically to a compatible name but not very user friendly. For instance a property with name ipv4 would be translated automatically to ipv_4. The property is now translated to ipv4. If you have state files that contain resources with properties where names where automatically translated like the example aforementioned, you can ensure backwards compatibility before updating to use the new plugin version using the 'x-terraform-field-name extension' and setting the current name generated. This will ensure backwards compatibility before updating to the new version of the plugin. Refer to the x-terraform-field-name extension docs for more info.
7dba62c5 Merge pull request #146 from dikhan/bugfix/remove-unneded-checl
22ac5109 Updates to reflect including the version with preferred names
469a39c4 fix bug where the resource name used to match against the regex was the prefer one instead of the uri one
63a1c537 remove not needed check that was preventing resources from being registered if the definitinos were externalised
49efeb62 pump up release version
e1fa811f Fix typo in error message (#145)
00f5cec4 Merge pull request #144 from dikhan/bug/improve-collision-doc
3477b294 Improve doc
b10991be Improve doc
3bb796a2 Feature/handle resource name collisions (#141)
a8aeb99f Merge pull request #138 from dikhan/techdebt-addMoreTestsToGetTerraformComplianceResources
fa2f2e66 kick travis
25125f27 Merge branch 'master' into techdebt-addMoreTestsToGetTerraformComplianceResources
656bb800 add another state to the regex to avoid failing tests
fa6d881f Merge pull request #139 from dikhan/feature/add-int-test-for-timeout-user-override
5d65f558 due to the nature of the async call the error returned could contain the last state or not
b5385819 update name for TestAccLB_CreateDoesNotTimeoutDueToUserSpecifyingAShorterTimeout to be shorter rather than longer
f59ae294 remove non needed step
b98468e7 quick typo fix
52d0fd32 fix instance path reference
26b83e57 update docs with more specific info on how the timeouts are treated and handled
f1f28162 remove non needed step
579e0ec1 add coverage for use case where user tries to set timeout for operation that does not support timeout configuration
e6d49fc5 add int test that shows how users can override timeouts from the config
313f787d rename TestNewSpecV2Resource to TestNewSpecV2ResourceWithConfig
285d8ebe go mod version
1f3351e4 refactor newSpecV2ResourceWithRegion to check if region is empty
e527e0a6 go mod version updates
72f32452 remove unneeded extra branch that was adding more complexity just to log the regionHost
6330d564 use ShouldBeNil instead of ShouldEqual, nil
51018af9 add to cover that schemaDefinitions is not nil
887467be add test to cover case where resource creation fails
b863013c add test to TestGetTerraformCompliantResources for a multi-region resource with an empty string for region (x-terraform-resource-regions-serviceProviderName)
d8947840 add test to TestSpecV2ResourceGetHost to cover a SpecV2Resource with a multi-region host with region specified
5e857638 add test to TestSpecV2ResourceGetHost to cover a SpecV2Resource with a multi-region host but no region specified
57555b3d refactor TestSpecV2ResourceGetHost test case with missing POST operation to pass in nil POST
374b51ba refactor getResourceOverrideHost to return empty string for resource with nil rootPathItemPost
3be2fbd6 add test to TestGetResourceOverrideHost for resource with nil POST operation
1dba8d49 add test to TestSpecV2ResourceGetHost for resource with no POST operation
319eaa54 add test to TestSpecV2ResourceGetHost when override host (extTfResourceURL) isn't specified
c6f6d64a start adding test coverage for SpecV2Resource getHost()
b896e7b3 integrate createMultiRegionResources into GetTerraformCompliantResources function
f6a22772 add todo comment to add missing tests for getHost()
8db96c49 update isMultiRegionResource to return a list of strings instead of a map
30e98c78 return error when path is empty
4f96e6fd expect error when path is empty
df873218 bug-fix: update GetMultiRegionHost to return error rather than nil
c96a4164 add new test for createMultiRegionResources to cover when a list of regions containing a empty string is passed in
d8f5b4f9 add test coverage to createMultiRegionResources to cover when resourceRootPath is empty
a18708c4 attempt to refactor createMultiRegionResources logic
2e0c1ee2 add test coverage to check isMultiRegionResource
b14fe99c Merge pull request #135 from dikhan/feature/parent_preferred_names2
c008b91f add logging in case an error is returned from buildResourceNameFromPath
92ef5f0b add coverage TestGetTerraformCompliantResources to include multi region resource
68055238 fixed todo updating test to considered preferred parent name
5846a838 Remove unused resourceVersionRegex
82b90ff9 Mark untested new lines
47c799da fix go vet issues
c2279a10 updated docs with more info regarding how resource names are constructed
6dad1d0f update how_to_subresources doc
d8a20522 ignore error returned by Compile
a8413b74 Add more test coverage to TestBuildResourceName (negative scenario)
f28d8b53 Add more test coverage to TestBuildResourceNameFromPath
666161c5 Remove redundant tests in TestBuildResourceName and added coverage for different use cases
18db11e4 Merge branch 'feature/parent_preferred_names2' of github.com:dikhan/terraform-provider-openapi into feature/parent_preferred_names2
e35cdb02 Add coverage for when paths is nil
fcfb5b8a remove unused const
4cfc8bde mod version updates
aa128bb4 update integration tests failing to use preferred cdn name instead
556a9240 add unit test for buildResourceNameFromPath
1d549e08 add coverage for paths using trailing slashes
dbd80d2d add test covering parent path containing more than just the version and the resource name
49032370 remove todo comment as it's no longer applicable (fixed)
9545628c fix failing test in getSchemaDefinition unit test
07338cd8 WIP on TestGetSchemaDefinition when we have preferred names
1d672f01 fixed different test related to the existences of preferred names. All tests are green
861ce7e5 fixed todo (and regex) in TestParenResourceInfo
5ff0f1c6 update resourceParentNameRegex to handle base paths too
65661858 Accept paths in the newSpecV2Resource constructor
47bc8541 Update TestBuildResourceName to incporate preferred name case
6746d346 Update TestBuildResourceName to include paths
de78a96d depend on map[string]spec.PathItem{} instead of the whole swagger object
37be48d0 reuse logic on how resource name is build into buildResourceNameFromPath
20040e7c add test to cover parent preferred names use case
562ef3f7 Merge pull request #131 from dikhan/feature/default-to-https
789a25f2 Update mods
ce10d4e9 Merge branch 'master' into feature/default-to-https
887dbead Handle error returned by getHTTPScheme
883641a2 Remove old TODO
22aa1cd5 Replace httpSchemes arg to newStubBackendConfiguration with httpScheme
25505e43 Replace httpSchemes in specStubBackendConfiguration with httpScheme
78425c3e Rename getHTTPSchemes to getHTTPScheme
db3835fa Remove getHTTPSchemes from interface and impls
818e182d Introduce getHTTPSchemes2 on stub; cut over from getHTTPSchemes
d53684de Simplify test by merging single line Thens.
5f34eabe Simplify test by inlining single-use temp var.
c5be0740 Add "mix of schemes configured including supported ones with https"
f8776c98 Improve readbility of test by removing unneeded empty property declarations
cc43e512 Replace conditional error assertion with general one
00988acc Add missing verification that no error is raised if none is expected
5852f077 make error message more helpful
6596ceab add TODOs comments
bc558689 remove not needed check
e9816bef Updated getHTTPSchemes2 signature to return one element instead of a list
c0d86919 fix buggy logic in test where errors were not being caught properly
0a8be123 create getHTTPSchemes2
6bb7973c refactor TestGetHTTPSchemes to use table driven test
2b5959e3 Merge pull request #133 from dikhan/feature/subresource-validation
102c4ac2 update docs to include new validation behaviour
38c0f5a7 Replace last couple occurrences of subresource with parentResource.
1c26cb5c Revert "Rename subResource to parentResourceInfo"
dc44a95c Reduce noise around conditional assertion of expected errors
30427ddd Rename subResource to parentResourceInfo
c23f8a53 Rename isSubResource to getParentResourceInfo
41d992f0 Rename isSubResource to getParentResourceInfo; subResourceInfo to parentResourceInfo
549f6f70 Improve documentation value of tests by removing unneeded clutter.
eca4b4ef Default to return an error if no schemes specified
4489d2b3 Fix the exists = true with nil Item bug
2ae68481 Fix Convey labels; remove redundant convey
345cc9d6 Clean up convey label; add Conveys
973a453a Clean up convey label
da122b32 Clean up convey label; add assertion
6de3407f "Given a specV2Analyser initialized from a swagger doc with a path without a trailing slash"
cb36805d "Given a specV2Analyser initialized from a swagger doc with a path with a trailing slash"
afea17b1 Slice and dice the the Given, When, Then
8620ae2c Calling pathExists on a specV2Analyser for swagger with no paths panics
d701c6e8 Calling pathExists on a specV2Analyser for swagger with no paths panics
0bfbbec3 Use the verbose cucumber format on new tests
a1c1b9ea Calling pathExists on a specV2Analyser with a blank d panics
852327f0 Introduce Test_pathExists
613fd030 Default to encrypted https when backend config has no httpSchemes configured
27469c35 Mod updates
da27fabf encapsulate subresource info logic into its own file
32acd622 rename struct to subResourceInfo
946b0c66 go mod version updates
c63167c7 fix int test failing due to the path parameters name not matching across parent paths and subresource
b0da1fa9 add test coverage for shouldIgnoreResource
5d5fbf4e add missing coverage when parent path does not exists
00659703 remove testcase def boiler plate by defining the struct at the top
d318136f make validateSubResourceTerraformCompliance receive a resource perform validation on
4ecfa205 remove no longer applicable todo
00b1bff3 reserve variable only when handling the subresource
9844bcc4 fixed part of code using subResources, left behind during the previous refactoring, in order to make subResource code pass
2a5d8086 isSubResource is now returning a pointer to a struct which contains non only the fact that is a subresource or not (if not the pointer is nil) but at the same time contains information of parentIDs, full names etc, this is done to create an object which carries info about the SubResources
d59e5bc8 add todo comments
9bf1cc8f integrate validateSubResourceTerraformCompliance with GetTerraformCompliantResources
56ef8cb9 provide validateSubResourceTerraformCompliance implementation
0dbdd4cc create TestValidateSubResourceTerraformCompliance
c9e465d3 create test to cover validation
384ad14b update subresource test to include also the parent configuration
251582ff Merge pull request #128 from dikhan/feature/subresources
9461989b go mod version updates
5cc0707b add PreCheck and CheckDestroy checks in int tests
50de237b go mod version updates
c367d071 fix tests to use the right expected property names
7a3c1b95 convert TestConvertToTerraformCompliantFieldName to table driven
0f247202 fix todos on TestGetResourceURL_edge_cases
378ba6b3 Clean up addressed TODOs
b91e0f90 fix compile issues
6001fb9a Merge branch 'feature/subresources' of github.com:dikhan/terraform-provider-openapi into feature/subresources
66e6d642 big change: parent properties are now marked as required
4e9f36be Clean up Test
e21fde26 Merge CreateSchemaProviderWithConfiguration and createSchemaProviderFromServiceConfiguration
300da62c Improve Convey labels
fad83698 Remove redundant Convey (same as "Given a SpecV2Resource containing a root path")
a6f112fb TestGetResourceURL_edge_cases passes
a05fb481 Improve Convey labels
23e4117e removing todo and putting a comment to make it clear that that use case is not supported at the moment
5fd337bc make test description match the actual input for the function under test
acaf1f33 Merge branch 'feature/subresources' of github.com:dikhan/terraform-provider-openapi into feature/subresources
e0975a9a pr comment address: make the assertion more readable
7430d0d8 pr comment: removed stub from name
4ee43f44 change the test name to more explicit one
cb583efc remove not needed pathParamsMatches info in the error message
8afcf9da Add test cases to TestBuildResourceName including for possible bugs
84f93a92 Improve Convey labels
2697486b Clean up unneeded test setup
89020b38 Introduce TestGetResourceURL_table_driven.
3bea37c0 Fix Convey names
1c7ef068 Remove expectedID since no ID is expected
70234041 Introduce "When getResourceIDURL with a specResource containing a parameterized path and instance ID but missing a parent ID"
87bd8575 Fix Convey names
310d54d5 Revert "Removed expectedID since no ID is verified"
fd09a563 Removed expectedID since no ID is verified
64ca8b1b Remove unused test setup
fce63978 Fix Convey names
41ae4ec8 Remove redundant type declarations
3af216e0 Fix Convey names.
fb5e42b7 Added comments to suspected bug test-cases
875dda77 Add more corner-case test of ConvertToTerraformCompliantName
d2c0ba18 Add more corner-case test of ConvertToTerraformCompliantName
7d67fc3d Fix copy-pasta
8fabc85b Fix copy-pasta
f8745ecd Add "Given a name that ends with _1" documenting a bug
19f95aab Remove un-needed error handling
bcec41e3 Clean up copy-pasta issues in Convey labels
8575c190 Remove duplicate Convey
f5265aaa Fix typos in comments
38c253eb remove examples of preferred names in nested resources
910fdb45 Update go mods
6e0553aa add test coverage when number of parent ids values is less than the actual number of parent properties
c8b4db04 add test coverage when polling operation fails
816a5fc8 make more explicit the expected return codes
a8c59adb add more test coverage in delete operation
ed9ac820 add more test coverage in update operation
3fb89a7c add test coverage in create when polling returns an error
5a4b6bf6 go mod version updates
86928e65 remove no longer needed return error
313f84fe rename test TestGetSchemaDefinition to match the function under test getSchemaDefinition
8d846a98 Remove checks for impossible errors
402c8535 Introduce "When getSchemaDefinition is called passing a schema with a weird property type" test
ee9f98bd Introduce "When getResourceURL is called with a resource which blows up on getResourcePath" test
ef2d9c14 Merge branch 'feature/subresources' of github.com:dikhan/terraform-provider-openapi into feature/subresources
8368d841 Remove //untested comment in stub
664c5558 DRYed up resourceStateRefreshFunc
ae3a47a8 update and delete tested against getParentIDsAndResourcePath failures
4c768a65 read tested against getParentIDsAndResourcePath failures
e2f4d1cc create tested against getParentIDsAndResourcePath failures
f31cfcb1 early return of getResourcePath() in getParentIDsAndResourcePathIfSubResource() tested
34f33f92 aggregate getParentIDs and getResourcePath in one function to avoid boiler plate across CRUD operations
d585f333 introduce monkey patch seam
56e9ae8a Revert "Removed untested and redundant err handling."
dd98ab03 Removed untested and redundant err handling.
9196ff60 comment on untested branches
f50ffc48 Clean up commented out code
53ca298f Remove unused 4th return value from interface and impls of isSubResource
d10ba5c3 Text edits
63d37d75 Text edits
3179c90f Update go deps
8c8c8b2e clean up todos
cbf9ce59 create subresource section on main how-to and link to subresource docu
76c85586 add documentation for sub-resources
b8ce076c remove no longer needed fakeServiceSchemaPropertyConfiguration
bc56332f make test already ran anything that is not under integration tests
4c83bd6a golang mod version updates
b532228e run e2e tests as part of make test target
4cb5e582 rename unit to e2e
160ad92c quick int test rename
6b0ad81b quick update on the ImportStateId to use the expectedID constants instead
3d8893e3 flesh out subresource logic support in importer method
eafc84e8 add unit tests to TestImporter to cover different scenarios for subresources
fa9aa790 importer hacks up composite ids
d32d20ff Spelling correction
96e10a4e Spelling correction
3364eded Add assertions of DELETE calls
404db8f9 DRY up create and update tests into TestAccCDN_Create_and_UpdateSubresource
430ce794 Comment out TestAccCDN_Import until we work on https://www.pivotaltracker.com/story/show/167221970
44932521 add another todo to implement CheckDestroy
d3cd3ae1 create TODO to facilitate picking up support for import task
409053eb put back GET method docu removed by mistake
2be9d9bd refactor ProviderOpenAPI and make CreateSchemaProviderWithConfiguration accept a ServiceConfiguration to facilitate unit testing
2c3e604f fix failing test due to the property parent property name not being correct
a0bf31bd fix failint test due to relying on ordering
7f0749ed fix example swagger example so int test go back to green state
672713b4 fix regression where err from readRemote was being overriden by the err returned from r.openAPIResource.getResourcePath(ids)
47c4a808 fix backwards compatible changes introduced after refactoring of getTerraformCompliantPropertyName in previous commits
fcd600c1 update negative case to be positive and document the reason why
f163c04d added similar assertions as subresource use case to root resource test scenario
7bd664c1 add subresource use case to TestRead
90d63d0f expand TestReadRemote to assert that input id and parentIDs are the expected ones
06d89d54 add use cases for non restful subresource paths
d09f1686 Merge branch 'feature/subresources' of github.com:dikhan/terraform-provider-openapi into feature/subresources
f1d9eb8f Fixed GetTerraformCompliantResources tests with adjustment to swagger and test assertions
bc1d6c7e use provider name constant when setting up the provide config
6bcf4c82 - brought back all the YAML and the subtests commented out in GetTerraformCompliantResources
0c8483c8 enhanced assertions for GetTerraformCompliantResource
3576528f removed ClientOpeAPI interface from the clientStub as now there are no more GET/POST/PUT/DELETE -2- methods
d8edddb6 removed i2 folder as its test was already covered in the unit folder
10d3483f swagger describes put operation on the firewall and it works as expected making both TestAccCDN pass
07f7bc6a add put operation support in the test apiServer
541a9e79 Merge branch 'feature/subresources' of github.com:dikhan/terraform-provider-openapi into feature/subresources
45d3fde8 Rename some_more_resource_cdns_test
b098de00 Rename i2 dir to unit
58694bd1 WIP - add int test for update use case
fdf1bca6 improve check resource exist function to ensure expected resources are present both in the state file as well as remote
0acc8c3e add assertion (testAccCheckWhetherResourceExist) to check if resource exists once tf configuration has been applied
d31021f5 add state to api struct so int test can run without hardcoded values
ba6ba733 refactored code to simplify addition of other int test use cases (e,g: update, import, etc)
4e3c2bca minor stetic updates
4d679bc7 create helper createTerraformFile that given expected input produces a well formed config file
2b3f659d fix uni test typos and call the right function under test
eec7a5d9 add parentIDs argument to Delete operation
0c1b56ec add unit test covering subresources into delete operation
560c2230 remove no longer applicable TODOs
0e80dbd3 add parentIDs argument to Put operation
9c9869d7 extend put test to cover subresource use case
d700554b add parentIDs argument to Get operation
7fce6507 add unit test covering subresources into get operation
c2c58776 add unit test covering subresources into post operation
3635598d add parentIDs argument to Post operation
7dc49791 remove no longer needed commented method
7a5f43c5 fix bug where parent id name look up on data object was not using the correct parent ids names
0b4b4059 complete test
1600a385 refactor "test framework" to apply different 1-level Sub resource scenarios as described: https://www.pivotaltracker.com/n/projects/2222300/stories/167221976
b880b4fd Merge branch 'feature/subresources' of github.com:dikhan/terraform-provider-openapi into feature/subresources
0506c154 first "test framework" to apply different 1-level Sub resource scenarios as described: https://www.pivotaltracker.com/n/projects/2222300/stories/167221976
fea12e62 Rename i2 dir to unit and some_more_resource_cdns_test to resource_cdns_test
9c06a54d make isSubResource return different parent resource names and a string concatanating all the parent names
0830363d add todo comment to return an error if the path for subresource is not correct
33fbbe9f make isSubResource return an error too
48f6da72 remove not needed todo
25db3c88 add test coverage for TestGetResourceSchema including:
2f09e9af add unit tests for TestIsSubResource
5cecc7bb use same regex that handles the parent groups to identify subresource paths
891dd70e add unit test for getSchemaDefinition including coverage for subresources
f833bc93 rename function getParentPropertiesNames
9fe5b5f4 create a buildParentResourceName that is responsible for building parent names and the full concatenation of parent name
dc1b48cd Introduce Test_getSchemaDefinition
5ab5b18a WIP on getParentIDs
c57d8b06 Restor the first check in TestAccCDN_Subresource
0da57a72 TestAccCDN_Subresource passes
f217d33b add TODO
0a622b16 clean up a little excess printing in tests
5bf3d3dd clean up a little excess printing in tests
6c8af933 yaml fix
88a89030 delete opereration supports sub resources
7abf029e new assertions to support Delete in subresources
c0d83891 sub subresources URL resolve
36278474 Merge branch 'feature/subresources' of github.com:dikhan/terraform-provider-openapi into feature/subresources
2471253a fixed ConvertToTerraformCompliantName to support names with underscores and numbers
5034f9da Progress on TestAccCDN_Subresource
1e83cfd5 Progress on implementation of propertyParentNameFromResourcePath
5449dc03 add few more TODOs
dd47267c add more info in the TODO comment
685baab1 add reminder comment that we can get the parent resource name directly from o.Name here
1ee08b84 add test to cover preferred names use case
e72f7c0a support subresource name processing from the path when building the resource name
3196d9a1 openapi; wip on the other test cases
25453889 openapi: Add a new test case for Test_propertyParentNameFromResourcePath()
51322ddd openapi: Add a new test case for Test_propertyParentNameFromResourcePath()
194dfa24 Test_propertyParentNameFromResourcePath() - green
9efa0366 wip on getSchemaDefinition and propertyParentNameFromResourcePath
485ba478 wip on read(), tests are green
52d47756 wip on read()
9b142ae9 i'm proceding with the implementation of get getParentIDs which in turns requires isSubResource() to be implemented. So now i'm focusing on the latter which will unblock getParentIDs
f39e25dd updated Swagger SubResource end-to-end test, now we have a red condition this means that we need to permform code changes in the internal of the code, in order to solve the following error : 'could not resolve sub-resource path correctly, missing ids []string'
2257f09d refactor expectation of one test
2161b528 removing not needed seond value from range
79d3a7b1 do not include the instance id in the returned array of getIds
1eea3eec add coverage for subresource use case in TestGetResourceURL
57fe84b4 updated unit tests for TestGetResourceIDURL to use SpecV2Resource instead
4d22a12e update getResourceIDURL to support subresource paths
0118e073 quick refactoring getResourcePath
b55a546e update getResourcePath to support parametrised paths
42136cd3 getResourcePath acceprts ids ... but implementation needs to be done
c85997c9 Add assertions about instance state including sub resources
037936cb introduce firewall to cdn type
5f934081 Test_create_and_use_provider_from_yaml_swagger does ImportState
55e3e8a8 Introduce Test_create_and_use_provider_from_yaml_swagger
8df01c50 add terraform configuration example for a subresource
4aa7f31a add example of subresource in example swagger file
85941efd add coverage for subresource in TestGetTerraformCompliantResources
603a62c3 add info about required changes needed in the import operation to support subresources
09139675 add required changes info to read operation to support subresources
503ea056 add info about required changes in readRemote to support subresources
1ae55395 create skeleton for a helper fuction that is responsible of fetching perent id vales from the state
985a47a7 add todo info with required changes in the provider client to support subresources
d7e07136 add todo for required updates in getResourceIDURL to support subresources
86b46aa8 add test coverage for TestGetResourcePath
16d3ffa9 add implementation for isSubResource() in SpecV2Resource
3808ee92 add test coverage for TestGetResourceSchema
219c9581 add test coverage for TestBuildResourceName
3e804a45 Merge pull request #126 from dikhan/test/test-json-to-rest-call-in-isolation
1fa4e367 Merge branch 'master' into test/test-json-to-rest-call-in-isolation
dcf67e05 All the better to Convey my intentions with, my dear.
5dfcc901 Merge pull request #127 from dikhan/feature/nested-struct-service-provider
19b60c02 Relocate DELETE behavior of the API to live with relevant call and assertions
48e149e0 Relocate PUT behavior of the API to live with relevant call and assertions
14e9ca90 Relocate GET behavior of the API to live with relevant call and assertions
248cf708 Convert Test_create_and_use_provider_from_json to use Convey
a73eef6f Convert Test_ImportState_panics_if_swagger_defines_put_without_response_status_codes to use Convey
892f2d26 DRY up the 2 swagger constants
e5234b97 Relocate, simplify swagger examples
14e8b4b6 assert on error message
77049400 quick update to make clearer unsupported use case
9b2873dc fix failing test
2b5cea6a fix failing test
910500c1 cover nil pointer when calling isPropertyWithNestedObjects with an object missing the SpecSchemaDefinition
f523321c make it clearer that the type is unsupported
85f6850d Merge branch 'feature/nested-struct-service-provider' of github.com:dikhan/terraform-provider-openapi into feature/nested-struct-service-provider
c214c877 fix error where terraformObjectSchema blew up if SpecSchemaDefinition was nil
d951be4d Merge branch 'feature/nested-struct-service-provider' of github.com:dikhan/terraform-provider-openapi into feature/nested-struct-service-provider
110eb246 add a test case where terraformSchema() is called with invalid type
376d6208 Merge branch 'feature/nested-struct-service-provider' of github.com:dikhan/terraform-provider-openapi into feature/nested-struct-service-provider
aa356dcc add documentation for object properties with nested objects
83abbf86 add a case to show terraformObjectSchema() blows up
a77f63a8 add a test case to handle unknown types for terraformType()
1b8eafc5 add map[string]interface{}{} which makes convertPayloadToLocalStateDataValue blow up
43f3f169 add a case which makes convertPayloadToLocalStateDataValue blow up
5f5e4527 Merge branch 'feature/nested-struct-service-provider' of github.com:dikhan/terraform-provider-openapi into feature/nested-struct-service-provider
bc2e1d21 add test for default case for convertPayloadToLocalStateDataValue
b5dcbd37 fix error message when the number of dataValues is not 1
eb9d93db Add assertions around generated schema in Test_create_and_use_provider_from_json
e8107238 createSchemaProviderFromServiceConfiguration takes *ProviderOpenAPI ...
9d5d2f69 Get TestOpenAPIProvider passing again
f2a156d6 Clean up stray debug print
411bfa5e Add assertions for http requests to Test_create_and_use_provider_from_json
d8936d28 fix integration tests
560bb96e add coverage for nested structs in TestUpdateStateWithPayloadData
3c4fa230 remove TODO comment
a75f4bd3 add coverage for nested object use case in TestConvertPayloadToLocalStateDataValue
825c3609 expanded TestCreatePayloadFromLocalStateData with full fledge test
7b554e7e add test for nested structs in TestGetPropertyPayload
89a02c08 add apply() assertions to Test_create_and_use_provider_from_json()
88e3615c add assertion documenting current panic
25626af1 make Test_create_and_use_provider_from_json() green
a3d1e4a6 add a extra bottle payload
8c931ddb Add nestedftw property to json. No worky.
c5dde58b fix update integration test
bfa88dff Add rating, vintage to Test_create_and_use_provider_from_json
87f04d92 Slightly simplify swaggerToCauseAPanicByDefiningPUTWithoutStatusCodes
d88d4180 Test_create_and_use_provider_from_json deletes the bottle
01b68a16 Test_create_and_use_provider_from_json updates the bottle
a76c6fca Simplify swaggeTemplate
5205aacc Introduce Test_ImportState_panics_if_swagger_defines_put_without_status_codes
c3427c6d Introduce Test_createSchemaProviderFromServiceConfiguration
f7d4c1f2 add coverage for objects with nested objects in integration tests
42f5d38a add better debugging in example api to inspect payload sent
1a40fdb3 update integration tests including newly supported property object_nested_scheme_property
eabc8f57 replace IsNestedObject with isPropertyWithNestedObjects method
6d0275e1 add TestSpecSchemaDefinitionIsPropertyWithNestedObjects
5e2a8a16 add implementation for isPropertyWithNestedObjects
43ea452a use compatible names
e8db9c15 use terraform compliant names for tests
7a7b711d use already terraform compliant names
2b6eb52b update test to be more specific about the thing under test (two nested objects)
e0d8b458 quick test update with description matching the test use case
958173bb fix tests for TestTerraformSchema
e5330a24 add a homogenous and non-homogenous case for TestTerraformSchema
ab1ddfd8 remove un-neccessary comment
859439dd TestTerraformSchema: green
8638ed3d added some TODO reminders to refactor the code
bc46e323 make unit tests pass again
0f847b99 put logic to figure out object with nested object special case inside case typeObject
d5ca3999 imporved assertions in the last test added
0384d6e1 imporved assertions in the last test added
69c5dbbf created test for terraformSchema() in order to validate the correct creation of nestedObject schemas
c22d7791 - new name proposition for IsPropertyWithNestedObjects in a TODO - one test refarctored for IsPropertyWithNestedObjects
978ab970 fixes and refactor to isPropertyWithNestedObjects()
7ab179a6 small cleanup
a1688b35 added test case for createSchemaDefinitionProperty() when a property has nested objects
f81ec978 nested element in a object is not an object
52f7429d added test on log messages
c7dacb3d fixed go.mod: it was showing problems with Goadesign package, again x2
faeda3b5 As recommended by terraform main maintainer (see ticket ref below), limiting the property to MAX one elem so internally terraform will not perform basic validation which was causing issues previously.
648332f9 Expand example adding support for nested objects
Added support for exposing plugin version in the open api plugin configuration. More info at plugin_version service schema configuration.
c2bc9b5f update version number to 0.15.0 bcac8a35 Merge pull request #125 from dikhan/feature/expose-plugin-version-in-config-file 31df6dc3 Merge branch 'feature/expose-plugin-version-in-config-file' of github.com:dikhan/terraform-provider-openapi into feature/expose-plugin-version-in-config-file bc517da6 updating plugin_version schema config property doc 64ebf866 cleanup stale filehandles in TestServiceConfigV1Validate() 36a00a2e Add an additional testcase for TestServiceConfigV1Validate() 0891781f fix docs typo 8d071338 reverting latest commits on mod that introduced wrong dependencies 7fe1fac1 fixed go.mod: it was showing problems with Goadesign package, again x2 50c9e289 fixed go.mod: it was showing problems with Goadesign package, again 45284e5f update documentation about the new config property exposed plugin_version 1c24f9d3 add unit tests to cover use case where plugin version config does not match the version of the ope api being executed 0abc512a integrated validation on service level before returning bb2b126c remove no longer needed tests (moved to service config level) 33becb84 update marshal tests covering use case of plugin version being defined 5ca306a2 validation on URL has been moved to the service config itself 98dbbf12 update stub with new methods to implement 0f759aa3 added unit tests for new functionliy added to ServiceConfigV1 e99dbfe1 add validation method on plugin config service level
This release adds support for Terraform 0.12 SDK. Terraform 0.12 is not backwards compatible, this means that configurations created prior to this ver
This release adds support for Terraform 0.12 SDK. Terraform 0.12 is not backwards compatible, this means that configurations created prior to this version may no longer be compatible and will have to be updated to match the new HCL syntax released with Terraform v0.12. In order to assist with transitioning to the newer version, the following guide upgrading to terraform 0.12 can be used as a reference to understand how to make older terraform configuration compliant with the new version of Terraform v0.12.
f2bde8cb Merge pull request #123 from dikhan/feature/update-to-0.12.0-not-rc fbe3b539 update golang image to latest and make apt-0get install non interactive 24995457 update example container to use terraform 0.12.0 version 55b672db update readme terraform version with v bb663006 use latest terraform 0.12.0 release version instead of release candidate (rc) 48c04607 Merge pull request #121 from dikhan/feature/upgrade-example-configs-to-0.12upgrade e230c454 update readme with a link to how to migrate to 0.12 7ec17b05 create docs for migrating to Terraform 0.12 25219fcf update example config to terraform 0.12 configuration compatible syntax 1161ea12 Merge pull request #117 from dikhan/update-go 80f22d89 Merge branch 'master' into update-go 12312f38 Merge pull request #119 from dikhan/pump-version-0140 e65cf27c pump version 0140 aeb675ac Update docs to reflect go version dependency change to 1.12.4 b9693a2d Merge pull request #116 from dikhan/feature/upgrade-to-terraform-sdk-0.12 a0630762 update terraform version in the readme a212feda TODO comment as reminder 7b52e1d1 updated tf file to describe arrays objects using block sections instead a3a87b67 fix issue with how object bools are treated by the new sdk f0ef5461 fix integration tests after terraform sdk upgrade to 0.12 9d5cf43e Upgrade terraform sdk version to 0.12 following Terraform instructions
Nothing published for this version
Added support for External $ref, see: https://github.com/dikhan/terraform-provider-openapi/issues/93
581c1dd5 Merge pull request #113 from dikhan/version/pump-0.13.0 d6c1a274 pumping version to 0.13.0 c89ab866 Merge pull request #110 from dikhan/feature/ref-first-level-expansion-support ee057e91 removing as already documented in the official doc b4f43c1d remove no longer needed TestGetPayloadDefName 1d494bfb remove unreachable code 4b69616c use newSpecAnalyserV2 instead of stubbed specV2Analyser 8590252e this test is covered by the constructor 1c88ae07 wip: add expansion to initAPISpecAnalyser and fix tests 37689115 fix TestValidateRootPath test 82fced84 refactor getBodyParameterBodySchema() and add tests 5567820d Remove getResourcePayloadSchemaRef() as it's no longer needed 00962fb0 add test coverage for getBodyParameterBodySchema 5ef69a6f remove getResourcePayloadSchemaDef as it is no longer applicable 89969ad6 Merge branch 'feature/ref-first-level-expansion-support' of https://github.com/dikhan/terraform-provider-openapi into feature/ref-first-level-expansion-support 980e4f9c Remove unnecessary error check. 4802db98 Remove redundant nil check e413fb17 Add back accidentally deleted integration tests f48c6e48 update docs with info about external $ref efca2090 Add TODOs for missing tests 448ed212 clone specific goa version that has cors package b5971dcf go fmt a8d9f5b1 extract out the sample json blob into createExternalSwaggerContent 46460453 update Test_getBodyParameterBodySchema unit test to assert on actual errors edf86535 return specific errors when getBodyParameterBodySchema is not able to find the post schema f3886c7e DRYing up a little test duplication 445ec7e8 Restore accidentally deleted integration tests b3a4fa2e Remove spurious TODOs 08d35b73 Finish Test_getBodyParameterBodySchema 3ebc4d55 Introduce Test_getBodyParameterBodySchema 1d17422c fix tab issues 699e20ab Add cases of bad URLs ed84ccb4 add unit test covering file containing a schema ref that points to a non schema definition 022ff691 fix convey description to match the expected assertion 0c494883 add test coverage for a swagger file containing a schema ref that is empty e38a227d add test coverage for ref to a definition is wrongly formatted (no empty string) c3ed08b9 add test coverage for ref to a definition that does not exists 3e197be6 fix tab issue c0a02cac openapi_v2_spec_analyzer_test: TestNewSpecAnalyserV2() with a bad remote ref 642667b7 openapi_v2_spec_analyzer_test: Test GetTerraformCompliantResources() with an externally hosted resource d65ba4f3 Merge branch 'feature/ref-first-level-expansion-support' of https://github.com/dikhan/terraform-provider-openapi into feature/ref-first-level-expansion-support b0923db8 circular ref to itself 834e3132 openapi_v2_spec_analyzer_test: Fix the ref expansion over http 24019229 wip: add tests for external refs hosted with a http server 395b271a DRY up some duplication bc41e60e Fix a compile issue. 244fe9a5 Introduce several new test cases d5d3d546 Introduce go.mod, go.sum 2c8735e8 Improve spec label f89b72c8 Prevent TestOpenAPIProvider from reaching out to a real domain. 225031e7 update Status definitions now that the schema is expanded c8e93d4a add unit tests 4cee2bd0 expand schema 7879930a go fmt 3b944e95 move initAPISpecFile to test utils 8a1414d9 fix bug where just ReadOnly properties would not have been marked as computed 24dc2be8 move initAPISpecFile to test utils d5a723fd fix version of github.com/go-openapi/spec to v0.19.0
Nothing published for this version
Support for optional-computed properties, more info here. For more context, refer to the feature request ticket
This new version includes:
e49e95e4 pump version to 0.12.0 ca5f467c Merge pull request #107 from dikhan/feature/computed_optional_props 19f88f64 add unit test for TestSchemaDefinitionPropertyIsOptionalComputed 84e77eed add unit test for TestSchemaDefinitionPropertyIsComputed fc4629fb add unit test for TestIsReadOnly and TestIsOptional 2d25453e add examples that the 'x-terraform-computed’' covers a4050378 update faq with latest info 13913fa6 add more tests coverage for terraformSchema() 3f7e322c renamed x-terraform-optional-computed to x-terraform-computed b03f6284 only mark as computed when property is optional and is eiter readonly or optioanl computed 8b390cdd added more items to FAQ as ref 9dfe4c5a add documentation about property use cases including: 0bff83b5 Bug-FIX: state file was being polluted with properties that were not introduced by the user 1a5a82ad add integration tests to cover computed, just optional and optional-computed cases b8a444d7 go fmt a272b3a0 use method isReadOnly() instead ec67547e complement specSchemaDefinitionProperty with computed field 09a08a53 put back readonly property and add computed 0f78e0d7 remove Default mapping from terraformSchema 8c88c287 remove no longer needed field OptionalComputed 64fc7d47 rename ReadOnly property in specSchemaDefinitionProperty to more meaningful one Computed 88f323e6 fix unit tests after update in error message 02b8c213 add test coverage for isOptionalComputed within createSchemaDefinitionProperty method bc8b7241 add extra validation to isOptionalComputedWithDefault b58e8f92 add unit test covering validation where computed extension is used and yet the property has default attribute populated cc9b806c add extra validation to isOptionalComputed 018648fc fix typo cebab88c add unit test for TestIsOptionalComputedProperty aa630a5e add unit test for TestOpenAPIPropertyIsComputed 972b589b fix bug introduced when refactoring o.isComputed 6fe6d1a3 encapsulate logic to identify if a property is computed 437711ed add unit test for TestIsOptionalComputedWithDefault 8241f448 create unit tests for TestIsOptionalComputed 1a669a10 create methods for isOptionalComputedWithDefault and isOptionalComputed c72065c3 add support for optional computed properties covering all use cases 4b7db091 expand example to cover the optional computed values 7f2393d0 Merge branch 'master' into feature/computed_optional_props 0450817a fix issue with repo path when linking statically variables 54b6df41 Merge pull request #105 from dikhan/fix-gorelease-static-flags bf995fd5 fix ldgflags to use the new version package instead to bind the statically linked variables 62b06e15 add support for optional computed properties
Support for user agent. This feature ensures any API call will have attach a User-Agent header which identifies that the requests was made from the Op
This new version includes:
OpenAPI Terraform Provider/{{Version}}-{{Commit}} ({{Runtime}}/{{Arch}})
Where: Version is the released version of the plugin, Commit is the hash of the latest commit to that release, Runtime is the client's OS (e,g: linux), Arch is the client's architecture (e,g: amd64)
0450817a fix issue with repo path when linking statically variables 54b6df41 Merge pull request #105 from dikhan/fix-gorelease-static-flags bf995fd5 fix ldgflags to use the new version package instead to bind the statically linked variables 1e93695e Merge pull request #104 from dikhan/release-v0.11.0 4204d181 pump up version to v0.11.0 20d446a4 Merge pull request #103 from dikhan/feature/add-user-agent-support 7249704a Merge branch 'feature/add-user-agent-support' of https://github.com/dikhan/terraform-provider-openapi into feature/add-user-agent-support 568b3e66 validate expected headers in the API ba12cacf updated tests to check for authorization, operation, and user agent headers 793ffb19 go fmt 5cf0e1da create headers file with http constants (authorization, user agent) 5d5f9129 add header coverage for POST operation f1d81541 wrote tests to check operation and user agent header add 97ad4565 added check for user agent header c6fd8333 fix compile errors df729a24 Merge branch 'feature/add-user-agent-support' of https://github.com/dikhan/terraform-provider-openapi into feature/add-user-agent-support 24bd8f85 go fmt a8c7c5c6 added appendUserAgentHeader and corresponding tests fd35b1ba run go fmt and resolve lint issues 69d17827 add unit test TestBuildUserAgent f5a064d5 create BuildUserAgent using version and commit info 86d31e77 create repo variable and pass value along 0b43145a make statically linked variables available inside openapi package 64968675 Merge pull request #102 from dikhan/feature/fix-issues-using-go1.12.4 26cc159d update travis go version too ca999c4a Solve issues where new version of go would conflict with deps and test suit would fail
Support for endpoints on the provider configuration
This new version includes:
52c96345 pump up minor version 22f8a1c1 Merge pull request #98 from dikhan/feature/end-point-support cb904514 add endpoint usage documentation aa5521fe add endpoints property to default template 2136360a go fmt 8f97c6d6 add validation function to endpoint property 1b85af29 update fqdnInURLRegex to support IPs too 0a200543 go fmt f3380362 fix compile errors after refactoring getRegion code (and removing mutex and data from providerConfiguration struct) eb353416 fix sprintf missing arguments 336641a9 cache region value so there is no need for mutex and messing with data object at runtime 88a3d07c add integration test covering end point support a2cc6009 Integrate endpoint into openapi client. 7e603bbb Add unit tests for endpoint support 8606b995 Integrate endpoint configuration into provider factory 6e1acda1 Add support for endpoints in the providerConfiguration 1b76e59c add unit tests for endpoints 56c72fe4 create provider configuration for endpoints 8f7cae7f Merge pull request #96 from pehowell/Feature/expand-tilde 5054915e Merge pull request #1 from dikhan/pr/96 eaf42d7f add test coverage for expandPath and getFileContent a83843c0 make expand path testable 6ac13200 Supporting expanding tilde in external file path
Bug fix: do not fail when destroying a resource that no longer exists
1b7735fb fix behaviour bug where already deleted resources could not be destroyed 27dc6d05 Merge pull request #91 from dikhan/bugfix/dont-fail-when-getting-404-and-calling-delete 09b139ed don't fail when receiving 404 if deleting a resource
Bug fix: resolved issue when accessing resource data in concurrently fatal error: concurrent map writes
bd0deef3 pump patch version de0959be Merge pull request #89 from dikhan/bug-fix/resource-data--map-race-conditions c625b259 fix test a30effe4 fix map race condition issue
Support for multi-region configuration on the provider level
This new version includes:
e306d7d6 pump up minor version 4b5ea099 Merge pull request #87 from dikhan/feature/multi-region-openapi-providers 0c2f1973 update documentation to make clear that x-terraform-provider-regions will be ignored if x-terraform-provider-multiregion-fqdn is not present 93eae1e6 Merge branch 'master' into feature/multi-region-openapi-providers 5e47abb3 encapsulate isHostMultiRegion and getProviderRegions in their own methods c5245696 remove redundant regex err check as per PR comment 34be2a0d accept regions as parameter in getDefaultRegion(regions []string) e512eeea fix typos 233692bc Create CODE_OF_CONDUCT.md e4c0137d better logging to see multiregion support 59f397b9 add documentation for multi-region support fe192b9a add integration tests a486c008 go fmt 9002df65 integrate multiregion logic with provider and openapi client 0c180280 add test to cover values being just comma separated with no spaces c51957f8 add support for get host by region in backend configuration 9ca0c931 update files that were using reusable methods now living in openapiutils f9d59b8c save resource data into providerConfiguration struct b4fea024 relocate reusable mathods GetMultiRegionHost and IsMultiRegionHost to utils
bda397c3 pump path version de6df6df Merge pull request #86 from dikhan/feature/improve-plugin-config-marshaller a5169a68 use flow format for string ar
bda397c3 pump path version de6df6df Merge pull request #86 from dikhan/feature/improve-plugin-config-marshaller a5169a68 use flow format for string arrays
Support for pre-hook command execution before the value is assigned to the provider property
This new version includes:
3483d61a pump up minor version c5486745 Merge pull request #85 from dikhan/feature/pre-hook-support bc203c4d use the same instance of provider within ProviderFunc 83470659 create ProviderOpenAPI struct 3b714c3b fix bug where headers with same name but different casing were causing dup registration 31f8b27a go fmt and lint ee9cd79c improve exec implementation making sure process is killed if timeout is reached 259df3bf added logging into exec function e1c5e751 add time tracing to understand internal function performance 199684f2 fixed issue where multiple calls to provider by terraform core was causing performance issues d42cca1d go fmt 9c097e1c fix issue with security schemes 5d9653b4 fix issue with headers 87a429ba add more info in cmd docs f06e3fc9 add documentation about the new fields supported (cmd and cmd_timeout) 8e98b230 add cmd timeout test coverage e75fd87e add integration tests coverage for cmd 9a93d9be go fmt 54e61dea integrate execute command with provider_factory 35975832 implement execute command logic with timeout and error handling
a807a49b make platform and homedir configurable in TerraformUtils 38a1068d release minor patch 9b908896 Merge pull request #82 from dikhan/update-gith
a807a49b make platform and homedir configurable in TerraformUtils 38a1068d release minor patch 9b908896 Merge pull request #82 from dikhan/update-github.com/mitchellh/go-homedir-version 2f869ba1 dep ensure --update github.com/mitchellh/go-homedir
Add support for Bearer authentication via the new 'x-terraform-authentication-scheme-bearer' extension. Read more about this extension here.
78c917b9 fix broken link for x-terraform-authentication-scheme-bearer 45b8fa88 Merge branch 'master' of https://github.com/dikhan/terraform-provider-openapi 11eb6ca0 pump minor version release 8f0cd15d provide examples for object types e5c105d0 Merge pull request #79 from dikhan/feature/support-bearer-auth-scheme e04415a2 add info about bearer auth spec 56074a25 Merge branch 'feature/support-bearer-auth-scheme' of github.com:dikhan/terraform-provider-openapi into feature/support-bearer-auth-scheme 0d89e057 add better documentation for Security Definitions extensions 22835c8f add different examples of security definition supported 91e04c79 fix flaky test that was relying on hashmap position which is un-predictable e08591d8 add validation for security definitions f3fa48c6 add more unit test covering actual behaviour for each returned secDefs 4427bfcb allow backwards compatibility b822f3fc add examples for the different types of auth supported and the new extension e2c0e71c add documentation about the new extension supported for security definitinos e24a9532 check in new implementations of SpecSecurityDefinition 9994fbb8 create helper MultiEnvDefaultString so it returns the string already without having to do casting afterwards 04735acc update readme with json path online evaluator link and oliveagle external lib e36ee0cf add support for bearer auth scheme 1542a88f add documentation about the new extension supported for security definitinos 4bf35732 check in new implementations of SpecSecurityDefinition ddecf0cd create helper MultiEnvDefaultString so it returns the string already without having to do casting afterwards 6900e8fa update readme with json path online evaluator link and oliveagle external lib 61f5196e add support for bearer auth scheme
added support for configuring provider fields via environment variables
c7290866 fix broken links d3807e6d comment out externall configuration so example container does not break 46e51fed quick doc update regarding plugin configuration c7fa22ba update minor version ece0db7e Merge pull request #77 from dikhan/feature/array-of-objects-support 718cb9b8 add more explicit error message 0696aaf5 be explicit about case string 22acdd79 add unit tests for convertPayloadToLocalStateDataValue 7a8437f7 better description for what is expected 227879bc better descriptio nfor what is expected 2e71d560 fix typo 3e9ba361 update use case description 75599020 fix typos comments 26b174f3 rearrange type int check within the float reflect case cede4659 update floatToString to not use decimals when dealing with zero float values 82323942 update integration tests with object type support 633e3019 update example adding object example e36b5bb9 [BIG CHANGE] this is the alternative change using TypeMaps as expected d8b3221a [BIG CHANGE] this change introduces major changes in properties of type typeObject ff67ab37 update ObjectProperty example to include more fields with different types d5ec8d4f add unit test for TestGetPropertyPayload 22d18783 beter to return the error handle it as desired outside 51f1a2fd add better logging for getPropertyPayload 6cc707e6 add more unit tests 40ae3af5 quick code rearrangement 6745e5da fix doc typo and add info about supported aray item definitions 894f5c5b add units tests for: 5d0a25b1 fix isObjectProperty issue ac35d3d0 add units tests for: f7a249bd fix integration tests a4d584c9 add support for other use cases in the example cdn bfb2e5d4 better logging when finding properties 673bd1fd add support for getPropertyPayload and convertPayloadToLocalStateDataValue 3c71b533 create helper method to get property based on its terraform name c1155ca7 add a helper method to check if the def property is a list of objects 799c86b1 add case for array reflection 98b5effd add test coverage for nested and ref external schemas when using array types 5e20733f reuse isObjectProperty method to make sure both nested and ref schemas are supported 92123d59 update main tf config example 554086d5 update documentation adding info for arrays of objects/primitives f269a222 add integration tests covering the arrays of objects use casse 5a369e36 autogenerate the swaggercodegen example code bef1bfcb update swaggercodegen example yaml including array of objects property 114b00cb ensure type and elems are the right configuration 6d167bc1 move helper functions to tests 30daa758 update unit tests with array ob objects c1541778 add support for arrays of different types in the specSchemaDefinitionProperty 2335f289 Merge pull request #75 from dikhan/feabure/enable-provider-schema-properties-config-from-external-sources 8f0a8092 stop instantiating the providing in the init functions d2843889 add more clear info fcd07e3e update file location info 09c2031e remove redundant column 24ab55e2 remove typo 01c83508 add documentation about Schema Configuration Object 6d38e17f add integration tests f8803d1d add helper createPluginConfigFile function 4dfc8500 add support for being able to set plugin config file path from an env varialbe e4db9be9 integrate support for properties with default values in the provider schema e6967111 add support for schema property configuration 3c675a2d dep ensure -add github.com/oliveagle/jsonpath 7c6aa515 Merge pull request #74 from dikhan/feature/enable_provider_configuraiton_via_env_variables 36260f3a add documentation about how to configure the openapi provider 820ca9db add integration tests 19e05cc8 add unit tests 58c0dbff add support for env variables to set provider configuration values
ca084fc0 pump up release version 645fb721 Merge pull request #72 from dikhan/feature/loosen-constraintas f3f9b3cf fix unit test adding new supported r
ca084fc0 pump up release version 645fb721 Merge pull request #72 from dikhan/feature/loosen-constraintas f3f9b3cf fix unit test adding new supported response code 370cf1b2 support URIs that end with forward slash 057f1edf accept http.StatusOK when creating (loosing constraints)
Added support for import. Now you can use terraform import to import resources managed by an openapi provider.
89335891 pump up minor version 85aecce1 Merge pull request #71 from dikhan/enhacement/improve-error-output 7e3e992c throw a more user friendly error when terraform config is missing values for headers and sec definitions d95d16f0 fix <type> not being rendered due to markup format eaf3a364 Merge pull request #70 from dikhan/feature/import-support de9b1b6b add integration test 62591254 add unit test 01bd82d7 add implementation for import support
https://github.com/dikhan/terraform-provider-openapi/issues/68
Fixes:
0801deff pump up release version f3dd37fa Merge pull request #67 from dikhan/feature/register-non-global-schemes-to-provider-schema 835233c6 register to the provider schemes security definitions that are not global schemes
640ea712 pump up release version c604f97a Merge pull request #66 from dikhan/feature-enable-widnows-support 37cd5d07 enable windows support 1066a076 f
640ea712 pump up release version c604f97a Merge pull request #66 from dikhan/feature-enable-widnows-support 37cd5d07 enable windows support 1066a076 fix docker container including recently added version file
…create openAPIClient interface 5671c214 remove deprecated files cf9f0716 add better logging for registered resources cbd59ab5 bring up swaggercodegen-…
This release includes major refactoring on the code structure. The main change is the interfaces expose now between swagger implementations and the overlying infrastructure:
3675f798 fix issue with getProviderName after adding support for binaries with version b0ca34ce fix install script to introduce version binary support b9d57b22 remove typo a2b65d91 Merge pull request #65 from dikhan/feature/add-version-support 1ecb7441 commenting out windows support until further testing is performed a13e2184 remove unnecessary {{.Env.USER}} a1e83c3c set prerelease to true for tessting purposes d1abd682 remove single quotes 74de60b5 set up build properly 21f5f23e pump version number f81e32ae update release documentation ce0125ae add defaults for RELEASE_TAG and RELEASE_MESSAGE 7f7e3799 update goreleaser to include version in the binary 066f5ccb make fields private 3b9f67cf remove non needed -a for building locally aeee22eb updated various build settings 0f070f23 add more details to baked in flags e14e8f32 update install script to use version file 80b1786f bake in version at compile time a8368a14 Merge pull request #64 from dikhan/feature/add-integration-tests 6f9a3364 Merge branch 'master' into feature/add-integration-tests 7db86588 add golang.org/x/lint/golint c32081d9 Merge pull request #54 from dikhan/feature/add-integration-tests 7a6e69e9 add DC_SERVICE to be able to bring up a specific service f5a1d36f update local env doc 55659a3f clean up root readme and link reference to other docs (installation and usage) 9c93a102 create how to install 3d3b625c create how to use documentation bf6b0681 update goa documentation 55cb9b8e update swaggercodegen documentation 33e4564b be less specific as depending on local setup the error message might be different 514c35c7 Merge branch 'master' into feature/add-integration-tests af744edc fix issue with shared properties 665b9a12 add unit tests for provider configuration c4961a0a add tests for provider c647352d go fmt df3a90ed add unit tests for backend configuration 535b6b00 add unit tests for sec def schemes c877e924 add unit tests for sec def 3603a6ae add unit tests for sec def apikey 3e147310 remove no longer needed test file 2b957e98 reformatting 4083d973 add unit test for spec header 2a39c909 add unit test for SpecAnalyser f95b76dd add test for openapi_client b2b93f81 add unit test for openapi client ef0b80e4 create specStubBackendConfiguration ff21fbe7 use HttpClientIface in ProviderClient to enable easier unit testing f57b39a4 dep ensure --update github.com/dikhan/http_goclient 8473c260 add unit tests for api key (header and query) a807d5d9 add interface compliant tests 0e23ae6b use -d instead of --detach to fix travis -ci build 865ce245 fix issues with example container e38d0a02 remove symlinks references 4f240156 use build instead and no cache to avoid weird behaviours fdfdfce2 add unit tests for scheam definition and schema definition property 9f3c4ed2 export SpecSchemaDefinition and add isStatusIdentifier to SchemaDefinitionProperty constructors 68d5e0a8 update getStatusIdentifier to return statusHierarchy ad072082 fix int tests 74e6fea1 add missing unit tests 64d73cbd add support for object types a935b8d0 fix tests 114a16b8 move unit test commented out to header v2 file 71dbd68e forklift host override and multi-region functionality 56775c45 enable polling in delete so int test also cover destroy poll coverage properly 60f5ed4a add support to test destroy a011e669 use right errors import package 275cf80f add int test that covers failures in the API 801fd8fb add int test that covers failures in the API 2f8eef26 add support for delete polling 157f1087 remove no longer needed comment 352eb4c2 add support for update async polling c734c6e9 add default config to the resourceFactory struct for better unit testing 70c47ea9 handle 404 properly 99c13a72 check resource destroy after a delay 792e28b6 make type private d19de221 add test for operations with empty responses 7bea9cb9 organising files and struct renames to be consistent with spec prefix c92ba695 fix int tests 1b8c941c add async functionality to create method 1494d058 prepare test for timeout db2a6a1f added int test for lbs (async operation) 62e7649f grouped operations under one struct bd66958e add lb resource to swaggercodegen terraform config example 77875096 forklift x-terraform-resource-timeout from master 1a274437 move r.shouldIgnoreResource() to provider factory 78255290 add int test for zero values 47f72960 forklift x-terraform-resource-name from master 82b10312 add missing unit tests to provider factory 3d679182 add more units test 86b8cfec quick method rename GetAPIBackendConfiguration d8c62e7f auth files renaming and restructuring b1e16590 quick refactor on createAPIKeyAuthenticator to accept SpecSecurityDefinition instead 8174ef64 fix compile errors after changing GetAllHeaderParameters signature 060ceb74 add error handling to GetAllHeaderParameters() method 4179df4b use corresponding complaint name for the look up 923965e8 fix unit test 1aa596a7 fix issue where actual header names were used in the provider config for security schema def and headers for look ups bd6ab154 add unit test for CreateProviderConfig 9d636f9d create spec analyser stub for testing purposes 9af29dce add comment to clientOpenAPIStub struct 3725da2b add validation check for getProviderResourceName 41909a67 add missing unit tests for createResourceSchema and createTerraformResource 724c5c99 move resource factory test helper methods to the resource factor unit test file f88d221a add missing unit tests for createResourceSchema and createTerraformResource 24aa46af fix compile errors 2e385d43 remove un-necessary ifs that were not working when errors occurred bcc3888e Add unit tests for resource factory 952194fb moved specific spec definition property functionality to spec resource file c2f58bac create openAPIClient interface 5671c214 remove deprecated files cf9f0716 add better logging for registered resources cbd59ab5 bring up swaggercodegen-service-provider-api local env by default c9d1fbd8 remove no longer needed debug log entry...too much noise c809b7f9 moved code to separate files ae824270 pass pointer of globalSecuritySchemes 32f3032e providerConfiguration uses real names and not converted names in the keys 32470295 use names and not converted names to look up security schemes and headers from auth 8d6835b8 move SpecSecurity to its own file 27eac4e4 move spec to its own file a680bbc5 move tests from openapi_spec_analyser_test / openapi_v2_spec_analyser_test 1032a4a7 fix TEST_PACKAGES regex andonly test files under openapi package 08a268f9 use -d for docker-compose compatibility reasons d2f33076 fix lint/vet issues 31aac9fa run integration tests as part of the ci pipeline 7364fd11 clean up int tests 26106102 add tests for: 2f6d233e add test for immutable property 8f941b2e create make target for integration tests 23cd8189 create integration tests 5ddf17d4 add missing dep files e2f408c5 fix various bugs 5d6264e0 major code refactoring to move away from poc code 191ac8a7 major refactoring
Added support for object type properties
c497641 update release version 0250626 Merge pull request #63 from dikhan/refactor/remove-symlinks 2a88b13 move LATEST_RELEASE_VERSION to the top so it's easier to spot d0b7cbb Merge branch 'master' into refactor/remove-symlinks a8b2482 udpate local env docs b827be0 add some docs about the make examples-container target 321deb5 removed no longer needed code e056a5b remove symlink support 41f2ffc add support for domains with custom ports 0023591 Merge pull request #61 from dikhan/feature/object-type-support 101be69 add documentation ac22a09 add support for object types 82551e2 pass asa.d.Spec().Definitions to resourceInfo. e194ed1 add helper method GetSchemaDefinition to assist with ref look ups 44ec895 update examples with various forms of object properties 8b7c079 add object_property model af048bc update example to include object type support 4169a9e Update how_to.md
Added support for the following swagger extensions:
Added support for the following swagger extensions:
bdfbdbbe pump up feature version 54370ed8 remove not needed if statement 96d50e66 fix merging compile errors b5445741 make makefile fail on error for fmt, vet, lint and test b0bd04d4 Merge pull request #58 from dikhan/feature/override-host-resource-level 5ec03624 Merge branch 'master' into feature/override-host-resource-level 79d7edb9 Merge pull request #60 from dikhan/feature/x-terraform-resource-name f6c8cee6 add test for version higher than 9 d97713e2 quick fix in pr template 7bed18f4 update docs including x-terraform-resource-name extension info 9f7837e0 add support for x-terraform-resource-name extension 050fecd7 add 'x-terraform-resource-host' and 'x-terraform-resource-regions-%s' docs 03e4fac3 add x-terraform-resource-host to the example e81b12bb update log output to include overriden host e86a832a move debug log to error section fceb4ce6 add support for x-terraform-resource-host and multiregion resources bb41346d Merge pull request #56 from dikhan/feature/resource-timout-extension 53865f5a update regex to a more simple one as suggested in the PR 35130ab5 fix typos 65856d24 update documentation 75aac0d6 handle special use cases better 669e59d7 add unit tests b31f7833 add support for x-terraform-resource-timeout extension f7e6cccb Merge pull request #53 from dikhan/feature/fix-read-when-not-found 7d76c9ff fix bug where if extenson was not present the target status validation would fail b9e426ba do not expect x-terraform-resource-poll-completed-statuses for delete operations 742b915c add missing mandatory description field for 202 lb delete response e33a57db save extra api call by calling updateStateWithPayloadData instead 895cd92c check errors when reading and if error is NotFound then return nil as expected 56c03a30 Merge pull request #50 from dikhan/feature/support-for-async-operations 94a788d6 better logging in example api server 2f9841d8 add validation for readonly requirement in status fields (only applicable when performing polling) 5c99f7b7 rename x-terraform-resource-poll-target-statuses to x-terraform-resource-poll-completed-statuses dd6bfb0b quick doc update to accentuate the importance of status being read only de5452f8 clarify default behaviour if 'x-terraform-resource-poll-enabled' extension is not present 3dcfea80 fixing description of status fields bba69d58 fix typo f7f1082d add small comment to enum field 81c541c4 fix typo 38ef6ea4 remove not yet supported extensions as it might be confusing for readers 5379793f handle properly 404 not founds when resource is destroyed 3178b6af comment out extension not yet implemented f9f49c06 add support for delete async operations 2dd4d510 add support for update async operations 02e8df6e pass in specific operation timeout value 0f08ecf3 refactor lb api async logic to reuse code 0be9bede add support for async create operations 8fec507d add support for x-terraform-resource-poll-pending-statuses fa9ab139 add support for x-terraform-resource-poll-target-status f4aa43d8 add support for x-terraform-resource-poll-enabled extension 5a299f74 adding some comments to terraform config file for reference purposes 91711cfc update lb example resource to behave as an async resource db43dcca add default timeout (will be applicable to all CRUD operations) 8ce75d83 add backend for lbs 7aa6ba74 update documentation adding info about x-terraform-field-status d17cda42 add support for x-terraform-field-status extension bdf8a8c2 Merge branch 'master' into feature/support-for-async-operations a12d0a86 update issue links 8bff2999 Merge branch 'master' into feature/support-for-async-operations 778619ac Delete Feature_request.md 60f5c9f6 Delete Bug_report.md 8b14acfb Update issue templates 51a3cb6d leverage Issue template improvements e50f46d1 update analyser to not throw an error when running into non compliant resources ac2fb5e7 update swagger example including extensions to support async operations 295fb590 fix OpenAPI plugin configuration file example 03d17652 fix example yaml acf2d3ff Merge branch 'master' into feature/support-for-async-operations 154d402d Merge branch 'master' into feature/support-for-async-operations 699c49ca Merge branch 'master' into feature/support-for-async-operations 71847a3c add new resource example that has async operations
Nothing published for this version
Fixes a bug introduced by the x-terraform-field-name extension feature where there was a miss-match between the resource schema configuration and the
Fixes a bug introduced by the x-terraform-field-name extension feature where there was a miss-match between the resource schema configuration and the read/write operations performed against the state file. This caused terraform to fail on apply operations not being able to find the property value set in the terraform configuration file due to the code trying to find the swagger property name and not the value used in the swagger property x-terraform-field-name extension
4c9fc5c4 update version in install script c39756a3 do not remove state files when running the example c392f342 use always terraform compliant names when reading from/writing into the state
Added support for support for x-terraform-field-name which enables service providers to override property names with different names.
securityDefinitions:
apikeyAuth: # this is not terraform name compliant; hence it will be converted to apikey_auth. This will be the name used in the terraform provider config file.
type: "apiKey"
name: "Authorization"
in: "header"
Corresponding terraform configuration view:
provider "swaggercodegen" {
apikey_auth = "${var.apikey_auth}"
}
paths:
/v1/cdns:
post:
parameters:
- in: "header"
name: "X-Request-ID" # this is not a terraform compliant name; hence it will be converted to x_request_id. This will be the name used in the terraform provider config file.
type: "string"
required: true
Corresponding terraform configuration view:
provider "swaggercodegen" {
x_request_id = "request header value for POST /v1/cdns"
}
definitions:
ContentDeliveryNetworkV1:
exampleInt: # this name is not terraform name compliant; the provider will do a translation on the fly to make it terraform name compliant - the result will be example_int
type: integer
exampleNumber:
type: number
x-terraform-field-name: betterExampleNumberName # this enables service providers to override the property name with a different name; and if the name is again not terraform compliant the same conversion will be applied on the value - the result will be better_example_number_name
Corresponding terraform configuration view:
resource "swaggercodegen_cdns_v1" "my_cdn" {
example_int = 12
better_example_number_name = 1.12
}
25956586 addressing PR comments 7d763ee1 update documentation with new extension (x-terraform-field-name) support ae0dc74c loosen up constraints about expected status codes 5fdc54f6 get latest version of http client 6355df45 fix test after adding auto field terraform name conversions 8816dca8 quick rename to be consistent when referring to resourceLocalData f593517a create isIDProperty to reduce boiler plate ba1e30e9 wrap state operations in methods that handle name conversion 8d33cbaa convert to terraform compliant name when saving payload data into state and reading from it 24c489d4 refactor swaggercodegen example to handle better model object 38f92609 convert to terraform compliant name when getting payload from data c8516591 automatically convert security schemes names that are not terraform name compliant 8c6eb182 add support for extension x-terraform-field-name 9b939b01 dep add github.com/iancoleman/strcase 482b8932 fix versions
Added support for terraform resource exclusion tags (x-terraform-resource-exclude) on a POST operation level.
This means that terraform compliant resources containing the x-terraform-resource-exclude extension will be ignored by the OpenAPI Terraform provider.
Example:
paths:
/v1/cdns:
post:
x-terraform-resource-exclude: true // <-- This is the new tag added
27a5af53 update docs 58dbd145 fix minor issue with table formatting e6ba87df update docs with x-terraform-exclude-resource info 9a12ed8d add support for POST operation level x-terraform-exclude-resource: true
Added support for primitive properties (string, int, bool and number) using Zero values. Before a resource using primitive properties that had Zero va
a6af4709 add support for zero values 00499b7d Update README.md 52a8d6a5 update readme logos 20613a92 Update README.md
If host is not specified, it is assumed to be the same host where the API documentation is being served.
https://github.com/dikhan/terraform-provider-openapi/blob/master/docs/how_to.md#host
0f5ac4b add new target to clean up tag 1f4fb56 fix latest-tag target 8af3383 update release version 5e4d855 update documentation scheme 03578e9 update documentation 8d9c9ed fix swagger-ui-swaggercodegen issue where swagger file was not loaded properly 4908684 update swaggercodegen example with no host field 7a4bb3d add support for undefined host in swagger doc
One column per quarter.