use of org.eclipse.che.security.oauth1.NoopOAuthAuthenticator in project che-server by eclipse-che.
the class HttpBitbucketServerApiClientTest method shouldThrowScmCommunicationExceptionInNoOauthAuthenticator.
@Test(expectedExceptions = ScmCommunicationException.class, expectedExceptionsMessageRegExp = "The fallback noop authenticator cannot be used for authentication. Make sure OAuth is properly configured.")
public void shouldThrowScmCommunicationExceptionInNoOauthAuthenticator() throws ScmCommunicationException, ScmUnauthorizedException, ScmItemNotFoundException {
HttpBitbucketServerApiClient localServer = new HttpBitbucketServerApiClient(wireMockServer.url("/"), new NoopOAuthAuthenticator());
// when
localServer.getPersonalAccessToken("ksmster", 5L);
}
use of org.eclipse.che.security.oauth1.NoopOAuthAuthenticator in project devspaces-images by redhat-developer.
the class HttpBitbucketServerApiClientTest method shouldThrowScmCommunicationExceptionInNoOauthAuthenticator.
@Test(expectedExceptions = ScmCommunicationException.class, expectedExceptionsMessageRegExp = "The fallback noop authenticator cannot be used for authentication. Make sure OAuth is properly configured.")
public void shouldThrowScmCommunicationExceptionInNoOauthAuthenticator() throws ScmCommunicationException, ScmUnauthorizedException, ScmItemNotFoundException {
HttpBitbucketServerApiClient localServer = new HttpBitbucketServerApiClient(wireMockServer.url("/"), new NoopOAuthAuthenticator());
// when
localServer.getPersonalAccessToken("ksmster", 5L);
}
Aggregations