-
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.
Signed-off-by: tempate <[email protected]>
- Loading branch information
Showing
37 changed files
with
918 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ participants: | |
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: reader |
90 changes: 90 additions & 0 deletions
90
ddsrouter_test/compose/test_cases/remove_unused_entities/writer/disconnect/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,90 @@ | ||
# Test description: | ||
# This test checks that tracks get deleted when their last publisher disconnects. | ||
# | ||
# Test architecture: | ||
# | ||
# 1. Check that the subscribers connect to the publisher. | ||
# | ||
# ┌───────────────────┐ ┌────────────────────┐ | ||
# │ Domain 80 │ │ Domain 81 │ | ||
# │ ┌──────────────┐ ┌┼────────────┼┐ ┌───────────────┐ │ | ||
# │ │publisher_0_t0│ ││ ddsrouter ││ │subscriber_1_t0│ │ | ||
# │ │ ─┼─┼┤► ─┼┼─┤► │ │ | ||
# │ │(local) │ ││ (local) ││ │(local) │ │ | ||
# │ └──────────────┘ └┼──────────┬─┼┘ └───────────────┘ │ | ||
# │ │ │ │ │ | ||
# └───────────────────┘ │ │ ┌───────────────┐ │ | ||
# │ │ │subscriber_2_t0│ │ | ||
# └─┼──┤► │ │ | ||
# │ │(local) │ │ | ||
# │ └───────────────┘ │ | ||
# │ │ | ||
# └────────────────────┘ | ||
# | ||
# 2. Check that when the publisher disconnects the track gets deleted. | ||
# | ||
# ┌───────────────────┐ ┌────────────────────┐ | ||
# │ Domain 80 │ │ Domain 81 │ | ||
# │ ┌┼─────────────┼┐ ┌───────────────┐ │ | ||
# │ ││ ddsrouter ││ │subscriber_2_t0| │ | ||
# │ ││ ││ │ │ │ | ||
# │ ││ (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 10 | ||
|
||
# DOMAIN 80 | ||
publisher_0_t0: | ||
image: ${DDSROUTER_COMPOSE_TEST_DOCKER_IMAGE} | ||
container_name: publisher_0_t0 | ||
depends_on: | ||
- ddsrouter | ||
networks: | ||
- std_net | ||
volumes: | ||
- ../../../../scripts:/scripts | ||
command: python3 /scripts/execute_and_validate_publisher.py --exe install/AdvancedConfigurationExample/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationExample --timeout 4 --args "--samples 40 --domain 80 --topic topic0 --interval 100" | ||
|
||
# DOMAIN 81 | ||
|
||
# Subscriber to verify the track has been created | ||
subscriber_1_t0: | ||
image: ${DDSROUTER_COMPOSE_TEST_DOCKER_IMAGE} | ||
container_name: subscriber_1_t0 | ||
depends_on: | ||
- ddsrouter | ||
networks: | ||
- std_net | ||
volumes: | ||
- ../../../../scripts:/scripts | ||
command: python3 /scripts/execute_and_validate_subscriber.py --exe install/AdvancedConfigurationExample/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationExample --samples 10 --timeout 8 --args "--domain 81 --samples 10 --topic topic0" | ||
|
||
# Subscriber to verify the track has been deleted | ||
subscriber_2_t0: | ||
image: ${DDSROUTER_COMPOSE_TEST_DOCKER_IMAGE} | ||
container_name: subscriber_2_t0 | ||
depends_on: | ||
- ddsrouter | ||
networks: | ||
- std_net | ||
volumes: | ||
- ../../../../scripts:/scripts | ||
command: python3 /scripts/execute_and_validate_subscriber.py --exe install/AdvancedConfigurationExample/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationExample --n-unmatches 1 --timeout 8 --args "--domain 81 --topic topic0" | ||
|
||
networks: | ||
std_net: | ||
default: | ||
driver: none |
15 changes: 15 additions & 0 deletions
15
ddsrouter_test/compose/test_cases/remove_unused_entities/writer/disconnect/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,15 @@ | ||
version: v4.0 | ||
|
||
participants: | ||
|
||
- name: Local_80 | ||
kind: local | ||
domain: 80 | ||
|
||
- name: Local_81 | ||
kind: local | ||
domain: 81 | ||
|
||
specs: | ||
remove-unused-entities: true | ||
discovery-trigger: writer |
Oops, something went wrong.