Commit Graph
40 Commits
Author SHA1 Message Date
jainnikhil30 4cd90163fc make the default JOB_EVENT_BUFFER_SECONDS 1 seconds (#14335) 2023-08-12 07:49:34 +05:30
jainnikhil30 86f6b54eec add the bulk api swagger topic for API reference docs (#14181) 2023-06-28 21:55:38 +05:30
jainnikhil30 64b0e09e87 dont user githubusercontent for containers.conf and podman-containers.conf 2023-03-16 18:04:20 +05:30
jainnikhil30 0de7551477 comment everything related to instance group, will add back once 13584 goes in
linting

linting again

Use the correct role on org permission check

Co-authored-by: Elijah DeLee <kdelee@redhat.com>

Update docs/bulk_api.md

Co-authored-by: Elijah DeLee <kdelee@redhat.com>

Update docs/bulk_api.md

Co-authored-by: Elijah DeLee <kdelee@redhat.com>

Update awx/main/access.py

Co-authored-by: Elijah DeLee <kdelee@redhat.com>

Update awx/main/access.py

Co-authored-by: Elijah DeLee <kdelee@redhat.com>

Update docs/bulk_api.md

Co-authored-by: Alan Rominger <arominge@redhat.com>

fix collection test (#19)

improve readability of through model object creation (#18)

lower num jobs/hosts in tests (#20)

we can test query scaling at lower numbers, to reduce
load in tests. We suspect this was causing some flake
in the tests on PRs

adjust the num of queries
2023-03-08 12:58:12 -05:00
jainnikhil30 47b7bbeda7 make the max host default to 100
Make the max host default 100. We are seeing with moderate number of hosts i.e. 500 hosts having a few host variable each runs into max size of nginx message and nginx rejects the request.
we are therefor keeping the value small so that it doesn't fail with decent number of host variables as well.

remove the 999 hosts test because the default max is 100

fix the credential check

fix the instance groups and execution env permission checks
2023-03-08 12:58:12 -05:00
jainnikhil30 f622d3a1e6 add more functional test for related fields on bulk job and some other minor fixes
fix the functional test

lint fix

functional test fixes
2023-03-08 12:58:12 -05:00
jainnikhil30 ede1b9af92 add more functional tests for prompted fields and fix the lint test
check label permission and fix lint (#13)

* set created by and launch type correctly

This makes "launched_by" get computed right in the tests.

Mysteriously this seemed to work from API browser, but
this seems more correct to have it work this way, and makes
tests actually work.

For "manual" launch types the attribute used to populate "launched_by"
is "created_by". And we already have "is_bulk_job" to indicate that the
job is a bulk job. So lets just use this.

* check label is in an organization you can read
2023-03-08 12:58:12 -05:00
jainnikhil30 7aad16964c removing the duplicate BulkView import 2023-03-08 12:58:12 -05:00
Nikhil b1af27c4f6 add more docs on the bulk job launch feature
better error message
2023-03-08 12:58:12 -05:00
Nikhil 9358d59f20 remove char_prompts and survey password from bulk job
fix the api-lint

fix the api-lint

add the descrition to the bulk job launch module params

 add the description for the description field

 add the description for the description field

add docs for the bulk api

fix the models on the bulk api serializers

fix some of the issues highlighted in the code review

better use of role model

remove comments

better error message

revert the PrimaryKeyRelatedField for unified_job_template and inventory
2023-03-08 12:58:12 -05:00
Nikhil 266ebe5501 add the extra vars support and configuration for max job and hosts
dont do org validation on superuser

make black
2023-03-08 12:58:12 -05:00
Nikhil 861ba8a727 add some helpers functions in validate and some other minor fixes
make black changes

increase the number of queries to 30

fix the flake failure

add functional changes for bulk job launch and some minor fixes

pull changes
2023-03-08 12:58:12 -05:00
jainnikhil30 5062ce1e61 add database connection to the metrics endpoint (#12427)
* add database connection to the metrics endpoint

* bump the counts collector version to 1.2

* check for postgresql as database so to not break the tests
2022-06-27 09:37:23 -04:00
Nikhil 8ed0543b8b add forks to the job details 2022-05-25 20:07:38 +05:30
Nikhil Jain dc2a392f4c forgot to run prettier earlier 2022-02-23 12:09:51 +05:30
Nikhil Jain 61323c7f85 allow more than 400 credential types in drop down while adding new credential 2022-02-23 11:30:55 +05:30
Nikhil Jain 7ff8a3764b add job id to the jobs details page 2022-02-01 10:34:02 +05:30
Nikhil Jain 60d6832971 fix the large file parsing in project sync 2021-03-23 15:17:47 -04:00
Nikhil Jain 0ee49dae76 fix tower collection integration test race condition 2021-03-12 14:57:52 +05:30
Nikhil Jain 2aa30226f4 removing some invalid chars 2021-03-11 20:07:31 +05:30
Nikhil Jain 53da8e0775 removing some invalid chars 2021-03-11 19:50:11 +05:30
Nikhil Jain 8e53453737 remove the extra result in test 2021-03-11 19:35:53 +05:30
Nikhil Jain 80023017a2 fix the tower_user module to update the fields properly 2021-03-11 19:14:50 +05:30
Nikhil Jain 1468e5908a add workflow_job_launch_type in metavars 2021-02-16 18:19:37 +05:30
Nikhil Jain 3ad2bb1bb9 remove whitespaces 2021-02-15 09:31:16 +05:30
Nikhil Jain b177c7b558 add support diff mode in tower_settings module 2021-02-12 08:19:32 +05:30
Nikhil Jain 81875f0971 fix the handling of wrong survey spec 2021-01-22 11:03:44 +05:30
Nikhil Jain 23a852bdab add the empty child group to groups before adding it to the parent group 2020-10-30 14:23:57 +05:30
Nikhil Jain 9eecb24c32 fix smart inventory duplicate hosts 2020-02-28 09:46:44 +05:30
Nikhil Jain e530adde67 fix the sliced job relaunch 2020-02-10 17:35:50 -05:00
Nikhil Jain 374c17751f add ansible_want_ssh_host, rich_params and want_facts to be read from source vars 2020-01-31 08:18:01 -05:00
Nikhil Jain 93dda04fd0 fix the saml_admin_attr not working 2019-12-13 15:11:23 +05:30
Nikhil Jain 0d4e6d7e0b do the sum once and store it in a variable which will be reused 2019-12-13 13:21:49 +05:30
Nikhil Jain 9ae038868c adding instance consumed and remaining capacity to metrics 2019-12-13 13:21:49 +05:30
jainnikhil30 58c4ae6a00 Add scm_update_cache_timeout, job_timeout and custom_virtualenv to tower_project (#51330)
* adding scm_update_cache_timeout and job_timeout to tower_project module

* add support for cache_timeout, job_timeout and custom_venv for tower_project module

* add the version_added
2019-09-27 14:28:57 -04:00
jainnikhil30 a32981242b Fixing exception import for tower modules (#50447)
* fixing the exception import from tower modules

* Adding tests for checking tower modules are failing with correct msg

* fixed failing tests

* fixed failing test in tower_team
2019-09-27 14:28:56 -04:00
jainnikhil30 d9d56b4b50 Add 'tower_settings' module for managing Ansible Tower Settings (#43933)
* add the tower_settings module
2019-09-27 14:28:52 -04:00
jainnikhil30 88a4362a7a add inventory name and id to meta vars 2019-07-05 20:37:36 +05:30
jainnikhil30 dbf8df479b use path instead of *path while dong the join 2019-07-02 07:55:35 -04:00
jainnikhil30 764947c1ae fix the hashivault v2 lookup 2019-07-02 07:55:32 -04:00