diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7afdd45..9863bb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,6 @@ jobs: molecule-scenario: - ultimate - rocky - - opensuse - minimal include: - ansible-version: min diff --git a/molecule/opensuse/INSTALL.rst b/molecule/opensuse/INSTALL.rst deleted file mode 100644 index d926ca2..0000000 --- a/molecule/opensuse/INSTALL.rst +++ /dev/null @@ -1,22 +0,0 @@ -******* -Docker driver installation guide -******* - -Requirements -============ - -* Docker Engine - -Install -======= - -Please refer to the `Virtual environment`_ documentation for installation best -practices. If not using a virtual environment, please consider passing the -widely recommended `'--user' flag`_ when invoking ``pip``. - -.. _Virtual environment: https://virtualenv.pypa.io/en/latest/ -.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site - -.. code-block:: bash - - $ python3 -m pip install 'molecule[docker]' diff --git a/molecule/opensuse/collections.yml b/molecule/opensuse/collections.yml deleted file mode 100644 index 8dd5161..0000000 --- a/molecule/opensuse/collections.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -collections: - - community.general diff --git a/molecule/opensuse/converge.yml b/molecule/opensuse/converge.yml deleted file mode 100644 index f791892..0000000 --- a/molecule/opensuse/converge.yml +++ /dev/null @@ -1,80 +0,0 @@ -# code: language=ansible ---- -- name: Converge - hosts: all - - pre_tasks: - - name: Create test users - become: true - ansible.builtin.user: - name: '{{ item }}' - state: present - home: '/home/{{ item }}' - createhome: true - with_items: - - test_usr - - test_usr2 - - test_usr3 - - - name: Install dependencies - become: true - ansible.builtin.package: - name: - - tar - - gzip - - which - state: present - - - name: Install jdk 11 - become: true - ansible.builtin.package: - name: - - java-11-openjdk-devel - - java-11-openjdk-jmods - - java-11-openjdk-src - state: present - - - name: Install jdk 8 - become: true - ansible.builtin.package: - name: java-1_8_0-openjdk-devel - state: present - - - name: Set facts for openjdk locations - ansible.builtin.set_fact: - jdk8_home: '/usr/lib64/jvm/java-1.8.0-openjdk' - jdk11_home: '/usr/lib64/jvm/java-11-openjdk' - - roles: - - role: intellij - intellij_default_maven_home: '/test/maven/home' - intellij_edition: community - users: - - username: test_usr - intellij_group: users - intellij_jdks: - - name: '11' - home: '{{ jdk11_home }}' - - name: '1.8' - home: '{{ jdk8_home }}' - intellij_default_jdk: '11' - intellij_disabled_plugins: - - org.jetbrains.plugins.gradle - intellij_codestyles: - - name: GoogleStyle - url: 'https://raw.githubusercontent.com/google/styleguide/gh-pages/intellij-java-google-style.xml' - intellij_default_codestyle: GoogleStyle - intellij_inspection_profiles: - - name: GantSign - url: 'https://raw.githubusercontent.com/gantsign/inspection-profile-intellij/master/GantSign.xml' - intellij_default_inspection_profile: GantSign - intellij_plugins: - - google-java-format - - MavenRunHelper - - software.xdev.saveactions - - username: test_usr2 - intellij_group: users - intellij_disabled_plugins: - intellij_plugins: [] - - username: test_usr3 - intellij_group: users diff --git a/molecule/opensuse/molecule.yml b/molecule/opensuse/molecule.yml deleted file mode 100644 index b47f9ac..0000000 --- a/molecule/opensuse/molecule.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -dependency: - name: galaxy - -driver: - name: docker - -role_name_check: 2 - -platforms: - - name: ansible-role-intellij-community-opensuse - image: opensuse/leap:15.2 - -provisioner: - name: ansible - -verifier: - name: testinfra diff --git a/molecule/opensuse/tests/test_role.py b/molecule/opensuse/tests/test_role.py deleted file mode 100644 index 0cb1c6e..0000000 --- a/molecule/opensuse/tests/test_role.py +++ /dev/null @@ -1,70 +0,0 @@ -import pytest - - -def test_idea_installed(host): - assert host.run('which idea').rc == 0 - - -@pytest.mark.parametrize('file_path,expected_text', [ - ('disabled_plugins.txt', 'org.jetbrains.plugins.gradle'), - ('options/jdk.table.xml', '/usr/lib64/jvm/java-11-openjdk'), - ('options/jdk.table.xml', '/usr/lib64/jvm/java-1.8.0-openjdk'), - ('options/project.default.xml', '/test/maven/home'), - ('codestyles/GoogleStyle.xml', 'code_scheme name="GoogleStyle"'), - ('options/code.style.schemes', - 'name="PREFERRED_PROJECT_CODE_STYLE" value="GoogleStyle"'), - ('options/code.style.schemes.xml', - 'name="CURRENT_SCHEME_NAME" value="GoogleStyle"'), - ('inspection/GantSign.xml', 'value="GantSign"'), - ('options/editor.codeinsight.xml', - 'component name="DaemonCodeAnalyzerSettings" profile="GantSign"'), - ('options/project.default.xml', - 'option name="PROJECT_PROFILE" value="GantSign"') -]) -def test_config_files(host, file_path, expected_text): - config_dir_pattern = ( - '\\.config/JetBrains/(IdeaIC|IntelliJIdea)[0-9]+\\.[0-9]$') - config_home = host.check_output('find %s | grep --color=never -E %s', - '/home/test_usr', - config_dir_pattern) - assert host.file(config_home + '/' + file_path).contains(expected_text) - - -@pytest.mark.parametrize('plugin_dir_name', [ - 'idea_plugin', - 'MavenHelper' -]) -def test_plugins_installed(host, plugin_dir_name): - plugins_dir_pattern = ( - '\\.local/share/JetBrains/(IdeaIC|IntelliJIdea)[0-9]+\\.[0-9]$') - plugins_path = host.check_output('find %s | grep --color=never -E %s', - '/home/test_usr', - plugins_dir_pattern) - - plugin_dir = host.file(plugins_path + '/' + plugin_dir_name) - assert plugin_dir.exists - assert plugin_dir.is_directory - assert plugin_dir.user == 'test_usr' - assert plugin_dir.group == 'users' - assert plugin_dir.mode == 0o755 - - -def test_jar_plugin_installed(host): - plugins_dir_pattern = ( - '\\.local/share/JetBrains/(IdeaIC|IntelliJIdea)[0-9]+\\.[0-9]$') - plugins_path = host.check_output('find %s | grep --color=never -E %s', - '/home/test_usr', - plugins_dir_pattern) - - plugin_path = host.check_output( - 'find %s | grep --color=never -E %s | head -1', - plugins_path, - 'save-actions.*\\.jar') - - plugin_file = host.file(plugin_path) - - assert plugin_file.exists - assert plugin_file.is_file - assert plugin_file.user == 'test_usr' - assert plugin_file.group == 'users' - assert plugin_file.mode == 0o644