[ARVADOS] updated: 655e654e99a00a248639a910923e0ce66c16581c

Git user git at public.curoverse.com
Mon Apr 25 15:44:52 EDT 2016


Summary of changes:
 tools/keep-rsync/keep-rsync_test.go | 12 ++++++++++++
 1 file changed, 12 insertions(+)

       via  655e654e99a00a248639a910923e0ce66c16581c (commit)
      from  f5617be935a121dc339effcaafebb569109ebe5b (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 655e654e99a00a248639a910923e0ce66c16581c
Author: radhika <radhika at curoverse.com>
Date:   Mon Apr 25 15:38:24 2016 -0400

    8936: add test to verify blobSignatureTTL from discovery when it is not provided.

diff --git a/tools/keep-rsync/keep-rsync_test.go b/tools/keep-rsync/keep-rsync_test.go
index bdae39a..09609eb 100644
--- a/tools/keep-rsync/keep-rsync_test.go
+++ b/tools/keep-rsync/keep-rsync_test.go
@@ -417,6 +417,18 @@ func (s *ServerNotRequiredSuite) TestLoadConfig_ErrorLoadingSrcConfig(c *C) {
 	c.Assert(strings.Contains(err.Error(), "no such file or directory"), Equals, true)
 }
 
+func (s *ServerNotRequiredSuite) TestSetupKeepClient_NoBlobSignatureTTL(c *C) {
+	var srcConfig apiConfig
+	srcConfig.APIHost = os.Getenv("ARVADOS_API_HOST")
+	srcConfig.APIToken = arvadostest.DataManagerToken
+	srcConfig.APIHostInsecure = matchTrue.MatchString(os.Getenv("ARVADOS_API_HOST_INSECURE"))
+	arvadostest.StartKeep(2, false)
+
+	_, ttl, err := setupKeepClient(srcConfig, srcKeepServicesJSON, false, 0, 0)
+	c.Check(err, IsNil)
+	c.Assert(ttl, Equals, blobSignatureTTL)
+}
+
 func setupConfigFile(c *C, name string) *os.File {
 	// Setup a config file
 	file, err := ioutil.TempFile(os.TempDir(), name)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list