mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Skip regression tests if no configuration available
refs #4600 refs #4666
This commit is contained in:
parent
01d7ea39aa
commit
d8eccd3858
@ -36,6 +36,11 @@ icinga.performLogin();
|
||||
* Open the command dialog with only a host pattern and ensure that the form exists
|
||||
*/
|
||||
casper.thenOpen('/monitoring/command/submitpassivecheckresult?host=*', function() {
|
||||
if (this.exists('.alert')) {
|
||||
this.test.info('Skipping test; See issue #4666 for more details');
|
||||
return;
|
||||
}
|
||||
|
||||
this.test.assertExists(
|
||||
'#form_submit_passive_checkresult',
|
||||
'Test whether the form to submit passive checkresults is available'
|
||||
@ -50,6 +55,11 @@ casper.thenOpen('/monitoring/command/submitpassivecheckresult?host=*', function(
|
||||
* Check whether the input contains the checkresult types for hosts
|
||||
*/
|
||||
casper.then(function() {
|
||||
if (this.exists('.alert')) {
|
||||
this.test.info('Skipping test; See issue #4666 for more details');
|
||||
return;
|
||||
}
|
||||
|
||||
var options = this.evaluate(function() {
|
||||
var elements = document.querySelector(
|
||||
'#form_submit_passive_checkresult select#pluginstate'
|
||||
@ -84,6 +94,11 @@ casper.then(function() {
|
||||
* check whether the input contains the checkresult types for services
|
||||
*/
|
||||
casper.thenOpen('/monitoring/command/submitpassivecheckresult?host=*&service=*', function() {
|
||||
if (this.exists('.alert')) {
|
||||
this.test.info('Skipping test; See issue #4666 for more details');
|
||||
return;
|
||||
}
|
||||
|
||||
var options = this.evaluate(function() {
|
||||
var elements = document.querySelector(
|
||||
'#form_submit_passive_checkresult select#pluginstate'
|
||||
|
Loading…
x
Reference in New Issue
Block a user