Commit 3991463c authored by lopezaguilar's avatar lopezaguilar
Browse files

Adding 024_01, 024_02, 027_01, and 027_02

parent b53a381f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ ${filename}= building-simple-attributes-sample.json


*** Test Cases ***
Retrieve Detailed Representation Of Available Attribute Without Context
027_01_01 Retrieve Detailed Representation Of Available Attribute Without Context
    [Documentation]    Check that you cannot retrieve a detailed representation of an unknown NGSI-LD attribute
    [Tags]    ed-attr    5_7_10
    ${response}=    Retrieve Attribute    attribute_name=airQualityLevel
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ ${expectation_file}= types/expectations/attribute-027-01-expectation.json


*** Test Cases ***
Retrieve Detailed Representation Of Available Attribute
027_02_01 Retrieve Detailed Representation Of Available Attribute
    [Documentation]    Check that you can retrieve a list with a detailed representation of NGSI-LD attributes
    [Tags]    ed-attr    5_7_10
    ${response}=    Retrieve Attribute    attribute_name=airQualityLevel    context=${ngsild_test_suite_context}
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ ${filename}= building-simple-attributes-sample.json


*** Test Cases ***
Retrieve Detailed Representation Of Available Entity Type Without Context
024_01_01 Retrieve Detailed Representation Of Available Entity Type Without Context
    [Documentation]    Check that you cannot retrieve a detailed representation of an unknown NGSI-LD entity type
    [Tags]    ed-type    5_7_7
    ${response}=    Retrieve Entity Type    type=Building
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ ${expectation_file}= types/expectations/entity-type-info-024-01-expectati


*** Test Cases ***
Retrieve Detailed Representation Of Available Entity Type
024_02_01 Retrieve Detailed Representation Of Available Entity Type
    [Documentation]    Check that you can retrieve a detailed representation of a specified NGSI-LD entity type
    [Tags]    ed-type    5_7_7
    ${response}=    Retrieve Entity Type    type=Building    context=${ngsild_test_suite_context}
+4 −2
Original line number Diff line number Diff line
@@ -26,7 +26,9 @@ class GenerateRobotData:
        self.identifier = {
            'ContextInformation': 'CI',
            'CommonBehaviours': 'CB',
            'Consumption': 'Cons',
            'Consumption': 'CONS',
            'Discovery/RetrieveAvailableAttributeInformation': 'DISC',
            'Discovery/RetrieveAvailableEntityTypeInformation': 'DISC',
            'Entity/RetrieveEntity': 'E',
            'Entities/CreateEntity': 'E',
            'Provision': 'Prov'
@@ -261,7 +263,7 @@ class GenerateRobotData:
            'config_id': '',
            'parent_release': version,
            'pics_selection': pics,
            'keywords': list(self.suite.keywords),
            'keywords': [str(x) for x in self.suite.keywords],
            'teardown': str(self.suite.teardown),
            'initial_condition': self.suite.setup,
            'test_cases': list()
Loading