Move Function and HTTPTrigger types to top level 'fission' package

This commit is contained in:
Soam Vasani
2016-09-09 15:04:15 -07:00
parent 796a9810a4
commit fb08d98037
8 changed files with 53 additions and 24 deletions
+4 -2
View File
@@ -20,11 +20,13 @@ import (
"fmt"
"testing"
"time"
"github.com/platform9/fission"
)
func TestRouter(t *testing.T) {
fmap := makeFunctionServiceMap()
fn := &Function{Name: "foo", Uid: "xxx"}
fn := &fission.Function{Name: "foo", Uid: "xxx"}
testResponseString := "hi"
testServiceUrl := createBackendService(testResponseString)
@@ -33,7 +35,7 @@ func TestRouter(t *testing.T) {
triggers := makeHTTPTriggerSet(fmap, "", "")
triggerUrl := "/foo"
triggers.triggers = append(triggers.triggers, HTTPTrigger{triggerUrl, *fn})
triggers.triggers = append(triggers.triggers, fission.HTTPTrigger{triggerUrl, *fn})
port := 4242
go server(port, triggers)