Repository navigation
v0.18.0
What’s new?
Changelog
c1505b6 Merge pull request #152 from dikhan/feature/data-source-support
328c37b Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
75e8e25 Update TestCreateTerraformProviderDataSourceMap to use dataSources on the specAnalyserStub
2876859 add info that subresource paths are also supported in data sources
f2b1886 Fix case in TestCreateProvider for createTerraformProviderDataSourceMap failure
0f95b4d Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
7c9c762 WIP add case to TestCreateProvider to exercise error when createTerraformProviderDataSourceMap fails
3a6736d go mod update
4cf3593 add timing telemetry and debug info
2504e34 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
61e6129 add fat test for subresource data sources
ffca75e Expand TestOpenAPIProvider to check more data types
a4264f7 add TestDataSourceRead_Subresource
0a1ff7e add test TestCreateDataSourceSchema_Subresources
f53c126 use get property based on terraform name
96c7d94 do not override parent id property config if found
2750c71 update test to represent the schema input configuration
427e2af some more dry up
18b8389 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
c524b82 create helper function to assert data source schema configs
62906c9 [wip] applying a filter on a nested struct while reading from a DataSource
70a0965 fixed case in which the datasource contains Elems which are primitive
e7f55ba [wip] all the nested object properties attributes are set to the correct values for the data source
b1dd16c [wip] adding nested object support
9d4b3e5 Merge branch 'master' into feature/data-source-support
03cf8a2 added todo to cover nested objects and make sure they are made computed too
0944432 update the schema to incluide an array of strings and assert the state contains the owners too
4696163 extend model def to include array of strings prop
6bad267 Merge pull request #151 from dikhan/update-version-to-0.18.0
714ee7d Update version to 0.18.0
d45cc04 Merge pull request #150 from dikhan/feature/data-source-support
51e7256 Add case to TestCreateProvider where createTerraformProviderResourceMap fails
e257db3 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
d7e9ece make assertions on data source map too
bc534db Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
f2ffbf8 WIP add coverage to TestCreateProvider for createTerraformProviderResourceMap failure
f5fe35f Remove error check from GetTerraformCompliantDataSources - no longer returns an error
145cd1f remove empty line
ecdef72 add data source documentation
221d817 Add case to TestCreateProvider where specAnalyser has an error on the backendConfiguration
8e3125c create specific int test for data source
9a7c567 remove not needed assertions
c3833a1 Add case to TestCreateProvider where specAnalyser has an error
01b5009 Add integration test for data source
9f79f4f add todo with missing coverage
7d14132 remove redundant test (perhaps copy pasta mistake)
ece4e31 TestOpenAPIProvider now includes the Integration without mock of DataSources
dec17f7 removed unapplicable todo
15936e8 covered happy and crappy paths for createTerraformProviderDataSourceMap
104047e implemented logic remaining in createTerraformProviderDataSourceMap and completed its "integration" test
8d2468e [wip] the integration test is now running properly
267e900 [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
7ef9606 Added tests for TestGetTerraformCompliantDataSources() and changed its signature to return NO error
97f9389 Remove invalid specSchemaDefinition testcase from TestFilterMatch
faa8d18 mod dep
794a927 fix lint issue
09908a7 fix failing test after making list operation rely on root level get response operation config
5db8c13 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
d55cb54 Remove error checking from filterMatch and validateInput - already caught when data source constructed
1550a54 fix issue with test assertion
ef9be96 add more todos
bc056da add implementation to GetTerraformCompliantDataSources
1496b34 create constructor for newSpecV2DataSource
9fb9a03 use List operation when figuring out configuration for list operation
bdfe95e Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
69309e6 update test to check expected struct hearirchy for data sources
d998691 add todo as reminder to add a test for subresoruce data source too
0fb66ab add logic to check if a path is data source compliant
840ed38 Add TestDataSourceRead_Fails_Because_Bad_Status_Code
7df603f Add TestCreateTerraformDataSource
d32ba16 skeleton design to integrate data source functionality
1563b4f Add TestDataSourceRead_Fails_Because_List_Operation_Returns_Err for List returning error
0958c3d [wip] covering crappy paths in read()
32f78d1 added the ID to the data source and improved assertions
5664259 [wip] extracted setStateID() from resource_factory.go to common.go as it will be used in data_source_factory.go too
d6280d1 [wip] introduced new todos as annotation on code coverage and correctness
4954c34 removed unapplicable or old todos
8627def Fixed filter for float property
6becdd7 [wip] polishing and removing unapplicable or solved todos
75074a3 Update TestCreateTerraformDataSourceSchema to check for an expectedError
5027d68 Update createTerraformDataSourceSchema to return an error
e63fc0d Remove todo to get and return the data source schema in createTerraformDataSourceSchema
02a719c Update createTerraformDataSourceSchema to return the created data source schema
d1a6920 [wip] on createTerraformDataSourceSchema
9589386 both sad and happy path covered for createDataSourceSchema()
cd28208 both sad and happy path covered for createDataSourceSchema()
c3a5172 [wip] happy path for createDataSourceSchema()
e032097 add support for createDataSourceSchema
ffae702 Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
efdfb7b add test for TestCreateTerraformDataSourceSchema that documents what is the expectation for data source schema configuration
f4ba8af Merge branch 'feature/data-source-support' of github.com:dikhan/terraform-provider-openapi into feature/data-source-support
3249311 Add happy path testcases to TestFilterMatch for int, float, bool properties
e020425 add some info why the test fails
7bf7c12 flesh out todo comment
262e44a add ref todo comment with missing logic to make the read operation work fine
d52c9ce integrate updateStateWithPayloadData so state gets updated with the filtered result
26aa11e fix assertion issue and only assert state when error is nil
fd7e365 add test case for validate input fails
d97d477 remove no longer applicable TODO
6ca9596 add test coverage for:
79a96b1 Add TestFilterMatch to validate filterMatch on dataSourceFactory
07534ed Add error property to specStubResource so getResourceSchema() can return an error
a046e70 refactor TestCheckHTTPStatusCode and TestResponseContainsExpectedStatus
6af5c24 move common functionality for datasource and resources to commons
1ad586d add filterMatch logic
636e1ff make validateInput return list of filters with name and value
d45f505 add test for TestDataSourceRead
750aa62 remove redundant err check and update error message returned
078546e update response payload to be array of items
5b6e347 enable list testing adding responseListPayload to clientOpenAPIStub
230c94e dry up label set up
56fab15 add test coverage for isPrimitiveProperty
22246e5 remove n/a todo comment
267e978 add check for primitive and values size
78cfe37 refactor test to use test driven table
c666a98 use const for schema property names to avoid bugs due to typos (reused names across)
c5c40da add some test for validateInput
5428780 add dataSourceFactory struct
90dd66a extend ClientAPI with new operation to list instances
d5d26c6 move common functionality for resource and data source factories to commons