Skip to content

Commit

Permalink
try server
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-msft committed Nov 2, 2023
1 parent 3a0aca4 commit 7585e34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/AppInstallerCLIE2ETests/ConfigureCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public void ResourceCaseInsensitive()
/// <summary>
/// Simple test to configure from an https configuration file.
/// </summary>
[Test]
public void ConfigureFromHttpsConfigurationFile()
{
string args = $"{Constants.TestSourceUrl}/TestData/Configuration/Configure_TestRepo_Location.yml";
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCLIE2ETests/ConfigureTestCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void ConfigureTest_TestFailure()
[Test]
public void ConfigureTest_HttpsConfigurationFile()
{
var result = TestCommon.RunAICLICommand(CommandAndAgreements, $"{Constants.TestSourceUrl}/Configuration/Configure_TestRepo_Location.yml");
var result = TestCommon.RunAICLICommand(CommandAndAgreements, $"{Constants.TestSourceUrl}/TestData/Configuration/Configure_TestRepo_Location.yml");
Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode);
Assert.True(result.StdOut.Contains("System is in the described configuration state."));
}
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCLIE2ETests/ConfigureValidateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public void NoIssuesDetected()
[Test]
public void NoIssuesDetected_HttpsConfigurationFile()
{
var result = TestCommon.RunAICLICommand(Command, $"{Constants.TestSourceUrl}/Configuration/PSGallery_NoSettings.yml", timeOut: 120000);
var result = TestCommon.RunAICLICommand(Command, $"{Constants.TestSourceUrl}/TestData/Configuration/PSGallery_NoSettings.yml", timeOut: 120000);
Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode);
Assert.True(result.StdOut.Contains("Validation found no issues."));
}
Expand Down
1 change: 1 addition & 0 deletions src/LocalhostWebServer/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

//Add .yaml and .msix mappings
var provider = new FileExtensionContentTypeProvider();
provider.Mappings[".yml"] = "application/x-yaml";
provider.Mappings[".yaml"] = "application/x-yaml";
provider.Mappings[".msix"] = "application/msix";
provider.Mappings[".exe"] = "application/x-msdownload";
Expand Down

0 comments on commit 7585e34

Please sign in to comment.