Skip to content

[E2E] Assert on database state in E2E tests  #741

@dylanlott

Description

@dylanlott

Objective

The current E2E tests are fire-and-forget broadcast or send messages. A component is needed to assert on the state of each validator's database.

Origin Document

E2E Testing Framework

Goals

  • Allow for querying each validator's PostgreSQL database to be queried and asserted in a step definition.
  • Investigate if a similar approach can be used for each validator's Badger database.

Deliverable

  • A step definition that can query any validator's database with any arbitrary SQL statement and args.

Non-goals / Non-deliverables

General issue deliverables

  • Update the appropriate CHANGELOG(s)
  • Update any relevant local/global README(s)
  • Update relevant source code tree explanations
  • Add or update any relevant or supporting mermaid diagrams

Testing Methodology

  • Task specific tests or benchmarks: make ...
  • New tests or benchmarks: make ...
  • All tests: make test_all
  • LocalNet: verify a LocalNet is still functioning correctly by following the instructions at docs/development/README.md
  • k8s LocalNet: verify a k8s LocalNet is still functioning correctly by following the instructions here

Creator: [@dylanlott ]

Metadata

Metadata

Assignees

Labels

testingDefining, adding, automating or modifying tests

Type

No type
No fields configured for issues without a type.

Projects

Status
Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions