public async void ShouldReturnExportedOutputsAsImports() { var cmd = new GetStackOutputsCommand { StackName = "test-stack", AsCrossStackReferences = true }; var result = (string)await cmd.GetStackOutputs( this.Context, this.ClientFactory, GetStackOutputsCommand.ImportsParameterSet); result.Should().NotContain("SecondParameter", "ExportName is not declared on this parameter"); }
public async void ShouldReturnOutputsAsParameterBlock() { var cmd = new GetStackOutputsCommand { StackName = "test-stack", AsParameterBlock = true }; var result = (string)await cmd.GetStackOutputs( this.Context, this.ClientFactory, GetStackOutputsCommand.ImportsParameterSet); result.Should().Contain("FirstParameter").And.Contain("SecondParameter"); }
public async void ShouldReturnTwoParametersWithExpectedValuesAsHashtable() { var cmd = new GetStackOutputsCommand { StackName = "test-stack", AsHashTable = true }; var result = (Hashtable)await cmd.GetStackOutputs( this.Context, this.ClientFactory, GetStackOutputsCommand.HashParameterSet); result.Count.Should().Be(2); result["FirstParameter"].Should().Be("arn:aws:first-parameter"); result["SecondParameter"].Should().Be("arn:aws:second-parameter"); }