Skip to content

Commit

Permalink
improve test reliablility
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 29, 2024
1 parent 133212b commit 895fdd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/scenarios/auth_krb5/t/local/auth.t
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ for my $site (qw/local/) {
cmd => '/usr/bin/env omd reload apache',
like => ['/Reloading apache/'],
});
sleep(3);
TestUtils::test_command({
cmd => '/usr/bin/env curl -s -H "X-Thruk-Auth-Key: wrong" "http://omd.test.local/demo/thruk/cgi-bin/tac.cgi"',
like => ['/wrong authentication key/'],
Expand All @@ -67,6 +68,7 @@ for my $site (qw/local/) {
cmd => '/usr/bin/env omd reload apache',
like => ['/Reloading apache/'],
});
sleep(3);
};

{
Expand Down
1 change: 1 addition & 0 deletions t/scenarios/rest_api/t/local/rest_case_sensitive.t
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ sub _set_lmd {
cmd => '/usr/bin/env omd reload apache',
like => ['/Reloading apache configuration.*OK/'],
});
sleep(3);
# wait till page is back online
TestUtils::test_page(
url => 'http://localhost/demo/thruk/r/csv/sites/ALL/sites?columns=status&headers=0',
Expand Down
1 change: 1 addition & 0 deletions t/scenarios/rest_api/t/local/testuser.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ TestUtils::test_command({
cmd => '/usr/bin/env omd reload apache',
like => ['/Reloading apache/'],
});
sleep(3);
TestUtils::test_command({
cmd => '/usr/bin/env thruk cache dump',
like => ['/\{\}/'],
Expand Down
1 change: 1 addition & 0 deletions t/scenarios/rest_api/t/local/testuser2.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ TestUtils::test_command({
cmd => '/usr/bin/env omd reload apache',
like => ['/Reloading apache/'],
});
sleep(3);
TestUtils::test_command({
cmd => '/usr/bin/env thruk cache dump',
like => ['/\{\}/'],
Expand Down

0 comments on commit 895fdd5

Please sign in to comment.