Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 51 additions & 2 deletions e2e/scenario_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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",
Expand Down
Loading