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

chore: BDD test for resolve DID with versionId #1152

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

sandrask
Copy link
Contributor

@sandrask sandrask commented Mar 1, 2022

Update sidetree-core and add BDD test for resolve DID with versionTime parameter

Closes #1151

Signed-off-by: Sandra Vrtikapa sandra.vrtikapa@securekey.com

@cla-bot cla-bot bot added the cla-signed label Mar 1, 2022
@sandrask sandrask changed the title chore: BDD test for resolver DID with versionId chore: BDD test for resolve DID with versionId Mar 1, 2022
@codecov
Copy link

codecov bot commented Mar 1, 2022

Codecov Report

Merging #1152 (c66e25e) into main (0f38e98) will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1152      +/-   ##
==========================================
- Coverage   88.99%   88.94%   -0.05%     
==========================================
  Files         168      168              
  Lines       16261    16270       +9     
==========================================
  Hits        14472    14472              
- Misses       1103     1110       +7     
- Partials      686      688       +2     
Impacted Files Coverage Δ
pkg/activitypub/service/monitoring/monitoring.go 77.35% <0.00%> (-2.84%) ⬇️
cmd/orb-server/startcmd/start.go 72.90% <0.00%> (-0.57%) ⬇️
cmd/orb-server/startcmd/params.go 81.46% <0.00%> (+0.07%) ⬆️

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 0f38e98...c66e25e. Read the comment docs.

func (d *CommonSteps) setVariableToCurrentTime(varName string) error {
value := time.Now().UTC().Format(time.RFC3339)

if err := d.state.resolveVarsInExpression(&value); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need this code.

Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need this code.

value will never have variables so calling resolveVarsInExpression is not necessary

Update sidetree-core and add BDD test for resolver DID with versionTime parameter

Closes trustbloc#1151

Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
@sandrask sandrask merged commit c631be1 into trustbloc:main Mar 1, 2022
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.

BDD test for resolver DID with versionTime parameter
3 participants