Cicada

Cicada

  • Docs
  • Guides
  • API
  • Runners
  • Help

›Runners

Introduction

  • Quickstart
  • Tests
  • State
  • Actions and Asserts
  • Runners
  • Reports

Guides

  • REST API Guide
  • Async App Guide
  • gRPC Server Guide
  • Kubernetes Guide

API

  • Test
  • Action
  • Assert
  • Config
  • Test Engine
  • Verification

Runners

  • REST Runner
  • SQL Runner
  • Kafka Runner
  • S3 Runner
  • gRPC Runner

SQL Runner

SQL runnners are used to make sql queries against databases. Currently, Postgres is supported.

Config


config:
  connectionString: string
  driver: string
  username: string
  password: string
  host: string
  port: string
  database: string

Connection String

Connection string to use when connecting to database. Must be of the following format:

{driver}://{username}:{password}@{host}:{port}/{database}

Driver

Database driver to use. Currently supported:

  • postgresql
  • mysql+pymysql

REQUIRED if connectionString is not set

Username

Username to use when authenticating to database

REQUIRED if connectionString is not set

Password

Password to use when connecting to database

REQUIRED if connectionString is not set

Host

Host name of database

REQUIRED if connectionString is not set

Port

Port database is running on

REQUIRED if connectionString is not set

Database

Database schema to connect to

REQUIRED if connectionString is not set

Actions


type: string
params:
  query: string

Returns

{
    "rows": [
        {
            "column_name": ...,
            "another_column_name": ...
        }
    ]
}

Supported Action Types

  • SQLQuery

Action Params

Query

SQL query string to be used by runner

Asserts


type: string
params:
  method: string
  actionParams: Map
  expected: List[Map]

Supported Assert Types

  • ContainsRows: Checks that result contains all of the expected rows
  • EqualsRows: Checks that result rows equal the expected rows

Assert Params

Expected

List of Maps, each representing a row where the keys are the column names

← REST RunnerKafka Runner →
  • Config
    • Connection String
    • Driver
    • Username
    • Password
    • Host
    • Port
    • Database
  • Actions
    • Supported Action Types
    • Action Params
  • Asserts
    • Supported Assert Types
    • Assert Params
Cicada
Docs
Getting StartedAPI Reference
More
GitHubStar
Copyright © 2021 Cicada