Skip to content

Commit

Permalink
Update Test files
Browse files Browse the repository at this point in the history
Signed-off-by: Han Kyuhyun <[email protected]>
Co-authored-by: ByunJeongHeum <[email protected]>
Co-authored-by: June Saehwan <[email protected]>
Co-authored-by: jongmin Lee <[email protected]>
  • Loading branch information
4 people committed Sep 23, 2023
1 parent a040753 commit 5fe5ded
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,19 @@ public void okTest() {
"\"html_url\": \"https://github.com/Samsung/LPVS/pull/18\", " +
"\"head\": {" +
"\"repo\": {" +
"\"owner\": {" +
"\"login\": \"Samsung\"" +
"}," +
"\"fork\": true, " +
"\"html_url\": \"https://github.com/o-kopysov/LPVS/tree/utests\"" +
"}, " +
"\"sha\": \"edde69ecb8e8a88dde09fa9789e2c9cab7cf7cf9\", " +
"\"ref\": \"o-kopysov:utests\"" +
"}, " +
"\"url\": \"https://api.github.com/repos/Samsung/LPVS/pulls/18\"" +
"}," +
"\"sender\": {" +
"\"login\": \"o-kopysov\"" +
"}" +
"}";

Expand Down
18 changes: 17 additions & 1 deletion src/test/java/com/lpvs/util/WebHookUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,19 @@ void setUp() {
"\"html_url\": \"https://github.com/Samsung/LPVS/pull/18\", " +
"\"head\": {" +
"\"repo\": {" +
"\"fork\": true, " +
"\"owner\": {" +
"\"login\": \"Samsung\"" +
"}," +
"\"fork\": true, " +
"\"html_url\": \"https://github.com/o-kopysov/LPVS/tree/utests\"" +
"}, " +
"\"sha\": \"edde69ecb8e8a88dde09fa9789e2c9cab7cf7cf9\", " +
"\"ref\": \"o-kopysov:utests\"" +
"}, " +
"\"url\": \"https://api.github.com/repos/Samsung/LPVS/pulls/18\"" +
"}," +
"\"sender\": {" +
"\"login\": \"o-kopysov\"" +
"}" +
"}";

Expand All @@ -53,6 +59,8 @@ void setUp() {
expected.setPullRequestAPIUrl("https://api.github.com/repos/Samsung/LPVS/pulls/18");
expected.setRepositoryUrl("https://github.com/Samsung/LPVS");
expected.setUserId("GitHub hook");
expected.setSender("o-kopysov");
expected.setOwner("Samsung");
expected.setHeadCommitSHA("edde69ecb8e8a88dde09fa9789e2c9cab7cf7cf9");
expected.setAttempts(0);
}
Expand Down Expand Up @@ -84,13 +92,19 @@ void setUp() {
"\"html_url\": \"https://github.com/Samsung/LPVS/pull/18\", " +
"\"head\": {" +
"\"repo\": {" +
"\"owner\": {" +
"\"login\": \"Samsung\"" +
"}," +
"\"fork\": false, " +
"\"html_url\": \"https://github.com/o-kopysov/LPVS/tree/utests\"" +
"}, " +
"\"sha\": \"edde69ecb8e8a88dde09fa9789e2c9cab7cf7cf9\", " +
"\"ref\": \"o-kopysov:utests\"" +
"}, " +
"\"url\": \"https://api.github.com/repos/Samsung/LPVS/pulls/18\"" +
"}," +
"\"sender\": {" +
"\"login\": \"o-kopysov\"" +
"}" +
"}";

Expand All @@ -101,6 +115,8 @@ void setUp() {
expected.setPullRequestAPIUrl("https://api.github.com/repos/Samsung/LPVS/pulls/18");
expected.setRepositoryUrl("https://github.com/Samsung/LPVS");
expected.setUserId("GitHub hook");
expected.setSender("o-kopysov");
expected.setOwner("Samsung");
expected.setHeadCommitSHA("edde69ecb8e8a88dde09fa9789e2c9cab7cf7cf9");
expected.setAttempts(0);
}
Expand Down

0 comments on commit 5fe5ded

Please sign in to comment.