Skip to content

Commit

Permalink
Bringing back Generator tests to Linux run
Browse files Browse the repository at this point in the history
  • Loading branch information
Hovsep Mkrtchyan committed May 19, 2016
1 parent a1ac974 commit 191cac8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void AzureCustomBaseUriTests()
using (var client = new AutoRestParameterizedHostTestClient(new TokenCredentials(Guid.NewGuid().ToString())))
{
// small modification to the "host" portion to include the port and the '.'
client.Host = string.Format(CultureInfo.InvariantCulture, "{0}.:{1}", client.Host, Fixture.Port);
client.Host = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", client.Host, Fixture.Port);
Assert.Equal(HttpStatusCode.OK,
client.Paths.GetEmptyWithHttpMessagesAsync("local").Result.Response.StatusCode);
}
Expand Down
4 changes: 2 additions & 2 deletions AutoRest/Generators/CSharp/CSharp.Tests/AcceptanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ public void CustomBaseUriTests()
using (var client = new AutoRestParameterizedHostTestClient())
{
// small modification to the "host" portion to include the port and the '.'
client.Host = string.Format(CultureInfo.InvariantCulture, "{0}.:{1}", client.Host, Fixture.Port);
client.Host = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", client.Host, Fixture.Port);
Assert.Equal(HttpStatusCode.OK,
client.Paths.GetEmptyWithHttpMessagesAsync("local").Result.Response.StatusCode);
}
Expand All @@ -1969,7 +1969,7 @@ public void CustomBaseUriMoreOptionsTests()
{
client.SubscriptionId = "test12";
// small modification to the "host" portion to include the port and the '.'
client.DnsSuffix = string.Format(CultureInfo.InvariantCulture, "{0}.:{1}", "host", Fixture.Port);
client.DnsSuffix = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", "host", Fixture.Port);
Assert.Equal(HttpStatusCode.OK,
client.Paths.GetEmptyWithHttpMessagesAsync("http://lo", "cal", "key1").Result.Response.StatusCode);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static string AcceptanceTestsPath

public Uri Uri
{
get { return new Uri(string.Format(CultureInfo.InvariantCulture, "http://localhost.:{0}", Port)); }
get { return new Uri(string.Format(CultureInfo.InvariantCulture, "http://localhost:{0}", Port)); }
}

/// <summary>
Expand Down
8 changes: 2 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,16 +555,12 @@ var xunitTestsDlls = [
];

var xunitNetCoreXproj = [
'AutoRest/Generators/CSharp/CSharp.Tests/project.json',
'AutoRest/Generators/CSharp/Azure.CSharp.Tests/project.json',
'ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime.Tests/project.json',
'ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime.Azure.Tests/project.json'
];

// Fix the test execution bug on travis
if(isWindows) {
xunitNetCoreXproj.push('AutoRest/Generators/CSharp/Azure.CSharp.Tests/project.json');
xunitNetCoreXproj.push('AutoRest/Generators/CSharp/CSharp.Tests/project.json');
}

var defaultShellOptions = {
verbosity: 3,
env: {
Expand Down

0 comments on commit 191cac8

Please sign in to comment.