Skip to content

Commit c714a5a

Browse files
committed
update for semconv
Signed-off-by: Pierre Tessier <pierre@pierretessier.com>
1 parent 0d1d282 commit c714a5a

8 files changed

+14
-14
lines changed

test/tracetesting/cart-service/add-item-to-cart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ spec:
2222
}
2323
specs:
2424
- 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"]
2626
assertions:
27-
- attr:rpc.grpc.status_code = 0
27+
- attr:grpc.status_code = 0
2828
- name: It set the cart item correctly on the database
2929
selector: span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"]
3030
assertions:

test/tracetesting/cart-service/check-if-cart-is-empty.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ spec:
1818
}
1919
specs:
2020
- name: It retrieved the cart items correctly
21-
selector: span[name="oteldemo.CartService/GetCart"]
21+
selector: span[name="POST /oteldemo.CartService/GetCart"]
2222
assertions:
23-
- attr:rpc.grpc.status_code = 0
23+
- attr:grpc.status_code = 0
2424
- name: It returned no items
2525
selector: span[tracetest.span.type="general" name="Tracetest trigger"]
2626
assertions:

test/tracetesting/cart-service/check-if-cart-is-populated.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ spec:
1818
}
1919
specs:
2020
- name: It retrieved the cart items correctly
21-
selector: span[name="oteldemo.CartService/GetCart"]
21+
selector: span[name="POST /oteldemo.CartService/GetCart"]
2222
assertions:
23-
- attr:rpc.grpc.status_code = 0
23+
- attr:grpc.status_code = 0
2424
- name: It returned the first item with correct attributes
2525
selector: span[tracetest.span.type="general" name="Tracetest trigger"]
2626
assertions:

test/tracetesting/cart-service/empty-cart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ spec:
1818
}
1919
specs:
2020
- name: It emptied the shopping cart with success
21-
selector: span[name="oteldemo.CartService/EmptyCart"]
21+
selector: span[name="POST /oteldemo.CartService/EmptyCart"]
2222
assertions:
23-
- attr:rpc.grpc.status_code = 0
23+
- attr:grpc.status_code = 0
2424
- name: It sent cleaning message to the database
2525
selector: span[tracetest.span.type="database" name="EXPIRE" db.system="redis" db.redis.database_index="0"]
2626
assertions:

test/tracetesting/currency-service/convert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
specs:
2525
- name: It converts from USD to CAD
2626
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"]
2828
assertions:
2929
- attr:app.currency.conversion.from = "USD"
3030
- attr:app.currency.conversion.to = "CAD"

test/tracetesting/currency-service/supported.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
specs:
1616
- name: It has a span called "CurrencyService/GetSupportedCurrencies"
1717
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"]
1919
assertions:
2020
- attr:name = "CurrencyService/GetSupportedCurrencies"
2121
- name: It returns the expected currency codes

test/tracetesting/frontend-service/04-add-product-to-cart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ spec:
2828
assertions:
2929
- attr:tracetest.response.status = 200
3030
- 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"]
3232
assertions:
33-
- attr:rpc.grpc.status_code = 0
33+
- attr:grpc.status_code = 0
3434
- attr:app.product.id = "0PUK6V6EV0"
3535
- name: It set the cart item correctly on the database
3636
selector: span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"]

test/tracetesting/frontend-service/05-view-cart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ spec:
2020
assertions:
2121
- attr:tracetest.response.status = 200
2222
- name: It retrieved the cart items correctly
23-
selector: span[name="oteldemo.CartService/GetCart"]
23+
selector: span[name="POST /oteldemo.CartService/GetCart"]
2424
assertions:
25-
- attr:rpc.grpc.status_code = 0
25+
- attr:grpc.status_code = 0

0 commit comments

Comments
 (0)