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 expected to see this happen (notice that the dev is resolved for the {{ $environment }}-credentials.csv & {{ $environment }}-srv-credential.csv:
NOTE: AWS Lambda support is experimental. Not all Artillery features work yet.
For details please see https://docs.art/aws-lambda
λ Creating AWS Lambda function...
- Bundling test data
- api-load.yaml
- processor.js
- dev-credential.csv
- dev-srv-credential.csv
.
.
.
Instead, this happened:
NOTE: AWS Lambda support is experimental. Not all Artillery features work yet.
For details please see https://docs.art/aws-lambda
λ Creating AWS Lambda function...
- Bundling test data
- api-load.yaml
- processor.js
- {{ $environment }}-credential.csv
- {{ $environment }}-srv-credential.csv
Error: ENOENT: no such file or directory, copyfile '/Users/me/dev/src/{{ $environment }}-credential.csv' -> '/var/folders/pz/rkq06hx523x57556q_60z0880000gq/T/d-202415-47418-uyo2yf.y1xdl/{{ $environment }}-credential.csv'
at Object.copyFileSync (node:fs:2894:3)
at PlatformLambda.init (/Users/me/dev/node_modules/artillery/lib/platform/aws-lambda/index.js:171:10)
at async Launcher.run (/Users/jme/dev/node_modules/artillery/lib/launch-platform.js:428:25) {
errno: -2,
syscall: 'copyfile',
code: 'ENOENT',
path: '/Users/me/dev/src/{{ $environment }}-credential.csv',
dest: '/var/folders/pz/rkq06hx523x57556q_60z0880000gq/T/d-202415-47418-uyo2yf.y1xdl/{{ $environment }}-credential.csv'
}
Files being used:
config:
payload:
# path is relative to the location of the test script
- path: ./{{ $environment }}-credential.csv ### <--- $environment is sub for the `-e dev` on the CLI
skipHeader: true
fields:
- frameworkServiceName
- frameworkServicePassword
order: sequence
# path is relative to the location of the test script
- path: ./{{ $environment }}-srv-credential.csv ### <--- $environment is sub for the `-e dev` on the CLI
skipHeader: true
fields:
- serviceName
- servicePassword
order: random
This works locally. But when trying to create the test bundle for Lambda or ECS.
The issue is in the createBom() functions (there are two one for Lambda and one for ECS) the current code is not resolving any types of variables that could be passed in from the CLI:
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating it.
\\-->
Version info:
Running this command:
I expected to see this happen (notice that the
dev
is resolved for the{{ $environment }}-credentials.csv
&{{ $environment }}-srv-credential.csv
:Instead, this happened:
Files being used:
This works locally. But when trying to create the test bundle for Lambda or ECS.
The issue is in the
createBom()
functions (there are two one for Lambda and one for ECS) the current code is not resolving any types of variables that could be passed in from the CLI:Current code:
Possible fix:
In the
init()
method to populate theopts
variable:Same pattern to fix would apply for the ECS version (done in the
prepareManifest
function)Expected behavior:
Instead:
The text was updated successfully, but these errors were encountered: