Commit 8b3403d9 authored by Giuseppe Tropea's avatar Giuseppe Tropea
Browse files

tests from feature/add-scope-tests as "since_v1.5.1"

parent bbb66e05
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -20,22 +20,22 @@ ${entity_type}= https://ngsi-ld-test-suite/context#Building


*** Test Cases ***    SCOPEQ    EXPECTED_COUNT
*** Test Cases ***    SCOPEQ    EXPECTED_COUNT
019_01_06 QueryWithFullScope
019_01_06 QueryWithFullScope
    [Tags]    e-query    4_19
    [Tags]    e-query    4_19    since_v1.5.1
    /Madrid/Gardens/ParqueNorte    ${2}
    /Madrid/Gardens/ParqueNorte    ${2}
019_01_06 QueryWithPlusMatching
019_01_06 QueryWithPlusMatching
    [Tags]    e-query    4_19
    [Tags]    e-query    4_19    since_v1.5.1
    /Madrid/+/ParqueNorte    ${2}
    /Madrid/+/ParqueNorte    ${2}
019_01_06 QueryWithHashMatching
019_01_06 QueryWithHashMatching
    [Tags]    e-query    4_19
    [Tags]    e-query    4_19    since_v1.5.1
    /CompanyA/#    ${1}
    /CompanyA/#    ${1}
019_01_06 QueryNonEmptyScope
019_01_06 QueryNonEmptyScope
    [Tags]    e-query    4_19
    [Tags]    e-query    4_19    since_v1.5.1
    /#    ${2}
    /#    ${2}
019_01_06 QueryWithAndScope
019_01_06 QueryWithAndScope
    [Tags]    e-query    4_19
    [Tags]    e-query    4_19    since_v1.5.1
    /Madrid/Gardens/ParqueNorte;/CompanyA/OrganizationB/UnitC    ${1}
    /Madrid/Gardens/ParqueNorte;/CompanyA/OrganizationB/UnitC    ${1}
019_01_06 QueryWithOrScope
019_01_06 QueryWithOrScope
    [Tags]    e-query    4_19
    [Tags]    e-query    4_19    since_v1.5.1
    /Madrid/Gardens/ParqueNorte,/CompanyA/OrganizationB/UnitC    ${2}
    /Madrid/Gardens/ParqueNorte,/CompanyA/OrganizationB/UnitC    ${2}




+1 −1
Original line number Original line Diff line number Diff line
@@ -24,7 +24,7 @@ ${building_id_prefix}= urn:ngsi-ld:Building:
*** Keywords ***
*** Keywords ***
Create an entity with scopes
Create an entity with scopes
    [Documentation]    Check that you can create an entity with one or more scopes
    [Documentation]    Check that you can create an entity with one or more scopes
    [Tags]    e-create    6_3_5    4_18
    [Tags]    e-create    6_3_5    4_18    since_v1.5.1
    [Arguments]    ${filename}    ${content_type}
    [Arguments]    ${filename}    ${content_type}


    ${entity_id}=    Generate Random Entity Id    ${building_id_prefix}
    ${entity_id}=    Generate Random Entity Id    ${building_id_prefix}
+2 −2
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ ${scope_fragment_filename}= one-scope-fragment.json
*** Test Cases ***
*** Test Cases ***
010_06 Append scope to an entity with overwrite enabled
010_06 Append scope to an entity with overwrite enabled
    [Documentation]    Check that scope is replaced if overwrite is enabled
    [Documentation]    Check that scope is replaced if overwrite is enabled
    [Tags]    ea-append    5_6_3    4_18
    [Tags]    ea-append    5_6_3    4_18    since_v1.5.1
    ${response}=    Append Entity Attributes
    ${response}=    Append Entity Attributes
    ...    ${entity_id}
    ...    ${entity_id}
    ...    ${scope_fragment_filename}
    ...    ${scope_fragment_filename}
@@ -35,7 +35,7 @@ ${scope_fragment_filename}= one-scope-fragment.json


010_06 Append scope to an entity with overwrite disabled
010_06 Append scope to an entity with overwrite disabled
    [Documentation]    Check that scope is appended if overwrite is disabled
    [Documentation]    Check that scope is appended if overwrite is disabled
    [Tags]    ea-append    5_6_3    4_18
    [Tags]    ea-append    5_6_3    4_18    since_v1.5.1
    ${response}=    Append Entity Attributes With Parameters
    ${response}=    Append Entity Attributes With Parameters
    ...    ${entity_id}
    ...    ${entity_id}
    ...    ${scope_fragment_filename}
    ...    ${scope_fragment_filename}
+1 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ ${expectation_filename}= building-minimal-compacted-expectation.json
*** Test Cases ***
*** Test Cases ***
013_04 Delete scope from an entity
013_04 Delete scope from an entity
    [Documentation]    Check that you can delete a scope from an entity
    [Documentation]    Check that you can delete a scope from an entity
    [Tags]    ea-delete    5_6_5    4_18
    [Tags]    ea-delete    5_6_5    4_18    since_v1.5.1
    ${response}=    Delete Entity Attributes
    ${response}=    Delete Entity Attributes
    ...    ${entity_id}
    ...    ${entity_id}
    ...    scope
    ...    scope
+1 −1
Original line number Original line Diff line number Diff line
@@ -17,7 +17,7 @@ ${scope_fragment_filename}= one-scope-fragment.json
*** Test Cases ***
*** Test Cases ***
011_05 Update scope to an entity already having a scope
011_05 Update scope to an entity already having a scope
    [Documentation]    Check that scope is replaced if entity already has a scope
    [Documentation]    Check that scope is replaced if entity already has a scope
    [Tags]    ea-append    5_6_2    4_18
    [Tags]    ea-append    5_6_2    4_18    since_v1.5.1
    [Setup]    Create Initial Entity    building-minimal-with-one-scope.json
    [Setup]    Create Initial Entity    building-minimal-with-one-scope.json
    ${response}=    Update Entity Attributes
    ${response}=    Update Entity Attributes
    ...    ${entity_id}
    ...    ${entity_id}