Update test_glusterfs.py

This commit is contained in:
Frode Gundersen 2023-03-22 10:14:30 -06:00 committed by Daniel Wozniak
parent b9011f3bd0
commit 4807c2536d

View file

@ -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