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);
 }
Ejemplo n.º 4
0
        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);
 }
Ejemplo n.º 6
0
        private void ValidateScaleUnit(ScaleUnit scaleUnit)
        {
            FabricCommon.ValidateResource(scaleUnit);

            Assert.NotNull(scaleUnit.LogicalFaultDomain);
            Assert.NotNull(scaleUnit.ScaleUnitType);
            Assert.NotNull(scaleUnit.State);
            Assert.NotNull(scaleUnit.TotalCapacity);
        }
Ejemplo n.º 7
0
        private void ValidateMacAddressPool(MacAddressPool macAddressPool)
        {
            FabricCommon.ValidateResource(macAddressPool);

            Assert.NotNull(macAddressPool.NumberOfAllocatedMacAddresses);
            Assert.NotNull(macAddressPool.NumberOfAvailableMacAddresses);
            Assert.NotNull(macAddressPool.StartMacAddress);
            Assert.NotNull(macAddressPool.EndMacAddress);
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
 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);
        }
Ejemplo n.º 11
0
        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);
        }
Ejemplo n.º 12
0
        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);
        }
Ejemplo n.º 13
0
        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);
        }
Ejemplo n.º 14
0
        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);
        }
Ejemplo n.º 15
0
 private void ValidateFabricLocation(FabricLocation location)
 {
     FabricCommon.ValidateResource(location);
 }
Ejemplo n.º 16
0
 private void ValidateFileShare(FileShare share)
 {
     FabricCommon.ValidateResource(share);
     Assert.NotNull(share.AssociatedVolume);
     Assert.NotNull(share.UncPath);
 }
Ejemplo n.º 17
0
 private void ValidateInfraRole(InfraRole role)
 {
     Assert.True(FabricCommon.ValidateResource(role));
     Assert.NotNull(role.Instances);
 }
Ejemplo n.º 18
0
        private void ValidateStoragePool(StoragePool instance)
        {
            FabricCommon.ValidateResource(instance);

            Assert.NotNull(instance.SizeGB);
        }
        private void ValidateStorageSystem(StorageSystem instance)
        {
            FabricCommon.ValidateResource(instance);

            Assert.NotNull(instance.TotalCapacityGB);
        }