コード例 #1
0
 void AddDefaults(TestActionHandlerContext <Program> context)
 {
     context.Variables.Add(KnownVariables.Account.AccountType, "AzureServicePrincipal");
     context.Variables.Add("Octopus.Action.Azure.SubscriptionId", subscriptionId);
     context.Variables.Add("Octopus.Action.Azure.TenantId", tenantId);
     context.Variables.Add("Octopus.Action.Azure.ClientId", clientId);
     context.Variables.Add("Octopus.Action.Azure.Password", clientSecret);
 }
 void AddDefaults(TestActionHandlerContext <Program> context)
 {
     context.Variables.Add(Server.Contracts.KnownVariables.Account.AccountType, "AzureServicePrincipal");
     context.Variables.Add(AzureAccountVariables.SubscriptionId, subscriptionId);
     context.Variables.Add(AzureAccountVariables.TenantId, tenantId);
     context.Variables.Add(AzureAccountVariables.ClientId, clientId);
     context.Variables.Add(AzureAccountVariables.Password, clientSecret);
     context.Variables.Add(SpecialVariables.Action.Azure.ResourceGroupName, resourceGroup.Name);
     context.Variables.Add("ResourceGroup", resourceGroup.Name);
     context.Variables.Add("SKU", "Shared");
     context.Variables.Add("WebSite", SdkContext.RandomResourceName(String.Empty, 12));
     context.Variables.Add("Location", resourceGroup.RegionName);
     context.Variables.Add("AccountPrefix", SdkContext.RandomResourceName(String.Empty, 6));
 }
コード例 #3
0
        void AddDefaults(TestActionHandlerContext <Program> context, string webAppName)
        {
            context.Variables.Add(AccountVariables.ClientId, _clientId);
            context.Variables.Add(AccountVariables.Password, _clientSecret);
            context.Variables.Add(AccountVariables.TenantId, _tenantId);
            context.Variables.Add(AccountVariables.SubscriptionId, _subscriptionId);
            context.Variables.Add("Octopus.Action.Azure.ResourceGroupName", _resourceGroupName);
            context.Variables.Add("Octopus.Action.Azure.WebAppName", webAppName);
            context.Variables.Add(SpecialVariables.Action.Azure.AppSettings, _testAppSettings);
            context.Variables.Add(KnownVariables.Package.EnabledFeatures, KnownVariables.Features.SubstituteInFiles);

            context.Variables.Add(PackageVariables.SubstituteInFilesTargets, "index.html");
            context.Variables.Add("Greeting", _greeting);
        }