File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/test/java/us/kbase/test/auth/client Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4242 sed -i "s#^auth_token1 =.*#auth_token1 = $KBASE_CI_TOKEN#" test.cfg
4343 sed -i "s#^auth_token2 =.*#auth_token2 = $KBASE_CI_TOKEN2#" test.cfg
4444 sed -i "s#^auth_user1 =.*#auth_user1 = kbase_bot#" test.cfg
45- sed -i "s#^auth_user2 =.*#auth_user2 = sychan168 #" test.cfg
45+ sed -i "s#^auth_user2 =.*#auth_user2 = local_kbase_bot #" test.cfg
4646 sed -i "s#^good_users =.*#good_users = kbasetest2 , kbasetest7 , kbasehelp#" test.cfg
4747
4848 ./gradlew test
Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ public void constructFailNullURI() throws Exception {
6161 @ Test
6262 public void constructFailBadUrl200 () throws Exception {
6363 // this test is fragile, the exception message might need tweaking
64- final String text = "<!doctype html><html lang= \" en \" > <head>"
65- + "<script async src =\" https://www.googletagmanager.com/gtag/js? ..." ;
66- final String err = "Failed reading from auth url https://ci.kbase.us/services/authx/ "
64+ final String text = "<!doctype html>\n <html> \n <head>\n "
65+ + "<title>Example Domain</title> \n \n <meta charset =\" utf-8 \" /> \n ..." ;
66+ final String err = "Failed reading from auth url https://example.org "
6767 + "with response code 200 - response is not JSON: " + text ;
6868 assertThat ("text is too long" , text .length (), is (100 ));
69- failConstruct (new URI ("https://ci.kbase.us/services/authx/ " ), new AuthException (err ));
69+ failConstruct (new URI ("https://example.org " ), new AuthException (err ));
7070 assertThat ("no logs" , LOGS .isEmpty (), is (true ));
7171 }
7272
You can’t perform that action at this time.
0 commit comments