Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Integration test should use intent store
Browse files Browse the repository at this point in the history
  • Loading branch information
abishopric committed Jan 17, 2015
1 parent 1745966 commit 8e592ea
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions integration/single-node-slug-deploy/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"time"

"github.com/square/p2/pkg/intent"
"github.com/square/p2/pkg/kv-consul"
"github.com/square/p2/pkg/pods"
"github.com/square/p2/pkg/user"
"github.com/square/p2/pkg/util"
Expand Down Expand Up @@ -136,17 +135,14 @@ func postHelloManifest(dir string) error {
manifest.LaunchableStanzas = map[string]pods.LaunchableStanza{
"hello": stanza,
}
client, err := ppkv.NewClient()
if err != nil {
return err
}
buf := bytes.Buffer{}
err = manifest.Write(&buf)

store, err := intent.LookupStore(intent.Options{})
if err != nil {
return err
}
hostname, _ := os.Hostname()
return client.Put(fmt.Sprintf("%s/%s/hello", intent.INTENT_TREE, hostname), buf.String())
_, err = store.SetPod(hostname, *manifest)
return err
}

func verifyHelloRunning() error {
Expand Down

0 comments on commit 8e592ea

Please sign in to comment.