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

test: BDD test for database restart #1296

Merged
merged 1 commit into from
May 11, 2022
Merged

Conversation

bstasyszyn
Copy link
Contributor

Added a BDD test for restarting a database while Orb instances are up.

Also, added a fix to ensure a transient error is returned after getting a VC parse error due to the DB being down.

closes #1295

Signed-off-by: Bob Stasyszyn Bob.Stasyszyn@securekey.com

@cla-bot cla-bot bot added the cla-signed label May 11, 2022
@codecov
Copy link

codecov bot commented May 11, 2022

Codecov Report

Merging #1296 (eac8720) into main (5254c2c) will increase coverage by 0.00%.
The diff coverage is 71.42%.

@@           Coverage Diff           @@
##             main    #1296   +/-   ##
=======================================
  Coverage   87.94%   87.94%           
=======================================
  Files         179      179           
  Lines       17831    17835    +4     
=======================================
+ Hits        15681    15685    +4     
  Misses       1372     1372           
  Partials      778      778           
Impacted Files Coverage Δ
pkg/anchor/util/util.go 87.50% <33.33%> (+0.83%) ⬆️
pkg/store/publickey/publickeystore.go 91.04% <100.00%> (+0.41%) ⬆️
pkg/observer/pubsub.go 94.49% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5254c2c...eac8720. Read the comment docs.

Added a BDD test for restarting a database while Orb instances are up.

Also, added a fix to ensure a transient error is returned after getting a VC parse error due to the DB being down.

closes trustbloc#1295

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@bstasyszyn bstasyszyn merged commit 70d59f2 into trustbloc:main May 11, 2022
@bstasyszyn bstasyszyn deleted the 1295 branch May 11, 2022 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add BDD test for database restart
3 participants