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

Fix dredd test #76

Merged
merged 8 commits into from
May 8, 2020
Merged

Fix dredd test #76

merged 8 commits into from
May 8, 2020

Conversation

zemyblue
Copy link
Member

@zemyblue zemyblue commented May 7, 2020

Closes: #73

Description

Fix dredd fail case

  • /genesis
  • /broadcast_tx_sync
  • /braodcast_tx_async
  • /broadcast_tx_commit
  • /tx_search
  • /block_results
  • /tx_search
  • /dump_consensus_state
  • /consensus_params

Add dredd test to circleCI

The dredd test on the circleCI do next progress.

  1. install node and npm
  2. install dredd with npm
  3. build Tendermint binary in the golang:1.14.2 docker image
  4. build contract-test-hook in the ubuntu:20.04 docker image
  5. get goodman package
  6. run dredd test

The contract-test-hook binary should be built ubuntu not alpine golang docker image, because the circleCI system is ubuntu and the binary to be build in alphine golang docker doesn't run in ubuntu. I don't know why. And the binary of Tendermint should be build in the alphine golang docker image. haha. So the binaries were build each environment.

You can see the debug history of circleCI for dredd test in the #75.


For contributor use:

  • Wrote tests
  • Updated CHANGELOG_PENDING.md
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments
  • Re-reviewed Files changed in the Github PR explorer

- Change `max_age` to `max_age_num_blocks` of GenesisResponse in the swagger
- Add `max_age_duration` of GenesisResponse in the swagger
- `broadcast_tx_sync`
- `broadcast_tx_async`
- `broadcast_tx_commit`
- `tx_search`
- /block_results
- /tx_search
- /dump_consensus_state
- /consensus_params
@zemyblue zemyblue requested review from torao and egonspace May 7, 2020 11:46
@zemyblue zemyblue self-assigned this May 7, 2020
@zemyblue zemyblue added the C: bug Classification: Something isn't working label May 8, 2020
body.(map[string]interface{})[lastKey] = value
}

func (obj *UnmarshalledArbitraryObject) DeleteProperty(keys ...string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to doing same thing with RemoveProperty(). Is it right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's right.
I update the function and didn't remove it.
I'll remove it. Thank you.

Copy link
Contributor

@egonspace egonspace left a comment

Choose a reason for hiding this comment

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

I left a comment on a trivial thing. LGTM

@zemyblue zemyblue merged commit c2dfa91 into develop May 8, 2020
@zemyblue zemyblue deleted the feature/fix_dredd_test branch June 17, 2020 04:15
@zemyblue zemyblue mentioned this pull request Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: bug Classification: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants