-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#55 - ResendErroneousReviewsIntegrationTest
- Loading branch information
Showing
12 changed files
with
293 additions
and
1 deletion.
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
1 change: 1 addition & 0 deletions
1
src/test/resources/db-rider/codexia/cron/resend-erroneous/expected/emptyDatabase.yml
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 @@ | ||
codexia_review_notification: [] |
6 changes: 6 additions & 0 deletions
6
src/test/resources/db-rider/codexia/cron/resend-erroneous/expected/noErroneous.yml
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,6 @@ | ||
codexia_review_notification: | ||
- | ||
codexia_review_id: 2 | ||
status: "SUCCESS" | ||
response_code: 200 | ||
response: "Successfully sent" |
11 changes: 11 additions & 0 deletions
11
src/test/resources/db-rider/codexia/cron/resend-erroneous/expected/oneErroneous.yml
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,11 @@ | ||
codexia_review_notification: | ||
- | ||
codexia_review_id: 2 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" | ||
- | ||
codexia_review_id: 2 | ||
status: "SUCCESS" | ||
response_code: 200 | ||
response: "regex:^<200 OK OK,Review successfully sent.*" |
16 changes: 16 additions & 0 deletions
16
...t/resources/db-rider/codexia/cron/resend-erroneous/expected/oneSuccessfulOneErroneous.yml
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,16 @@ | ||
codexia_review_notification: | ||
- | ||
codexia_review_id: 2 | ||
status: "SUCCESS" | ||
response_code: 500 | ||
response: "" | ||
- | ||
codexia_review_id: 3 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" | ||
- | ||
codexia_review_id: 3 | ||
status: "SUCCESS" | ||
response_code: 200 | ||
response: "regex:^<200 OK OK,Review successfully sent.*" |
11 changes: 11 additions & 0 deletions
11
src/test/resources/db-rider/codexia/cron/resend-erroneous/expected/reviewSentWith500.yml
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,11 @@ | ||
codexia_review_notification: | ||
- | ||
codexia_review_id: 2 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" | ||
- | ||
codexia_review_id: 2 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" |
21 changes: 21 additions & 0 deletions
21
src/test/resources/db-rider/codexia/cron/resend-erroneous/expected/twoErroneous.yml
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,21 @@ | ||
codexia_review_notification: | ||
- | ||
codexia_review_id: 2 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" | ||
- | ||
codexia_review_id: 3 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" | ||
- | ||
codexia_review_id: 2 | ||
status: "SUCCESS" | ||
response_code: 200 | ||
response: "regex:^<200 OK OK,Review successfully sent.*" | ||
- | ||
codexia_review_id: 3 | ||
status: "SUCCESS" | ||
response_code: 200 | ||
response: "regex:^<200 OK OK,Review successfully sent.*" |
5 changes: 5 additions & 0 deletions
5
src/test/resources/db-rider/codexia/cron/resend-erroneous/initial/emptyDatabase.yml
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,5 @@ | ||
codexia_project: [] | ||
|
||
codexia_review: [] | ||
|
||
codexia_review_notification: [] |
25 changes: 25 additions & 0 deletions
25
src/test/resources/db-rider/codexia/cron/resend-erroneous/initial/noErroneous.yml
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,25 @@ | ||
codexia_project: | ||
- | ||
id: 5 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
external_id: 1222 | ||
coordinates: "test-project1/test-repo1" | ||
author: "some-first-author" | ||
project_created_at: "2019-12-20 12:01:02" | ||
|
||
codexia_review: | ||
- | ||
id: 2 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_project_id: 5 | ||
author: Review author | ||
reason: Review reason | ||
text: Review text | ||
|
||
codexia_review_notification: | ||
- | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_review_id: 2 | ||
status: "SUCCESS" | ||
response_code: 200 | ||
response: "Successfully sent" |
25 changes: 25 additions & 0 deletions
25
src/test/resources/db-rider/codexia/cron/resend-erroneous/initial/oneErroneous.yml
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,25 @@ | ||
codexia_project: | ||
- | ||
id: 5 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
external_id: 1222 | ||
coordinates: "test-project1/test-repo1" | ||
author: "some-first-author" | ||
project_created_at: "2019-12-20 12:01:02" | ||
|
||
codexia_review: | ||
- | ||
id: 2 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_project_id: 5 | ||
author: Review author | ||
reason: Review reason | ||
text: Review text | ||
|
||
codexia_review_notification: | ||
- | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_review_id: 2 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" |
38 changes: 38 additions & 0 deletions
38
...st/resources/db-rider/codexia/cron/resend-erroneous/initial/oneSuccessfulOneErroneous.yml
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,38 @@ | ||
codexia_project: | ||
- | ||
id: 5 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
external_id: 1222 | ||
coordinates: "test-project1/test-repo1" | ||
author: "some-first-author" | ||
project_created_at: "2019-12-20 12:01:02" | ||
|
||
codexia_review: | ||
- | ||
id: 2 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_project_id: 5 | ||
author: Review author | ||
reason: Review reason | ||
text: Review text | ||
- | ||
id: 3 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_project_id: 5 | ||
author: Another review author | ||
reason: Another review reason | ||
text: Another review text | ||
|
||
codexia_review_notification: | ||
- | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_review_id: 2 | ||
status: "SUCCESS" | ||
response_code: 500 | ||
response: "" | ||
- | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_review_id: 3 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" |
38 changes: 38 additions & 0 deletions
38
src/test/resources/db-rider/codexia/cron/resend-erroneous/initial/twoErroneous.yml
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,38 @@ | ||
codexia_project: | ||
- | ||
id: 5 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
external_id: 1222 | ||
coordinates: "test-project1/test-repo1" | ||
author: "some-first-author" | ||
project_created_at: "2019-12-20 12:01:02" | ||
|
||
codexia_review: | ||
- | ||
id: 2 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_project_id: 5 | ||
author: Review author | ||
reason: Review reason | ||
text: Review text | ||
- | ||
id: 3 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_project_id: 5 | ||
author: Another review author | ||
reason: Another review reason | ||
text: Another review text | ||
|
||
codexia_review_notification: | ||
- | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_review_id: 2 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" | ||
- | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
codexia_review_id: 3 | ||
status: "ERROR" | ||
response_code: 500 | ||
response: "" |