From cf8fb04301a7959abf05a3d71179d8bf46d4c533 Mon Sep 17 00:00:00 2001 From: Thilo W Date: Thu, 4 Jan 2024 12:26:23 +0100 Subject: [PATCH] updated tests and fixed versions --- .github/workflows/test_icingaweb2_ini_template.yml | 4 ++-- .../tests/integration/test_ini_config.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_icingaweb2_ini_template.yml b/.github/workflows/test_icingaweb2_ini_template.yml index 63c1ad8e..bb2d1368 100644 --- a/.github/workflows/test_icingaweb2_ini_template.yml +++ b/.github/workflows/test_icingaweb2_ini_template.yml @@ -1,4 +1,4 @@ -name: Python Unittest +name: Icingaweb2 Templates on: push: tags: @@ -17,7 +17,7 @@ on: - '!doc/**' jobs: - icingaweb2_ini_template: + test_ini_template: runs-on: ubuntu-latest env: diff --git a/molecule/ini-configuration-tests/tests/integration/test_ini_config.py b/molecule/ini-configuration-tests/tests/integration/test_ini_config.py index 732b0334..f138ce08 100644 --- a/molecule/ini-configuration-tests/tests/integration/test_ini_config.py +++ b/molecule/ini-configuration-tests/tests/integration/test_ini_config.py @@ -2,28 +2,28 @@ def test_string(host): i2_file = host.file("/tmp/string") print(i2_file.content_string) assert i2_file.is_file - assert i2_file.content_string == "\n[section]\ntest = string" + assert i2_file.content_string == "\n[section]\ntest = string\n" def test_number(host): i2_file = host.file("/tmp/number") print(i2_file.content_string) assert i2_file.is_file - assert i2_file.content_string == '\n[section]\ntest = "10"' + assert i2_file.content_string == '\n[section]\ntest = "10"\n' def test_list(host): i2_file = host.file("/tmp/list") print(i2_file.content_string) assert i2_file.is_file - assert i2_file.content_string == '\n[section]\ntest = "foo, bar, baz"' + assert i2_file.content_string == '\n[section]\ntest = "foo, bar, baz"\n' def test_advanced_filter(host): i2_file = host.file("/tmp/advanced_filter") print(i2_file.content_string) assert i2_file.is_file - assert i2_file.content_string == "\n[section]\ntest = '!(objectClass=user)'\ntest2 = '!(objectClass=user)'\ntest3 = '!attribute'" + assert i2_file.content_string == "\n[section]\ntest = '!(objectClass=user)'\ntest2 = '!(objectClass=user)'\ntest3 = '!attribute'\n" def test_equal_sign(host): i2_file = host.file("/tmp/equal_sign") print(i2_file.content_string) assert i2_file.is_file - assert i2_file.content_string == "\n[section]\ntest = 'equal=sign'" + assert i2_file.content_string == "\n[section]\ntest = 'equal=sign'\n"