Skip to content

Commit

Permalink
probable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
feyruzb committed Sep 3, 2024
1 parent 8ec644e commit 3beb9b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 0 additions & 3 deletions web/tests/functional/products/test_config_db_share.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ def create_test_product(product_name, product_endpoint):
with self.assertRaises(RequestFailed):
self._pr_client_2.addProduct(product_cfg)

# self.assertTrue(self._pr_client_2.addProduct(product_cfg),
# "Cannot create product on secondary server.")

# Product name full string match.
products = self._pr_client_2.getProducts('producttest_second', None)
self.assertEqual(len(products), 1)
Expand Down
6 changes: 4 additions & 2 deletions web/tests/functional/store/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ def setup_class(self):

server_access['viewer_product'] = 'store_limited_product'
codechecker.add_test_package_product(server_access, TEST_WORKSPACE,
report_limit=2)
report_limit=2,
database_name='store_limited')

server_access['viewer_product'] = 'store_test'
codechecker.add_test_package_product(server_access, TEST_WORKSPACE)
codechecker.add_test_package_product(server_access, TEST_WORKSPACE,
database_name='store_test')

# Extend the checker configuration with the server access.
codechecker_cfg.update(server_access)
Expand Down
5 changes: 3 additions & 2 deletions web/tests/libtest/codechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,8 @@ def start_server_proc(event, server_cmd, checking_env):

def add_test_package_product(server_data, test_folder, check_env=None,
protocol='http', report_limit=None,
user_permissions=None):
user_permissions=None,
database_name="data.sqlite"):
"""
Add a product for a test suite to the server provided by server_data.
Server must be running before called.
Expand Down Expand Up @@ -781,7 +782,7 @@ def add_test_package_product(server_data, test_folder, check_env=None,
else:
# SQLite databases are put under the workspace of the appropriate test.
add_command += ['--sqlite',
os.path.join(test_folder, 'data.sqlite')]
os.path.join(test_folder, database_name)]

print(' '.join(add_command))

Expand Down

0 comments on commit 3beb9b8

Please sign in to comment.