Commit 24b238a3 authored by Steve Azzopardi's avatar Steve Azzopardi

Change to servercode tag instead of nanoserver

Change the tag of the helper image to have servercore instead of
nanoserver since it was changed in
!1290

reference #3896
parent fbd8af5f
......@@ -12,15 +12,15 @@ const (
windows1809 = "1809"
windows1803 = "1803"
nanoserver1809 = "nanoserver1809"
nanoserver1803 = "nanoserver1803"
baseImage1809 = "servercore1809"
baseImage1803 = "servercore1803"
windowsSupportedArchitecture = "x86_64"
)
var supportedOSVersions = map[string]string{
windows1803: nanoserver1803,
windows1809: nanoserver1809,
windows1803: baseImage1803,
windows1809: baseImage1809,
}
var ErrUnsupportedOSVersion = errors.New("could not determine windows version")
......
......@@ -17,17 +17,17 @@ func Test_windowsInfo_Tag(t *testing.T) {
}{
{
operatingSystem: "Windows Server 2019 Datacenter Evaluation Version 1809 (OS Build 17763.316)",
expectedVersion: fmt.Sprintf("%s-%s-%s", "x86_64", revision, nanoserver1809),
expectedVersion: fmt.Sprintf("%s-%s-%s", "x86_64", revision, baseImage1809),
expectedErr: nil,
},
{
operatingSystem: "Windows Server Datacenter Version 1809 (OS Build 1803.590)",
expectedVersion: fmt.Sprintf("%s-%s-%s", "x86_64", revision, nanoserver1809),
expectedVersion: fmt.Sprintf("%s-%s-%s", "x86_64", revision, baseImage1809),
expectedErr: nil,
},
{
operatingSystem: "Windows Server Datacenter Version 1803 (OS Build 17134.590)",
expectedVersion: fmt.Sprintf("%s-%s-%s", "x86_64", revision, nanoserver1803),
expectedVersion: fmt.Sprintf("%s-%s-%s", "x86_64", revision, baseImage1803),
expectedErr: nil,
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment