diff --git a/e2e/scenario_test.go b/e2e/scenario_test.go index 02877fa5f97..39d6ecac221 100644 --- a/e2e/scenario_test.go +++ b/e2e/scenario_test.go @@ -1155,7 +1155,7 @@ func Test_Ubuntu2204ARM64(t *testing.T) { func Test_Ubuntu2204_ArtifactStreaming(t *testing.T) { RunScenario(t, &Scenario{ - Description: "tests that a new ubuntu 2204 node using artifact streaming can be properly bootstrapepd", + Description: "tests that a new ubuntu 2204 node using artifact streaming can be properly bootstrapped", Config: Config{ Cluster: ClusterKubenet, VHD: config.VHDUbuntu2204Gen2Containerd, @@ -1173,9 +1173,34 @@ func Test_Ubuntu2204_ArtifactStreaming(t *testing.T) { }) } +func Test_Ubuntu2204_ArtifactStreaming_ARM64(t *testing.T) { + RunScenario(t, &Scenario{ + Description: "tests that a new ubuntu 2204 node using artifact streaming and ARM64 architecture can be properly bootstrapped", + Config: Config{ + Cluster: ClusterKubenet, + VHD: config.VHDUbuntu2204Gen2Arm64Containerd, + BootstrapConfigMutator: func(nbc *datamodel.NodeBootstrappingConfiguration) { + nbc.EnableArtifactStreaming = true + nbc.AgentPoolProfile.VMSize = "Standard_D2pds_V5" + nbc.IsARM64 = true + }, + VMConfigMutator: func(vmss *armcompute.VirtualMachineScaleSet) { + vmss.SKU.Name = to.Ptr("Standard_D2pds_V5") + }, + Validator: func(ctx context.Context, s *Scenario) { + ValidateNonEmptyDirectory(ctx, s, "/etc/overlaybd") + ValidateSystemdUnitIsRunning(ctx, s, "overlaybd-snapshotter.service") + ValidateSystemdUnitIsRunning(ctx, s, "overlaybd-tcmu.service") + ValidateSystemdUnitIsRunning(ctx, s, "acr-mirror.service") + ValidateSystemdUnitIsRunning(ctx, s, "containerd.service") + }, + }, + }) +} + func Test_Ubuntu2204_ArtifactStreaming_Scriptless(t *testing.T) { RunScenario(t, &Scenario{ - Description: "tests that a new ubuntu 2204 node using artifact streaming can be properly bootstrapepd", + Description: "tests that a new ubuntu 2204 node using artifact streaming can be properly bootstrapped", Config: Config{ Cluster: ClusterKubenet, VHD: config.VHDUbuntu2204Gen2Containerd, @@ -1193,6 +1218,30 @@ func Test_Ubuntu2204_ArtifactStreaming_Scriptless(t *testing.T) { }) } +func Test_Ubuntu2204_ArtifactStreaming_ARM64_Scriptless(t *testing.T) { + RunScenario(t, &Scenario{ + Description: "tests that a new ubuntu 2204 node using artifact streaming and ARM64 architecture can be properly bootstrapped", + Config: Config{ + Cluster: ClusterKubenet, + VHD: config.VHDUbuntu2204Gen2Arm64Containerd, + AKSNodeConfigMutator: func(config *aksnodeconfigv1.Configuration) { + config.EnableArtifactStreaming = true + config.VmSize = "Standard_D2pds_V5" + }, + VMConfigMutator: func(vmss *armcompute.VirtualMachineScaleSet) { + vmss.SKU.Name = to.Ptr("Standard_D2pds_V5") + }, + Validator: func(ctx context.Context, s *Scenario) { + ValidateNonEmptyDirectory(ctx, s, "/etc/overlaybd") + ValidateSystemdUnitIsRunning(ctx, s, "overlaybd-snapshotter.service") + ValidateSystemdUnitIsRunning(ctx, s, "overlaybd-tcmu.service") + ValidateSystemdUnitIsRunning(ctx, s, "acr-mirror.service") + ValidateSystemdUnitIsRunning(ctx, s, "containerd.service") + }, + }, + }) +} + func Test_Ubuntu2204_ChronyRestarts_Taints_And_Tolerations(t *testing.T) { RunScenario(t, &Scenario{ Description: "Tests that the chrony service restarts if it is killed. Also tests taints and tolerations",