ooyala / atlantis-manager

Manager for Atlantis
Apache License 2.0
2 stars 8 forks source link

Test Failing: "App hello-go is not registered" #61

Open coolbrg opened 9 years ago

coolbrg commented 9 years ago

I am trying to run the tests of atlantis-manager using command make test. I updated atlantis/manager/client/client_test.go file with the default dev Region I have.

I am getting following error:

vagrant@atlantis-aquarium-vm:~/repos/atlantis-manager$ make test
Testing atlantis/manager/api...
?       atlantis/manager/api    [no test files]
Testing atlantis/manager/api/graph...
?       atlantis/manager/api/graph  [no test files]
Testing atlantis/manager/builder...
?       atlantis/manager/builder    [no test files]
Testing atlantis/manager/client...
2015/07/28 17:29:24 == Registering dummy app ==
2015/07/28 17:29:24 Register App...
2015/07/28 17:29:24 == Listing apps and checking existence ==
2015/07/28 17:29:24 List Registered Apps...
2015/07/28 17:29:24 == Unregistering dummy app ==
2015/07/28 17:29:24 Unregister App...
2015/07/28 17:29:24 List Apps...
2015/07/28 17:29:24 == Creating environment ==
2015/07/28 17:29:24 Update Env...
2015/07/28 17:29:24 List Envs...
2015/07/28 17:29:24 == Setting cmk dependency ==
2015/07/28 17:29:24 Add Depender Env Data For Depender App...
2015/07/28 17:29:24 == Deploying hello-go ==
2015/07/28 17:29:24 Deploy...
2015/07/28 17:29:24 -> ID: pqEZwznzHko9dEwD9a7u
2015/07/28 17:29:24 Waiting...
2015/07/28 17:29:24 == Deleting environment ==
2015/07/28 17:29:24 e2e-test-2015-07-28T17-29-24+0530
2015/07/28 17:29:24 Delete Env...
--- FAIL: TestFullDeploy (0.42 seconds)
    client_test.go:81: In field *types.ManagerListAppsReply.Apps, expected value hello-go not found
    client_test.go:28: Error executing command:
          zookeeper: get "/atlantis/apps/dev/cmk": no node
    client_test.go:28: Error executing command:
          App hello-go is not registered: zookeeper: get "/atlantis/apps/dev/hello-go": no node
    client_test.go:209: Bad response from manager for deploy
FAIL
FAIL    atlantis/manager/client 0.696s
make: *** [test] Error 1

Is this line in atlantis/manager/client/client_test.g supposed to have hello-go app registered before the test? If yes how?

Regards, Budhram

edanaher commented 9 years ago

Yep. This test assumes that you have things reasonably set up already; it's designed to be our smoke test for deploying new components. It's not particularly generic, as it currently stands.

On Tue, Jul 28, 2015 at 5:02 AM, Budhram Gurung notifications@github.com wrote:

I am trying to run the tests of atlantis-manager using command make test. I updated atlantis/manager/client/client_test.go file with the default dev Region I have.

I am getting following error:

vagrant@atlantis-aquarium-vm:~/repos/atlantis-manager$ make test Testing atlantis/manager/api... ? atlantis/manager/api [no test files] Testing atlantis/manager/api/graph... ? atlantis/manager/api/graph [no test files] Testing atlantis/manager/builder... ? atlantis/manager/builder [no test files] Testing atlantis/manager/client... 2015/07/28 17:29:24 == Registering dummy app == 2015/07/28 17:29:24 Register App... 2015/07/28 17:29:24 == Listing apps and checking existence == 2015/07/28 17:29:24 List Registered Apps... 2015/07/28 17:29:24 == Unregistering dummy app == 2015/07/28 17:29:24 Unregister App... 2015/07/28 17:29:24 List Apps... 2015/07/28 17:29:24 == Creating environment == 2015/07/28 17:29:24 Update Env... 2015/07/28 17:29:24 List Envs... 2015/07/28 17:29:24 == Setting cmk dependency == 2015/07/28 17:29:24 Add Depender Env Data For Depender App... 2015/07/28 17:29:24 == Deploying hello-go == 2015/07/28 17:29:24 Deploy... 2015/07/28 17:29:24 -> ID: pqEZwznzHko9dEwD9a7u 2015/07/28 17:29:24 Waiting... 2015/07/28 17:29:24 == Deleting environment == 2015/07/28 17:29:24 e2e-test-2015-07-28T17-29-24+0530 2015/07/28 17:29:24 Delete Env... --- FAIL: TestFullDeploy (0.42 seconds) client_test.go:81: In field _types.ManagerListAppsReply.Apps, expected value hello-go not found client_test.go:28: Error executing command: zookeeper: get "/atlantis/apps/dev/cmk": no node client_test.go:28: Error executing command: App hello-go is not registered: zookeeper: get "/atlantis/apps/dev/hello-go": no node clienttest.go:209: Bad response from manager for deploy FAIL FAIL atlantis/manager/client 0.696s make: ** [test] Error 1

Is this line https://goo.gl/QuzsMj in atlantis/manager/client/client_test.g supposed to have hello-go app registered before the test? If yes how?

Regards, Budhram

— Reply to this email directly or view it on GitHub https://github.com/ooyala/atlantis-manager/issues/61.