@@ -11,31 +11,31 @@ cfbs --non-interactive update
1111# Also, it should not break on new commits(!)
1212# TODO: Use jq, a python script, cfbs validate or something similar
1313
14- assert_file_matches cfbs.json ' "name".*"Example'
15- assert_file_matches cfbs.json ' "type".*"policy-set"'
16- assert_file_matches cfbs.json ' "description".*"Example description"'
14+ assert_file_matches_regex cfbs.json ' "name".*"Example'
15+ assert_file_matches_regex cfbs.json ' "type".*"policy-set"'
16+ assert_file_matches_regex cfbs.json ' "description".*"Example description"'
1717
18- assert_file_matches cfbs.json ' "name".*"promise-type-ansible"'
19- assert_file_matches cfbs.json ' "version":.*[0-9]+\.[0-9]+'
18+ assert_file_matches_regex cfbs.json ' "name".*"promise-type-ansible"'
19+ assert_file_matches_regex cfbs.json ' "version":.*[0-9]+\.[0-9]+'
2020assert_file_contains cfbs.json ' "commit"'
21- assert_file_matches cfbs.json ' "added_by".*"cfbs add"'
21+ assert_file_matches_regex cfbs.json ' "added_by".*"cfbs add"'
2222assert_file_contains cfbs.json ' "steps"'
2323assert_file_contains cfbs.json ' copy ansible_promise.py modules/promises/'
2424assert_file_contains cfbs.json ' append enable.cf services/init.cf'
25- assert_file_matches cfbs.json ' "tags".*"supported"'
26- assert_file_matches cfbs.json ' "by".*"https://github.com/tranchitella"'
27- assert_file_matches cfbs.json ' "repo".*"https://github.com/cfengine/modules"'
28- assert_file_matches cfbs.json ' "subdirectory".*"promise-types/ansible"'
29- assert_file_matches cfbs.json ' "dependencies".*"library-for-promise-types-in-python"'
30- assert_file_matches cfbs.json ' "description".*"Promise type to run ansible playbooks'
31-
32- assert_file_matches cfbs.json ' "name".*"library-for-promise-types-in-python"'
33- assert_file_matches cfbs.json ' "description".*"Library enabling promise types implemented in python'
34- assert_file_matches cfbs.json ' "tags".*"library"'
35- assert_file_matches cfbs.json ' "repo".*"https://github.com/cfengine/modules"'
36- assert_file_matches cfbs.json ' "by".*"https://github.com/cfengine"'
37- assert_file_matches cfbs.json ' "subdirectory".*"libraries/python"'
38- assert_file_matches cfbs.json ' "added_by".*"promise-type-ansible"'
25+ assert_file_matches_regex cfbs.json ' "tags".*"supported"'
26+ assert_file_matches_regex cfbs.json ' "by".*"https://github.com/tranchitella"'
27+ assert_file_matches_regex cfbs.json ' "repo".*"https://github.com/cfengine/modules"'
28+ assert_file_matches_regex cfbs.json ' "subdirectory".*"promise-types/ansible"'
29+ assert_file_matches_regex cfbs.json ' "dependencies".*"library-for-promise-types-in-python"'
30+ assert_file_matches_regex cfbs.json ' "description".*"Promise type to run ansible playbooks'
31+
32+ assert_file_matches_regex cfbs.json ' "name".*"library-for-promise-types-in-python"'
33+ assert_file_matches_regex cfbs.json ' "description".*"Library enabling promise types implemented in python'
34+ assert_file_matches_regex cfbs.json ' "tags".*"library"'
35+ assert_file_matches_regex cfbs.json ' "repo".*"https://github.com/cfengine/modules"'
36+ assert_file_matches_regex cfbs.json ' "by".*"https://github.com/cfengine"'
37+ assert_file_matches_regex cfbs.json ' "subdirectory".*"libraries/python"'
38+ assert_file_matches_regex cfbs.json ' "added_by".*"promise-type-ansible"'
3939assert_file_contains cfbs.json ' copy cfengine_module_library.py modules/promises/cfengine_module_library.py'
4040
4141cfbs status
0 commit comments