Skip to content

Commit 12599f1

Browse files
committed
fix tests
1 parent 39f7dce commit 12599f1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

core/tests/10__cluster_sanity/55__rich_rules.robot

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Ensure role mapping exists for traefik1
77
Should Be Equal As Integers ${rc} 0
88

99
Add rich rules via Python script
10-
${output} = Execute Command cat > /usr/local/bin/add_rich_rules <<'PY'
10+
${script} = Catenate SEPARATOR=\n
1111
... #!/usr/local/bin/runagent python3
1212
... import agent
1313
... rules = [
@@ -16,7 +16,7 @@ Add rich rules via Python script
1616
... ]
1717
... result = agent.add_rich_rules(rules)
1818
... print('SUCCESS' if result else 'FAILED')
19-
... PY
19+
Execute Command cat > /usr/local/bin/add_rich_rules <<'PY'\n${script}\nPY
2020
Execute Command chmod +x /usr/local/bin/add_rich_rules
2121
${output} = Execute Command runagent -m traefik1 add_rich_rules
2222
Should Contain ${output} SUCCESS
@@ -34,7 +34,8 @@ Query individual rich rules
3434
Should Be Equal As Integers ${rc2} 0
3535

3636
Remove rich rules via Python script
37-
${output} = Execute Command cat > /usr/local/bin/remove_rich_rules <<'PY'
37+
${script} = Catenate SEPARATOR=\n
38+
... #!/usr/local/bin/runagent python3
3839
... import sys
3940
... import agent
4041
... rules = [
@@ -43,7 +44,7 @@ Remove rich rules via Python script
4344
... ]
4445
... result = agent.remove_rich_rules(rules)
4546
... print('SUCCESS' if result else 'FAILED')
46-
... PY
47+
Execute Command cat > /usr/local/bin/remove_rich_rules <<'PY'\n${script}\nPY
4748
Execute Command chmod +x /usr/local/bin/remove_rich_rules
4849
${output} = Execute Command runagent -m traefik1 remove_rich_rules
4950
Should Contain ${output} SUCCESS

0 commit comments

Comments
 (0)