Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow Job Template Node verbosity option list has an invalid option #6196

Closed
squidboylan opened this issue Mar 5, 2020 · 3 comments
Closed

Comments

@squidboylan
Copy link
Contributor

squidboylan commented Mar 5, 2020

ISSUE TYPE
  • Bug Report
SUMMARY
ENVIRONMENT
  • AWX version: 9.2.0
  • AWX install method: docker on linux
  • Ansible version:
  • Operating System: Ubuntu 18.04
  • Web Browser: Firefox Nightly
STEPS TO REPRODUCE

Navigate to /api/v2/workflow_job_template_nodes/ and click the OPTIONS button. Then search for verbosity, the 3rd match is:

            "verbosity": {
                "type": "choice",
                "label": "Verbosity",
                "filterable": false,
                "choices": [
                    [
                        "",
                        "---------"
                    ],
                    [
                        0,
                        "0 (Normal)"
                    ],
                    [
                        1,
                        "1 (Verbose)"
                    ],
                    [
                        2,
                        "2 (More Verbose)"
                    ],
                    [
                        3,
                        "3 (Debug)"
                    ],
                    [
                        4,
                        "4 (Connection Debug)"
                    ],
                    [
                        5,
                        "5 (WinRM Debug)"
                    ]
                ]
            },
EXPECTED RESULTS

The first choice is invalid and shouldnt be there

ACTUAL RESULTS

See above

@awxbot awxbot added the type:bug label Mar 5, 2020
@kdelee
Copy link
Member

kdelee commented Mar 5, 2020

may be best to add unit test coverage for this in awx if possible

@jbradberry was pointing out https://github.com/ansible/awx/pull/5536/files#diff-596536a0e5fde93944c40ae984189f0aR104 may have some faulty logic in it

@squidboylan
Copy link
Contributor Author

This bug is fixed, can we close this or do we want to wait for some unit test coverage?

@kdelee kdelee self-assigned this Mar 9, 2020
@kdelee
Copy link
Member

kdelee commented Mar 9, 2020

@squidboylan when you verify the bug is fixed, you have power to close and remove needs_test

I do agree that perhaps we could do some unit test coverage for this. If you spend time figuring out how to do that, would be create to move alot of our coverage for OPTIONS type stuff to unit tests as CLI depends heavily on that and is easy AFAIK to do via unit tests.

FWIW I created a node using null as verbosity and it worked.

@kdelee kdelee closed this as completed Mar 9, 2020
TheRealHaoLiu pushed a commit to TheRealHaoLiu/awx that referenced this issue Feb 8, 2023
[4.3] backport - initial commit of new machinery to handle redirects for webhook notifications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants