Merge pull request #38606 from rhcs-dashboard/log-e2e-fix

mgr/dashboard: Fixing dashboard logs e2e test

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
This commit is contained in:
Ernesto Puerta 2020-12-16 11:43:54 +01:00 committed by GitHub
commit f649030c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,11 @@
import { PoolPageHelper } from '../pools/pools.po';
import { ConfigurationPageHelper } from './configuration.po';
import { LogsPageHelper } from './logs.po';
describe('Logs page', () => {
const logs = new LogsPageHelper();
const pools = new PoolPageHelper();
const configuration = new ConfigurationPageHelper();
const poolname = 'e2e_logs_test_pool';
const configname = 'log_graylog_port';
const today = new Date();
let hour = today.getHours();
if (hour > 12) {
@ -57,17 +54,4 @@ describe('Logs page', () => {
logs.checkAuditForPoolFunction(poolname, 'delete', hour, minute);
});
});
describe('audit logs respond to editing configuration setting test', () => {
it('should change config settings and check audit logs reacted', () => {
configuration.navigateTo();
configuration.edit(configname, ['global', '5']);
logs.navigateTo();
logs.checkAuditForConfigChange(configname, 'global', hour, minute);
configuration.navigateTo();
configuration.configClear(configname);
});
});
});