Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coolbrg opened this issue Jul 28, 2015 · 1 comment
Open

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

coolbrg opened this issue Jul 28, 2015 · 1 comment

Comments

@coolbrg
Copy link
Contributor

coolbrg commented Jul 28, 2015

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
Copy link
Contributor

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 [email protected]
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
client_test.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
#61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants