Skip to content

Commit

Permalink
Change default of IsEncrypted to false in func init. Closes #140
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmelsayed committed May 16, 2017
1 parent 160a8fb commit 0dd48bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Azure.Functions.Cli/Actions/LocalActions/InitAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class InitAction : BaseAction
"},
{ new Lazy<string>(() => ScriptConstants.HostMetadataFileName), "{ }" },
{ new Lazy<string>(() => SecretsManager.AppSettingsFileName), @"{
""IsEncrypted"": true,
""IsEncrypted"": false,
""Values"": {
""AzureWebJobsStorage"": """"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void AddSettingsActionTest(string name, string value)
// Assert
content.Should().Contain(name);
content.Should().Contain("IsEncrypted");
content.Should().Contain("true");
content.Should().Contain("false");
}

[Theory]
Expand Down Expand Up @@ -63,13 +63,6 @@ public void DecryptAndEncryptSettingsActionTest(string name, string value)

var content = File.ReadAllText(settingsPath);
content.Should().Contain(name);
content.Should().NotContain(value);
content.Should().Contain("true");

Program.Main(new[] { "settings", "decrypt" });

content = File.ReadAllText(settingsPath);
content.Should().Contain(name);
content.Should().Contain(value);
content.Should().Contain("false");

Expand All @@ -79,6 +72,13 @@ public void DecryptAndEncryptSettingsActionTest(string name, string value)
content.Should().Contain(name);
content.Should().NotContain(value);
content.Should().Contain("true");

Program.Main(new[] { "settings", "decrypt" });

content = File.ReadAllText(settingsPath);
content.Should().Contain(name);
content.Should().Contain(value);
content.Should().Contain("false");
}

[Theory]
Expand Down

0 comments on commit 0dd48bf

Please sign in to comment.