Skip to content

Commit

Permalink
Merge branch 'master' into global_node_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ingwarsw authored Apr 19, 2020
2 parents b45f353 + c1c9190 commit d536a9f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
import org.junit.Ignore;
import org.junit.Test;

import static org.hamcrest.Matchers.*;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;

/**
* Tests in this class are meant to show the behavior of {@link AbstractGitHubWireMockTest} with proxying on or off.
*
* <p>
* The wiremock data for these tests should only be modified by hand - thus most are skipped when snapshotting.
*
Expand All @@ -27,15 +31,16 @@ public void user_whenProxying_AuthCorrectlyConfigured() throws Exception {
assertThat(gitHub.getClient().login, not(equalTo(STUBBED_USER_LOGIN)));

// If this user query fails, either the proxying config has broken (unlikely)
// or your auth settings are not being retrieved from the environemnt.
// or your auth settings are not being retrieved from the environment.
// Check your settings.
GHUser user = gitHub.getMyself();
assertThat(user.getLogin(), notNullValue());

// System.out.println();
// System.out.println("WireMockStatusReporterTest: GitHub proxying and user auth correctly configured for user
// login: " + user.getLogin());
// System.out.println();
System.out.println();
System.out.println(
"WireMockStatusReporterTest: GitHub proxying and user auth correctly configured for user login: "
+ user.getLogin());
System.out.println();
}

@Test
Expand Down

0 comments on commit d536a9f

Please sign in to comment.