aboutsummaryrefslogtreecommitdiff
path: root/instance_test.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-22 10:33:44 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-22 10:33:44 +0100
commit927a314012720b82fe8d3c0d4e96bb1bf1dbb12d (patch)
tree084a5b67566317d555599a3de5567fe4e77de8dd /instance_test.go
parent5154fbe82a186d1c56a29452ab50444a25e716a6 (diff)
renamed sth and cosigning endpoints
Diffstat (limited to 'instance_test.go')
-rw-r--r--instance_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/instance_test.go b/instance_test.go
index 50302fb..43404f2 100644
--- a/instance_test.go
+++ b/instance_test.go
@@ -124,13 +124,13 @@ func TestHandlers(t *testing.T) {
endpoints := map[Endpoint]bool{
EndpointAddEntry: false,
EndpointGetEntries: false,
- EndpointGetSth: false,
+ EndpointGetLatestSth: false,
EndpointGetProofByHash: false,
EndpointGetConsistencyProof: false,
EndpointGetAnchors: false,
EndpointGetStableSth: false,
- EndpointGetCosi: false,
- EndpointAddCosi: false,
+ EndpointGetCosignedSth: false,
+ EndpointAddCosignature: false,
}
i := NewInstance(makeTestLogParameters(t, nil), nil, nil)
for _, handler := range i.Handlers() {
@@ -170,7 +170,7 @@ func TestEndpointPath(t *testing.T) {
want: "http://example.com/test/get-consistency-proof",
},
{
- endpoint: EndpointGetSth,
+ endpoint: EndpointGetLatestSth,
want: "http://example.com/test/get-sth",
},
{
@@ -182,11 +182,11 @@ func TestEndpointPath(t *testing.T) {
want: "http://example.com/test/get-stable-sth",
},
{
- endpoint: EndpointGetCosi,
+ endpoint: EndpointGetCosignedSth,
want: "http://example.com/test/get-cosi",
},
{
- endpoint: EndpointAddCosi,
+ endpoint: EndpointAddCosignature,
want: "http://example.com/test/add-cosi",
},
} {