Commit 0b6e1684 authored by Andrea Il Grande's avatar Andrea Il Grande
Browse files

Squashed commit of the following:

commit 899ed252
Merge: ee8c687a 1a85ed49
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Sun Aug 11 15:33:37 2024 +0000

    Merge branch 'feature/between-check-for-entities' into 'develop'

    Feature/between check for entities

    Closes #46

    See merge request cim/ngsi-ld-test-suite!152

commit 1a85ed49
Author: thomas Bousselin <thomas.bousselin@egm.io>
Date:   Sun Aug 11 15:33:37 2024 +0000

    Feature/between check for entities

commit ee8c687a
Merge: 91278e0c 8540e279
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Sun Aug 11 15:32:09 2024 +0000

    Merge branch 'feature/operation-space-and-observation-space-geospatial-properties' into 'develop'

    feat: add test cases for observationSpace and operationSpace geospatial properties

    See merge request cim/ngsi-ld-test-suite!151

commit 8540e279
Author: Ranim Naimi <ranim.naimi@egm.io>
Date:   Sun Aug 11 15:32:09 2024 +0000

    feat: add test cases for observationSpace and operationSpace geospatial properties

commit 91278e0c
Merge: bf531b5e 03548053
Author: thomas Bousselin <thomas.bousselin@egm.io>
Date:   Wed Aug 7 08:27:39 2024 +0000

    Merge branch 'feature/te-pagination-etsi' into 'develop'

    feat: temporal pagination test

    Closes #42

    See merge request cim/ngsi-ld-test-suite!144

commit 03548053
Author: thomas Bousselin <thomas.bousselin@egm.io>
Date:   Wed Aug 7 08:27:39 2024 +0000

    feat: temporal pagination test

commit bf531b5e
Merge: 6dbcf713 35dcefbd
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Tue Aug 6 08:35:11 2024 +0000

    Merge branch 'feature/45-tcs-with-q-parameter' into 'develop'

    feat: add TCs for q parameter in Query Entities endpoint

    See merge request cim/ngsi-ld-test-suite!150

commit 35dcefbd
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Tue Aug 6 08:35:11 2024 +0000

    feat: add TCs for q parameter in Query Entities endpoint

commit 6dbcf713
Merge: 11b7b763 62d61607
Author: Ranim Naimi <ranim.naimi@egm.io>
Date:   Mon Jul 29 14:33:35 2024 +0000

    Merge branch 'refactor/review-and-refactor-test-data-files' into 'develop'

    refactor : review and refactor test data files

    See merge request cim/ngsi-ld-test-suite!143

commit 62d61607
Author: Ranim Naimi <ranim.naimi@egm.io>
Date:   Mon Jul 29 14:33:34 2024 +0000

    refactor : review and refactor test data files

commit 11b7b763
Merge: b1fcb83d 59e3f774
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Sat Jul 27 07:58:53 2024 +0000

    Merge branch 'refactor/isolate-and-check-setup-steps' into 'develop'

    refactor: isolate and check setup steps

    See merge request cim/ngsi-ld-test-suite!141

commit 59e3f774
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Sat Jul 27 07:58:53 2024 +0000

    refactor: isolate and check setup steps

commit b1fcb83d
Merge: 201dc0f7 0017d9b4
Author: thomas Bousselin <thomas.bousselin@egm.io>
Date:   Fri Jul 26 07:07:28 2024 +0000

    Merge branch 'feature/fix-mqtt' into 'develop'

    feat: add mqtt host variables

    See merge request cim/ngsi-ld-test-suite!149

commit 0017d9b4
Author: Thomas BOUSSELIN <thomas.bousselin@egm.io>
Date:   Thu Jul 25 15:12:36 2024 +0200

    feat: add mqtt host variables

commit 201dc0f7
Merge: 2316ab0c b32297f6
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Tue Jul 23 12:36:47 2024 +0000

    Merge branch 'feature/append-type-in-update-attributes-operation' into 'develop'

    feat: append type in update attributes operation

    See merge request cim/ngsi-ld-test-suite!147

commit b32297f6
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Tue Jul 23 12:36:47 2024 +0000

    feat: append type in update attributes operation

commit 2316ab0c
Merge: eec2faf1 b9e0561a
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Tue Jul 23 12:34:22 2024 +0000

    Merge branch 'feature/mqtt-notification-etsi' into 'develop'

    feat: add tests for MQTT notification

    Closes #41

    See merge request cim/ngsi-ld-test-suite!142

commit b9e0561a
Author: thomas Bousselin <thomas.bousselin@egm.io>
Date:   Tue Jul 23 12:34:21 2024 +0000

    feat: add tests for MQTT notification

commit eec2faf1
Merge: 20744098 1f5777a9
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Mon Jul 22 13:19:50 2024 +0000

    Merge branch 'feature/multi-typing-in-batch-operations' into 'develop'

    feat: add tests for multi-typing in batch operations

    See merge request cim/ngsi-ld-test-suite!145

commit 1f5777a9
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Mon Jul 22 13:19:50 2024 +0000

    feat: add tests for multi-typing in batch operations

commit 20744098
Merge: 91b60141 4053916e
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Mon Jul 22 13:02:45 2024 +0000

    Merge branch 'fix/incorrect-expectations-lang-filter' into 'develop'

    fix(langprop): incorrect expectations when any language filter

    See merge request cim/ngsi-ld-test-suite!146

commit 91b60141
Merge: 9200f0c0 ad03e58d
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Fri Jul 19 04:31:41 2024 +0000

    Merge branch 'feature/add-attrs-permutation-in-temporal-api' into 'develop'

    feat: add permutation for attrs params in Temporal API

    See merge request cim/ngsi-ld-test-suite!148

commit ad03e58d
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Thu Jul 18 16:43:56 2024 +0200

    feat: add permutation for attrs params in Temporal API

commit 4053916e
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Thu Apr 25 14:39:37 2024 +0200

    fix(langprop): incorrect expectations when any language filter

commit 9200f0c0
Merge: bcbd9715 d580e57d
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Tue Jul 9 08:29:10 2024 +0000

    Merge branch 'chore/update-robotidy' into 'develop'

    chore: update and align pre-commit conf for Robotidy

    See merge request cim/ngsi-ld-test-suite!140

commit d580e57d
Author: Benoit Orihuela <benoit.orihuela@egm.io>
Date:   Thu Jul 4 21:39:36 2024 +0200

    chore: update and align pre-commit conf for Robotidy

commit bcbd9715
Merge: fe187e1b 70ee1e24
Author: Giuseppe Tropea <giuseppe.tropea@cnit.it>
Date:   Thu Jun 20 08:40:58 2024 +0000

    Merge branch 'corrections' into 'develop'

    Corrections

    See merge request cim/ngsi-ld-test-suite!139

commit 70ee1e24
Author: Serafino Pirronitto <serafino.pirronitto@sferainnovazione.it>
Date:   Thu Jun 20 08:40:58 2024 +0000

    Corrections
parent bf982000
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
repos:
  - repo: https://github.com/MarketSquare/robotframework-tidy
    id: robotidy
    rev: 4.2.1
    rev: 4.11.0
    hooks:
      - id: robotidy
+13 −0
Original line number Diff line number Diff line
@@ -148,6 +148,19 @@ test launch command followed by the file name.
> > .venv\scripts\deactivate.bat
> ```

### Specific test requirements
- Mqtt tests (058) : 
  - Mqtt tests launch a mosquitto container with docker thus it requires docker to be installed and running


- Temporal pagination (020_13, 020_14, 021_15 & 021_16) :
  - The pagination tests assumes that it will be triggered by 1 or 2 entities with 2 attributes with 20 instances each
    (40 instances)
  - Non pagination tests assumes that it will **not** be triggered by 2 entities with 2 attributes with 5 instances each
    (20 instances)
  - You should configure your broker accordingly


## Test Suite Management (tsm)

The `tsm` script is designed to facilitate the selection and execution of the Test Suite, especially if not all the 
+4 −4
Original line number Diff line number Diff line
@@ -14,14 +14,14 @@ Resource ${EXECDIR}/resources/JsonUtils.resource

*** Variables ***
${building_id_prefix}=          urn:ngsi-ld:Building:
${building_filename}=           building-simple-attributes-sample.jsonld
${building_filename}=           building-simple-attributes.jsonld
${subscription_id_prefix}=      urn:ngsi-ld:Subscription:
${subscription_filename}=       subscriptions/subscription-sample.jsonld
${subscription_filename}=       subscriptions/subscription.jsonld
${registration_id_prefix}=      urn:ngsi-ld:Registration:
${registration_filename}=       csourceRegistrations/context-source-registration-with-expiration-sample.jsonld
${registration_filename}=       csourceRegistrations/context-source-registration-with-expiration.jsonld
${registration_type}=           Vehicle
${tea_id_prefix}=               urn:ngsi-ld:Vehicle:
${tea_filename}=                vehicle-temporal-representation-sample.jsonld
${tea_filename}=                vehicle-temporal-representation.jsonld
${teatype}=                     Vehicle
${content_type}=                application/json

+4 −4
Original line number Diff line number Diff line
@@ -12,13 +12,13 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
*** Variables ***
${expected_status_code}=        503
${building_id_prefix}=          urn:ngsi-ld:Building:
${building_filename}=           building-unretrievable-context-sample.jsonld
${building_filename}=           building-unretrievable-context.jsonld
${subscription_id_prefix}=      urn:ngsi-ld:Subscription:
${subscription_filename}=       subscriptions/subscription-unretrievable-context-sample.jsonld
${subscription_filename}=       subscriptions/subscription-unretrievable-context.jsonld
${tea_id_prefix}=               urn:ngsi-ld:Vehicle:
${tea_filename}=                bus-temporal-representation-unretrievable-context-sample.jsonld
${tea_filename}=                bus-temporal-representation-unretrievable-context.jsonld
${registration_id_prefix}=      urn:ngsi-ld:Registration:
${registration_filename}=       csourceRegistrations/context-source-registration-unretrievable-context-sample.jsonld
${registration_filename}=       csourceRegistrations/context-source-registration-unretrievable-context.jsonld


*** Test Cases ***
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ Test Teardown Delete Initial Entity

*** Variables ***
${vehicle_id_prefix}=       urn:ngsi-ld:Vehicle:
${vehicle_filename}=        vehicle-simple-attributes-sample.jsonld
${vehicle_filename}=        vehicle-simple-attributes.jsonld
${vehicle_fragment}=        vehicle-brandname-fragment.json
${attribute_id}=            brandName

Loading