fixup return values for bulk launch and host create in awxkit

Enabled the params bulk job

make black

make black again

Fixed inventory and organization input params for bulk modules

add collection integration tests

Fix cli return errors

fix test completeness
This commit is contained in:
Elijah DeLee
2023-02-03 10:08:24 -05:00
parent 266ebe5501
commit 9e037f1a02
11 changed files with 365 additions and 42 deletions

View File

@@ -10,3 +10,12 @@ class Bulk(base.Base):
page.register_page([resources.bulk, (resources.bulk, 'get')], Bulk)
class BulkJobLaunch(base.Base):
def post(self, payload={}):
result = self.connection.post(self.endpoint, payload)
return self.walk(result.json()['url'])
page.register_page(resources.bulk_job_launch, BulkJobLaunch)

View File

@@ -14,6 +14,7 @@ class Resources(object):
_auth = 'auth/'
_authtoken = 'authtoken/'
_bulk = 'bulk/'
_bulk_job_launch = 'bulk/job_launch/'
_config = 'config/'
_config_attach = 'config/attach/'
_credential = r'credentials/\d+/'