Пример #1
0
        public async Task SetupInfrastructure()
        {
            await PreInitialise();

            terraformWorkingFolder = InitialiseTerraformWorkingFolder($"terraform_working/{KubernetesCloudProvider}",
                                                                      $"KubernetesFixtures/Terraform/Clusters/{KubernetesCloudProvider}");

            installTools = new InstallTools(TestContext.Progress.WriteLine);
            await installTools.Install();

            await InstallOptionalTools(installTools);

            InitialiseInfrastructure(terraformWorkingFolder);
        }
Пример #2
0
 protected override IEnumerable <string> ToolsToAddToPath(InstallTools tools)
 {
     yield break;
 }
Пример #3
0
 protected override async Task InstallOptionalTools(InstallTools tools)
 {
     await tools.InstallGCloud();
 }
Пример #4
0
 protected override IEnumerable <string> ToolsToAddToPath(InstallTools tools)
 {
     yield return(tools.GcloudExecutable);
 }
Пример #5
0
 protected abstract IEnumerable <string> ToolsToAddToPath(InstallTools tools);
Пример #6
0
 protected virtual Task InstallOptionalTools(InstallTools tools)
 {
     return(Task.CompletedTask);
 }
 protected override IEnumerable <string> ToolsToAddToPath(InstallTools tools)
 {
     yield return(tools.AwsAuthenticatorExecutable);
 }
 protected override async Task InstallOptionalTools(InstallTools tools)
 {
     await tools.InstallAwsAuthenticator();
 }