Added and updated several credential creation and listing API endpoints

Should addres #1379
This commit is contained in:
Akita Noek
2016-04-01 16:57:08 -04:00
parent 28acc9516d
commit 23aca083eb
6 changed files with 116 additions and 58 deletions

View File

@@ -92,6 +92,13 @@ def deploy_jobtemplate(project, inventory, credential):
def team(organization):
return organization.teams.create(name='test-team')
@pytest.fixture
def team_member(user, team):
ret = user('team-member', False)
team.member_role.members.add(ret)
return ret
@pytest.fixture
@mock.patch.object(Project, "update", lambda self, **kwargs: None)
def project(instance, organization):