Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
another set of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chambridge committed Jul 14, 2017
1 parent 99da116 commit 07a4159
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/test_clicommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,30 @@ def test_a_auth_add(self):
"./privatekey", "--vault",
TMP_VAULT_PASS])

def test_a_auth_add_again(self):
"""Testing the auth add command execution"""
self._run_test(AuthAddCommand(), ["auth", "add", "--name", "auth2",
"--username", "user", "--sshkeyfile",
"./privatekey", "--vault",
TMP_VAULT_PASS])

def test_a_profile_add(self):
"""Testing the profile add command execution"""
self._run_test(ProfileAddCommand(), ["profile", "add", "--name", "p1",
"--hosts", "1.2.3.4",
"--auth", "auth1",
"--vault", TMP_VAULT_PASS])

def test_a_profile_add_existing(self):
"""Testing the profile add command execution"""
try:
self._run_test(ProfileAddCommand(), ["profile", "add", "--name",
"p1", "--hosts", "1.2.3.4",
"--auth", "auth1",
"--vault", TMP_VAULT_PASS])
except SystemExit:
pass

def test_auth_edit(self):
"""Testing the auth edit command execution"""
self._run_test(AuthEditCommand(), ["auth", "edit", "--name", "auth1",
Expand Down

0 comments on commit 07a4159

Please sign in to comment.