Skip to content

Commit 7415a45

Browse files
committed
Fix tests for v12
- adjust expected error log file names - skip tests in ManageService on PAaaS - rename unit-tests to integration-tests
1 parent 2a00f77 commit 7415a45

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/unit_test_pipeline.yml renamed to .github/workflows/integration_test_pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
code_reference:
77
description: 'PR number (e.g., #612) or branch name (e.g., master or bugfix_123 ) to test'
88
required: true
9-
default: ''
9+
default: 'master'
1010
environments:
11-
description: 'JSON array of environments to test (e.g., ["tm1-11-onprem", "tm1-11-cloud"])'
11+
description: 'JSON array of environments to test (e.g., ["tm1-11-cloud", "tm1-11-cloud"])'
1212
required: true
13-
default: '["tm1-11-onprem","tm1-11-cloud","tm1-12-mcsp"]'
13+
default: '["tm1-12-cloud","tm1-11-cloud"]'
1414

1515
jobs:
1616
test:

Tests/CellService_test.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,8 @@ def test_write_through_unbound_process_write_failure_exception(self):
776776
with self.assertRaises(TM1pyWriteFailureException) as ex:
777777
self.tm1.cells.write_through_unbound_process(self.cube_with_consolidations_name, cells)
778778
self.assertEqual(ex.exception.statuses, ["Aborted"])
779-
self.assertIn(".log", ex.exception.error_log_files[0])
779+
780+
self.assertIn("log", ex.exception.error_log_files[0].lower())
780781

781782
query = MdxBuilder.from_cube(self.cube_with_consolidations_name)
782783
query.add_member_tuple_to_columns(
@@ -796,7 +797,8 @@ def test_write_through_unbound_process_write_partial_failure_exception(self):
796797
self.tm1.cells.write_through_unbound_process(self.cube_with_consolidations_name, cells)
797798
self.assertEqual(ex.exception.statuses, ["HasMinorErrors"])
798799
self.assertEqual(ex.exception.attempts, 1)
799-
self.assertIn(".log", ex.exception.error_log_files[0])
800+
801+
self.assertIn("log", ex.exception.error_log_files[0].lower())
800802

801803
query = MdxBuilder.from_cube(self.cube_with_consolidations_name)
802804
query.add_member_tuple_to_columns(
@@ -959,7 +961,8 @@ def test_write_through_blob_write_failure_exception(self):
959961
with self.assertRaises(TM1pyWritePartialFailureException) as ex:
960962
self.tm1.cells.write_through_blob(self.cube_with_consolidations_name, cells)
961963
self.assertEqual(ex.exception.statuses, ["HasMinorErrors"])
962-
self.assertIn(".log", ex.exception.error_log_files[0])
964+
965+
self.assertIn("log", ex.exception.error_log_files[0].lower())
963966

964967
query = MdxBuilder.from_cube(self.cube_with_consolidations_name)
965968
query.add_member_tuple_to_columns(
@@ -979,7 +982,8 @@ def test_write_through_blob_write_partial_failure_exception(self):
979982
self.tm1.cells.write_through_blob(self.cube_with_consolidations_name, cells)
980983
self.assertEqual(ex.exception.statuses, ["HasMinorErrors"])
981984
self.assertEqual(ex.exception.attempts, 1)
982-
self.assertIn(".log", ex.exception.error_log_files[0])
985+
986+
self.assertIn("log", ex.exception.error_log_files[0].lower())
983987

984988
query = MdxBuilder.from_cube(self.cube_with_consolidations_name)
985989
query.add_member_tuple_to_columns(

Tests/ManageService_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ def tearDownClass(cls):
7676
cls.manager.delete_database(instance_name=cls.instance, database_name=cls.database)
7777
cls.manager.delete_instance(instance_name=cls.instance)
7878

79+
@pytest.mark.skip(reason="Not supported in PAaaS")
7980
def test_get_instance(self):
8081
instance = self.manager.get_instance(instance_name=self.instance)
8182
self.assertEqual(self.instance, instance.get("Name"))
8283

84+
@pytest.mark.skip(reason="Not supported in PAaaS")
8385
def test_get_database(self):
8486
database = self.manager.get_database(instance_name=self.instance, database_name=self.database)
8587
self.assertEqual(self.database, database.get("Name"))
@@ -104,6 +106,7 @@ def test_scale_database(self):
104106

105107
self.assertEqual(replicas, self.starting_replicas)
106108

109+
@pytest.mark.skip(reason="Not supported in PAaaS")
107110
def test_create_and_get_application(self):
108111

109112
# Create Application and Store Credentials

0 commit comments

Comments
 (0)