From 3dbb5db4a4e4ca4eba5bbde6351d889b8c94e8c9 Mon Sep 17 00:00:00 2001 From: Daniel Dias Date: Mon, 21 Aug 2023 09:07:17 -0300 Subject: [PATCH] Update tests --- test/tracetesting/accounting-service/all.yaml | 10 ---- .../accounting-service/receive-order.yaml | 52 ------------------- .../fraud-detection-service/all.yaml | 10 ---- .../process-order.yaml | 52 ------------------- test/tracetesting/run.bash | 2 +- 5 files changed, 1 insertion(+), 125 deletions(-) delete mode 100644 test/tracetesting/accounting-service/all.yaml delete mode 100644 test/tracetesting/accounting-service/receive-order.yaml delete mode 100644 test/tracetesting/fraud-detection-service/all.yaml delete mode 100644 test/tracetesting/fraud-detection-service/process-order.yaml diff --git a/test/tracetesting/accounting-service/all.yaml b/test/tracetesting/accounting-service/all.yaml deleted file mode 100644 index 9fda3f5971..0000000000 --- a/test/tracetesting/accounting-service/all.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright The OpenTelemetry Authors -# SPDX-License-Identifier: Apache-2.0 - -type: TestSuite -spec: - id: accounting-service-all - name: 'Accounting Service' - description: Run all Accounting Service tests enabled in sequence - steps: - - ./receive-order.yaml diff --git a/test/tracetesting/accounting-service/receive-order.yaml b/test/tracetesting/accounting-service/receive-order.yaml deleted file mode 100644 index e57a09afa7..0000000000 --- a/test/tracetesting/accounting-service/receive-order.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright The OpenTelemetry Authors -# SPDX-License-Identifier: Apache-2.0 - -type: Test -spec: - id: accounting-receive-order - name: 'Accounting: receive order' - description: Receive an order from Orders stream - trigger: - type: kafka - kafka: - brokerUrls: - - ${var:KAFKA_SERVICE_ADDR} - topic: messaging - messageKey: "order-505" - messageValue: | - { - "order_id": "505", - "shipping_tracking_id": "dead-beef", - "shipping_cost": { - "currency_code": "USD", - "units": 17, - "nanos": 980000000 - }, - "shipping_address": { - "street_address_1": "1600 Amphitheatre Parkway", - "city": "Mountain View", - "state": "California", - "country": "United States", - "zip_code": "94043" - }, - "items": [ - { - "item": { - "product_id": "1YMWWN1N4O", - "quantity": 5 - }, - "cost": { - "currency_code": "USD", - "units": 100, - "nanos": 0 - } - } - ] - } - - specs: - - 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="orders" messaging.destination_kind="topic" messaging.operation="receive"] - assertions: - - attr:name = "orders receive" diff --git a/test/tracetesting/fraud-detection-service/all.yaml b/test/tracetesting/fraud-detection-service/all.yaml deleted file mode 100644 index 1ea076fa3e..0000000000 --- a/test/tracetesting/fraud-detection-service/all.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright The OpenTelemetry Authors -# SPDX-License-Identifier: Apache-2.0 - -type: TestSuite -spec: - id: frauddetection-service-all - name: 'Fraud Detection Service' - description: Run all Fraud Detection Service tests enabled in sequence - steps: - - ./process-order.yaml diff --git a/test/tracetesting/fraud-detection-service/process-order.yaml b/test/tracetesting/fraud-detection-service/process-order.yaml deleted file mode 100644 index 15b8303a83..0000000000 --- a/test/tracetesting/fraud-detection-service/process-order.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright The OpenTelemetry Authors -# SPDX-License-Identifier: Apache-2.0 - -type: Test -spec: - id: frauddetection-order - name: 'Fraud Detection: process order' - description: Process an order from Orders stream - trigger: - type: kafka - kafka: - brokerUrls: - - ${var:KAFKA_SERVICE_ADDR} - topic: messaging - messageKey: "order-600" - messageValue: | - { - "order_id": "600", - "shipping_tracking_id": "dead-beef", - "shipping_cost": { - "currency_code": "USD", - "units": 17, - "nanos": 980000000 - }, - "shipping_address": { - "street_address_1": "1600 Amphitheatre Parkway", - "city": "Mountain View", - "state": "California", - "country": "United States", - "zip_code": "94043" - }, - "items": [ - { - "item": { - "product_id": "1YMWWN1N4O", - "quantity": 5 - }, - "cost": { - "currency_code": "USD", - "units": 100, - "nanos": 0 - } - } - ] - } - - specs: - - 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/test/tracetesting/run.bash b/test/tracetesting/run.bash index f0d8e75d90..7c2b4a0314 100755 --- a/test/tracetesting/run.bash +++ b/test/tracetesting/run.bash @@ -55,7 +55,7 @@ run_tracetest() { return $? } -ALL_SERVICES=("accounting-service" "ad-service" "cart-service" "currency-service" "checkout-service" "fraud-detection-service" "frontend-service" "email-service" "payment-service" "product-catalog-service" "recommendation-service" "shipping-service") +ALL_SERVICES=("ad-service" "cart-service" "currency-service" "checkout-service" "frontend-service" "email-service" "payment-service" "product-catalog-service" "recommendation-service" "shipping-service") CHOSEN_SERVICES=() while [[ $# -gt 0 ]]; do