private static MetadataJson CreateTestMetadata(string windowsKeys, bool disableAccountManager = false)
        {
            AttributesJson attributes = MetadataJsonHelpers.GetAttributesJson(
                windowsKeys: windowsKeys,
                disableAccountsManager: disableAccountManager);
            InstanceJson instance = MetadataJsonHelpers.GetInstanceMetadataJson(attributes: attributes);

            return(MetadataJsonHelpers.GetMetadataJson(instance: instance));
        }
Exemplo n.º 2
0
        private static MetadataJson CreateTestMetadata(string[] forwardAddresses, bool disableAddressManager = true)
        {
            AttributesJson attributes = MetadataJsonHelpers.GetAttributesJson(
                disableAddressManager: disableAddressManager);
            InstanceJson instance = MetadataJsonHelpers.GetInstanceMetadataJson(
                attributes,
                new[] { MetadataJsonHelpers.GetNetworkInterfacesJson(inputIPs: forwardAddresses) });

            return(MetadataJsonHelpers.GetMetadataJson(instance: instance));
        }