當前位置: 首頁>>代碼示例>>Golang>>正文


Golang arvadostest.StopKeep函數代碼示例

本文整理匯總了Golang中git/curoverse/com/arvados/git/sdk/go/arvadostest.StopKeep函數的典型用法代碼示例。如果您正苦於以下問題:Golang StopKeep函數的具體用法?Golang StopKeep怎麽用?Golang StopKeep使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了StopKeep函數的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: SetUpSuite

func (s *NoKeepServerSuite) SetUpSuite(c *C) {
	arvadostest.StartAPI()
	// We need API to have some keep services listed, but the
	// services themselves should be unresponsive.
	arvadostest.StartKeep(2, false)
	arvadostest.StopKeep(2)
}
開發者ID:Kunde21,項目名稱:arvados,代碼行數:7,代碼來源:keepproxy_test.go

示例2: TearDownSuite

func (s *ServerRequiredSuite) TearDownSuite(c *C) {
	if *no_server {
		return
	}
	arvadostest.StopKeep()
	arvadostest.StopAPI()
}
開發者ID:WangZhenfei,項目名稱:arvados,代碼行數:7,代碼來源:keepclient_test.go

示例3: TearDownSuite

func (s *integrationSuite) TearDownSuite(c *check.C) {
	if testing.Short() {
		c.Skip("-short")
	}
	arvadostest.StopKeep(4)
	arvadostest.StopAPI()
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:7,代碼來源:integration_test.go

示例4: Test_doMain_WithNoSuchBlockHashFile

func (s *DoMainTestSuite) Test_doMain_WithNoSuchBlockHashFile(c *C) {
	config := setupConfigFile(c, "config")
	defer os.Remove(config)

	arvadostest.StartKeep(2, false)
	defer arvadostest.StopKeep(2)

	args := []string{"-config", config, "-block-hash-file", "no-such-file"}
	err := doMain(args)
	c.Assert(strings.Contains(err.Error(), "no such file or directory"), Equals, true)
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:11,代碼來源:keep-block-check_test.go

示例5: Test_doMain_WithNoBlockHashFile

func (s *DoMainTestSuite) Test_doMain_WithNoBlockHashFile(c *C) {
	config := setupConfigFile(c, "config")
	defer os.Remove(config)

	// Start keepservers.
	arvadostest.StartKeep(2, false)
	defer arvadostest.StopKeep(2)

	args := []string{"-config", config}
	err := doMain(args)
	c.Assert(strings.Contains(err.Error(), "block-hash-file not specified"), Equals, true)
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:12,代碼來源:keep-block-check_test.go

示例6: TestPullWorkerIntegration_GetExistingLocator

// Do a get on a block that exists on one of the keep servers.
// The setup method will create this block before doing the get.
func TestPullWorkerIntegration_GetExistingLocator(t *testing.T) {
	testData := PullWorkIntegrationTestData{
		Name:     "TestPullWorkerIntegration_GetLocator",
		Locator:  "5d41402abc4b2a76b9719d911017c592",
		Content:  "hello",
		GetError: "",
	}

	pullRequest := SetupPullWorkerIntegrationTest(t, testData, true)
	defer arvadostest.StopAPI()
	defer arvadostest.StopKeep(2)

	performPullWorkerIntegrationTest(testData, pullRequest, t)
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:16,代碼來源:pull_worker_integration_test.go

示例7: Test_doMainWithSrcAndDstConfig

func (s *DoMainTestSuite) Test_doMainWithSrcAndDstConfig(c *C) {
	srcConfig := setupConfigFile(c, "src")
	dstConfig := setupConfigFile(c, "dst")
	args := []string{"-src", srcConfig.Name(), "-dst", dstConfig.Name()}
	os.Args = append(os.Args, args...)

	// Start keepservers. Since we are not doing any tweaking as
	// in setupRsync func, kcSrc and kcDst will be the same and no
	// actual copying to dst will happen, but that's ok.
	arvadostest.StartKeep(2, false)
	defer arvadostest.StopKeep(2)

	err := doMain()
	c.Check(err, IsNil)
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:15,代碼來源:keep-rsync_test.go

示例8: Test_doMain

func (s *DoMainTestSuite) Test_doMain(c *C) {
	// Start keepservers.
	arvadostest.StartKeep(2, false)
	defer arvadostest.StopKeep(2)

	config := setupConfigFile(c, "config")
	defer os.Remove(config)

	locatorFile := setupBlockHashFile(c, "block-hash", []string{TestHash, TestHash2})
	defer os.Remove(locatorFile)

	args := []string{"-config", config, "-block-hash-file", locatorFile, "-v"}
	err := doMain(args)
	c.Check(err, NotNil)
	c.Assert(err.Error(), Equals, "Block verification failed for 2 out of 2 blocks with matching prefix.")
	checkErrorLog(c, []string{TestHash, TestHash2}, "Error verifying block", "Block not found")
	c.Assert(strings.Contains(logBuffer.String(), "Verifying block 1 of 2"), Equals, true)
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:18,代碼來源:keep-block-check_test.go

示例9: TearDownDataManagerTest

func TearDownDataManagerTest(t *testing.T) {
	arvadostest.StopKeep(2)
	arvadostest.StopAPI()
	summary.WriteDataTo = ""
	collection.HeapProfileFilename = ""
}
開發者ID:aflyhorse,項目名稱:arvados,代碼行數:6,代碼來源:datamanager_test.go

示例10: TearDownSuite

func (s *IntegrationSuite) TearDownSuite(c *check.C) {
	arvadostest.StopKeep(2)
	arvadostest.StopAPI()
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:4,代碼來源:server_test.go

示例11: TearDownSuite

func (s *ServerRequiredSuite) TearDownSuite(c *C) {
	arvadostest.StopKeep(2)
	arvadostest.StopAPI()
}
開發者ID:Kunde21,項目名稱:arvados,代碼行數:4,代碼來源:keepproxy_test.go

示例12: TearDownTest

func (s *ServerRequiredSuite) TearDownTest(c *C) {
	arvadostest.StopKeep(3)
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:3,代碼來源:keep-rsync_test.go

示例13: TearDownTest

func (s *ServerRequiredSuite) TearDownTest(c *C) {
	arvadostest.StopKeep(2)
	log.SetOutput(os.Stdout)
	log.Printf("%v", logBuffer.String())
}
開發者ID:pombredanne,項目名稱:arvados,代碼行數:5,代碼來源:keep-block-check_test.go

示例14: TearDownDataManagerTest

func TearDownDataManagerTest(t *testing.T) {
	arvadostest.StopKeep()
	arvadostest.StopAPI()
}
開發者ID:brainstorm,項目名稱:arvados,代碼行數:4,代碼來源:datamanager_test.go


注:本文中的git/curoverse/com/arvados/git/sdk/go/arvadostest.StopKeep函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。