added tests for explicit and deleted credential

In doing so, moved tests from jobs_monolithic
This commit is contained in:
Chris Meyers
2015-04-28 16:57:03 -04:00
parent 9e67169cb9
commit 8d13cafd7b
4 changed files with 203 additions and 99 deletions

View File

@@ -264,6 +264,21 @@ class BaseJobTestMixin(BaseTestMixin):
password=TEST_SSH_KEY_DATA,
created_by=self.user_sue,
)
self.cred_sue_ask = self.user_sue.credentials.create(
username='sue',
password='ASK',
created_by=self.user_sue,
)
self.cred_sue_ask_many = self.user_sue.credentials.create(
username='sue',
password='ASK',
become_method='sudo',
become_username='root',
become_password='ASK',
ssh_key_data=TEST_SSH_KEY_DATA_LOCKED,
ssh_key_unlock='ASK',
created_by=self.user_sue,
)
self.cred_bob = self.user_bob.credentials.create(
username='bob',
password='ASK',