Sign inSign up

arkadiusjonczek/pgcumber

By arkadiusjonczek

•Updated 5 days ago

https://github.com/arkadiusjonczek/pgcumber

Image
Integration & delivery
Developer tools
Databases & storage
0

617

arkadiusjonczek/pgcumber repository overview

⁠pgcumber

Use Gherkin to write plain-text, human-readable test cases for your PostgreSQL data.

Feature: PostgreSQL user permissions

  Scenario: The user admin is a superuser on the pgcumber database

    Given The host "localhost"
    And   The port "5432"
    And   The database "pgcumber"

    When  I use username "admin"
    And   I use password "admin"
    And   I connect to the server

    Then  the connection is successful
    And   I am a database superuser

  Scenario: The user johndoe is not a superuser on the pgcumber database

    Given The host "localhost"
    And   The port "5432"
    And   The database "pgcumber"

    When  I use username "johndoe"
    And   I use password "johndoe"
    And   I connect to the server

    Then  the connection is successful
    And   I am not a database superuser

⁠Usage

docker run \
  --interactive
  --tty
  --rm \
  --volume "$(pwd)/features:/data/pgcumber/features" \
  --network host \
  arkadiusjonczek/pgcumber /data/pgcumber/features

⁠GitHub

https://github.com/arkadiusjonczek/pgcumber⁠

Tag summary

Content type

Image

Digest

sha256:dc8cbcd87…

Size

5.8 MB

Last updated

5 days ago

docker pull arkadiusjonczek/pgcumber