Skip to content

Commit

Permalink
Update tests with files.* operation calls.
Browse files Browse the repository at this point in the history
This is due to `create_remote_dir` argument changing from false to true.
  • Loading branch information
Fizzadar committed Jul 9, 2020
1 parent 9ec34e4 commit cfcc2e1
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/operations/dnf.repo/add.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"facts": {
"file": {
"/etc/yum.repos.d/somerepo.repo": {}
},
"directory": {
"/etc/yum.repos.d": true
}
},
"commands": [[
Expand Down
3 changes: 1 addition & 2 deletions tests/operations/files.line/add_existing.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
}
}
},
"commands": [
]
"commands": []
}
3 changes: 3 additions & 0 deletions tests/operations/files.put/change_mode_owner.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"group": "testgroup"
}
},
"directory": {
"/home": true
},
"sha1_file": {
"/home/somefile.txt": "ac2cd59a622114712b5b21081763c54bf0caacb8"
}
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/files.put/different_remote.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"group": "testgroup"
}
},
"directory": {
"/home": true
},
"sha1_file": {
"/home/somefile.txt": "nowt"
}
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/files.put/no_remote.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"facts": {
"file": {
"/home/somefile.txt": null
},
"directory": {
"/home": true
}
},
"commands": [
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/files.put/path_with_spaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"facts": {
"file": {
"/home/some\\ file.txt": null
},
"directory": {
"/home": true
}
},
"commands": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"facts": {
"file": {
"/home/some\\ file.txt": null
},
"directory": {
"/home": true
}
},
"commands": [
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/files.template/no_remote.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"facts": {
"file": {
"/home/somefile.txt.j2": null
},
"directory": {
"/home": true
}
},
"commands": [
Expand Down
9 changes: 9 additions & 0 deletions tests/operations/init.d_enable/create.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
"/etc/rc6.d/K80nginx": {
"link_target": "../init.d/nginx"
}
},
"directory": {
"/etc/rc0.d": true,
"/etc/rc1.d": true,
"/etc/rc2.d": true,
"/etc/rc3.d": true,
"/etc/rc4.d": true,
"/etc/rc5.d": true,
"/etc/rc6.d": true
}
},
"commands": [
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/server.hostname/set_hostname_bsd.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"hostname": "nope",
"file": {
"/etc/myname": {}
},
"directory": {
"/etc": true
}
},
"commands": [
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/server.hostname/set_hostname_linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"hostname": "nope",
"file": {
"/etc/hostname": {}
},
"directory": {
"/etc": true
}
},
"commands": [
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/yum.repo/add.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"facts": {
"file": {
"/etc/yum.repos.d/somerepo.repo": {}
},
"directory": {
"/etc/yum.repos.d": true
}
},
"commands": [[
Expand Down
3 changes: 3 additions & 0 deletions tests/operations/zypper.repo/add.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"facts": {
"file": {
"/etc/zypp/repos.d/somerepo.repo": {}
},
"directory": {
"/etc/zypp/repos.d": true
}
},
"commands": [[
Expand Down

0 comments on commit cfcc2e1

Please sign in to comment.