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
I use newman to create an integration test with helm test
I fetch the postman/newman image and provide the path to the collection via the GitLab API.
The collection contains a reference: {{baseUrl}} which I want to define when I run newman using the --env-var option.
When I run helm test I get the follwing error: error: unknown option '--env-var "baseUrl=<tempalte_name>:80"'
where <template_name> is the injected name of my template.
The fetching of the collection and injection of the variables works fine when I run it manually outside of minikube.
When I run newman run -h it also displays me the --env-var option. I don't understand why it has problems when I use it.
Newman Version (can be found via newman -v): 5.2.1 (I use the postman/newman docker image)
OS details (type, version, and architecture): Windows but container is run in minikube
Are you using Newman as a library, or via the CLI? CLI
Did you encounter this recently, or has this bug always been there: Recently
Expected behaviour: newman should accept the variables provided with env-var
Command / script used to run Newman: newman run --env-var "baseUrl=<url>" <collection_path>
The text was updated successfully, but these errors were encountered:
TheSlimvReal
changed the title
Bug: unknown option '--env-var "..."
Bug: unknown option '--env-var "..."'
Jan 3, 2021
I use newman to create an integration test with
helm test
I fetch the
postman/newman
image and provide the path to the collection via the GitLab API.The collection contains a reference:
{{baseUrl}}
which I want to define when I run newman using the--env-var
option.In my helm template:
When I run
helm test
I get the follwing error:error: unknown option '--env-var "baseUrl=<tempalte_name>:80"'
where
<template_name>
is the injected name of my template.The fetching of the collection and injection of the variables works fine when I run it manually outside of minikube.
When I run
newman run -h
it also displays me the--env-var
option. I don't understand why it has problems when I use it.newman -v
): 5.2.1 (I use the postman/newman docker image)env-var
newman run --env-var "baseUrl=<url>" <collection_path>
The text was updated successfully, but these errors were encountered: