distro: rename rhel90 -> rhel9
Make the package and directory naming consistent with RHEL-7 and RHEL-8.
This commit is contained in:
parent
239e8ccbc0
commit
a2c46bdf3a
7 changed files with 29 additions and 29 deletions
|
|
@ -1,4 +1,4 @@
|
|||
package rhel90
|
||||
package rhel9
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package rhel90_test
|
||||
package rhel9_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/distro_test_common"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/rhel90"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/rhel9"
|
||||
)
|
||||
|
||||
type rhelFamilyDistro struct {
|
||||
|
|
@ -22,7 +22,7 @@ type rhelFamilyDistro struct {
|
|||
var rhelFamilyDistros = []rhelFamilyDistro{
|
||||
{
|
||||
name: "rhel",
|
||||
distro: rhel90.New(),
|
||||
distro: rhel9.New(),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -428,7 +428,7 @@ func TestImageTypeAliases(t *testing.T) {
|
|||
func TestDistro_ManifestError(t *testing.T) {
|
||||
// Currently, the only unsupported configuration is OSTree commit types
|
||||
// with Kernel boot options
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Kernel: &blueprint.KernelCustomization{
|
||||
|
|
@ -540,12 +540,12 @@ func TestArchitecture_ListImageTypes(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRhel90_ListArches(t *testing.T) {
|
||||
arches := rhel90.New().ListArches()
|
||||
func TestRhel9_ListArches(t *testing.T) {
|
||||
arches := rhel9.New().ListArches()
|
||||
assert.Equal(t, []string{"aarch64", "ppc64le", "s390x", "x86_64"}, arches)
|
||||
}
|
||||
|
||||
func TestRhel90_GetArch(t *testing.T) {
|
||||
func TestRhel9_GetArch(t *testing.T) {
|
||||
arches := []struct {
|
||||
name string
|
||||
errorExpected bool
|
||||
|
|
@ -585,22 +585,22 @@ func TestRhel90_GetArch(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRhel90_Name(t *testing.T) {
|
||||
distro := rhel90.New()
|
||||
func TestRhel9_Name(t *testing.T) {
|
||||
distro := rhel9.New()
|
||||
assert.Equal(t, "rhel-90", distro.Name())
|
||||
}
|
||||
|
||||
func TestRhel90_ModulePlatformID(t *testing.T) {
|
||||
distro := rhel90.New()
|
||||
func TestRhel9_ModulePlatformID(t *testing.T) {
|
||||
distro := rhel9.New()
|
||||
assert.Equal(t, "platform:el9", distro.ModulePlatformID())
|
||||
}
|
||||
|
||||
func TestRhel90_KernelOption(t *testing.T) {
|
||||
distro_test_common.TestDistro_KernelOption(t, rhel90.New())
|
||||
func TestRhel9_KernelOption(t *testing.T) {
|
||||
distro_test_common.TestDistro_KernelOption(t, rhel9.New())
|
||||
}
|
||||
|
||||
func TestDistro_CustomFileSystemManifestError(t *testing.T) {
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Filesystem: []blueprint.FilesystemCustomization{
|
||||
|
|
@ -628,7 +628,7 @@ func TestDistro_CustomFileSystemManifestError(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDistro_TestRootMountPoint(t *testing.T) {
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Filesystem: []blueprint.FilesystemCustomization{
|
||||
|
|
@ -657,7 +657,7 @@ func TestDistro_TestRootMountPoint(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDistro_CustomFileSystemSubDirectories(t *testing.T) {
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Filesystem: []blueprint.FilesystemCustomization{
|
||||
|
|
@ -688,7 +688,7 @@ func TestDistro_CustomFileSystemSubDirectories(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDistro_MountpointsWithArbitraryDepthAllowed(t *testing.T) {
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Filesystem: []blueprint.FilesystemCustomization{
|
||||
|
|
@ -727,7 +727,7 @@ func TestDistro_MountpointsWithArbitraryDepthAllowed(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDistro_DirtyMountpointsNotAllowed(t *testing.T) {
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Filesystem: []blueprint.FilesystemCustomization{
|
||||
|
|
@ -761,7 +761,7 @@ func TestDistro_DirtyMountpointsNotAllowed(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDistro_CustomFileSystemPatternMatching(t *testing.T) {
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Filesystem: []blueprint.FilesystemCustomization{
|
||||
|
|
@ -793,7 +793,7 @@ func TestDistro_CustomFileSystemPatternMatching(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDistro_CustomUsrPartitionNotLargeEnough(t *testing.T) {
|
||||
r9distro := rhel90.New()
|
||||
r9distro := rhel9.New()
|
||||
bp := blueprint.Blueprint{
|
||||
Customizations: &blueprint.Customizations{
|
||||
Filesystem: []blueprint.FilesystemCustomization{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package rhel90
|
||||
package rhel9
|
||||
|
||||
// This file defines package sets that are used by more than one image type.
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package rhel90
|
||||
package rhel9
|
||||
|
||||
import (
|
||||
"github.com/osbuild/osbuild-composer/internal/disk"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package rhel90
|
||||
package rhel9
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package rhel90
|
||||
package rhel9
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/osbuild/osbuild-composer/internal/distro/fedora"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/rhel7"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/rhel8"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/rhel90"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/rhel9"
|
||||
)
|
||||
|
||||
// When adding support for a new distribution, add it here.
|
||||
|
|
@ -25,9 +25,9 @@ var supportedDistros = []supportedDistro{
|
|||
{rhel8.NewRHEL86, rhel8.NewRHEL86HostDistro},
|
||||
{rhel8.NewRHEL87, rhel8.NewRHEL87HostDistro},
|
||||
{rhel8.NewCentos, rhel8.NewCentosHostDistro},
|
||||
{rhel90.New, rhel90.NewHostDistro},
|
||||
{rhel90.NewRHEL91, rhel90.NewRHEL91HostDistro},
|
||||
{rhel90.NewCentos, rhel90.NewCentosHostDistro},
|
||||
{rhel9.New, rhel9.NewHostDistro},
|
||||
{rhel9.NewRHEL91, rhel9.NewRHEL91HostDistro},
|
||||
{rhel9.NewCentos, rhel9.NewCentosHostDistro},
|
||||
}
|
||||
|
||||
type supportedDistro struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue