Skip to content
...@@ -216,34 +216,66 @@ class TestCIConsumptions(TestCase): ...@@ -216,34 +216,66 @@ class TestCIConsumptions(TestCase):
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file) self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_03(self): def test_021_03(self):
self.fail("(021_03) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_03.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_03.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_03.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_04(self): def test_021_04(self):
self.fail("(021_04) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_04.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_04.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_04.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_05(self): def test_021_05(self):
self.fail("(021_05) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_05.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_05.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_05.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_06(self): def test_021_06(self):
self.fail("(021_06) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_06.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_06.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_06.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_07(self): def test_021_07(self):
self.fail("(021_07) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_07.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_07.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_07.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_08(self): def test_021_08(self):
self.fail("(021_08) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_08.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_08.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_08.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_09(self): def test_021_09(self):
self.fail("(021_09) Test Suite with Test Template, not yet implemented") self.fail("(021_09) Test Suite with Test Template, not yet implemented")
def test_021_10(self): def test_021_10(self):
self.fail("(021_10) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_10.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_10.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_10.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_11(self): def test_021_11(self):
self.fail("(021_11) Test Suite with Test Template, not yet implemented") self.fail("(021_11) Test Suite with Test Template, not yet implemented")
def test_021_12(self): def test_021_12(self):
self.fail("(021_12) Problems with Request parameters, 'Query Temporal Representation Of Entities'") robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_12.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/021_12.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_021_12.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_021_13(self): def test_021_13(self):
self.fail("(021_13) Test Suite with Test Template, not yet implemented") self.fail("(021_13) Test Suite with Test Template, not yet implemented")
......
...@@ -41,12 +41,140 @@ class TestCIProvision(TestCase): ...@@ -41,12 +41,140 @@ class TestCIProvision(TestCase):
assert False, f'They are some difference between the expected and obtained dictionaries: \n {result}' assert False, f'They are some difference between the expected and obtained dictionaries: \n {result}'
# def test_027_01(self): def test_003_01(self):
# robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Consumption/Discovery/RetrieveAvailableAttributeInformation/027_01.robot' self.fail("(003_01) Test Suite with Test Template, not yet implemented")
# expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Consumption/027_01.json'
# difference_file = f'{self.folder_test_suites}/doc/results/out_027_01.json' def test_003_02(self):
# self.fail("(003_02) Test Suite result is wrong, need to be checked")
# self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
# def test_003_03(self):
# def test_025_01(self): self.fail("(003_03) Test Suite with Test Template, not yet implemented")
# self.fail("(025_01) Test Suite with Test Template, not yet implemented")
def test_003_04(self):
self.fail("(003_04) Test Suite with 'Check Response Body Containing an Attribute set to' with different set of parameters")
def test_003_05(self):
self.fail("(003_05) Test Suite with 'Check Response Body Containing an Attribute set to' with different set of parameters")
def test_003_06(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_06.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/003_06.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_003_06.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_003_07(self):
self.fail("(003_07) Test Suite with 'Check Response Body Containing an Attribute set to' with different set of parameters")
def test_003_08(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_08.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/003_08.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_003_08.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_003_09(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/BatchEntities/CreateBatchOfEntities/003_09.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/003_09.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_003_09.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_006_01(self):
self.fail("(006_01) The first operation is not a setup operation of the environment but a Delete operation that have to be controlled")
def test_006_02(self):
self.fail("(006_02) The first operation is not a setup operation of the environment but a Delete operation that have to be controlled")
def test_006_03(self):
self.fail("(006_03) Test Suite with Test Template, not yet implemented")
def test_005_01(self):
self.fail("(005_01) Test Suite with Test Template, not yet implemented")
def test_005_02(self):
self.fail("(005_02) Test Suite with Test Template, not yet implemented")
def test_005_03(self):
self.fail("(005_03) Test Suite error content empty when generate then sentence")
def test_005_04(self):
self.fail("(005_04) Test Suite with Test Template, not yet implemented")
def test_004_01(self):
self.fail("(005_02) Test Suite with Test Template, not yet implemented")
def test_004_02(self):
self.fail("(004_02) Test Suite with Test Template, not yet implemented")
def test_004_03(self):
self.fail("(004_03) Test Suite with Test Template, not yet implemented")
def test_004_04(self):
self.fail("(004_04) Test Suite with Test Template, not yet implemented")
def test_004_05(self):
self.fail("(004_05) Test Suite error content empty when generate then sentence")
def test_004_06(self):
self.fail("(004_06) Test Suite with Test Template, not yet implemented")
def test_001_01(self):
self.fail("(001_01) Test Suite with Test Template, not yet implemented")
def test_001_02(self):
self.fail("(001_02) Test Suite with Test Template, not yet implemented")
def test_001_03(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_03.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/001_03.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_001_03.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_001_04(self):
self.fail("(001_04) Test Suite with 'Check Response Body Containing an Attribute set to' with different set of parameters")
def test_001_05(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_05.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/001_05.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_001_05.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_001_06(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_06.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/001_06.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_001_06.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_001_07(self):
self.fail("(001_07) Test Suite with 'Check Response Body Containing an Attribute set to' with different set of parameters")
def test_001_08(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_08.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/001_08.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_001_08.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_001_09(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_09.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/001_09.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_001_09.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)
def test_002_01(self):
self.fail("(002_01) Test Suite, something wrong with two different Checks")
def test_002_02(self):
self.fail("(002_02) Test Suite with Test Template, not yet implemented")
def test_002_03(self):
robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_03.robot'
expected_value = f'{self.folder_test_suites}/doc/files/ContextInformation/Provision/002_03.json'
difference_file = f'{self.folder_test_suites}/doc/results/out_002_03.json'
self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)