]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fixing dashboard logs e2e test 38606/head
authorNizamudeen A <nia@redhat.com>
Wed, 16 Dec 2020 08:23:14 +0000 (13:53 +0530)
committerNizamudeen A <nia@redhat.com>
Wed, 16 Dec 2020 09:13:00 +0000 (14:43 +0530)
Yesterday there were some changes went in which disables the logging of config set and config-key set to to be logged in mgr audit logs. Dashboard has an e2e test which checks for this config set and broke the current e2e jenkins job. This commit removes that certain test to fix the jenkins job.

Fixes: https://tracker.ceph.com/issues/48623
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/logs.e2e-spec.ts

index 0e918fbf8c2aa9fb3b50db4466970ad937cebc39..f5692bfe15fa3c676faf9144d218552fbd1eb73b 100644 (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);
-    });
-  });
 });