summaryrefslogtreecommitdiffstats
path: root/ansible_collections/dellemc/openmanage/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:42 +0000
commit66cec45960ce1d9c794e9399de15c138acb18aed (patch)
tree59cd19d69e9d56b7989b080da7c20ef1a3fe2a5a /ansible_collections/dellemc/openmanage/.github
parentInitial commit. (diff)
downloadansible-upstream.tar.xz
ansible-upstream.zip
Adding upstream version 7.3.0+dfsg.upstream/7.3.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/dellemc/openmanage/.github')
-rw-r--r--ansible_collections/dellemc/openmanage/.github/CODEOWNERS28
-rw-r--r--ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/ask_a_question.md11
-rw-r--r--ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/bug_report.yml124
-rw-r--r--ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/config.yml5
-rw-r--r--ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/feature_request.md23
-rw-r--r--ansible_collections/dellemc/openmanage/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--ansible_collections/dellemc/openmanage/.github/workflows/ansible-test.yml130
7 files changed, 364 insertions, 0 deletions
diff --git a/ansible_collections/dellemc/openmanage/.github/CODEOWNERS b/ansible_collections/dellemc/openmanage/.github/CODEOWNERS
new file mode 100644
index 00000000..c19af9b2
--- /dev/null
+++ b/ansible_collections/dellemc/openmanage/.github/CODEOWNERS
@@ -0,0 +1,28 @@
+# CODEOWNERS
+#
+# documentation for this file can be found at:
+# https://help.github.com/en/articles/about-code-owners
+
+# These are the default owners for the code and will
+# be requested for review when someone opens a pull request.
+# order is alphabetical for easier maintenance.
+#
+# Anirudh Kumar (Anirudh_Kumar1@Dell.com)
+# Anooja Vardhineni (Anooja_Vardhineni@Dellteam.com)
+# Chris Clonch (cacack)
+# Deepak Joshi (deepakjoshishri)
+# Felix Stephen (felixs88)
+# Grant Curell (grantcurell)
+# Husniya Hameed (husniya-hameed)
+# Jagadeesh N V (jagadeeshnv)
+# Jaya Gupta (Jaya_Gupta@Dell.com)
+# Mario Lenz (mariolenz)
+# Rajeev Arakkal (rajeevarakkal)
+# Rajshekar P (rajshekarp87)
+# Sachin Apagundi (sachin-apa)
+# Sajna N Shetty (Sajna-Shetty)
+# Sachin Kumar (Sachin_Kumar12@Dell.com)
+# Vasanth Ds (Vasanth_Sathyanaraya@Dell.com)
+
+# for all files:
+* @sachin-apa @jagadeeshnv @felixs88
diff --git a/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/ask_a_question.md b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/ask_a_question.md
new file mode 100644
index 00000000..e35c949c
--- /dev/null
+++ b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/ask_a_question.md
@@ -0,0 +1,11 @@
+---
+name: 💬 Ask a question
+about: Ask usage questions here
+title: "[QUESTION]:"
+labels: type/question
+assignees: ''
+
+---
+### How can the team help?
+
+**Details: ?**
diff --git a/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/bug_report.yml b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 00000000..5b156977
--- /dev/null
+++ b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,124 @@
+---
+name: 🐛 Bug report
+description: Create a report to help us improve.
+title: "[BUG]: "
+labels: ["type/bug", "needs-triage"]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thank you for taking the time to create this bug report. To better help us investigate this bug, provide the following information.
+ - type: textarea
+ id: bug-description
+ attributes:
+ label: Bug Description
+ description: Provide a clear and concise description about the bug.
+ validations:
+ required: true
+ - type: input
+ id: component
+ attributes:
+ label: Component or Module Name
+ description: Enter the Component or Module Name.
+ placeholder: idrac_server_config_profile
+ validations:
+ required: true
+ - type: input
+ id: ansible
+ attributes:
+ label: Ansible Version
+ description: Enter the Ansible version.
+ placeholder: |
+ Ansible 2.12
+ validations:
+ required: true
+ - type: input
+ id: python
+ attributes:
+ label: Python Version
+ description: Enter the Python version.
+ placeholder: |
+ Python 3.9
+ validations:
+ required: true
+ - type: textarea
+ id: device
+ attributes:
+ label: iDRAC/OME/OME-M version
+ description: Enter the iDRAC/OME/OME-M version in which the bug is observed.
+ placeholder: |
+ iDRAC 5.10.00.00
+ OME 3.8.4
+ OME-M 1.40
+ validations:
+ required: true
+ - type: textarea
+ id: os
+ attributes:
+ label: Operating System
+ description: Enter the operating system and version in which the bug is observed.
+ placeholder: |
+ Red Hat Enterprise Linux (RHEL) 8.5 and 8.4
+ SUSE Linux Enterprise Server (SLES) 15 SP2 and 15 SP1
+ Ubuntu 20.04.2 and 20.04.1
+ validations:
+ required: true
+ - type: textarea
+ id: playbook
+ attributes:
+ label: Playbook Used
+ description: Enter the playbook used to run the module or component.
+ validations:
+ required: true
+ - type: textarea
+ id: files
+ attributes:
+ label: Logs
+ description: Copy any relevant log output here or drop the log files in the text area.
+ Please be sure to remove all sensitive data such as IP addresses, host names, credentials, etc.
+ validations:
+ required: true
+ - type: textarea
+ id: steps
+ attributes:
+ label: Steps to Reproduce
+ description: Provide the steps to reproduce this bug.
+ validations:
+ required: true
+ - type: textarea
+ id: expected
+ attributes:
+ label: Expected Behavior
+ description: Enter the clear and concise description about the expected behaviour.
+ validations:
+ required: true
+ - type: textarea
+ id: actual
+ attributes:
+ label: Actual Behavior
+ description: Enter the clear and concise description about the actual behaviour.
+ validations:
+ required: true
+ - type: textarea
+ id: screenshots
+ attributes:
+ label: Screenshots
+ description: Drop any relevant screenshots in the text area.
+ validations:
+ required: false
+ - type: input
+ id: ainfo
+ attributes:
+ label: Additional Information
+ description: Provide any additional information about the bug.
+ validations:
+ required: false
+ - type: markdown
+ attributes:
+ value: |
+ Community Note
+ * Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
+ to the original issue to help the community and maintainers prioritize this request
+ * Please do not leave "+1" or other comments that do not add relevant new information or questions,
+ they generate extra noise for issue followers and do not help prioritize the request
+ * If you are interested in working on this issue or have submitted a pull request, please leave a comment
diff --git a/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/config.yml b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 00000000..45c176da
--- /dev/null
+++ b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
+blank_issues_enabled: false
+contact_links:
+ - name: OpenManageAnsible mailing list
+ alias: OpenManageAnsible@Dell.com
+ about: Please use OpenManageAnsible contact for questions and queries.
diff --git a/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/feature_request.md b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..55a53396
--- /dev/null
+++ b/ansible_collections/dellemc/openmanage/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,23 @@
+---
+name: 🚀 Feature Request
+about: Suggest an idea for this project
+title: "[FEATURE]:"
+labels: type/feature-request, needs-triage
+assignees: ''
+---
+**Describe the solution you'd like**
+Provide a clear and concise description about the new feature request.
+
+**Describe alternatives you've considered**
+Provide a clear and concise description of any alternative solutions or features that you have considered.
+
+**Additional context**
+Describe any relevant context or add any relevant screenshots about the feature request.
+
+**Community Note**
+
+* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
+ to the original issue to help the community and maintainers prioritize this request
+* Please do not leave "+1" or other comments that do not add relevant new information or questions,
+ they generate extra noise for issue followers and do not help prioritize the request
+* If you are interested in working on this issue or have submitted a pull request, please leave a comment
diff --git a/ansible_collections/dellemc/openmanage/.github/PULL_REQUEST_TEMPLATE.md b/ansible_collections/dellemc/openmanage/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..7027bc44
--- /dev/null
+++ b/ansible_collections/dellemc/openmanage/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,43 @@
+# Description
+A few sentences describing the overall goals of the pull request's commits.
+
+# GitHub Issues
+List the GitHub issues impacted by this PR:
+
+| GitHub Issue # |
+| -------------- |
+| |
+
+# ISSUE TYPE
+<!--- Pick one below and delete the rest -->
+- Bugfix Pull Request
+- Docs Pull Request
+- Feature Pull Request
+- Test Pull Request
+
+##### COMPONENT NAME
+<!--- Write the short name of the module, plugin, task or feature below -->
+
+##### OUTPUT
+<!--- Paste the functionality test result below -->
+```paste below
+
+```
+##### ADDITIONAL INFORMATION
+<!--- Include additional information to help people understand the change here -->
+<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->
+
+<!--- Paste verbatim command output below, e.g. before and after your change -->
+```paste below
+
+```
+# Checklist:
+
+- [ ] I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
+- [ ] I have verified that new and existing unit tests pass locally with my changes
+- [ ] I have not allowed coverage numbers to degenerate
+- [ ] I have maintained at least 90% code coverage
+- [ ] I have commented my code, particularly in hard-to-understand areas
+- [ ] I have made corresponding changes to the documentation
+- [ ] I have added tests that prove my fix is effective or that my feature works
+- [ ] I have maintained backward compatibility \ No newline at end of file
diff --git a/ansible_collections/dellemc/openmanage/.github/workflows/ansible-test.yml b/ansible_collections/dellemc/openmanage/.github/workflows/ansible-test.yml
new file mode 100644
index 00000000..64a1aed8
--- /dev/null
+++ b/ansible_collections/dellemc/openmanage/.github/workflows/ansible-test.yml
@@ -0,0 +1,130 @@
+name: CI
+
+on:
+ # Run CI against all pushes (direct commits, also merged PRs), Pull Requests
+ push:
+ pull_request:
+ # Runs CI on every day (at 06:00 UTC)
+ schedule:
+ - cron: '0 6 * * *'
+
+jobs:
+ build:
+ name: Build collection
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ansible-version: [stable-2.10, stable-2.11, stable-2.12, stable-2.13]
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+
+ - name: Set up Python 3.9
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.9
+
+ - name: Install ansible (${{ matrix.ansible-version }})
+ run: pip install pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
+
+ - name: Build a collection tarball
+ run: ansible-galaxy collection build --output-path "${GITHUB_WORKSPACE}/.cache/collection-tarballs"
+
+ - name: Store migrated collection artifacts
+ uses: actions/upload-artifact@v1
+ with:
+ name: collection
+ path: .cache/collection-tarballs
+
+###
+# Unit tests (OPTIONAL)
+#
+# https://docs.ansible.com/ansible/latest/dev_guide/testing_units.html
+
+ unit:
+ name: Unit Tests
+ needs: [build]
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: [3.8, 3.9, '3.10']
+ ansible-version: [stable-2.11, stable-2.12, stable-2.13]
+ exclude:
+ - ansible-version: stable-2.11
+ python-version: '3.10'
+
+ steps:
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install ansible (${{ matrix.ansible-version }}) version
+ run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
+
+ - name: Download migrated collection artifacts
+ uses: actions/download-artifact@v1
+ with:
+ name: collection
+ path: .cache/collection-tarballs
+
+ - name: Setup Unit test Pre-requisites
+ run: |
+ ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz
+ git clone https://github.com/ansible/ansible.git
+ cp -rf ansible/test/units/compat /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage/tests/unit/
+ cp -rf ansible/test/units/modules/utils.py /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/
+ sed -i 's/units/ansible_collections.dellemc.openmanage.tests.unit/' /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/utils.py
+ if [ -f /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage/tests/requirements.txt ]; then pip install -r /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage/tests/requirements.txt; fi
+
+
+ - name: Run Unit tests using ansible-test
+ run: ansible-test units -v --color --python ${{ matrix.python-version }} --coverage
+ working-directory: /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage
+
+ #- name: Generate coverage report
+ # run: ansible-test coverage xml -v --group-by command --group-by version
+ # working-directory: /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage
+
+###
+# Sanity tests (REQUIRED)
+#
+# https://docs.ansible.com/ansible/latest/dev_guide/testing_sanity.html
+
+ sanity:
+ name: Sanity Tests
+ runs-on: ubuntu-latest
+ needs: [build]
+ strategy:
+ fail-fast: false
+ matrix:
+ ansible-version: [stable-2.11, stable-2.12, stable-2.13, devel]
+
+ steps:
+ - name: Set up Python 3.9
+ uses: actions/setup-python@v1
+ with:
+ # it is just required to run that once as "ansible-test sanity" in the docker image
+ # will run on all python versions it supports.
+ python-version: 3.9
+
+ - name: Install ansible (${{ matrix.ansible-version }}) version
+ run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
+
+ - name: Download migrated collection artifacts
+ uses: actions/download-artifact@v1
+ with:
+ name: collection
+ path: .cache/collection-tarballs
+
+ - name: Setup Sanity test Pre-requisites
+ run: ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz
+
+ # run ansible-test sanity inside of Docker.
+ # The docker container has all the pinned dependencies that are required
+ # and all python versions ansible supports.
+ - name: Run sanity tests
+ run: ansible-test sanity --docker -v --color
+ working-directory: /home/runner/.ansible/collections/ansible_collections/dellemc/openmanage