-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the trigger of the DDS Pipe callbacks configurable (#406)
* Dynamically trigger the creation of entities Signed-off-by: tempate <[email protected]> * Add none entity-creation-trigger Signed-off-by: tempate <[email protected]> * Rename entity_creation_trigger to discovery_trigger Signed-off-by: tempate <[email protected]> * Uncrustify Signed-off-by: tempate <[email protected]> * Documentation Signed-off-by: tempate <[email protected]> * Tests Signed-off-by: tempate <[email protected]> * Rename disconnects to n-unmatches Signed-off-by: tempate <[email protected]> * Add n-matches option Signed-off-by: tempate <[email protected]> * Docker tests Signed-off-by: tempate <[email protected]> * Only read n-matches args when samples == 0 Signed-off-by: tempate <[email protected]> * Fix tests Signed-off-by: tempate <[email protected]> * Apply suggestions Signed-off-by: tempate <[email protected]> * Fix python linter Signed-off-by: tempate <[email protected]> * Apply suggestions Signed-off-by: tempate <[email protected]> * Apply suggestions Signed-off-by: tempate <[email protected]> * Fix timeout_as_error python argument Signed-off-by: tempate <[email protected]> * Remove outdated warning Signed-off-by: tempate <[email protected]> * Apply suggestions Signed-off-by: tempate <[email protected]> * Apply suggestions Signed-off-by: tempate <[email protected]> * Uncrustify Signed-off-by: tempate <[email protected]> * Fix misspell Signed-off-by: tempate <[email protected]> * Apply suggestions Signed-off-by: tempate <[email protected]> --------- Signed-off-by: tempate <[email protected]>
- Loading branch information
Showing
24 changed files
with
537 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
ddsrouter_test/compose/test_cases/discovery_trigger/any/ddsrouter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: v4.0 | ||
|
||
participants: | ||
- name: Local_80 | ||
kind: local | ||
domain: 80 | ||
|
||
- name: Local_81 | ||
kind: local | ||
domain: 81 | ||
|
||
specs: | ||
discovery-trigger: any |
38 changes: 38 additions & 0 deletions
38
ddsrouter_test/compose/test_cases/discovery_trigger/any/reader/compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Test description: | ||
# This test checks that if we set up a router with any as the discovery trigger, | ||
# a subscriber does match with the router (since it triggers the creation of entities). | ||
# | ||
# Test architecture: | ||
# | ||
# ┌──────────┐ ┌─────────┐ | ||
# │subscriber│ │ddsrouter│ | ||
# │ ├────► │ | ||
# │(local) │ │(local) │ | ||
# └──────────┘ └─────────┘ | ||
|
||
services: | ||
|
||
# ROUTER | ||
ddsrouter: | ||
image: ${DDSROUTER_COMPOSE_TEST_DOCKER_IMAGE} | ||
container_name: ddsrouter | ||
networks: | ||
- std_net | ||
volumes: | ||
- ../ddsrouter.yaml:/config.yaml | ||
command: ddsrouter -c /config.yaml --timeout 4 | ||
|
||
# DOMAIN 0 | ||
subscriber_0_t0: | ||
image: ${DDSROUTER_COMPOSE_TEST_DOCKER_IMAGE} | ||
container_name: subscriber_0_t0 | ||
networks: | ||
- std_net | ||
volumes: | ||
- ../../../../scripts:/scripts | ||
command: python3 /scripts/execute_and_validate_subscriber.py --exe install/AdvancedConfigurationExample/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationExample --n-matches 1 --timeout 4 --args "--domain 80" | ||
|
||
networks: | ||
std_net: | ||
default: | ||
driver: none |
Oops, something went wrong.