7167: rename the newly added StopKeepServers as StopKeepWithParams; it now sounds...
authorradhika <radhika@curoverse.com>
Thu, 15 Oct 2015 15:56:36 +0000 (11:56 -0400)
committerradhika <radhika@curoverse.com>
Thu, 15 Oct 2015 15:56:36 +0000 (11:56 -0400)
sdk/go/arvadostest/run_servers.go
tools/keep-rsync/keep-rsync_test.go

index d20a0959a6bbf078bfc311ddca298d440591f65d..e922104aeb75096b4a6f36b6648e74af0abe821d 100644 (file)
@@ -111,7 +111,7 @@ func StartKeepWithParams(numKeepServers int, enforcePermissions bool) {
        defer os.Chdir(cwd)
        chdirToPythonTests()
 
-       cmdArgs := []string{"run_test_server.py", "start_keep", "--num-keep-servers", strconv.Itoa(numKeepServers)}
+       cmdArgs := []string{"run_test_server.py", "start_keep", "--num-keep-servers", strconv.Itoa(numKeepServers)}
        if enforcePermissions {
                cmdArgs = append(cmdArgs, "--keep-enforce-permissions")
        }
@@ -129,13 +129,13 @@ func StartKeepWithParams(numKeepServers int, enforcePermissions bool) {
 }
 
 func StopKeep() {
-       StopKeepServers(2)
+       StopKeepWithParams(2)
 }
 
 // StopKeepServers stops keep servers that were started with
 // StartKeep. numkeepServers should be the same value that was passed
 // to StartKeep.
-func StopKeepServers(numKeepServers int) {
+func StopKeepWithParams(numKeepServers int) {
        cwd, _ := os.Getwd()
        defer os.Chdir(cwd)
        chdirToPythonTests()
index bb9d4a6dfe54fa53a796b8703a04680e74f2a89b..299df5aeb0a6317a71677b76ac76a6ef813e9036 100644 (file)
@@ -51,7 +51,7 @@ func (s *ServerRequiredSuite) SetUpTest(c *C) {
 }
 
 func (s *ServerRequiredSuite) TearDownTest(c *C) {
-       arvadostest.StopKeepServers(3)
+       arvadostest.StopKeepWithParams(3)
 }
 
 var testKeepServicesJSON = "{ \"kind\":\"arvados#keepServiceList\", \"etag\":\"\", \"self_link\":\"\", \"offset\":null, \"limit\":null, \"items\":[ { \"href\":\"/keep_services/zzzzz-bi6l4-123456789012340\", \"kind\":\"arvados#keepService\", \"etag\":\"641234567890enhj7hzx432e5\", \"uuid\":\"zzzzz-bi6l4-123456789012340\", \"owner_uuid\":\"zzzzz-tpzed-123456789012345\", \"service_host\":\"keep0.zzzzz.arvadosapi.com\", \"service_port\":25107, \"service_ssl_flag\":false, \"service_type\":\"disk\", \"read_only\":false }, { \"href\":\"/keep_services/zzzzz-bi6l4-123456789012341\", \"kind\":\"arvados#keepService\", \"etag\":\"641234567890enhj7hzx432e5\", \"uuid\":\"zzzzz-bi6l4-123456789012341\", \"owner_uuid\":\"zzzzz-tpzed-123456789012345\", \"service_host\":\"keep0.zzzzz.arvadosapi.com\", \"service_port\":25108, \"service_ssl_flag\":false, \"service_type\":\"disk\", \"read_only\":false } ], \"items_available\":2 }"