Skip to content

Commit

Permalink
updated tests and fixed versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayontour committed Jan 4, 2024
1 parent 7367f3f commit cf8fb04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_icingaweb2_ini_template.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Unittest
name: Icingaweb2 Templates
on:
push:
tags:
Expand All @@ -17,7 +17,7 @@ on:
- '!doc/**'

jobs:
icingaweb2_ini_template:
test_ini_template:
runs-on: ubuntu-latest

env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit cf8fb04

Please sign in to comment.