Skip to content

v0.4.0

Choose a tag to compare

@dikhan dikhan released this 12 Oct 23:06
· 1916 commits to master since this release

Changes

This release includes major refactoring on the code structure. The main change is the interfaces expose now between swagger implementations and the overlying infrastructure:

  • OpenAPI provider code does not rely on internal implementation details of the swagger 2.0 lib but rather on interfaces than then different implementation can be provided. This makes the code structure of the provider more flexible allowing different implementations such as OpenAPI 3.0 to be developed and switched when the time comes.
  • It also simplifies greatly the unit testing process.
  • Integration tests are not in place raising the confidence when new releases are performed as regressions can be captured more easily instead of performing manual tests

Changelog

3675f79 fix issue with getProviderName after adding support for binaries with version
b0ca34c fix install script to introduce version binary support
b9d57b2 remove typo
a2b65d9 Merge pull request #65 from dikhan/feature/add-version-support
1ecb744 commenting out windows support until further testing is performed
a13e218 remove unnecessary {{.Env.USER}}
a1e83c3 set prerelease to true for tessting purposes
d1abd68 remove single quotes
74de60b set up build properly
21f5f23 pump version number
f81e32a update release documentation
ce0125a add defaults for RELEASE_TAG and RELEASE_MESSAGE
7f7e379 update goreleaser to include version in the binary
066f5cc make fields private
3b9f67c remove non needed -a for building locally
aeee22e updated various build settings
0f070f2 add more details to baked in flags
e14e8f3 update install script to use version file
80b1786 bake in version at compile time
a8368a1 Merge pull request #64 from dikhan/feature/add-integration-tests
6f9a336 Merge branch 'master' into feature/add-integration-tests
7db8658 add golang.org/x/lint/golint
c32081d Merge pull request #54 from dikhan/feature/add-integration-tests
7a6e69e add DC_SERVICE to be able to bring up a specific service
f5a1d36 update local env doc
55659a3 clean up root readme and link reference to other docs (installation and usage)
9c93a10 create how to install
3d3b625 create how to use documentation
bf6b068 update goa documentation
55cb9b8 update swaggercodegen documentation
33e4564 be less specific as depending on local setup the error message might be different
514c35c Merge branch 'master' into feature/add-integration-tests
af744ed fix issue with shared properties
665b9a1 add unit tests for provider configuration
c4961a0 add tests for provider
c647352 go fmt
df3a90e add unit tests for backend configuration
535b6b0 add unit tests for sec def schemes
c877e92 add unit tests for sec def
3603a6a add unit tests for sec def apikey
3e14731 remove no longer needed test file
2b957e9 reformatting
4083d97 add unit test for spec header
2a39c90 add unit test for SpecAnalyser
f95b76d add test for openapi_client
b2b93f8 add unit test for openapi client
ef0b80e create specStubBackendConfiguration
ff21fbe use HttpClientIface in ProviderClient to enable easier unit testing
f57b39a dep ensure --update github.com/dikhan/http_goclient
8473c26 add unit tests for api key (header and query)
a807d5d add interface compliant tests
0e23ae6 use -d instead of --detach to fix travis -ci build
865ce24 fix issues with example container
e38d0a0 remove symlinks references
4f24015 use build instead and no cache to avoid weird behaviours
fdfdfce add unit tests for scheam definition and schema definition property
9f3c4ed export SpecSchemaDefinition and add isStatusIdentifier to SchemaDefinitionProperty constructors
68d5e0a update getStatusIdentifier to return statusHierarchy
ad07208 fix int tests
74e6fea add missing unit tests
64d73cb add support for object types
a935b8d fix tests
114a16b move unit test commented out to header v2 file
71dbd68 forklift host override and multi-region functionality
56775c4 enable polling in delete so int test also cover destroy poll coverage properly
60f5ed4 add support to test destroy
a011e66 use right errors import package
275cf80 add int test that covers failures in the API
801fd8f add int test that covers failures in the API
2f8eef2 add support for delete polling
157f108 remove no longer needed comment
352eb4c add support for update async polling
c734c6e add default config to the resourceFactory struct for better unit testing
70c47ea handle 404 properly
99c13a7 check resource destroy after a delay
792e28b make type private
d19de22 add test for operations with empty responses
7bea9cb organising files and struct renames to be consistent with spec prefix
c92ba69 fix int tests
1b8c941 add async functionality to create method
1494d05 prepare test for timeout
db2a6a1 added int test for lbs (async operation)
62e7649 grouped operations under one struct
bd66958 add lb resource to swaggercodegen terraform config example
7787509 forklift x-terraform-resource-timeout from master
1a27443 move r.shouldIgnoreResource() to provider factory
7825529 add int test for zero values
47f7296 forklift x-terraform-resource-name from master
82b1031 add missing unit tests to provider factory
3d67918 add more units test
86b8cfe quick method rename GetAPIBackendConfiguration
d8c62e7 auth files renaming and restructuring
b1e1659 quick refactor on createAPIKeyAuthenticator to accept SpecSecurityDefinition instead
8174ef6 fix compile errors after changing GetAllHeaderParameters signature
060ceb7 add error handling to GetAllHeaderParameters() method
4179df4 use corresponding complaint name for the look up
923965e fix unit test
1aa596a fix issue where actual header names were used in the provider config for security schema def and headers for look ups
bd6ab15 add unit test for CreateProviderConfig
9d636f9 create spec analyser stub for testing purposes
9af29dc add comment to clientOpenAPIStub struct
3725da2 add validation check for getProviderResourceName
41909a6 add missing unit tests for createResourceSchema and createTerraformResource
724c5c9 move resource factory test helper methods to the resource factor unit test file
f88d221 add missing unit tests for createResourceSchema and createTerraformResource
24aa46a fix compile errors
2e385d4 remove un-necessary ifs that were not working when errors occurred
bcc3888 Add unit tests for resource factory
952194f moved specific spec definition property functionality to spec resource file
c2f58ba create openAPIClient interface
5671c21 remove deprecated files
cf9f071 add better logging for registered resources
cbd59ab bring up swaggercodegen-service-provider-api local env by default
c9d1fbd remove no longer needed debug log entry...too much noise
c809b7f moved code to separate files
ae82427 pass pointer of globalSecuritySchemes
32f3032 providerConfiguration uses real names and not converted names in the keys
3247029 use names and not converted names to look up security schemes and headers from auth
8d6835b move SpecSecurity to its own file
27eac4e move spec to its own file
a680bbc move tests from openapi_spec_analyser_test / openapi_v2_spec_analyser_test
1032a4a fix TEST_PACKAGES regex andonly test files under openapi package
08a268f use -d for docker-compose compatibility reasons
d2f3307 fix lint/vet issues
31aac9f run integration tests as part of the ci pipeline
7364fd1 clean up int tests
2610610 add tests for:
2f6d233 add test for immutable property
8f941b2 create make target for integration tests
23cd818 create integration tests
5ddf17d add missing dep files
e2f408c fix various bugs
5d6264e major code refactoring to move away from poc code
191ac8a major refactoring