aboutsummaryrefslogtreecommitdiff
path: root/instance_test.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-22 10:44:34 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-22 10:44:34 +0100
commita09c0f5858e0eae333e3a88de5264806dc9022bd (patch)
treeb3aa7ff04c31ee2df7cad4bfbc3af29589ba3d6f /instance_test.go
parent927a314012720b82fe8d3c0d4e96bb1bf1dbb12d (diff)
fixed endpoint paths in instance tests
Diffstat (limited to 'instance_test.go')
-rw-r--r--instance_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/instance_test.go b/instance_test.go
index 43404f2..0ceedb8 100644
--- a/instance_test.go
+++ b/instance_test.go
@@ -171,7 +171,7 @@ func TestEndpointPath(t *testing.T) {
},
{
endpoint: EndpointGetLatestSth,
- want: "http://example.com/test/get-sth",
+ want: "http://example.com/test/get-latest-sth",
},
{
endpoint: EndpointGetAnchors,
@@ -183,11 +183,11 @@ func TestEndpointPath(t *testing.T) {
},
{
endpoint: EndpointGetCosignedSth,
- want: "http://example.com/test/get-cosi",
+ want: "http://example.com/test/get-cosigned-sth",
},
{
endpoint: EndpointAddCosignature,
- want: "http://example.com/test/add-cosi",
+ want: "http://example.com/test/add-cosignature",
},
} {
if got, want := table.endpoint.Path(base, prefix), table.want; got != want {