private void ValidateLogicalSubnet(LogicalSubnet logicalSubnet) { FabricCommon.ValidateResource(logicalSubnet); Assert.NotNull(logicalSubnet.IpPools); Assert.NotNull(logicalSubnet.IsPublic); }
private void ValidateLogicalNetwork(LogicalNetwork logicalNetwork) { FabricCommon.ValidateResource(logicalNetwork); Assert.NotNull(logicalNetwork.NetworkVirtualizationEnabled); Assert.NotNull(logicalNetwork.Subnets); }
private void ValiateInfraRoleInstance(InfraRoleInstance instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.ScaleUnit); Assert.NotNull(instance.ScaleUnitNode); Assert.NotNull(instance.Size); Assert.NotNull(instance.State); }
private void ValidateSlbMuxInstance(SlbMuxInstance instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.BgpPeers); Assert.NotNull(instance.ConfigurationState); Assert.NotNull(instance.VirtualServer); }
private void ValidateEdgeGateway(EdgeGateway gateway) { FabricCommon.ValidateResource(gateway); Assert.NotNull(gateway.AvailableCapacity); Assert.NotNull(gateway.NumberOfConnections); Assert.NotNull(gateway.State); Assert.NotNull(gateway.TotalCapacity); }
private void ValidateScaleUnit(ScaleUnit scaleUnit) { FabricCommon.ValidateResource(scaleUnit); Assert.NotNull(scaleUnit.LogicalFaultDomain); Assert.NotNull(scaleUnit.ScaleUnitType); Assert.NotNull(scaleUnit.State); Assert.NotNull(scaleUnit.TotalCapacity); }
private void ValidateMacAddressPool(MacAddressPool macAddressPool) { FabricCommon.ValidateResource(macAddressPool); Assert.NotNull(macAddressPool.NumberOfAllocatedMacAddresses); Assert.NotNull(macAddressPool.NumberOfAvailableMacAddresses); Assert.NotNull(macAddressPool.StartMacAddress); Assert.NotNull(macAddressPool.EndMacAddress); }
private void ValidateStorageSubSystem(StorageSubSystem instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.TotalCapacityGB); Assert.NotNull(instance.RemainingCapacityGB); Assert.NotNull(instance.HealthStatus); Assert.NotNull(instance.OperationalStatus); Assert.NotNull(instance.RebalanceStatus); }
private void ValidateEdgeGatewayPool(EdgeGatewayPool pool) { FabricCommon.ValidateResource(pool); Assert.NotNull(pool.Id); Assert.NotNull(pool.Location); Assert.NotNull(pool.Name); Assert.NotNull(pool.Type); Assert.NotNull(pool.GatewayType); Assert.NotNull(pool.PublicIpAddress); }
private void ValidateScaleUnitNode(ScaleUnitNode scaleUnitNode) { FabricCommon.ValidateResource(scaleUnitNode); Assert.NotNull(scaleUnitNode.CanPowerOff); Assert.NotNull(scaleUnitNode.Capacity); Assert.NotNull(scaleUnitNode.PowerState); Assert.NotNull(scaleUnitNode.ScaleUnitName); Assert.NotNull(scaleUnitNode.ScaleUnitNodeStatus); Assert.NotNull(scaleUnitNode.ScaleUnitUri); }
private void ValidateVolume(Volume instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.TotalCapacityGB); Assert.NotNull(instance.RemainingCapacityGB); Assert.NotNull(instance.HealthStatus); Assert.NotNull(instance.OperationalStatus); Assert.NotNull(instance.RepairStatus); Assert.NotNull(instance.Description); Assert.NotNull(instance.Action); Assert.NotNull(instance.VolumeLabel); }
private void ValidateIpPool(IpPool pool) { FabricCommon.ValidateResource(pool); // TODO: Can we test on when this is not supposed to be null? // This is allowed to be null //Assert.Null(pool.AddressPrefix, "AddressPrefix is null"); Assert.NotNull(pool.EndIpAddress); Assert.NotNull(pool.NumberOfAllocatedIpAddresses); Assert.NotNull(pool.NumberOfIpAddresses); Assert.NotNull(pool.NumberOfIpAddressesInTransition); Assert.NotNull(pool.StartIpAddress); }
private void ValidateDrive(Drive instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.StorageNode); Assert.NotNull(instance.SerialNumber); Assert.NotNull(instance.HealthStatus); Assert.NotNull(instance.OperationalStatus); Assert.NotNull(instance.Usage); Assert.NotNull(instance.CanPool); Assert.NotNull(instance.CannotPoolReason); Assert.NotNull(instance.PhysicalLocation); Assert.NotNull(instance.Model); Assert.NotNull(instance.MediaType); Assert.NotNull(instance.CapacityGB); Assert.NotNull(instance.Description); Assert.NotNull(instance.Action); }
private void ValidateDrive(Drive instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.StorageNode); Assert.NotNull(instance.SerialNumber); Assert.NotNull(instance.HealthStatus); Assert.NotNull(instance.OperationalStatus); Assert.NotNull(instance.Usage); Assert.NotNull(instance.PhysicalLocation); Assert.NotNull(instance.Model); Assert.NotNull(instance.FirmwareVersion); Assert.NotNull(instance.IsIndicationEnabled); Assert.NotNull(instance.Manufacturer); Assert.NotNull(instance.StoragePool); Assert.NotNull(instance.MediaType); Assert.NotNull(instance.CapacityGB); Assert.NotNull(instance.Description); Assert.NotNull(instance.Action); }
private void ValidateFabricLocation(FabricLocation location) { FabricCommon.ValidateResource(location); }
private void ValidateFileShare(FileShare share) { FabricCommon.ValidateResource(share); Assert.NotNull(share.AssociatedVolume); Assert.NotNull(share.UncPath); }
private void ValidateInfraRole(InfraRole role) { Assert.True(FabricCommon.ValidateResource(role)); Assert.NotNull(role.Instances); }
private void ValidateStoragePool(StoragePool instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.SizeGB); }
private void ValidateStorageSystem(StorageSystem instance) { FabricCommon.ValidateResource(instance); Assert.NotNull(instance.TotalCapacityGB); }