44 lines
1.6 KiB
Diff
44 lines
1.6 KiB
Diff
From f1ccdbdb6c662ce67b4af74e0433a59f099d784a Mon Sep 17 00:00:00 2001
|
|
From: Ani Sinha <anisinha@redhat.com>
|
|
Date: Fri, 23 Jun 2023 17:54:04 +0530
|
|
Subject: [PATCH] test fixes: changes to apply RHEL specific config settings to
|
|
tests
|
|
|
|
X-downstream-only: true
|
|
fixes: c4d66915520554adedff9b ("Add initial redhat changes")
|
|
fixes: dfff374f66904e84fb07ca ("limit permissions on def_log_file")
|
|
|
|
Signed-off-by: Ani Sinha <anisinha@redhat.com>
|
|
---
|
|
tests/unittests/cmd/test_main.py | 15 +++++++++------
|
|
1 file changed, 9 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/tests/unittests/cmd/test_main.py b/tests/unittests/cmd/test_main.py
|
|
index e9ad0bb8..5d61aa2c 100644
|
|
--- a/tests/unittests/cmd/test_main.py
|
|
+++ b/tests/unittests/cmd/test_main.py
|
|
@@ -119,14 +119,17 @@ class TestMain(FilesystemMockingTestCase):
|
|
{
|
|
"def_log_file": "/var/log/cloud-init.log",
|
|
"log_cfgs": [],
|
|
- "syslog_fix_perms": [
|
|
- "syslog:adm",
|
|
- "root:adm",
|
|
- "root:wheel",
|
|
- "root:root",
|
|
- ],
|
|
"vendor_data": {"enabled": True, "prefix": []},
|
|
"vendor_data2": {"enabled": True, "prefix": []},
|
|
+ "syslog_fix_perms": [],
|
|
+ "mount_default_fields": [
|
|
+ None,
|
|
+ None,
|
|
+ "auto",
|
|
+ "defaults,nofail",
|
|
+ "0",
|
|
+ "2",
|
|
+ ],
|
|
}
|
|
)
|
|
updated_cfg.pop("system_info")
|