Skip to content

Commit

Permalink
Merge pull request #163 from akakou/hotfix/test-code
Browse files Browse the repository at this point in the history
Hotfix/test code
  • Loading branch information
akakou authored Oct 11, 2024
2 parents 6997942 + 4b2d8aa commit 9c275bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 72 deletions.
71 changes: 0 additions & 71 deletions verifier/api/server_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion verifier/monitor/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func testPass(t *testing.T) {
priv, _ := rsa.GenerateKey(rand.Reader, 2048)
keyBuf := x509.MarshalPKCS1PublicKey(&priv.PublicKey)

server := verifier.DB.Client.TAServer.Create().SetDomain("example.com").SetPublicKey(keyBuf).SetQuote("1").SetIsActive(false).SaveX(*verifier.DB.Ctx)
server := verifier.DB.Client.TAServer.Create().SetDomain("example.com").SetPublicKey(keyBuf).SetQuote("1").SetMonitorLogID(0).SetIsActive(false).SaveX(*verifier.DB.Ctx)
verifier.DB.Client.TACode.Create().SetUniqueID([]byte{1, 2, 3}).SetRepository("").SetCommitID("").SaveX(*verifier.DB.Ctx)

err := Check(&priv.PublicKey, server)
Expand Down

0 comments on commit 9c275bc

Please sign in to comment.