I added a regression to the file resource. This was caused by two different bugs that I added when I switched the API to use checkapply. I would have caught these issues, except my test cases *also* had a bug! I think I've fixed all three issues now. Lastly, when running on travis, the tests behave very differently! Some of the tests actually fail, and it's not clear why. As a result, we had to disable them! I guess you get what you pay for.
42 lines
616 B
YAML
42 lines
616 B
YAML
---
|
|
graph: mygraph
|
|
resources:
|
|
noop:
|
|
- name: noop1
|
|
file:
|
|
- name: file1
|
|
path: "/tmp/mgmt/f1"
|
|
content: |
|
|
i am f1
|
|
state: exists
|
|
- name: file2
|
|
path: "/tmp/mgmt/f2"
|
|
content: |
|
|
i am f2
|
|
state: exists
|
|
- name: file3
|
|
path: "/tmp/mgmt/f3"
|
|
content: |
|
|
i am f3
|
|
state: exists
|
|
- name: file4
|
|
path: "/tmp/mgmt/f4"
|
|
content: |
|
|
i am f4 and i should not be here
|
|
state: absent
|
|
edges:
|
|
- name: e1
|
|
from:
|
|
res: file
|
|
name: file1
|
|
to:
|
|
res: file
|
|
name: file2
|
|
- name: e2
|
|
from:
|
|
res: file
|
|
name: file2
|
|
to:
|
|
res: file
|
|
name: file3
|