Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

feat(test): Add simple cucumber test of health check #11

Merged
merged 9 commits into from
Aug 1, 2022

Conversation

hadjiszs
Copy link
Member

@hadjiszs hadjiszs commented Jul 29, 2022

This Cucumber test is simply

  • Running one TCE process
  • Checking the success for the request to /health_check

NOTE: The process is killed at the end of the then instruction, although it should be in the After hook but I was unable to make it work with their example.

The expected output of cargo test --test example

     Running tests/example.rs (target/debug/deps/example-46ed194d5a21b25e)
Feature: TCE Node
  Scenario: TCE Node run and expose health check
   ✔  Given tce node listening 8082
   ✔  Then request to health_check returns status 200
[Summary]
1 feature
1 scenario (1 passed)
2 steps (2 passed)

@hadjiszs hadjiszs force-pushed the add-gherkin-health-check branch 2 times, most recently from 272862b to 81df042 Compare July 29, 2022 09:18
@hadjiszs hadjiszs changed the title tests: Add simple cucumber test of health check feat(test): Add simple cucumber test of health check Jul 29, 2022
@hadjiszs hadjiszs force-pushed the add-gherkin-health-check branch from 81df042 to a20d510 Compare July 29, 2022 09:22
@hadjiszs hadjiszs force-pushed the add-gherkin-health-check branch from a20d510 to d55e3da Compare July 29, 2022 09:25
tests/example.rs Outdated Show resolved Hide resolved
tests/README.md Show resolved Hide resolved
tests/example.rs Show resolved Hide resolved
@hadjiszs hadjiszs force-pushed the add-gherkin-health-check branch from 26fd929 to f05eeda Compare August 1, 2022 16:04
@hadjiszs hadjiszs merged commit 9483ef4 into main Aug 1, 2022
@hadjiszs hadjiszs deleted the add-gherkin-health-check branch August 1, 2022 17:19
axb-topos pushed a commit that referenced this pull request Aug 8, 2022
* test: add example of cucumber execution

* test: add given tce node launched in cucumber

* test: separate health_check in then statement

* test: kill tce process at the end of the scenario

* docs: add simple readme on tests/

* chore: flatten the feature directory

* fix: terminate with SIGTERM instead of the default SIGKILL

* fix: move process termination to drop

* docs: add recommandation for gherkin vscode extension
hadjiszs added a commit that referenced this pull request Mar 9, 2023
* test: add example of cucumber execution

* test: add given tce node launched in cucumber

* test: separate health_check in then statement

* test: kill tce process at the end of the scenario

* docs: add simple readme on tests/

* chore: flatten the feature directory

* fix: terminate with SIGTERM instead of the default SIGKILL

* fix: move process termination to drop

* docs: add recommandation for gherkin vscode extension
hadjiszs added a commit that referenced this pull request Mar 9, 2023
* test: add example of cucumber execution

* test: add given tce node launched in cucumber

* test: separate health_check in then statement

* test: kill tce process at the end of the scenario

* docs: add simple readme on tests/

* chore: flatten the feature directory

* fix: terminate with SIGTERM instead of the default SIGKILL

* fix: move process termination to drop

* docs: add recommandation for gherkin vscode extension
hadjiszs added a commit that referenced this pull request Mar 9, 2023
* test: add example of cucumber execution

* test: add given tce node launched in cucumber

* test: separate health_check in then statement

* test: kill tce process at the end of the scenario

* docs: add simple readme on tests/

* chore: flatten the feature directory

* fix: terminate with SIGTERM instead of the default SIGKILL

* fix: move process termination to drop

* docs: add recommandation for gherkin vscode extension
gruberb added a commit that referenced this pull request Jun 8, 2023
# This is the 1st commit message:

Moved grpc files to topos-api/grpc folder, created graphql folder

# This is the commit message #2:

Add routes and the query

# This is the commit message #3:

WIP

# This is the commit message #4:

Move logic around, cargo fmt

# This is the commit message #5:

Build and run graphql server

# This is the commit message #6:

Cleanup

# This is the commit message #7:

Exposing ports

# This is the commit message #8:

Debugging

# This is the commit message #9:

Debugging

# This is the commit message #10:

Fix tests

# This is the commit message #11:

Success: Exposed running GraphQL server
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants