Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change
representationNotSupported
error to invalidDidUrl
if …
…query is wrong or not supported [DEV-2401] (#135) * Add integration test data payloads. * Add integration test constants. * Create test runner for running integration tests. * Add positive integration tests for getting DIDDoc. * Add negative integration tests for getting DIDDoc. * Update go.mod and go.sum files. * Move DID document payloads to another folder. * Add did#fragment query payloads for integration tests. * Rename testCase member variable: - from "expectedDIDResolution" to "expectedDidResolution"; - from "receivedDIDResolution" to "receivedDidResolution"; - from "expectedDIDResolution" to "expectedDidResolution". * Add positive and integration tests for testing API that gets DID#fragment. * Fix golangci-lint mistakes. * Add build tag for building integration tests. * Fix golangci-lint mistakes. * Add DIDDoc version payloads for using in integration tests. * Add DIDDoc version metadata payloads for using in integration tests. * Add integration tests for testing resourceMetadata * Add integration tests for testing collection of resources API. * Add integration tests for testing resolver resource data request. * Refactor integration tests. * Add integration tests for testing get DIDDoc versions API. * Add integration tests for testing get DIDDoc version API. * Add integration tests for testing get DIDDoc version metadata API. * Add integration tests for testing how is working redirect when we try to get different API with old Indy style DID. * Refactor and update integration tests. * Remove an old integration tests. * Update integration tests. * Update integration tests for GitHub actions. * Update GitHub action test.yml file. * Add integration tests report file to .gitignore. * Update test.yml * DIDDoc version should return in resolution format. * Uncomment integration tests. * Add integration tests for testing accept header. * Refactor integration tests. * Add integration tests for testing accept-encoding header. * Rename folder name from "unit-tests" to "unit". * Update test.yml file. * Restructure integration tests folder structure. * Remove an unused ProcessDIDRequest method. * Move test from did_doc_service and resource_dereferencing_service to particular handlers. * Use constant variables instead of a header strings * Add unit tests for testing how works a redirect old 16/32 characters Indy style DIDs. * Re structure unit tests. * Add integration build flag for test_suite_test.go. * Refactor unit tests. * Add more unit tests for testing ledger services. * Change `representationNotSupported` error to `invalidDidUrl` if query is wrong or not supported. * Add integration tests for testing get resolution result with an invalid query. * Change from unit to integration go build flag. * Fix integration test mistake. * Add HTTP binding constants for using tests. * Correct the names of the integration test cases. * Add constant variables for using integration tests instead of magic strings. * Fix type mistakes. * Fix golangci-lint mistakes. * Update integration tests. * Update unit test runner command in GitHub actions. * Update integration tests.
- Loading branch information