From 3e554d16b4d539c9bd0c743793d391d30bee167a Mon Sep 17 00:00:00 2001 From: Alberto Contreras Date: Tue, 17 May 2022 19:43:49 +0200 Subject: cli: Redact files with permission errors in commands (#1440) For non-root users, emit warnings and redact on any /etc/cloud/cloud.cfg.d files which raise permissions errors. Add tests covering this behavior for query, status and render cmds. Migrate `test_render.py` and `test_status.py` to Pytest. LP: #1953430 SC-658 --- pyproject.toml | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index e1fb7dca..1aac03a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,6 @@ exclude=[ '^cloudinit/sources/DataSourceVMware\.py$', '^cloudinit/sources/__init__\.py$', '^cloudinit/sources/helpers/vmware/imc/config_file\.py$', - '^cloudinit/stages\.py$', '^cloudinit/templater\.py$', '^cloudinit/url_helper\.py$', '^conftest\.py$', @@ -56,12 +55,9 @@ exclude=[ '^tests/integration_tests/modules/test_growpart\.py$', '^tests/integration_tests/modules/test_ssh_keysfile\.py$', '^tests/unittests/__init__\.py$', - '^tests/unittests/cmd/devel/test_render\.py$', '^tests/unittests/cmd/test_clean\.py$', '^tests/unittests/cmd/test_cloud_id\.py$', '^tests/unittests/cmd/test_main\.py$', - '^tests/unittests/cmd/test_query\.py$', - '^tests/unittests/cmd/test_status\.py$', '^tests/unittests/config/test_cc_chef\.py$', '^tests/unittests/config/test_cc_landscape\.py$', '^tests/unittests/config/test_cc_locale\.py$', @@ -96,7 +92,6 @@ exclude=[ '^tests/unittests/test_subp\.py$', '^tests/unittests/test_templating\.py$', '^tests/unittests/test_url_helper\.py$', - '^tests/unittests/test_util\.py$', '^tools/mock-meta\.py$', ] -- cgit v1.2.1