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

Commit 8e592ea

Browse files
author
abishopric
committed
Integration test should use intent store
1 parent 1745966 commit 8e592ea

File tree

1 file changed

+4
-8
lines changed
  • integration/single-node-slug-deploy

1 file changed

+4
-8
lines changed

integration/single-node-slug-deploy/check.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"time"
1515

1616
"github.com/square/p2/pkg/intent"
17-
"github.com/square/p2/pkg/kv-consul"
1817
"github.com/square/p2/pkg/pods"
1918
"github.com/square/p2/pkg/user"
2019
"github.com/square/p2/pkg/util"
@@ -136,17 +135,14 @@ func postHelloManifest(dir string) error {
136135
manifest.LaunchableStanzas = map[string]pods.LaunchableStanza{
137136
"hello": stanza,
138137
}
139-
client, err := ppkv.NewClient()
140-
if err != nil {
141-
return err
142-
}
143-
buf := bytes.Buffer{}
144-
err = manifest.Write(&buf)
138+
139+
store, err := intent.LookupStore(intent.Options{})
145140
if err != nil {
146141
return err
147142
}
148143
hostname, _ := os.Hostname()
149-
return client.Put(fmt.Sprintf("%s/%s/hello", intent.INTENT_TREE, hostname), buf.String())
144+
_, err = store.SetPod(hostname, *manifest)
145+
return err
150146
}
151147

152148
func verifyHelloRunning() error {

0 commit comments

Comments
 (0)