Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[auto/dotnet] Support for remote operations
- Loading branch information
Showing
19 changed files
with
1,097 additions
and
14 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog/pending/20221031--auto-dotnet--support-for-remote-operations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- type: feat | ||
scope: auto/dotnet | ||
description: Support for remote operations |
24 changes: 24 additions & 0 deletions
24
sdk/dotnet/Pulumi.Automation.Tests/RemoteWorkspaceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2016-2022, Pulumi Corporation | ||
|
||
using Xunit; | ||
|
||
namespace Pulumi.Automation.Tests | ||
{ | ||
public class RemoteWorkspaceTests | ||
{ | ||
[Theory] | ||
[InlineData("owner/project/stack", true)] | ||
[InlineData("", false)] | ||
[InlineData("name", false)] | ||
[InlineData("owner/name", false)] | ||
[InlineData("/", false)] | ||
[InlineData("//", false)] | ||
[InlineData("///", false)] | ||
[InlineData("owner/project/stack/wat", false)] | ||
public void IsFullyQualifiedStackName(string input, bool expected) | ||
{ | ||
var actual = RemoteWorkspace.IsFullyQualifiedStackName(input); | ||
Assert.Equal(expected, actual); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2016-2022, Pulumi Corporation | ||
|
||
namespace Pulumi.Automation | ||
{ | ||
public class EnvironmentVariableValue | ||
{ | ||
public string Value { get; set; } | ||
|
||
public bool IsSecret { get; set; } | ||
|
||
public EnvironmentVariableValue( | ||
string value, | ||
bool isSecret = false) | ||
{ | ||
Value = value; | ||
IsSecret = isSecret; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.