Skip to content

Commit

Permalink
t/mojo-oauth2.t: Disable if OAuth2 is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Dec 10, 2021
1 parent e069bea commit d0d6e53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/mojo-oauth2.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ use Bugzilla::Test::Util qw(create_user create_oauth_client);
use Test2::V0;
use Test::Mojo;

if (!Bugzilla->has_feature('oauth2_server')) {
skip_all("oauth2_server feature not available");
}

my $oauth_login = '[email protected]';
my $oauth_password = 'password123456789!';
my $referer = Bugzilla->localconfig->urlbase;
Expand Down

0 comments on commit d0d6e53

Please sign in to comment.