diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/0.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/0.json new file mode 100644 index 000000000..a845537c3 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/0.json @@ -0,0 +1,16 @@ +{ + "name": "test[00-cd /tmp && ansible-navigator collections --ee True --ll debug --mode interactive --eev $ANSIBLE_COLLECTIONS_PATH/collections:/tmp/collections_to_volmount:Z --senv ANSIBLE_COLLECTIONS_PATH=/tmp/collections_to_volmount-ansible-navigator collections top window]", + "index": 0, + "comment": "ansible-navigator collections top window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " NAME VERSION SHADOWED TYPE PATH", + "0│company_name.coll_1 1.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_1", + "1│company_name.coll_2 2.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_2", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/1.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/1.json index 4c700abed..9261acb9d 100644 --- a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/1.json +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/1.json @@ -1,11 +1,18 @@ { - "name": "test[1-:0-Browse company_name.coll_1 plugins window]", + "name": "test[01-:0-Browse company_name.coll_1 plugins window]", "index": 1, "comment": "Browse company_name.coll_1 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, "output": [ - " COMPANY NAME.COLL 1 TYPE ADDED DEPRECATED DESCRIPTION", - "0│lookup_1 lookup 1.0.0 False This is test lookup plugin", - "1│mod_1 module 1.0.0 False This is a test module", + " COMPANY NAME.COLL 1 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_1 lookup 1.0.0 False This is test lookup plugin", + "1│mod_1 module 1.0.0 False This is a test module", + "2│role_full role Unknown Unknown Complete sample role.", + "3│role_minimum role Unknown Unknown Minimal sample role.", "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" ] } diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/10.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/10.json new file mode 100644 index 000000000..d83d83cf6 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/10.json @@ -0,0 +1,16 @@ +{ + "name": "test[10-:back-Back to ansible-navigator collections browse window]", + "index": 10, + "comment": "Back to ansible-navigator collections browse window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " NAME VERSION SHADOWED TYPE PATH", + "0│company_name.coll_1 1.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_1", + "1│company_name.coll_2 2.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_2", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/11.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/11.json new file mode 100644 index 000000000..6d53c2d05 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/11.json @@ -0,0 +1,16 @@ +{ + "name": "test[11-:1-Browse company_name.coll_2 plugins window]", + "index": 11, + "comment": "Browse company_name.coll_2 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 2 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_2 lookup 2.0.0 False This is test lookup plugin", + "1│mod_2 module 2.0.0 False This is a test module", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/12.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/12.json new file mode 100644 index 000000000..c956d5630 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/12.json @@ -0,0 +1,58 @@ +{ + "name": "test[12-:0-lookup_2 plugin docs window]", + "index": 12, + "comment": "lookup_2 plugin docs window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + "COMPANY_NAME.COLL_2.LOOKUP_2: This is test lookup plugin", + " 0│---", + " 1│additional_information: {}", + " 2│collection_info:", + " 3│ authors:", + " 4│ - Ansible team (ansible-navigator)", + " 5│ license_file: LICENSE", + " 6│ name: company_name.coll_2", + " 7│ namespace: company_name", + " 8│ path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_2", + " 9│ readme: README.md", + "10│ shadowed_by: []", + "11│ version: 2.0.0", + "12│doc:", + "13│ author: test", + "14│ description:", + "15│ - This is test lookup plugin", + "16│ name: lookup_2", + "17│ notes:", + "18│ - This is a dummy lookup plugin", + "19│ options:", + "20│ bar:", + "21│ default: candidate", + "22│ description:", + "23│ - Dummy option I(bar)", + "24│ type: str", + "25│ foo:", + "26│ description:", + "27│ - Dummy option I(foo)", + "28│ required: true", + "29│ type: str", + "30│ plugin_type: lookup", + "31│ short_description: This is test lookup plugin", + "32│ version_added: 2.0.0", + "33│ version_added_collection: company_name.coll_2", + "34│examples: |-", + "35│ - name: Retrieve a value deep inside a using a path", + "36│ ansible.builtin.set_fact:", + "37│ value: \"{{ lookup('company_name.coll_2.lookup_2', var1, var2) }}\"", + "38│full_name: company_name.coll_2.lookup_2", + "39│metadata: null", + "40│returndocs:", + "41│ _raw:", + "42│ description:", + "43│ - One or more zero-based indices of the matching list items.", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/13.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/13.json new file mode 100644 index 000000000..ca0bc9773 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/13.json @@ -0,0 +1,16 @@ +{ + "name": "test[13-:back-Back to browse company_name.coll_2 plugins window]", + "index": 13, + "comment": "Back to browse company_name.coll_2 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 2 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_2 lookup 2.0.0 False This is test lookup plugin", + "1│mod_2 module 2.0.0 False This is a test module", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/14.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/14.json new file mode 100644 index 000000000..d495c445a --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/14.json @@ -0,0 +1,67 @@ +{ + "name": "test[14-:1-mod_2 plugin docs window]", + "index": 14, + "comment": "mod_2 plugin docs window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + "COMPANY_NAME.COLL_2.MOD_2: This is a test module", + " 0│---", + " 1│additional_information: {}", + " 2│collection_info:", + " 3│ authors:", + " 4│ - Ansible team (ansible-navigator)", + " 5│ license_file: LICENSE", + " 6│ name: company_name.coll_2", + " 7│ namespace: company_name", + " 8│ path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_2", + " 9│ readme: README.md", + "10│ shadowed_by: []", + "11│ version: 2.0.0", + "12│doc:", + "13│ author:", + "14│ - test", + "15│ description:", + "16│ - This is a test module", + "17│ module: mod_2", + "18│ notes:", + "19│ - This is a dummy module", + "20│ options:", + "21│ bar:", + "22│ aliases:", + "23│ - bam", + "24│ choices:", + "25│ - candidate", + "26│ - running", + "27│ default: candidate", + "28│ description:", + "29│ - Dummy option I(bar)", + "30│ type: str", + "31│ foo:", + "32│ description:", + "33│ - Dummy option I(foo)", + "34│ type: str", + "35│ short_description: This is a test module", + "36│ version_added: 2.0.0", + "37│ version_added_collection: company_name.coll_2", + "38│examples: |-", + "39│ - name: test task-1", + "40│ company_name.coll_2.mod_2:", + "41│ foo: somevalue", + "42│ bar: candidate", + "43│full_name: company_name.coll_2.mod_2", + "44│metadata: null", + "45│returndocs:", + "46│ baz:", + "47│ description: test return 1", + "48│ returned: success", + "49│ sample:", + "50│ - a", + "51│ - b", + "52│ type: list", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/15.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/15.json new file mode 100644 index 000000000..9b861bfa4 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/15.json @@ -0,0 +1,16 @@ +{ + "name": "test[15-:back-Back to browse company_name.coll_2 plugins window]", + "index": 15, + "comment": "Back to browse company_name.coll_2 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 2 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_2 lookup 2.0.0 False This is test lookup plugin", + "1│mod_2 module 2.0.0 False This is a test module", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/16.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/16.json new file mode 100644 index 000000000..e791a83c5 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/16.json @@ -0,0 +1,16 @@ +{ + "name": "test[16-:back-Back to ansible-navigator collections browse window]", + "index": 16, + "comment": "Back to ansible-navigator collections browse window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " NAME VERSION SHADOWED TYPE PATH", + "0│company_name.coll_1 1.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_1", + "1│company_name.coll_2 2.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_2", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/17.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/17.json new file mode 100644 index 000000000..0e8e39eb2 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/17.json @@ -0,0 +1,16 @@ +{ + "name": "test[17-:collections --ee FFFFF-Provide an invalid ee value]", + "index": 17, + "comment": "Provide an invalid ee value", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " NAME VERSION SHADOWED TYPE PATH", + "0│company_name.coll_1 1.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_1", + "1│company_name.coll_2 2.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_2", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/18.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/18.json new file mode 100644 index 000000000..5c6c44689 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/18.json @@ -0,0 +1,18 @@ +{ + "name": "test[18-:0-Browse company_name.coll_1 plugins window]", + "index": 18, + "comment": "Browse company_name.coll_1 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 1 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_1 lookup 1.0.0 False This is test lookup plugin", + "1│mod_1 module 1.0.0 False This is a test module", + "2│role_full role Unknown Unknown Complete sample role.", + "3│role_minimum role Unknown Unknown Minimal sample role.", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/19.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/19.json new file mode 100644 index 000000000..78f3cc469 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/19.json @@ -0,0 +1,58 @@ +{ + "name": "test[19-:0-lookup_1 plugin docs window]", + "index": 19, + "comment": "lookup_1 plugin docs window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + "COMPANY_NAME.COLL_1.LOOKUP_1: This is test lookup plugin", + " 0│---", + " 1│additional_information: {}", + " 2│collection_info:", + " 3│ authors:", + " 4│ - Ansible team (ansible-navigator)", + " 5│ license_file: LICENSE", + " 6│ name: company_name.coll_1", + " 7│ namespace: company_name", + " 8│ path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1", + " 9│ readme: README.md", + "10│ shadowed_by: []", + "11│ version: 1.0.0", + "12│doc:", + "13│ author: test", + "14│ description:", + "15│ - This is test lookup plugin", + "16│ name: lookup_1", + "17│ notes:", + "18│ - This is a dummy lookup plugin", + "19│ options:", + "20│ bar:", + "21│ default: candidate", + "22│ description:", + "23│ - Dummy option I(bar)", + "24│ type: str", + "25│ foo:", + "26│ description:", + "27│ - Dummy option I(foo)", + "28│ required: true", + "29│ type: str", + "30│ plugin_type: lookup", + "31│ short_description: This is test lookup plugin", + "32│ version_added: 1.0.0", + "33│ version_added_collection: company_name.coll_1", + "34│examples: |-", + "35│ - name: Retrieve a value deep inside a using a path", + "36│ ansible.builtin.set_fact:", + "37│ value: \"{{ lookup('company_name.coll_1.lookup_1', var1, var2) }}\"", + "38│full_name: company_name.coll_1.lookup_1", + "39│metadata: null", + "40│returndocs:", + "41│ _raw:", + "42│ description:", + "43│ - One or more zero-based indices of the matching list items.", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/2.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/2.json index 7d5512be2..7581f3f91 100644 --- a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/2.json +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/2.json @@ -1,7 +1,12 @@ { - "name": "test[2-:0-lookup_1 plugin docs window]", + "name": "test[02-:0-lookup_1 plugin docs window]", "index": 2, "comment": "lookup_1 plugin docs window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, "output": [ "COMPANY_NAME.COLL_1.LOOKUP_1: This is test lookup plugin", " 0│---", diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/3.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/3.json new file mode 100644 index 000000000..65580ab3f --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/3.json @@ -0,0 +1,18 @@ +{ + "name": "test[03-:back-Back to browse company_name.coll_1 plugins window]", + "index": 3, + "comment": "Back to browse company_name.coll_1 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 1 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_1 lookup 1.0.0 False This is test lookup plugin", + "1│mod_1 module 1.0.0 False This is a test module", + "2│role_full role Unknown Unknown Complete sample role.", + "3│role_minimum role Unknown Unknown Minimal sample role.", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/4.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/4.json new file mode 100644 index 000000000..13536cb07 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/4.json @@ -0,0 +1,67 @@ +{ + "name": "test[04-:1-mod_1 plugin docs window]", + "index": 4, + "comment": "mod_1 plugin docs window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + "COMPANY_NAME.COLL_1.MOD_1: This is a test module", + " 0│---", + " 1│additional_information: {}", + " 2│collection_info:", + " 3│ authors:", + " 4│ - Ansible team (ansible-navigator)", + " 5│ license_file: LICENSE", + " 6│ name: company_name.coll_1", + " 7│ namespace: company_name", + " 8│ path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1", + " 9│ readme: README.md", + "10│ shadowed_by: []", + "11│ version: 1.0.0", + "12│doc:", + "13│ author:", + "14│ - test", + "15│ description:", + "16│ - This is a test module", + "17│ module: mod_1", + "18│ notes:", + "19│ - This is a dummy module", + "20│ options:", + "21│ bar:", + "22│ aliases:", + "23│ - bam", + "24│ choices:", + "25│ - candidate", + "26│ - running", + "27│ default: candidate", + "28│ description:", + "29│ - Dummy option I(bar)", + "30│ type: str", + "31│ foo:", + "32│ description:", + "33│ - Dummy option I(foo)", + "34│ type: str", + "35│ short_description: This is a test module", + "36│ version_added: 1.0.0", + "37│ version_added_collection: company_name.coll_1", + "38│examples: |-", + "39│ - name: test task-1", + "40│ company_name.coll_1.mod_1:", + "41│ foo: somevalue", + "42│ bar: candidate", + "43│full_name: company_name.coll_1.mod_1", + "44│metadata: null", + "45│returndocs:", + "46│ baz:", + "47│ description: test return 1", + "48│ returned: success", + "49│ sample:", + "50│ - a", + "51│ - b", + "52│ type: list", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/5.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/5.json new file mode 100644 index 000000000..11350f260 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/5.json @@ -0,0 +1,18 @@ +{ + "name": "test[05-:back-Back to browse company_name.coll_1 plugins window]", + "index": 5, + "comment": "Back to browse company_name.coll_1 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 1 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_1 lookup 1.0.0 False This is test lookup plugin", + "1│mod_1 module 1.0.0 False This is a test module", + "2│role_full role Unknown Unknown Complete sample role.", + "3│role_minimum role Unknown Unknown Minimal sample role.", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/6.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/6.json new file mode 100644 index 000000000..fda274987 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/6.json @@ -0,0 +1,70 @@ +{ + "name": "test[06-:2-role_full details window]", + "index": 6, + "comment": "role_full details window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + "COMPANY_NAME.COLL_1.ROLE_FULL: Complete sample role.", + " 0│---", + " 1│argument_specs:", + " 2│ alternate:", + " 3│ options:", + " 4│ role_full_int:", + " 5│ default: 1024", + " 6│ description: The integer value, defaulting to 1024.", + " 7│ required: false", + " 8│ type: int", + " 9│ short_description: The alternate entry point for the role_full role.", + "10│ main:", + "11│ options:", + "12│ role_full_int:", + "13│ default: 42", + "14│ description: The integer value, defaulting to 42.", + "15│ required: false", + "16│ type: int", + "17│ role_full_str:", + "18│ description: The string value", + "19│ required: true", + "20│ type: str", + "21│ short_description: The main entry point for the role_full role.", + "22│argument_specs_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_full/meta/argument_specs.yml", + "23│defaults:", + "24│ role_full_bool: true", + "25│ role_full_int: 42", + "26│ role_full_str: Test string", + "27│defaults_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_full/defaults/main.yml", + "28│full_name: company_name.coll_1.role_full", + "29│info:", + "30│ dependencies: []", + "31│ galaxy_info:", + "32│ author: Ansible team (ansible-navigator)", + "33│ company: Ansible", + "34│ description: Complete sample role.", + "35│ galaxy_tags:", + "36│ - tag_1", + "37│ - tag_2", + "38│ license: LICENSE", + "39│ min_ansible_version: 2.9.0", + "40│ platforms:", + "41│ - name: eos", + "42│ versions:", + "43│ - all", + "44│info_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_full/meta/main.yml", + "45│readme: |-", + "46│ # Role full", + "47│", + "48│ This is a role with:", + "49│", + "50│ - defaults/main.yml", + "51│ - meta/argument_spec.yml", + "52│ - meta/main.yml", + "53│ - README.md", + "54│readme_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_full/README.md", + "55│short_name: role_full", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/7.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/7.json new file mode 100644 index 000000000..39498edd3 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/7.json @@ -0,0 +1,18 @@ +{ + "name": "test[07-:back-Back to browse company_name.coll_1 plugins window]", + "index": 7, + "comment": "Back to browse company_name.coll_1 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 1 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_1 lookup 1.0.0 False This is test lookup plugin", + "1│mod_1 module 1.0.0 False This is a test module", + "2│role_full role Unknown Unknown Complete sample role.", + "3│role_minimum role Unknown Unknown Minimal sample role.", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/8.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/8.json new file mode 100644 index 000000000..f40c593eb --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/8.json @@ -0,0 +1,50 @@ +{ + "name": "test[08-:3-role_minimal details window]", + "index": 8, + "comment": "role_minimal details window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + "COMPANY_NAME.COLL_1.ROLE_MINIMUM: Minimal sample role.", + " 0│---", + " 1│argument_specs: {}", + " 2│argument_specs_path: ''", + " 3│defaults: {}", + " 4│defaults_path: ''", + " 5│full_name: company_name.coll_1.role_minimum", + " 6│info:", + " 7│ dependencies: []", + " 8│ galaxy_info:", + " 9│ author: Ansible team (ansible-navigator)", + "10│ company: Ansible", + "11│ description: Minimal sample role.", + "12│ galaxy_tags:", + "13│ - tag_1", + "14│ - tag_2", + "15│ license: LICENSE", + "16│ min_ansible_version: 2.9.0", + "17│ platforms:", + "18│ - name: eos", + "19│ versions:", + "20│ - all", + "21│info_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_minimum/meta/main.yml", + "22│readme: |-", + "23│ # Role minimum", + "24│", + "25│ This is a role with:", + "26│", + "27│ - meta/main.yml", + "28│ - README.md", + "29│", + "30│ This is a role without:", + "31│", + "32│ - defaults/main.yml", + "33│ - meta/argument_spec.yml", + "34│readme_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_minimum/README.md", + "35│short_name: role_minimum", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help" + ] +} diff --git a/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/9.json b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/9.json new file mode 100644 index 000000000..f7dd97d71 --- /dev/null +++ b/tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/9.json @@ -0,0 +1,18 @@ +{ + "name": "test[09-:back-Back to browse company_name.coll_1 plugins window]", + "index": 9, + "comment": "Back to browse company_name.coll_1 plugins window", + "additional_information": { + "present": [], + "absent": [], + "compared_fixture": true + }, + "output": [ + " COMPANY NAME.COLL 1 TYPE ADDED DEPRECATED DESCRIPTION", + "0│lookup_1 lookup 1.0.0 False This is test lookup plugin", + "1│mod_1 module 1.0.0 False This is a test module", + "2│role_full role Unknown Unknown Complete sample role.", + "3│role_minimum role Unknown Unknown Minimal sample role.", + "^f/PgUp page up ^b/PgDn page down ↑↓ scroll esc back [0-9] goto :help help" + ] +} diff --git a/tests/integration/actions/collections/base.py b/tests/integration/actions/collections/base.py index 32112da13..0ad703596 100644 --- a/tests/integration/actions/collections/base.py +++ b/tests/integration/actions/collections/base.py @@ -33,6 +33,11 @@ UiTestStep(user_input=":1", comment="mod_2 plugin docs window"), UiTestStep(user_input=":back", comment="Back to browse company_name.coll_2 plugins window"), UiTestStep(user_input=":back", comment="Back to ansible-navigator collections browse window"), + # Try some things that should not work but not fail (#1061 and #1062) + UiTestStep(user_input=":collections --ee FFFFF", comment="Provide an invalid ee value"), + # and repeat some basic browsing + UiTestStep(user_input=":0", comment="Browse company_name.coll_1 plugins window"), + UiTestStep(user_input=":0", comment="lookup_1 plugin docs window"), ) diff --git a/tests/integration/actions/collections/_test_direct_interactive_ee_with_volmount.py b/tests/integration/actions/collections/test_direct_interactive_ee_with_volmount.py similarity index 100% rename from tests/integration/actions/collections/_test_direct_interactive_ee_with_volmount.py rename to tests/integration/actions/collections/test_direct_interactive_ee_with_volmount.py