mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update test_glusterfs.py
This commit is contained in:
parent
b9011f3bd0
commit
4807c2536d
1 changed files with 5 additions and 5 deletions
|
@ -72,9 +72,9 @@ def test_peered():
|
|||
|
||||
ret.update({"result": False})
|
||||
|
||||
comt = (
|
||||
"Failed to peer with {0}," + " please check logs for errors"
|
||||
).format(name)
|
||||
comt = "Failed to peer with {}, please check logs for errors".format(
|
||||
name
|
||||
)
|
||||
ret.update({"comment": comt, "changes": {}})
|
||||
assert glusterfs.peered(name) == ret
|
||||
|
||||
|
@ -136,7 +136,7 @@ def test_volume_present():
|
|||
ret.update({"comment": comt, "result": None})
|
||||
assert glusterfs.volume_present(name, bricks, start=False) == ret
|
||||
|
||||
comt = ("Volume {0} already exists" + " and will be started").format(name)
|
||||
comt = "Volume {} already exists and will be started".format(name)
|
||||
ret.update({"comment": comt, "result": None})
|
||||
assert glusterfs.volume_present(name, bricks, start=True) == ret
|
||||
|
||||
|
@ -145,7 +145,7 @@ def test_volume_present():
|
|||
ret.update({"comment": comt, "result": None})
|
||||
assert glusterfs.volume_present(name, bricks, start=False) == ret
|
||||
|
||||
comt = ("Volume {0} will be created" + " and started").format(name)
|
||||
comt = "Volume {} will be created and started".format(name)
|
||||
ret.update({"comment": comt, "result": None})
|
||||
assert glusterfs.volume_present(name, bricks, start=True) == ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue