blob: 9169e52f16b6ea7d3a2013b6c0808c4f5e725c6c [file] [log] [blame]
Jon Perritt0ce24ad2014-10-20 21:59:45 -05001package bulk
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
7 th "github.com/rackspace/gophercloud/testhelper"
8)
9
10const endpoint = "http://localhost:57909/"
11
12func endpointClient() *gophercloud.ServiceClient {
13 return &gophercloud.ServiceClient{Endpoint: endpoint}
14}
15
16func TestDeleteURL(t *testing.T) {
17 actual := deleteURL(endpointClient())
18 expected := endpoint + "?bulk-delete"
19 th.CheckEquals(t, expected, actual)
20}
21
22func TestExtractURL(t *testing.T) {
23 actual := extractURL(endpointClient(), "tar")
24 expected := endpoint + "?extract-archive=tar"
25 th.CheckEquals(t, expected, actual)
26}