
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
artillery-plugin-uuid
Advanced tools
A plugin for artillery.io that generates UUID (version 4) variables for use in script
To use:
npm install -g artillery
npm install -g artillery-plugin-uuid
(omit -g
if it will be loaded from the local node_modules
directory)uuid
plugin to your hello.yml
Artillery script:config:
plugins:
uuid:
vars: [ 'id1' , 'id2' ] # array of variable names
target: "https://aws.amazon.com"
phases:
-
duration: 5 # time in seconds script will run
arrivalRate: 1 # requests/second
scenarios:
- flow:
- options: # see footnote (a)
url: '/'
beforeRequest: addUUID # request-level hook. each call will reset variable values to a new UUID
- post:
url: '/{{ id1 }}' # {{ id1 }} replaced by UUID assigned to id1
- get:
url: '/{{ id1 }}' # {{ id1 }} replaced by UUID assigned to id1
- post:
url: '/{{ id2 }}' # {{ id2 }} replaced by UUID assigned to id2
- get:
url: '/{{ id2 }}' # {{ id2 }} replaced by UUID assigned to id2
(b)
for verbose explanation)artillery run hello.yml
(a)
VERY IMPORTANT! Variables are not avaiable in the flow entry that generates them. If you implement the hook within
the post or get, artillery will not create the variable in time for use. Using options
, we enable calling beforeRequest
prior to entering the
request bodies, and the variables are ready for use within requests.
(b)
The level at which the hook is created determines the frequency at which the plugin is called.
The example script generates a request-level hook. This creates one set of UUID's to be used for all
requests within the flow. Generating a flow-level hook, on the other hand, will generate new UUID's with each
new request.
FAQs
generate uuid to use in artillery script
The npm package artillery-plugin-uuid receives a total of 22 weekly downloads. As such, artillery-plugin-uuid popularity was classified as not popular.
We found that artillery-plugin-uuid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.