watch.Url renamed to watch.Target

This commit is contained in:
Soam Vasani
2016-12-20 12:11:54 -08:00
parent 4d75c3fa4e
commit 8704761fd0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -199,7 +199,7 @@ func TestWatchApi(t *testing.T) {
Name: "foo", Name: "foo",
Uid: "", Uid: "",
}, },
Url: "", Target: "",
} }
m, err := g.client.WatchCreate(testWatch) m, err := g.client.WatchCreate(testWatch)
panicIf(err) panicIf(err)
@@ -208,7 +208,7 @@ func TestWatchApi(t *testing.T) {
w, err := g.client.WatchGet(m) w, err := g.client.WatchGet(m)
panicIf(err) panicIf(err)
testWatch.Metadata.Uid = m.Uid testWatch.Metadata.Uid = m.Uid
w.Url = "" w.Target = ""
assert(*testWatch == *w, "watch should match after reading") assert(*testWatch == *w, "watch should match after reading")
testWatch.Metadata.Name = "yyy" testWatch.Metadata.Name = "yyy"
+1 -1
View File
@@ -56,7 +56,7 @@ func (api *API) WatchApiCreate(w http.ResponseWriter, r *http.Request) {
return return
} }
watch.Url = fission.UrlForFunction(&watch.Function) watch.Target = fission.UrlForFunction(&watch.Function)
uid, err := api.WatchStore.Create(&watch) uid, err := api.WatchStore.Create(&watch)
if err != nil { if err != nil {