Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

artillery-engine-cosmos

0.2.1 • Public • Published

artillery-engine-cosmos

NPM version Total downloads

Artillery engine for Azure Cosmos DB.

Developed in Dogma, compiled to JavaScript.

Engineered in Valencia, Spain, EU by EthronLabs.

Config data

config:
  engines:
    cosmos:
      endpoint: Cosmos DB endpoint
      key: key
      db: database name
      consistencyLevel: level
  • endpoint, the HTTPS endpoint to the Cosmos DB.

  • key, the key to use.

  • db, the database name to test.

  • consistencyLevel, the consistency level to use: Strong, Bounded, Session, Eventual.

Scenarios

The scenarios must set the field engine to cosmos.

Flow steps

The log and think steps are allowed too.

Expectations

We can set, if needed, the following expectations:

  • maxRUs (number), maximum number of RUs that the operation can consume.

  • count (number), number of items to receive.

item

Return an item:

item:
    container: name
    id: item id
    partitionKey: value
    consistencyLevel: level
    expect:
      maxRUs: number

items

Return all the items:

items:
    container: name
    consistencyLevel: level
    expect:
      maxRUs: number
      count: number

delete

Delete an item:

delete:
    container: name
    id: item id
    partitionKey: value
    consistencyLevel: level
    expect:
      maxRUs: number

insert

Insert an item:

insert:
    container: name
    item: item to insert
    consistencyLevel: level
    expect:
      maxRUs: number

upsert

Update or insert an item:

upsert:
    container: name
    item: item to upsert
    consistencyLevel: level
    expect:
      maxRUs: number

query

Run a SQL query:

query:
    container: name
    partitionKey: value
    query: text
    parameters: parameters
    consistencyLevel: level
    expect:
      maxRUs: number
      count: number

sp

Run a stored procedure:

sp:
    container: name
    name: stored procedure
    partitionKey: value
    parameters: parameters
    consistencyLevel: level
    expect:
      maxRUs: number

Install

npm i artillery-engine-cosmos

DownloadsWeekly Downloads

1

Version

0.2.1

License

none

Unpacked Size

21.3 kB

Total Files

6

Last publish

Collaborators

  • avatar