From 3e3ddc72b23d966af42ad7c2bcb7a113eb7d01b1 Mon Sep 17 00:00:00 2001 From: Daniel Baptista Dias Date: Thu, 12 Sep 2024 14:41:26 -0300 Subject: [PATCH] chore: update otel demo examples (#4018) * chore: update otel demo examples * add header with ref to otel demo * update header for test suite --- .../otel-demo/04-add-product-to-cart.yaml | 4 ++-- .../otel-demo/05-view-cart.yaml | 4 ++-- .../otel-demo/06-checking-out-cart.yaml | 13 +------------ .../synthetic-monitoring/otel-demo/_testsuite.yaml | 2 +- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml b/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml index 87f72cc43f..e484cc71f0 100644 --- a/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml +++ b/testing/synthetic-monitoring/otel-demo/04-add-product-to-cart.yaml @@ -27,9 +27,9 @@ spec: assertions: - attr:tracetest.response.status = 200 - name: It added an item correctly into the shopping cart - selector: span[name="oteldemo.CartService/AddItem"] + selector: span[name="POST /oteldemo.CartService/AddItem"] assertions: - - attr:rpc.grpc.status_code = 0 + - attr:grpc.status_code = 0 - attr:app.product.id = "0PUK6V6EV0" - name: It set the cart item correctly on the database selector: span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"] diff --git a/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml b/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml index 3d5c3402ff..714fc70ef8 100644 --- a/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml +++ b/testing/synthetic-monitoring/otel-demo/05-view-cart.yaml @@ -19,6 +19,6 @@ spec: assertions: - attr:tracetest.response.status = 200 - name: It retrieved the cart items correctly - selector: span[name="oteldemo.CartService/GetCart"] + selector: span[name="POST /oteldemo.CartService/GetCart"] assertions: - - attr:rpc.grpc.status_code = 0 + - attr:grpc.status_code = 0 diff --git a/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml b/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml index 2caad1fafd..f927e4c221 100644 --- a/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml +++ b/testing/synthetic-monitoring/otel-demo/06-checking-out-cart.yaml @@ -58,17 +58,6 @@ spec: - attr:rpc.grpc.status_code = 0 - attr:tracetest.selected_spans.count >= 1 - name: The order was sent to be processed asyncronously - selector: span[tracetest.span.type="messaging" name="orders publish" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="publish"] + selector: span[tracetest.span.type="messaging" name="orders publish" messaging.system="kafka" messaging.destination.name="orders" messaging.operation="publish"] assertions: - attr:messaging.destination.name = "orders" - # TODO: Accountability service is not working in our Demo env, we need to understand why - # - name: The order was sent to accountability - # # captures the span emitted by Kafka instrumentation for Go - # selector: span[tracetest.span.type="messaging" name="orders receive" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="receive"] - # assertions: - # - attr:name = "orders receive" - - name: The order was sent to fraud detection team - # captures the span emitted by Kafka instrumentation for Kotlin - selector: span[tracetest.span.type="messaging" name="orders process" messaging.system="kafka" messaging.operation="process"] - assertions: - - attr:name = "orders process" diff --git a/testing/synthetic-monitoring/otel-demo/_testsuite.yaml b/testing/synthetic-monitoring/otel-demo/_testsuite.yaml index 0e9a13f27a..5ca26e810c 100644 --- a/testing/synthetic-monitoring/otel-demo/_testsuite.yaml +++ b/testing/synthetic-monitoring/otel-demo/_testsuite.yaml @@ -3,7 +3,7 @@ type: TestSuite spec: id: pokeshop-demo-test-suite - name: OTel Demo Synthetic tests + name: 'OTel Demo Synthetic tests' description: Run all Frontend tests enabled in sequence, simulating a process of a user purchasing products on Astronomy store steps: - ./01-see-ads.yaml