-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
409dd94
commit ff6e074
Showing
16 changed files
with
216 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
version: 2 | ||
jobs: | ||
unittest: | ||
unit_test: | ||
docker: | ||
- image: circleci/golang:1.14 | ||
steps: | ||
- checkout | ||
- run: make test | ||
functional_test: | ||
docker: | ||
- image: checkr/docker-docker-compose | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
version: 18.09.3 | ||
- run: make docker_functional_test | ||
|
||
workflows: | ||
version: 2 | ||
test: | ||
jobs: | ||
- unittest | ||
- unit_test | ||
- functional_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ vendor/ | |
go.mod | ||
go.sum | ||
Makefile | ||
docker-compose.yaml | ||
/.circleci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: TestSuite of dsrhub's openmock | ||
testcases: | ||
- name: Make sure openmock is ready to serve POST /:service/dsrhub/exchange_identity | ||
steps: | ||
- type: http | ||
method: POST | ||
url: http://openmock:9999/test_email_service/dsrhub/exchange_identity | ||
retry: 20 | ||
delay: 5 | ||
assertions: | ||
- result.statuscode ShouldEqual 200 | ||
- result.body ShouldContainSubstring email | ||
|
||
- name: Make sure openmock is ready to serve POST /:service_name/dsrhub/create_dsr_request | ||
steps: | ||
- type: http | ||
method: POST | ||
url: http://openmock:9999/test_email_service/dsrhub/create_dsr_request | ||
retry: 20 | ||
delay: 5 | ||
assertions: | ||
- result.statuscode ShouldEqual 200 | ||
- result.body ShouldContainSubstring email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: TestSuite of dsrhub's utask | ||
testcases: | ||
- name: getUnsecuredStats | ||
steps: | ||
- type: http | ||
method: GET | ||
url: http://utask:8081/unsecured/stats | ||
retry: 20 | ||
delay: 5 | ||
headers: | ||
accept: application/json | ||
assertions: | ||
- result.statuscode ShouldEqual 200 | ||
|
||
- name: createTask | ||
steps: | ||
- type: http | ||
method: POST | ||
url: http://utask:8081/task | ||
retry: 10 | ||
delay: 5 | ||
headers: | ||
Content-Type: application/json | ||
Authorization: Basic YWRtaW46MTIzNA== # admin:1234 | ||
body: > | ||
{ | ||
"template_name": "example-complex-dsrhub-workflow", | ||
"input": {"email":"[email protected]"} | ||
} | ||
assertions: | ||
- result.statuscode ShouldEqual 201 | ||
- result.bodyjson.state ShouldEqual TODO | ||
|
||
- name: getTaskState | ||
steps: | ||
- type: http | ||
method: GET | ||
url: http://utask:8081/task/{{.createTask.result.bodyjson.id}} | ||
retry: 60 | ||
delay: 2 | ||
headers: | ||
Content-Type: application/json | ||
Authorization: Basic YWRtaW46MTIzNA== # admin:1234 | ||
assertions: | ||
- result.statuscode ShouldEqual 200 | ||
- result.bodyjson.state ShouldEqual DONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.