@@ -438,6 +438,32 @@ func Test_Ubuntu2204Gen2FIPS(t *testing.T) {
438438 })
439439}
440440
441+ func Test_Ubuntu2204Gen2FIPSTL (t * testing.T ) {
442+ RunScenario (t , & Scenario {
443+ Description : "Tests that a node using the Ubuntu 2204 FIPS Gen2 VHD can be properly bootstrapped" ,
444+ Config : Config {
445+ Cluster : ClusterKubenet ,
446+ VHD : config .VHDUbuntu2204Gen2FIPSContainerd ,
447+ BootstrapConfigMutator : func (nbc * datamodel.NodeBootstrappingConfiguration ) {
448+ },
449+ VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {
450+ vmss .Properties = addTrustedLaunchToVMSS (vmss .Properties )
451+ vmss .Properties .AdditionalCapabilities = & armcompute.AdditionalCapabilities {
452+ EnableFips1403Encryption : to .Ptr (true ),
453+ }
454+ settings := vmss .Properties .VirtualMachineProfile .ExtensionProfile .Extensions [0 ].Properties .ProtectedSettings
455+ vmss .Properties .VirtualMachineProfile .ExtensionProfile .Extensions [0 ].Properties .Settings = settings
456+ vmss .Properties .VirtualMachineProfile .ExtensionProfile .Extensions [0 ].Properties .ProtectedSettings = nil
457+ },
458+ Validator : func (ctx context.Context , s * Scenario ) {
459+ ValidateInstalledPackageVersion (ctx , s , "moby-containerd" , components .GetExpectedPackageVersions ("containerd" , "ubuntu" , "r2204" )[0 ])
460+ ValidateInstalledPackageVersion (ctx , s , "moby-runc" , components .GetExpectedPackageVersions ("runc" , "ubuntu" , "r2204" )[0 ])
461+ ValidateSSHServiceEnabled (ctx , s )
462+ },
463+ },
464+ })
465+ }
466+
441467func Test_Ubuntu2204_EntraIDSSH (t * testing.T ) {
442468 RunScenario (t , & Scenario {
443469 Description : "Tests that a node using Ubuntu 2204 VHD with Entra ID SSH can be properly bootstrapped and SSH private key authentication is disabled" ,
0 commit comments