projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 7492-keepproxy-upstream-errors
[arvados.git]
/
services
/
keepstore
/
pull_worker_test.go
diff --git
a/services/keepstore/pull_worker_test.go
b/services/keepstore/pull_worker_test.go
index ed0d24ae8cb476459bb05f17aa48667d2951a8c4..c6a41953842b6c2ab9403c84c04d17cee839fabd 100644
(file)
--- a/
services/keepstore/pull_worker_test.go
+++ b/
services/keepstore/pull_worker_test.go
@@
-91,10
+91,10
@@
type PullWorkerTestData struct {
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_two_locators(c *C) {
defer teardown()
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_two_locators(c *C) {
defer teardown()
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_two_locators",
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_two_locators",
- req: RequestTester{"/pull", data
_manager_t
oken, "PUT", firstPullList},
+ req: RequestTester{"/pull", data
ManagerT
oken, "PUT", firstPullList},
responseCode: http.StatusOK,
responseBody: "Received 2 pull requests\n",
readContent: "hello",
responseCode: http.StatusOK,
responseBody: "Received 2 pull requests\n",
readContent: "hello",
@@
-108,10
+108,10
@@
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_two_locators(c *C) {
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_one_locator(c *C) {
defer teardown()
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_one_locator(c *C) {
defer teardown()
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_one_locator",
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_one_locator",
- req: RequestTester{"/pull", data
_manager_t
oken, "PUT", secondPullList},
+ req: RequestTester{"/pull", data
ManagerT
oken, "PUT", secondPullList},
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "hola",
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "hola",
@@
-125,10
+125,10
@@
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_one_locator(c *C) {
func (s *PullWorkerTestSuite) TestPullWorker_error_on_get_one_locator(c *C) {
defer teardown()
func (s *PullWorkerTestSuite) TestPullWorker_error_on_get_one_locator(c *C) {
defer teardown()
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_get_one_locator",
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_get_one_locator",
- req: RequestTester{"/pull", data
_manager_t
oken, "PUT", secondPullList},
+ req: RequestTester{"/pull", data
ManagerT
oken, "PUT", secondPullList},
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "unused",
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "unused",
@@
-142,10
+142,10
@@
func (s *PullWorkerTestSuite) TestPullWorker_error_on_get_one_locator(c *C) {
func (s *PullWorkerTestSuite) TestPullWorker_error_on_get_two_locators(c *C) {
defer teardown()
func (s *PullWorkerTestSuite) TestPullWorker_error_on_get_two_locators(c *C) {
defer teardown()
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_get_two_locators",
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_get_two_locators",
- req: RequestTester{"/pull", data
_manager_t
oken, "PUT", firstPullList},
+ req: RequestTester{"/pull", data
ManagerT
oken, "PUT", firstPullList},
responseCode: http.StatusOK,
responseBody: "Received 2 pull requests\n",
readContent: "unused",
responseCode: http.StatusOK,
responseBody: "Received 2 pull requests\n",
readContent: "unused",
@@
-159,10
+159,10
@@
func (s *PullWorkerTestSuite) TestPullWorker_error_on_get_two_locators(c *C) {
func (s *PullWorkerTestSuite) TestPullWorker_error_on_put_one_locator(c *C) {
defer teardown()
func (s *PullWorkerTestSuite) TestPullWorker_error_on_put_one_locator(c *C) {
defer teardown()
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_put_one_locator",
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_put_one_locator",
- req: RequestTester{"/pull", data
_manager_t
oken, "PUT", secondPullList},
+ req: RequestTester{"/pull", data
ManagerT
oken, "PUT", secondPullList},
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "hello hello",
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "hello hello",
@@
-176,10
+176,10
@@
func (s *PullWorkerTestSuite) TestPullWorker_error_on_put_one_locator(c *C) {
func (s *PullWorkerTestSuite) TestPullWorker_error_on_put_two_locators(c *C) {
defer teardown()
func (s *PullWorkerTestSuite) TestPullWorker_error_on_put_two_locators(c *C) {
defer teardown()
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_put_two_locators",
testData := PullWorkerTestData{
name: "TestPullWorker_error_on_put_two_locators",
- req: RequestTester{"/pull", data
_manager_t
oken, "PUT", firstPullList},
+ req: RequestTester{"/pull", data
ManagerT
oken, "PUT", firstPullList},
responseCode: http.StatusOK,
responseBody: "Received 2 pull requests\n",
readContent: "hello again",
responseCode: http.StatusOK,
responseBody: "Received 2 pull requests\n",
readContent: "hello again",
@@
-202,10
+202,10
@@
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_two_items_latest_repla
pullq.ReplaceQueue(makeTestWorkList(firstInput))
testPullLists["Added_before_actual_test_item"] = string(1)
pullq.ReplaceQueue(makeTestWorkList(firstInput))
testPullLists["Added_before_actual_test_item"] = string(1)
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_two_items_latest_replacing_old",
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_two_items_latest_replacing_old",
- req: RequestTester{"/pull", data
_manager_t
oken, "PUT", secondPullList},
+ req: RequestTester{"/pull", data
ManagerT
oken, "PUT", secondPullList},
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "hola de nuevo",
responseCode: http.StatusOK,
responseBody: "Received 1 pull requests\n",
readContent: "hola de nuevo",
@@
-217,14
+217,14
@@
func (s *PullWorkerTestSuite) TestPullWorkerPullList_with_two_items_latest_repla
}
// In this case, the item will not be placed on pullq
}
// In this case, the item will not be placed on pullq
-func (s *PullWorkerTestSuite) TestPullWorker_invalid_data
_manager_t
oken(c *C) {
+func (s *PullWorkerTestSuite) TestPullWorker_invalid_data
ManagerT
oken(c *C) {
defer teardown()
defer teardown()
- data
_manager_t
oken = "DATA MANAGER TOKEN"
+ data
ManagerT
oken = "DATA MANAGER TOKEN"
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_two_locators",
testData := PullWorkerTestData{
name: "TestPullWorkerPullList_with_two_locators",
- req: RequestTester{"/pull", "invalid_data
_manager_t
oken", "PUT", firstPullList},
+ req: RequestTester{"/pull", "invalid_data
ManagerT
oken", "PUT", firstPullList},
responseCode: http.StatusUnauthorized,
responseBody: "Unauthorized\n",
readContent: "hello",
responseCode: http.StatusUnauthorized,
responseBody: "Unauthorized\n",
readContent: "hello",