Skip to content

Commit 5913525

Browse files
authored
Remove irrelevant tests from file_system_rules. (#350)
* Fix broken file_system_rules tests. * Add all premerge tests to postmerge as well.
1 parent e420a60 commit 5913525

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/cloudbeat-ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
- '[0-9]+.[0-9]+'
88
types: [opened, synchronize, reopened]
9+
push:
10+
branches:
11+
- main
912
env:
1013
K8S_MANIFEST_DIR: deploy/k8s/kustomize/base
1114
GO_VERSION: 1.18.4

tests/product/tests/data/file_system/file_system_test_cases.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@
5555

5656
cis_1_1_12 = [
5757
('CIS 1.1.12', 'chown', 'root:root', '/var/lib/etcd', 'failed'),
58-
('CIS 1.1.12', 'chown', 'etcd:root', '/var/lib/etcd/', 'failed'),
58+
('CIS 1.1.12', 'chown', 'etcd:root', '/var/lib/etcd', 'failed'),
5959
('CIS 1.1.12', 'chown', 'root:etcd', '/var/lib/etcd', 'failed'),
60-
('CIS 1.1.12', 'chown', 'root:etcd', '/var/lib/etcd/some_file.txt', 'failed'),
6160
('CIS 1.1.12', 'chown', 'etcd:etcd', '/var/lib/etcd', 'passed'),
62-
('CIS 1.1.12', 'chown', 'etcd:etcd', '/var/lib/etcd/some_file.txt', 'passed'),
6361
]
6462

6563
cis_1_1_13 = [

0 commit comments

Comments
 (0)