Skip to content

Commit

Permalink
[RHELC-858] Remove configs for RHEL6 (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0d authored Jan 11, 2023
1 parent 62a3981 commit 881af68
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 168 deletions.
39 changes: 0 additions & 39 deletions convert2rhel/data/6/x86_64/configs/centos-6-x86_64.cfg

This file was deleted.

51 changes: 0 additions & 51 deletions convert2rhel/data/6/x86_64/configs/oracle-6-x86_64.cfg

This file was deleted.

32 changes: 0 additions & 32 deletions convert2rhel/data/6/x86_64/configs/suse_es-6-x86_64.cfg

This file was deleted.

35 changes: 0 additions & 35 deletions convert2rhel/data/6/x86_64/rhel-certs/69.pem

This file was deleted.

1 change: 0 additions & 1 deletion convert2rhel/systeminfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"8.5": "8.5",
"8.4": "8.4",
"7.9": "7Server",
"6.10": "6Server",
}

# For a list of modified rpm files before the conversion starts
Expand Down
5 changes: 2 additions & 3 deletions convert2rhel/unit_tests/cert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,9 @@ def test_get_cert_path_missing_cert(message, caplog, cert_dir):
@pytest.mark.parametrize(
("arch", "rhel_version", "pem"),
(
("x86_64", "6", "69.pem"),
("ppc64", "7", "74.pem"),
("x86_64", "7", "69.pem"),
("x86_64", "8", "479.pem"),
("ppc64", "7", "74.pem"),
),
)
def test_get_cert_path(arch, rhel_version, pem, monkeypatch):
Expand All @@ -105,7 +104,7 @@ def test_get_cert_path(arch, rhel_version, pem, monkeypatch):

def test_install_cert(monkeypatch, tmpdir):
monkeypatch.setattr(tool_opts, "arch", "x86_64")
monkeypatch.setattr(utils, "DATA_DIR", os.path.join(BASE_DATA_DIR, "6", "x86_64"))
monkeypatch.setattr(utils, "DATA_DIR", os.path.join(BASE_DATA_DIR, "7", "x86_64"))

# By initializing the cert object we get a path to an existing
# certificate based on the mocked parameters above
Expand Down
7 changes: 0 additions & 7 deletions convert2rhel/unit_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,20 +288,13 @@ def pretend_os(request, pkg_root, monkeypatch):
all_systems = pytest.mark.parametrize(
"pretend_os",
(
("6.10.1111", "CentOS Linux"),
("6.10.1111", "Oracle Linux Server"),
("7.9.1111", "CentOS Linux"),
("7.9.1111", "Oracle Linux Server"),
("8.4.1111", "CentOS Linux"),
("8.4.1111", "Oracle Linux Server"),
),
indirect=True,
)
centos6 = pytest.mark.parametrize(
"pretend_os",
(("6.10.1111", "CentOS Linux"),),
indirect=True,
)
centos7 = pytest.mark.parametrize(
"pretend_os",
(("7.9.1111", "CentOS Linux"),),
Expand Down

0 comments on commit 881af68

Please sign in to comment.