Skip to content

Commit

Permalink
changed setting to MB
Browse files Browse the repository at this point in the history
  • Loading branch information
amofakhar committed Jul 18, 2024
1 parent 6b28704 commit cd4a4a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_resync_mariadb_to_sf_if_table_size_greater_than_limit(self): # pylint:
"""test resync mariadb to SF returns error 1 if table size is greater than the limit"""

a_small_number = 3
_create_ppw_config_file(table_byte=a_small_number)
_create_ppw_config_file(table_mb=a_small_number)

command = f'pipelinewise sync_tables --tap {TAP_ID} --target {TARGET_ID}'

Expand All @@ -44,7 +44,7 @@ def test_resync_mariadb_to_sf_if_table_size_greater_than_limit(self): # pylint:
def test_resync_mariadb_to_sf_if_table_size_less_than_limit(self): # pylint: disable = no-self-use
"""test resync mariadb to SF returns error if table size is less than the limit"""
a_big_number = 100000000000
_create_ppw_config_file(table_byte=a_big_number)
_create_ppw_config_file(table_mb=a_big_number)

command = f'pipelinewise sync_tables --tap {TAP_ID} --target {TARGET_ID}'
[return_code, _, _] = tasks.run_command(command)
Expand All @@ -54,7 +54,7 @@ def test_resync_mariadb_to_sf_if_table_size_less_than_limit(self): # pylint: di
def test_resync_mariadb_to_sf_if_table_size_greater_than_limit_and_force(self): # pylint: disable = no-self-use
"""test resync mariadb to SF returns error if table size is greater than the limit and --force is used"""
a_small_number = 3
_create_ppw_config_file(table_byte=a_small_number)
_create_ppw_config_file(table_mb=a_small_number)

command = f'pipelinewise sync_tables --tap {TAP_ID} --target {TARGET_ID} --force'

Expand All @@ -65,7 +65,7 @@ def test_resync_mariadb_to_sf_if_table_size_greater_than_limit_and_force(self):
def test_run_tap_mariadb_to_sf_if_size_greater_than_limit(self): # pylint: disable = no-self-use
"""test run_tap mariadb to sf if table size is greater than the limit"""
a_small_number = 3
_create_ppw_config_file(table_byte=a_small_number)
_create_ppw_config_file(table_mb=a_small_number)

command = f'pipelinewise run_tap --tap {TAP_ID} --target {TARGET_ID}'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_resync_pg_to_sf_if_table_size_greater_than_limit(self): # pylint: dis
"""test resync pg to SF returns error 1 if table size is greater than the limit"""

a_small_number = 3
_create_ppw_config_file(table_byte=a_small_number)
_create_ppw_config_file(table_mb=a_small_number)

command = f'pipelinewise sync_tables --tap {TAP_ID} --target {TARGET_ID}'

Expand All @@ -44,7 +44,7 @@ def test_resync_pg_to_sf_if_table_size_greater_than_limit(self): # pylint: dis
def test_resync_pg_to_sf_if_table_size_less_than_limit(self): # pylint: disable = no-self-use
"""test resync pg to SF returns error if table size is less than the limit"""
a_big_number = 100000000000
_create_ppw_config_file(table_byte=a_big_number)
_create_ppw_config_file(table_mb=a_big_number)

command = f'pipelinewise sync_tables --tap {TAP_ID} --target {TARGET_ID}'
[return_code, _, _] = tasks.run_command(command)
Expand All @@ -55,7 +55,7 @@ def test_resync_pg_to_sf_if_table_size_greater_than_limit_and_force(self): # p

"""test resync pg to SF returns error if table size is greater than the limit and --force is used"""
a_small_number = 3
_create_ppw_config_file(table_byte=a_small_number)
_create_ppw_config_file(table_mb=a_small_number)

command = f'pipelinewise sync_tables --tap {TAP_ID} --target {TARGET_ID} --force'

Expand All @@ -66,7 +66,7 @@ def test_resync_pg_to_sf_if_table_size_greater_than_limit_and_force(self): # p
def test_run_tap_pg_to_sf_if_size_greater_than_limit(self): # pylint: disable = no-self-use
"""test run_tap postgres to sf if table size is greater than the limit"""
a_small_number = 3
_create_ppw_config_file(table_byte=a_small_number)
_create_ppw_config_file(table_mb=a_small_number)

command = f'pipelinewise run_tap --tap {TAP_ID} --target {TARGET_ID}'

Expand Down

0 comments on commit cd4a4a7

Please sign in to comment.