Skip to content

Commit

Permalink
fix path + update index name
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Khasawneh <okhasawn@amazon.com>
  • Loading branch information
okhasawn committed Jan 9, 2024
1 parent cb13a85 commit c7c1da3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import json


def create_index(endpoint: str, index_name: str, auth, verify_ssl: bool = False, protocol: str = 'https'):
def create_index(endpoint: str, index_name: str, auth, verify_ssl: bool = False):
response = requests.put(f'{endpoint}/{index_name}', auth=auth, verify=verify_ssl)

return response


def check_index(endpoint: str, index_name: str, auth, verify_ssl: bool = False, protocol: str = 'https'):
def check_index(endpoint: str, index_name: str, auth, verify_ssl: bool = False):
response = requests.get(f'{endpoint}/{index_name}', auth=auth, verify=verify_ssl)

return response
Expand Down
4 changes: 2 additions & 2 deletions test/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def setup_authentication(self, auth_type, username, password):
return None

def set_common_values(self):
self.index = self.unique_id
self.index = f"test_index_{self.unique_id}"
self.doc_id = '7'
self.ignore_list = []

Expand Down Expand Up @@ -266,7 +266,7 @@ def test_0005_invalidIncorrectUri(self):

def test_0006_OSB(self):
if self.deployment_type == "cloud":
cmd_exec = f"./runTestBenchmarks --unique-id {self.index}"
cmd_exec = f"/root/runTestBenchmarks.sh --unique-id {self.unique_id}"
logger.warning(f"Running local command: {cmd_exec}")
subprocess.run(cmd_exec, shell=True)
else:
Expand Down

0 comments on commit c7c1da3

Please sign in to comment.