Skip to content

Commit 472b763

Browse files
authored
DIT-246: Use of tags for version and products of the test instructions (#740)
* DIT-246: Use of tags for version and products of the test instructions
1 parent 7958c63 commit 472b763

File tree

4 files changed

+39
-44
lines changed

4 files changed

+39
-44
lines changed

tests/examples/connext_dds/dynamic_data_nested_structs/quack_files/dynamic_data_nested_structs_example_test_01.ti.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
apps:
22
-
33
name: test_dd_nested_structs_c
4-
product: pro
5-
version: 7.6.0
4+
product: {first_product}
5+
version: {first_version}
66
executable: rticonnextdds-examples/examples/connext_dds/dynamic_data_nested_structs/c/build/dynamic_data_nested_struct
77
-
88
name: test_dd_nested_structs_cpp98
9-
product: pro
10-
version: 7.6.0
9+
product: {first_product}
10+
version: {first_version}
1111
executable: rticonnextdds-examples/examples/connext_dds/dynamic_data_nested_structs/c++98/build/dynamic_data_nested_struct
1212
-
1313
name: test_dd_nested_structs_cpp11
14-
product: pro
15-
version: 7.6.0
14+
product: {first_product}
15+
version: {first_version}
1616
executable: rticonnextdds-examples/examples/connext_dds/dynamic_data_nested_structs/c++11/build/dynamic_data_nested_struct
1717
-
1818
name: test_dd_nested_structs_java
19-
product: pro
20-
version: 7.6.0
19+
product: {first_product}
20+
version: {first_version}
2121
executable: rticonnextdds-examples/examples/connext_dds/dynamic_data_nested_structs/java/DynamicDataNestedStruct.sh
2222
test_scenarios:
2323
-
2424
test_cases: [dynamic_data_nested_structs_example_test_01_1]
2525
actions:
2626
-
2727
action:
28-
run test_dd_nested_structs_c on $740_arch
28+
run test_dd_nested_structs_c on $first_architecture
2929
verification:
3030
- stdout contains "struct InnerStruct"
3131
- stdout contains "double x;"
@@ -45,7 +45,7 @@ test_scenarios:
4545
actions:
4646
-
4747
action:
48-
run test_dd_nested_structs_cpp98 on $740_arch
48+
run test_dd_nested_structs_cpp98 on $first_architecture
4949
verification:
5050
- stdout contains "struct InnerStruct"
5151
- stdout contains "double x;"
@@ -66,7 +66,7 @@ test_scenarios:
6666
actions:
6767
-
6868
action:
69-
run test_dd_nested_structs_cpp11 on $740_arch
69+
run test_dd_nested_structs_cpp11 on $first_architecture
7070
verification:
7171
- stdout contains "struct InnerStruct"
7272
- stdout contains "double x;"
@@ -86,7 +86,7 @@ test_scenarios:
8686
actions:
8787
-
8888
action:
89-
run test_dd_nested_structs_java on $740_arch
89+
run test_dd_nested_structs_java on $first_architecture
9090
verification:
9191
- stdout contains "Setting the initial values of struct with set_complex_member()"
9292
- stdout contains "get_complex_member() called"
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
apps:
22
-
33
name: test_client_cpp11
4-
product: pro
5-
version: 7.6.0
4+
product: {first_product}
5+
version: {first_version}
66
executable: rticonnextdds-examples/examples/connext_dds/remote_procedure_call/c++11/Inventory_client.sh
77
-
88
name: test_service_cpp11
9-
product: pro
10-
version: 7.6.0
9+
product: {first_product}
10+
version: {first_version}
1111
executable: rticonnextdds-examples/examples/connext_dds/remote_procedure_call/c++11/Inventory_service.sh
1212
-
1313
name: test_client_py
14-
product: pro
15-
version: 7.6.0
14+
product: {first_product}
15+
version: {first_version}
1616
executable: rticonnextdds-examples/examples/connext_dds/remote_procedure_call/py/inventory_client.sh
1717
-
1818
name: test_service_py
19-
product: pro
20-
version: 7.6.0
19+
product: {first_product}
20+
version: {first_version}
2121
executable: rticonnextdds-examples/examples/connext_dds/remote_procedure_call/py/inventory_service.sh
2222
test_scenarios:
2323
-
2424
test_cases: [remote_procedure_call_example_test_01_1]
2525
actions:
2626
-
2727
action:
28-
run test_client_cpp11 with args '--domain $domain_id --add banana --quantity 7' on $740_arch
28+
run test_client_cpp11 with args '--domain $domain_id --add banana --quantity 7' on $first_architecture
2929
verification:
3030
- stdout contains "Add 7 banana"
3131
- 'stdout contains "[name: banana, quantity: 7]"'
3232
- stdout does_not_contain "ERROR"
3333
- stdout does_not_contain "Exception in run_client()"
3434
-
3535
action:
36-
run test_client_cpp11 with args '--domain $domain_id --remove blueberry' on $740_arch
36+
run test_client_cpp11 with args '--domain $domain_id --remove blueberry' on $first_architecture
3737
verification:
3838
- stdout contains "Remove 1 blueberry"
3939
- 'stdout contains "Unknown item: blueberry"'
4040
- stdout does_not_contain "ERROR"
4141
- stdout does_not_contain "Exception in run_client()"
4242
-
4343
action:
44-
run test_service_cpp11 with args '--domain $domain_id --service-timeout 15' on $740_arch
44+
run test_service_cpp11 with args '--domain $domain_id --service-timeout 15' on $first_architecture
4545
verification:
4646
- stdout contains "InventoryService running..."
4747
- stdout does_not_contain "ERROR"
@@ -51,21 +51,21 @@ test_scenarios:
5151
actions:
5252
-
5353
action:
54-
run test_client_py with args '--domain $domain_id --add banana --quantity 7' on $740_arch
54+
run test_client_py with args '--domain $domain_id --add banana --quantity 7' on $first_architecture
5555
verification:
5656
- stdout contains "Add 7 banana"
5757
- stdout contains "Item(name='banana', quantity=7)]"
5858
- stdout does_not_contain "ERROR"
5959
-
6060
action:
61-
run test_client_py with args '--domain $domain_id --remove blueberry' on $740_arch
61+
run test_client_py with args '--domain $domain_id --remove blueberry' on $first_architecture
6262
verification:
6363
- stdout contains "Remove 1 blueberry"
6464
- 'stdout contains "Unknown item: blueberry"'
6565
- stdout does_not_contain "ERROR"
6666
-
6767
action:
68-
run test_service_py with args '--domain $domain_id --service-timeout 15' on $740_arch
68+
run test_service_py with args '--domain $domain_id --service-timeout 15' on $first_architecture
6969
verification:
7070
- stdout contains "InventoryService running..."
7171
- stdout does_not_contain "ERROR"
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#!/bin/bash
22

3-
# Sleep to try to avoid DIT-194
4-
# The replier run for 20 seconds, so we can sleep for 10 seconds
5-
# to try to avoid the issue
6-
sleep 10
7-
83
cd ${BaseExamplePath}/cs
94
/usr/bin/dotnet run -- --requester $@

tests/examples/connext_dds/request_reply/quack_files/request_reply_example_test_01.ti.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
apps:
22
-
33
name: test_requester_py
4-
product: pro
5-
version: 7.6.0
4+
product: {first_product}
5+
version: {first_version}
66
executable: rticonnextdds-examples/examples/connext_dds/request_reply/py/primes_requester.sh
77
-
88
name: test_replier_py
9-
product: pro
10-
version: 7.6.0
9+
product: {first_product}
10+
version: {first_version}
1111
executable: rticonnextdds-examples/examples/connext_dds/request_reply/py/primes_replier.sh
1212
-
1313
name: test_requester_cs
14-
product: pro
15-
version: 7.6.0
14+
product: {first_product}
15+
version: {first_version}
1616
executable: rticonnextdds-examples/examples/connext_dds/request_reply/cs/PrimesRequester.sh
1717
-
1818
name: test_replier_cs
19-
product: pro
20-
version: 7.6.0
19+
product: {first_product}
20+
version: {first_version}
2121
executable: rticonnextdds-examples/examples/connext_dds/request_reply/cs/PrimesReplier.sh
2222
test_scenarios:
2323
-
2424
test_cases: [request_reply_example_test_01_1]
2525
actions:
2626
-
2727
action:
28-
run test_requester_py with args '--domain $domain_id --primes-per-reply 5 100' on $740_arch
28+
run test_requester_py with args '--domain $domain_id --primes-per-reply 5 100' on $first_architecture
2929
verification:
3030
- stdout contains "Sending a request to calculate the prime numbers <= 100 in sequences of 5 or fewer elements"
3131
- stdout contains "[2, 3, 5, 7, 11]"
3232
- stdout contains "[73, 79, 83, 89, 97]"
3333
- stdout contains "DONE"
3434
-
3535
action:
36-
run test_requester_py with args '--domain $domain_id --primes-per-reply 7 120' on $740_arch
36+
run test_requester_py with args '--domain $domain_id --primes-per-reply 7 120' on $first_architecture
3737
verification:
3838
- stdout contains "Sending a request to calculate the prime numbers <= 120 in sequences of 7 or fewer elements"
3939
- stdout contains "[2, 3, 5, 7, 11, 13, 17]"
4040
- stdout contains "[109, 113]"
4141
- stdout contains "DONE"
4242
-
4343
action:
44-
run test_replier_py with args '--domain $domain_id' on $740_arch
44+
run test_replier_py with args '--domain $domain_id' on $first_architecture
4545
verification:
4646
- stdout contains "Prime calculation replier started"
4747
- 'stdout contains "Timeout: no requests received"'
@@ -50,15 +50,15 @@ test_scenarios:
5050
actions:
5151
-
5252
action:
53-
run test_requester_cs with args '--domain $domain_id --primes-per-reply 5 --number 100' on $740_arch
53+
run test_requester_cs with args '--domain $domain_id --primes-per-reply 5 --number 100' on $first_architecture
5454
verification:
5555
- stdout contains "Running PrimesRequester on domain "
5656
- stdout contains "2 3 5 7 11"
5757
- stdout contains "73 79 83 89 97"
5858
- stdout contains "DONE"
5959
-
6060
action:
61-
run test_replier_cs with args '--domain $domain_id --timeout 20' on $740_arch
61+
run test_replier_cs with args '--domain $domain_id --timeout 20' on $first_architecture
6262
verification:
6363
- stdout contains "Running PrimesReplier on domain "
6464
- stdout contains "Calculating prime numbers below 100..."

0 commit comments

Comments
 (0)