Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
sed -i "s#^auth_token1 =.*#auth_token1 = $KBASE_CI_TOKEN#" test.cfg
sed -i "s#^auth_token2 =.*#auth_token2 = $KBASE_CI_TOKEN2#" test.cfg
sed -i "s#^auth_user1 =.*#auth_user1 = kbase_bot#" test.cfg
sed -i "s#^auth_user2 =.*#auth_user2 = sychan168#" test.cfg
sed -i "s#^auth_user2 =.*#auth_user2 = local_kbase_bot#" test.cfg
sed -i "s#^good_users =.*#good_users = kbasetest2 , kbasetest7 , kbasehelp#" test.cfg

./gradlew test
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/us/kbase/test/auth/client/AuthClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ public void constructFailNullURI() throws Exception {
@Test
public void constructFailBadUrl200() throws Exception {
// this test is fragile, the exception message might need tweaking
final String text = "<!doctype html><html lang=\"en\"><head>"
+ "<script async src=\"https://www.googletagmanager.com/gtag/js?...";
final String err = "Failed reading from auth url https://ci.kbase.us/services/authx/ "
final String text = "<!doctype html>\n<html>\n<head>\n "
+ "<title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n ...";
final String err = "Failed reading from auth url https://example.org "
+ "with response code 200 - response is not JSON: " + text;
assertThat("text is too long", text.length(), is(100));
failConstruct(new URI("https://ci.kbase.us/services/authx/"), new AuthException(err));
failConstruct(new URI("https://example.org"), new AuthException(err));
assertThat("no logs", LOGS.isEmpty(), is(true));
}

Expand Down