[ARVADOS] updated: 77504f6d369bd7bd323748d5347d6d99ed9c75ca
git at public.curoverse.com
git at public.curoverse.com
Wed May 21 16:41:41 EDT 2014
Summary of changes:
.../src/arvados.org/keepproxy/keepproxy_test.go | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 services/keep/src/arvados.org/keepproxy/keepproxy_test.go
via 77504f6d369bd7bd323748d5347d6d99ed9c75ca (commit)
from f8743ac8fa1ed9dc8c7c4f7a23803ffe8721cfa6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 77504f6d369bd7bd323748d5347d6d99ed9c75ca
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Wed May 21 16:32:23 2014 -0400
1885: Stubbed out integration test for proxy
diff --git a/services/keep/src/arvados.org/keepproxy/keepproxy_test.go b/services/keep/src/arvados.org/keepproxy/keepproxy_test.go
new file mode 100644
index 0000000..d4f3ef4
--- /dev/null
+++ b/services/keep/src/arvados.org/keepproxy/keepproxy_test.go
@@ -0,0 +1,43 @@
+package main
+
+import (
+ "arvados.org/keepclient"
+ "fmt"
+ . "gopkg.in/check.v1"
+ "os"
+ "os/exec"
+ "strings"
+ "testing"
+)
+
+// Gocheck boilerplate
+func Test(t *testing.T) {
+ TestingT(t)
+}
+
+// Gocheck boilerplate
+var _ = Suite(&ServerRequiredSuite{})
+
+// Tests that require the Keep server running
+type ServerRequiredSuite struct{}
+
+func pythonDir() string {
+ gopath := os.Getenv("GOPATH")
+ return fmt.Sprintf("%s/../python", strings.Split(gopath, ":")[0])
+}
+
+func (s *ServerRequiredSuite) SetUpSuite(c *C) {
+ os.Chdir(pythonDir())
+ exec.Command("python", "run_test_server.py", "start").Run()
+ exec.Command("python", "run_test_server.py", "start_keep").Run()
+}
+
+func (s *ServerRequiredSuite) TearDownSuite(c *C) {
+ os.Chdir(pythonDir())
+ exec.Command("python", "run_test_server.py", "stop_keep").Run()
+ exec.Command("python", "run_test_server.py", "stop").Run()
+}
+
+func (s *ServerRequiredSuite) TestPutAndGet(c *C) {
+ kc := keepclient.KeepClient{"localhost", "", true, 29950, nil, 2, nil, true}
+}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list