-
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.
#6 - Another more integration tests for StarsUp bot
- Loading branch information
Showing
36 changed files
with
504 additions
and
47 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
4 changes: 2 additions & 2 deletions
4
src/test/resources/db-rider/bot/expected/noStarsUpResults_githubRepoWithOneStat.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
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
4 changes: 2 additions & 2 deletions
4
...-rider/bot/expected/noStarsUpResults_githubRepoWithThreeStats_starsIncreaseLessThan10.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
4 changes: 2 additions & 2 deletions
4
...noStarsUpResults_githubRepoWithThreeStats_starsIncreaseMoreThan10ButLessThan5Percents.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
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
4 changes: 2 additions & 2 deletions
4
...resources/db-rider/bot/expected/noStarsUpResults_githubRepoWithTwoStats_starsDecrease.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
4 changes: 2 additions & 2 deletions
4
...db-rider/bot/expected/noStarsUpResults_githubRepoWithTwoStats_starsIncreaseLessThan10.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
4 changes: 2 additions & 2 deletions
4
...d/noStarsUpResults_githubRepoWithTwoStats_starsIncreaseMoreThan10ButLessThan5Percents.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
4 changes: 2 additions & 2 deletions
4
...urces/db-rider/bot/expected/noStarsUpResults_githubRepoWithTwoStats_withTwoEqualStars.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
4 changes: 2 additions & 2 deletions
4
src/test/resources/db-rider/bot/expected/noStarsUpResults_githubRepoWithoutStat.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stars_up_result: | ||
stars_up_result: [] | ||
|
||
codexia_review: | ||
codexia_review: [] |
18 changes: 18 additions & 0 deletions
18
...st/resources/db-rider/bot/expected/oneStarsUpResult_githubRepoWithFourStats_happyPath.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,18 @@ | ||
stars_up_result: | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 3 | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 5 | ||
|
||
codexia_review: | ||
- | ||
codexia_project_id: 5 | ||
author: "STARS_UP" | ||
reason: "528" | ||
text: >- | ||
The repo gained 69 stars since 2020-02-16T18:46:09.652645Z | ||
(was: 459 stars, now: 528 stars). | ||
See the stars history | ||
[here](https://star-history.t9t.io/#test-project1/test-repo1). |
18 changes: 18 additions & 0 deletions
18
...t/resources/db-rider/bot/expected/oneStarsUpResult_githubRepoWithThreeStats_happyPath.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,18 @@ | ||
stars_up_result: | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 3 | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 4 | ||
|
||
codexia_review: | ||
- | ||
codexia_project_id: 5 | ||
author: "STARS_UP" | ||
reason: "502" | ||
text: >- | ||
The repo gained 43 stars since 2020-02-16T18:46:09.652645Z | ||
(was: 459 stars, now: 502 stars). | ||
See the stars history | ||
[here](https://star-history.t9t.io/#test-project1/test-repo1). |
6 changes: 6 additions & 0 deletions
6
src/test/resources/db-rider/bot/expected/oneStarsUpResult_noNewGithubStats.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 @@ | ||
stars_up_result: | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 3 | ||
|
||
codexia_review: [] |
6 changes: 6 additions & 0 deletions
6
src/test/resources/db-rider/bot/expected/oneStarsUpResult_starsDecrease.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 @@ | ||
stars_up_result: | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 3 | ||
|
||
codexia_review: [] |
6 changes: 6 additions & 0 deletions
6
src/test/resources/db-rider/bot/expected/oneStarsUpResult_starsIncreaseLessThan10.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 @@ | ||
stars_up_result: | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 3 | ||
|
||
codexia_review: [] |
6 changes: 6 additions & 0 deletions
6
...es/db-rider/bot/expected/oneStarsUpResult_starsIncreaseMoreThan10ButLessThan5Percents.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 @@ | ||
stars_up_result: | ||
- | ||
github_repo_id: 1 | ||
github_repo_stat_id: 3 | ||
|
||
codexia_review: [] |
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,5 +1,5 @@ | ||
github_repo: | ||
github_repo: [] | ||
|
||
github_repo_source: | ||
github_repo_source: [] | ||
|
||
stars_up_result: | ||
stars_up_result: [] |
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ github_repo_stat: | |
github_repo_id: 1 | ||
type: "GITHUB_API" | ||
|
||
stars_up_result: | ||
stars_up_result: [] |
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
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
63 changes: 63 additions & 0 deletions
63
...est/resources/db-rider/bot/initial/oneStarsUpResult_githubRepoWithFourStats_happyPath.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,63 @@ | ||
github_repo: | ||
- | ||
id: 1 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
external_id: "150713223" | ||
full_name: "test-project1/test-repo1" | ||
|
||
codexia_project: | ||
- | ||
id: 5 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
external_id: 12 | ||
coordinates: "test-project1/test-repo1" | ||
author: "some-first-author" | ||
author_id: 44 | ||
deleted: null | ||
project_created_at: "2019-12-20 12:01:02" | ||
|
||
github_repo_source: | ||
- | ||
id: 1 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
github_repo_id: 1 | ||
source: "CODEXIA" | ||
external_id: "12" | ||
|
||
github_repo_stat: | ||
- | ||
id: 1 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
github_repo_id: 1 | ||
type: "GITHUB_API" | ||
stat: '{"type": "GITHUB_API", "stars": 402}' | ||
created_at: "2020-02-11 10:06:16.123456" | ||
- | ||
id: 3 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
github_repo_id: 1 | ||
type: "GITHUB_API" | ||
stat: '{"type": "GITHUB_API", "stars": 459}' | ||
created_at: "2020-02-16 18:46:09.652645" | ||
- | ||
id: 4 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
github_repo_id: 1 | ||
type: "GITHUB_API" | ||
stat: '{"type": "GITHUB_API", "stars": 502}' | ||
created_at: "2020-02-21 07:12:34.333421" | ||
- | ||
id: 5 | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
github_repo_id: 1 | ||
type: "GITHUB_API" | ||
stat: '{"type": "GITHUB_API", "stars": 528}' | ||
created_at: "2020-02-24 15:34:01.223344" | ||
|
||
stars_up_result: | ||
- | ||
uuid: "groovy: UUID.randomUUID().toString()" | ||
github_repo_id: 1 | ||
github_repo_stat_id: 3 | ||
|
||
codexia_review: [] |
Oops, something went wrong.