Skip to content

Commit acc1f5a

Browse files
authored
Merge pull request #691 from anrao19/tfa_swift
[TFA] swift command not found as it installed inside virtual environment
2 parents 3dd5f19 + 40512e7 commit acc1f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rgw/v2/tests/s3_swift/swift_stats.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def test_exec(config, ssh_con):
6666
{"obj": rgw, "resource": "put_container", "args": [container_name]}
6767
)
6868
if container is False:
69-
raise TestExecError("Resource execution failed: container creation faield")
69+
raise TestExecError("Resource execution failed: container creation failed")
7070

7171
host, ip = utils.get_hostname_ip(ssh_con)
7272
port = utils.get_radosgw_port_no(ssh_con)
7373
hostname = str(ip) + ":" + str(port)
74-
cmd = "swift -A http://{hostname}/auth/1.0 -U '{uid}' -K '{key}' stat".format(
74+
cmd = "venv/bin/swift -A http://{hostname}/auth/1.0 -U '{uid}' -K '{key}' stat".format(
7575
hostname=hostname, uid=user_info["user_id"], key=user_info["key"]
7676
)
7777
swift_cmd = utils.exec_shell_cmd(cmd)

0 commit comments

Comments
 (0)