mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
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:
commit
f649030c73
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user