ref(expansion): move python code out of cmd

pull/291/head
Adam Reese 9 years ago
parent 01ad0ffa00
commit 09796298ea

@ -37,7 +37,7 @@ var importFileNames = []string{
var validFileName = "../test/ValidContent.yaml"
var outputFileName = "../test/ExpectedOutput.yaml"
var archiveFileName = "../test/TestArchive.tar"
var expanderName = "../expansion/expansion.py"
var expanderName = "../../../expansion/expansion.py"
type ExpanderTestCase struct {
Description string

@ -33,7 +33,7 @@ import (
var port = flag.Int("port", 8080, "Port to listen on")
// path to expansion binary
var expansionBinary = flag.String("expansion_binary", "../expansion/expansion.py",
var expansionBinary = flag.String("expansion_binary", "../../../expansion/expansion.py",
"The path to the expansion binary that will be used to expand the template.")
func main() {

@ -26,8 +26,8 @@ import (
"reflect"
"testing"
"github.com/kubernetes/deployment-manager/pkg/common"
"github.com/kubernetes/deployment-manager/cmd/expandybird/expander"
"github.com/kubernetes/deployment-manager/pkg/common"
"github.com/kubernetes/deployment-manager/pkg/util"
restful "github.com/emicklei/go-restful"
@ -112,7 +112,7 @@ var ServiceWrapperTestCases = []ServiceWrapperTestCase{
}
func TestServiceWrapper(t *testing.T) {
backend := expander.NewExpander("../expansion/expansion.py")
backend := expander.NewExpander("../../../expansion/expansion.py")
wrapper := NewService(NewExpansionHandler(backend))
container := restful.NewContainer()
container.ServeMux = http.NewServeMux()

Loading…
Cancel
Save