-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '6.14.z' into cherry-pick-6.14.z-89c80a3158c3364fcb3235d…
…12fc4aba855bd778a
- Loading branch information
Showing
474 changed files
with
5,409 additions
and
3,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,15 @@ on: | |
env: | ||
PYCURL_SSL_LIBRARY: openssl | ||
ROBOTTELO_BUGZILLA__API_KEY: ${{ secrets.BUGZILLA_KEY }} | ||
ROBOTTELO_JIRA__API_KEY: ${{ secrets.JIRA_KEY }} | ||
|
||
jobs: | ||
codechecks: | ||
name: Code Quality | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10', '3.11'] | ||
python-version: ['3.10', '3.11', '3.12'] | ||
steps: | ||
- name: Checkout Robottelo | ||
uses: actions/checkout@v4 | ||
|
@@ -41,9 +42,6 @@ jobs: | |
cp broker_settings.yaml.example broker_settings.yaml | ||
cp .env.example .env | ||
- name: Pre Commit Checks | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Collect Tests | ||
run: | | ||
# To skip vault login in pull request checks | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
# configuration for pre-commit git hooks | ||
|
||
ci: | ||
autofix_prs: false # disable autofixing PRs | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: tests/foreman/data/ | ||
- id: check-yaml | ||
- id: debug-statements | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.0.277 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- repo: local | ||
hooks: | ||
- id: fix-uuids | ||
name: Robottelo Custom Fix UUIDs script | ||
description: This hook runs the scripts/fix_uuids.sh script | ||
language: script | ||
entry: scripts/fix_uuids.sh | ||
verbose: true | ||
types: [text] | ||
require_serial: true | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: tests/foreman/data/ | ||
- id: check-yaml | ||
- id: debug-statements | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.4.1 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: ruff-format | ||
- repo: local | ||
hooks: | ||
- id: fix-uuids | ||
name: Robottelo Custom Fix UUIDs script | ||
description: This hook runs the scripts/fix_uuids.sh script | ||
language: script | ||
entry: scripts/fix_uuids.sh | ||
verbose: true | ||
types: [text] | ||
require_serial: true | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.18.0 | ||
hooks: | ||
- id: gitleaks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
FAM: | ||
SERVER: | ||
# Parameter for all tests | ||
foreman_username: admin | ||
foreman_password: "changeme" | ||
foreman_server_url: "https://foreman.example.com" | ||
foreman_validate_certs: false | ||
|
||
foreman_proxy: "foreman.example.com" | ||
|
||
# Parameter for snapshot test | ||
snapshot_host_name: "test_host" | ||
|
||
# Parameter for job invocation test | ||
foreman_host: "foreman.example.com" | ||
|
||
# Parameter for subscription_manifest test | ||
subscription_manifest_path: "data/manifest_foreman-ansible-modules.zip" | ||
|
||
# Parameter for redhat_manifest test | ||
manifest_name: "katello.example.com" | ||
rhsm_username: "john-smith" | ||
rhsm_password: "changeme" | ||
rhsm_pool_id: 8a85f99a7db4827d017dc512fcad00b0 | ||
rhsm_validate_certs: false | ||
|
||
# Parameter for scc_product test | ||
scc_account_name_for_scc_product: testaccount | ||
scc_account_login_for_scc_product: testuser | ||
scc_account_password_for_scc_product: testpass | ||
|
||
# Parameter for external_usergroup testing | ||
auth_source_ldap_host: ldap.example.com | ||
auth_source_ldap_account: ansible | ||
auth_source_ldap_account_password: pass | ||
auth_source_ldap_base_dn: dc=example,dc=com | ||
auth_source_ldap_attr_login: uid | ||
auth_source_ldap_groups_base: cn=groups,cn=accounts,dc=example,dc=com | ||
external_usergroup_name: "admins" | ||
|
||
COMPUTE_PROFILE: | ||
libvirt: | ||
compute_resource: | ||
name: libvirt-cr01 | ||
organizations: | ||
- Test Organization | ||
locations: | ||
- Test Location | ||
params: | ||
url: qemu+ssh://libvirtuser@localhost/system | ||
compute_profile: | ||
name: app-small | ||
attrs: | ||
cpus: 1 | ||
memory: 2147483648 | ||
nics_attributes: | ||
0: | ||
type: bridge | ||
bridge: "" | ||
model: virtio | ||
volumes_attributes: | ||
0: | ||
pool_name: default | ||
capacity: 10G | ||
allocation: 0G | ||
format_type: raw | ||
ovirt: | ||
compute_resource: | ||
name: ovirt-cr01 | ||
organizations: | ||
- Test Organization | ||
locations: | ||
- Test Location | ||
params: | ||
url: "https://ovirt.example.com/ovirt-engine/api" | ||
user: compute-user@internal | ||
password: ovirtcompute123 | ||
use_v4: true | ||
datacenter: c1479626-99a2-44eb-8401-14b5630f417f | ||
ovirt_quota: 502a76bb-a3fe-42f1-aed6-2a7c892a6786 | ||
compute_profile: | ||
name: app-small | ||
attrs: | ||
cluster: Devel-Infra | ||
cores: 2 | ||
sockets: 1 | ||
memory: 1073741824 | ||
ha: 0 | ||
interfaces_attributes: | ||
0: | ||
name: "" | ||
network: ovirtmgmt | ||
interface: virtio | ||
volumes_attributes: | ||
0: | ||
size_gb: '16' | ||
storage_domain: 'Local-IBM' | ||
preallocate: '1' | ||
wipe_after_delete: '0' | ||
interface: 'virtio_scsi' | ||
bootable: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
JIRA: | ||
# url default value is set to 'https://issues.redhat.com' even if not provided. | ||
URL: https://issues.redhat.com | ||
# Provide api_key to access Jira REST API | ||
API_KEY: replace-with-jira-api-key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
OSCAP: | ||
CONTENT_PATH: /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml | ||
RHEL_MAJOR_VERSION: "@jinja {{this.server.version.rhel_version | int }}" | ||
CONTENT_PATH: '@format /usr/share/xml/scap/ssg/content/ssg-rhel{this.oscap.rhel_major_version}-ds.xml' | ||
# see: robottelo/constants/__init__.py OSCAP_PROFILE | ||
PROFILE: '@format security{this.oscap.rhel_major_version}' | ||
CONTENT_DIR: /usr/share/xml/scap/ssg/content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Global Configurations for py.test runner""" | ||
|
||
import pytest | ||
|
||
pytest_plugins = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
http://sphinx-doc.org/config.html | ||
""" | ||
|
||
import builtins | ||
import os | ||
import sys | ||
|
Oops, something went wrong.