Skip to content

Commit

Permalink
chore: update regression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Feb 24, 2025
1 parent 70012b5 commit 2e004f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/regression/cmd/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func createContractAuth(input map[string]string) (string, bool, error) {
}

// sign our msg
msg := sentinel.GenerateMessageToSign(id, timestamp)
msg := sentinel.GenerateMessageToSign(id, timestamp, "arkeo")
auth, err := signThis(msg, input["signer"])
return auth, true, err
}
Expand Down Expand Up @@ -323,7 +323,7 @@ func createAuth(input map[string]string) (string, bool, error) {
if err != nil {
return "", true, fmt.Errorf("failed to parse nonce: %s", err)
}
msg := sentinel.GenerateMessageToSign(id, nonce)
msg := sentinel.GenerateMessageToSign(id, nonce, "arkeo")
auth, err := signThis(msg, input["signer"])
return auth, true, err
}
Expand Down
4 changes: 2 additions & 2 deletions test/regression/suites/contracts/pay-as-you-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ description: ensure contract shows up in active contracts
endpoint: http://localhost:3636/open-claims
asserts:
- length == 1
- .[0].signature == "1332d913e9bd87df5b11964a2c6abc770e3fe5bf5228d38e59f23aed97708c4a669c8e050baadca897ad7bec74b7951009b38d477bccdc2427eae8cec90dce39"
- .[0].signature == "0e2ad0a02bf31ca722d67ef1af03e3f955f878e48fbc476e658b320ebbe1e9364b397a57328cf4ee6ed4cbb0cbb2bb4d538c165a3950a02ae2912c0ef370d766"
- .[0].claimed == false
---
########################################################################################
Expand Down Expand Up @@ -143,7 +143,7 @@ type: check
description: ensure contract shows up in active contracts
endpoint: http://localhost:3636/claim/1
asserts:
- .signature == "1332d913e9bd87df5b11964a2c6abc770e3fe5bf5228d38e59f23aed97708c4a669c8e050baadca897ad7bec74b7951009b38d477bccdc2427eae8cec90dce39"
- .signature == "0e2ad0a02bf31ca722d67ef1af03e3f955f878e48fbc476e658b320ebbe1e9364b397a57328cf4ee6ed4cbb0cbb2bb4d538c165a3950a02ae2912c0ef370d766"
- .claimed == false
- .contract_id == 1
---
Expand Down

0 comments on commit 2e004f8

Please sign in to comment.