Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix permission issue with restricted backends on landing page (fixes #…
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use warnings; | ||
use strict; | ||
use Cpanel::JSON::XS qw/decode_json/; | ||
use Test::More; | ||
|
||
die("*** ERROR: this test is meant to be run with PLACK_TEST_EXTERNALSERVER_URI set") unless defined $ENV{'PLACK_TEST_EXTERNALSERVER_URI'}; | ||
|
||
BEGIN { | ||
plan tests => 13; | ||
|
||
use lib('t'); | ||
require TestUtils; | ||
import TestUtils; | ||
} | ||
|
||
TestUtils::test_page( | ||
url => '/thruk/cgi-bin/main.cgi', | ||
like => ['Hosts UP', 'Unhandled Service', 'All Hosts'], | ||
); |