Skip to content

Commit 8fef345

Browse files
authored
chore: update test distro default to azl 4.0 (#78)
Switch scenario test defaults from Azure Linux 3.0 to 4.0.
1 parent 7f5d989 commit 8fef345

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

scenario/component_build_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func TestBuildingLocalComponentFromCheckedInFiles(t *testing.T) {
9393
srpm := srpms[0]
9494
assert.Equal(t, "a", srpm.Name())
9595
assert.Equal(t, "1.2.3", srpm.Version())
96-
assert.Equal(t, "4.azl3", srpm.Release())
96+
assert.Equal(t, "4.azl4", srpm.Release())
9797

9898
// Validate RPM metadata.
9999
rpm := rpms[0]
@@ -130,9 +130,9 @@ func TestBuildingUpstreamComponent(t *testing.T) {
130130
srpms := results.GetSRPMs(t)
131131
require.Len(t, srpms, 1)
132132

133-
// Make sure we got 2 RPMs: 1 prod, 1 debuginfo.
133+
// Make sure we got 3 RPMs: 1 prod, 1 debuginfo, 1 debugsource.
134134
rpms := results.GetRPMs(t)
135-
require.Len(t, rpms, 2)
135+
require.Len(t, rpms, 3)
136136

137137
// Figure out our host architecture so we can validate the RPMs' architecture tags.
138138
hostInfo, err := host.Info()
@@ -144,7 +144,7 @@ func TestBuildingUpstreamComponent(t *testing.T) {
144144
// on them.
145145
//
146146

147-
const releaseRegexStr = `^\d+\.azl3$`
147+
const releaseRegexStr = `^\d+\.azl4$`
148148

149149
srpm := srpms[0]
150150
assert.Equal(t, testComponentName, srpm.Name())
@@ -164,4 +164,5 @@ func TestBuildingUpstreamComponent(t *testing.T) {
164164

165165
require.Contains(t, rpmsByName, testComponentName)
166166
require.Contains(t, rpmsByName, testComponentName+"-debuginfo")
167+
require.Contains(t, rpmsByName, testComponentName+"-debugsource")
167168
}

scenario/testdata/defaultconfigs/defaults.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
includes = ["distros/**/*.distro.toml"]
33

44
[project]
5-
default-distro = { name = "azurelinux", version = "3.0" }
5+
default-distro = { name = "azurelinux", version = "4.0" }

scenario/testdata/defaultconfigs/distros/azl/azl.distro.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[distros.azurelinux]
22
description = "Azure Linux"
3-
default-version = "3.0"
3+
default-version = "4.0"
44

55
[distros.azurelinux.versions.'3.0']
66
description = "Azure Linux 3.0"

0 commit comments

Comments
 (0)