Commit 9bdc019 1 parent a5bd556 commit 9bdc019 Copy full SHA for 9bdc019
File tree 12 files changed +22
-16
lines changed
12 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 29
29
name : " Run CI"
30
30
steps :
31
31
- name : check out code
32
- uses : actions/checkout@v3
32
+ uses : actions/checkout@v4
33
33
- name : install docker
34
34
run : |
35
35
curl -fsSL https://get.docker.com -o get-docker.sh
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ composer.lock
38
38
src /frontend /cypress /videos
39
39
src /frontend /cypress /screenshots
40
40
src /shippingservice /target /
41
+ test /tracetesting /tracetesting-vars.yaml
41
42
42
43
# Ignore copied/generated protobuf files
43
44
/src /cartservice /src /protos /
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ the release.
52
52
([ #1359 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/1359 ) )
53
53
* [ productcatalog] allow products to be extended
54
54
([ #1363 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/1363 ) )
55
+ * [ tests] update trace based tests for semantic conventions
56
+ ([ #1377 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/1377 ) )
55
57
56
58
## 1.7.2
57
59
Original file line number Diff line number Diff line change @@ -95,11 +95,14 @@ build-env-file:
95
95
sed -i ' /IMAGE_VERSION=.*/c\IMAGE_VERSION=${RELEASE_VERSION}' .ghcr.env
96
96
sed -i ' /IMAGE_NAME=.*/c\IMAGE_NAME=${GHCR_REPO}' .ghcr.env
97
97
98
+ .PHONY : run-tests
98
99
run-tests :
99
100
docker compose run frontendTests
100
- docker compose run integrationTests
101
+ # integrationTests is deprecated in favor of traceBasedTests
102
+ # docker compose run integrationTests
101
103
docker compose run traceBasedTests
102
104
105
+ .PHONY : run-tracetesting
103
106
run-tracetesting :
104
107
docker compose run traceBasedTests ${SERVICES_TO_TEST}
105
108
Original file line number Diff line number Diff line change 22
22
}
23
23
specs :
24
24
- name : It added an item correctly into the shopping cart
25
- selector : span[name="oteldemo.CartService/AddItem"]
25
+ selector : span[name="POST / oteldemo.CartService/AddItem"]
26
26
assertions :
27
- - attr:rpc. grpc.status_code = 0
27
+ - attr:grpc.status_code = 0
28
28
- name : It set the cart item correctly on the database
29
29
selector : span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"]
30
30
assertions :
Original file line number Diff line number Diff line change 18
18
}
19
19
specs :
20
20
- name : It retrieved the cart items correctly
21
- selector : span[name="oteldemo.CartService/GetCart"]
21
+ selector : span[name="POST / oteldemo.CartService/GetCart"]
22
22
assertions :
23
- - attr:rpc. grpc.status_code = 0
23
+ - attr:grpc.status_code = 0
24
24
- name : It returned no items
25
25
selector : span[tracetest.span.type="general" name="Tracetest trigger"]
26
26
assertions :
Original file line number Diff line number Diff line change 18
18
}
19
19
specs :
20
20
- name : It retrieved the cart items correctly
21
- selector : span[name="oteldemo.CartService/GetCart"]
21
+ selector : span[name="POST / oteldemo.CartService/GetCart"]
22
22
assertions :
23
- - attr:rpc. grpc.status_code = 0
23
+ - attr:grpc.status_code = 0
24
24
- name : It returned the first item with correct attributes
25
25
selector : span[tracetest.span.type="general" name="Tracetest trigger"]
26
26
assertions :
Original file line number Diff line number Diff line change 18
18
}
19
19
specs :
20
20
- name : It emptied the shopping cart with success
21
- selector : span[name="oteldemo.CartService/EmptyCart"]
21
+ selector : span[name="POST / oteldemo.CartService/EmptyCart"]
22
22
assertions :
23
- - attr:rpc. grpc.status_code = 0
23
+ - attr:grpc.status_code = 0
24
24
- name : It sent cleaning message to the database
25
25
selector : span[tracetest.span.type="database" name="EXPIRE" db.system="redis" db.redis.database_index="0"]
26
26
assertions :
Original file line number Diff line number Diff line change 24
24
specs :
25
25
- name : It converts from USD to CAD
26
26
selector : span[tracetest.span.type="rpc" name="CurrencyService/Convert" rpc.system="grpc"
27
- rpc.method="Convert" rpc.service="CurrencyService"]
27
+ rpc.method="Convert" rpc.service="oteldemo. CurrencyService"]
28
28
assertions :
29
29
- attr:app.currency.conversion.from = "USD"
30
30
- attr:app.currency.conversion.to = "CAD"
Original file line number Diff line number Diff line change 15
15
specs :
16
16
- name : It has a span called "CurrencyService/GetSupportedCurrencies"
17
17
selector : span[tracetest.span.type="rpc" name="CurrencyService/GetSupportedCurrencies"
18
- rpc.system="grpc" rpc.method="GetSupportedCurrencies" rpc.service="CurrencyService"]
18
+ rpc.system="grpc" rpc.method="GetSupportedCurrencies" rpc.service="oteldemo. CurrencyService"]
19
19
assertions :
20
20
- attr:name = "CurrencyService/GetSupportedCurrencies"
21
21
- name : It returns the expected currency codes
Original file line number Diff line number Diff line change 28
28
assertions :
29
29
- attr:tracetest.response.status = 200
30
30
- name : It added an item correctly into the shopping cart
31
- selector : span[name="oteldemo.CartService/AddItem"]
31
+ selector : span[name="POST / oteldemo.CartService/AddItem"]
32
32
assertions :
33
- - attr:rpc. grpc.status_code = 0
33
+ - attr:grpc.status_code = 0
34
34
- attr:app.product.id = "0PUK6V6EV0"
35
35
- name : It set the cart item correctly on the database
36
36
selector : span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"]
Original file line number Diff line number Diff line change 20
20
assertions :
21
21
- attr:tracetest.response.status = 200
22
22
- name : It retrieved the cart items correctly
23
- selector : span[name="oteldemo.CartService/GetCart"]
23
+ selector : span[name="POST / oteldemo.CartService/GetCart"]
24
24
assertions :
25
- - attr:rpc. grpc.status_code = 0
25
+ - attr:grpc.status_code = 0
You can’t perform that action at this time.
0 commit comments