Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http bridge with local cluster in integration tests #132

Merged
merged 4 commits into from
Mar 29, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Mar 28, 2019

Issue Number

#67

Overview

  • I have reviewed the integration framework to simplify a bit the context passing, making it more explicit and removing the extra bits not needed
  • I have setup an initial environment for running Byron cardano node in the integration tests
  • I have connected pieces together and launched an actual cluster + wallet backend server + http bridge all together in the integration tests.
  • I have updated build / tests instructions in the README about how to run the actual integration tests
  • TODO finalize updating travis.yml to have 'cardano-node-simple' in context (I have a pre-compiled binary in the test/data/cardano-node-simple that would do the trick).

Comments

We do nothing with the cluster (for now) but it should be fully functional and allow us to submit transactions and see them being accepted by nodes.

@piotr-iohk This will conflict with #131 but I am happy to adapt either of the PR with the change. Conceptually, it doesn't really interfere with your addition on #131.

- Removed the MVar wrapper around the Context
- Make API of the Request module more orthogonal
- Remove 'Scenario' plumbing and pass context explicity through HSpec 'SpecWith' mechanism
@KtorZ KtorZ requested a review from piotr-iohk March 28, 2019 18:45
@KtorZ KtorZ self-assigned this Mar 28, 2019
Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one 👍

, "--template", network
] (threadDelay 5000000)

cardanoWalletServer serverPort bridgePort network = Command
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not cardanoWalletLauncher instead Bridge and Server?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 😶 ... I have no answers.

@KtorZ KtorZ merged commit 129aecd into master Mar 29, 2019
@KtorZ KtorZ deleted the KtorZ/67/http-bridge-with-local-cluster branch March 29, 2019 08:02
@KtorZ
Copy link
Member Author

KtorZ commented Mar 29, 2019

Merging this to get the cardano-http-bridge pre-compiled available on master, and making another PR to change the usage of bridge + server with launcher + update .travis.yaml to actually have cardano-http-bridge in scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants