aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd/msg/path_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/etcd/msg/path_test.go')
-rw-r--r--plugin/etcd/msg/path_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugin/etcd/msg/path_test.go b/plugin/etcd/msg/path_test.go
new file mode 100644
index 000000000..a9ec59713
--- /dev/null
+++ b/plugin/etcd/msg/path_test.go
@@ -0,0 +1,12 @@
+package msg
+
+import "testing"
+
+func TestPath(t *testing.T) {
+ for _, path := range []string{"mydns", "skydns"} {
+ result := Path("service.staging.skydns.local.", path)
+ if result != "/"+path+"/local/skydns/staging/service" {
+ t.Errorf("Failure to get domain's path with prefix: %s", result)
+ }
+ }
+}