diff options
author | Julien Dessaux | 2023-06-18 17:41:38 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-06-18 17:43:53 +0200 |
commit | 6844355a928b60ffb1006e6b1d9f8af7b44647d5 (patch) | |
tree | 57355ad7bf98b870cf96ceec2a2eae64b94d3276 /external/evcli/url_test.go | |
parent | Implemented project resource (diff) | |
download | terraform-provider-eventline-6844355a928b60ffb1006e6b1d9f8af7b44647d5.tar.gz terraform-provider-eventline-6844355a928b60ffb1006e6b1d9f8af7b44647d5.tar.bz2 terraform-provider-eventline-6844355a928b60ffb1006e6b1d9f8af7b44647d5.zip |
Imported and modified evcli's api client code
Diffstat (limited to '')
-rw-r--r-- | external/evcli/url_test.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/external/evcli/url_test.go b/external/evcli/url_test.go new file mode 100644 index 0000000..aa13281 --- /dev/null +++ b/external/evcli/url_test.go @@ -0,0 +1,23 @@ +package evcli + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestNewURL(t *testing.T) { + assert := assert.New(t) + + assert.Equal("/", + NewURL().String()) + + assert.Equal("/a", + NewURL("a").String()) + + assert.Equal("/a/bcd/ef", + NewURL("a", "bcd", "ef").String()) + + assert.Equal("/a/b%20c/e%2Ff", + NewURL("a", "b c", "e/f").String()) +} |