Skip to content

Commit

Permalink
Fixed test_docker_upload.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed May 17, 2024
1 parent 71bc4e2 commit d79eb36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_docker_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_docker_upload_with_path_in_bucket(self):
self.bucketfs_name = "bfsdefault"
self.bucket_name = "default"
arguments = " ".join([
f"--database-host {self.docker_environment.ports.database}",
f"--database-host {self.docker_environment.database_host}",
f"--bucketfs-port {self.docker_environment.ports.bucketfs}",
f"--bucketfs-username {self.docker_environment.bucketfs_username}",
f"--bucketfs-password {self.docker_environment.bucketfs_password}",
Expand All @@ -58,7 +58,7 @@ def test_docker_upload_without_path_in_bucket(self):
self.bucketfs_name = "bfsdefault"
self.bucket_name = "default"
arguments = " ".join([
f"--database-host {self.docker_environment.ports.database}",
f"--database-host {self.docker_environment.database_host}",
f"--bucketfs-port {self.docker_environment.ports.bucketfs}",
f"--bucketfs-username {self.docker_environment.bucketfs_username}",
f"--bucketfs-password {self.docker_environment.bucketfs_password}",
Expand All @@ -83,7 +83,7 @@ def test_docker_upload_fail_path_in_bucket(self):
self.bucketfs_name = "bfsdefault"
self.bucket_name = "default"
arguments = " ".join([
f"--database-host {self.docker_environment.ports.database}",
f"--database-host {self.docker_environment.database_host}",
f"--bucketfs-port {self.docker_environment.ports.bucketfs}",
f"--bucketfs-username {self.docker_environment.bucketfs_username}",
f"--bucketfs-password invalid",
Expand All @@ -103,7 +103,7 @@ def test_docker_upload_fail_path_in_bucket(self):

def validate_file_on_bucket_fs(self, expected_file_path: str):
url = "http://w:{password}@{host}:{port}/{bucket}".format(
host=self.docker_environment.database_host, port=self.docker_environment.bucketfs_port,
host=self.docker_environment.database_host, port=self.docker_environment.ports.bucketfs,
bucket=self.bucket_name, password=self.docker_environment.bucketfs_password)
cmd = ["curl", "--silent", "--show-error", "--fail", url]
p = subprocess.run(cmd, capture_output=True)
Expand Down

0 comments on commit d79eb36

Please sign in to comment.