You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a test using tracetest run test command, when can pass a -e argument with an environment definition file. Today, on the version 0.11.6 the Tracetest CLI is ignoring this file and is not providing any output about that:
Example of test and environment file:
type: Testspec:
name: Add product to the cartdescription: Add a selected product to user shopping carttrigger:
type: httphttpRequest:
url: ${env:CART_API_URL}method: POSTheaders:
- key: Content-Typevalue: application/jsonbody: '{"item":{"productId":"${env:PRODUCT_ID}","quantity":1},"userId":"${env:USER_ID}"}'specs:
- selector: span[tracetest.span.type="http" name="hipstershop.CartService/AddItem"]name: "Checking if the correct ProductID was sent"assertions:
- attr:app.product.id = "${env:PRODUCT_ID}"
- selector: span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"]name: "Checking if the product was persisted correctly on the shopping cart"assertions:
- attr:tracetest.selected_spans.count >= 1
Env file:
type: Environmentspec:
id: user-buying-products-envname: User buying Products - Envdescription: Environment for the process - "User buying products"values:
- key: CART_API_URLvalue: http://frontend:8080/api/cart
- key: CHECKOUT_API_URLvalue: http://frontend:8080/api/checkout
- key: PRODUCT_IDvalue: OLJCESPC7Z
- key: USER_IDvalue: 2491f868-88f1-4345-8836-d5d8511a9f83
The text was updated successfully, but these errors were encountered:
Describe the bug
When running a test using
tracetest run test
command, when can pass a-e
argument with an environment definition file. Today, on the version0.11.6
the Tracetest CLI is ignoring this file and is not providing any output about that:Example of test and environment file:
Env file:
The text was updated successfully, but these errors were encountered: