From d0d6e531a5a0c523e349e61b5cdbeeadf90138b3 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Fri, 10 Dec 2021 21:17:46 +0000 Subject: [PATCH] t/mojo-oauth2.t: Disable if OAuth2 is disabled --- t/mojo-oauth2.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/mojo-oauth2.t b/t/mojo-oauth2.t index 4b981ae204..ce476e0dd7 100644 --- a/t/mojo-oauth2.t +++ b/t/mojo-oauth2.t @@ -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 = 'oauth@mozilla.bugs'; my $oauth_password = 'password123456789!'; my $referer = Bugzilla->localconfig->urlbase;