-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:SatelliteQE/robottelo into no-bla…
…nk-cvpage
- Loading branch information
Showing
49 changed files
with
1,114 additions
and
1,747 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
# configuration for pre-commit git hooks | ||
|
||
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/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/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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from fauxfactory import gen_string | ||
import pytest | ||
|
||
|
||
@pytest.fixture(scope='module') | ||
def module_discovery_hostgroup(module_org, module_location, module_target_sat): | ||
host = module_target_sat.api.Host(organization=module_org, location=module_location).create() | ||
return module_target_sat.api.HostGroup( | ||
organization=[module_org], | ||
location=[module_location], | ||
medium=host.medium, | ||
root_pass=gen_string('alpha'), | ||
operatingsystem=host.operatingsystem, | ||
ptable=host.ptable, | ||
domain=host.domain, | ||
architecture=host.architecture, | ||
).create() | ||
|
||
|
||
@pytest.fixture(scope='module') | ||
def discovery_org(module_org, module_target_sat): | ||
discovery_org = module_target_sat.update_setting('discovery_organization', module_org.name) | ||
yield module_org | ||
module_target_sat.update_setting('discovery_organization', discovery_org) | ||
|
||
|
||
@pytest.fixture(scope='module') | ||
def discovery_location(module_location, module_target_sat): | ||
discovery_loc = module_target_sat.update_setting('discovery_location', module_location.name) | ||
yield module_location | ||
module_target_sat.update_setting('discovery_location', discovery_loc) |
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
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
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
Oops, something went wrong.