Skip to content

Commit

Permalink
still troubleshooting macos/linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 1, 2023
1 parent 6c9e9d4 commit 5267ef0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions OpenZiti.NET.Tests/DataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class DataTests {
#pragma warning disable IDE0060 // Remove unused parameter
public static void ClassInitialize(TestContext context) {
// Code to run once before all test methods in the class
LoggingHelper.SimpleConsoleLogging(MLog.LogLevel.Trace);
//LoggingHelper.SimpleConsoleLogging(MLog.LogLevel.Trace);

OpenZiti.API.NativeLogger = OpenZiti.API.DefaultNativeLogFunction;
OpenZiti.API.InitializeZiti();
Expand Down Expand Up @@ -86,9 +86,10 @@ public async Task TestWeatherAsync() {
}
};

var httpReqHandler = new LoggingHandler(handler);
//var httpReqHandler = new LoggingHandler(handler);

var nonValidatingHttpClient = new HttpClient(httpReqHandler);
//var nonValidatingHttpClient = new HttpClient(httpReqHandler);
var nonValidatingHttpClient = new HttpClient(handler);
ManagementAPI mapi = new ManagementAPI(nonValidatingHttpClient) {
BaseUrl = "https://appetizer.openziti.io:8441/edge/management/v1"
};
Expand Down Expand Up @@ -117,9 +118,9 @@ public async Task TestWeatherAsync() {
ConfigTypeId = cfgId,
Data = obj1
};
httpReqHandler.DoLogging = true;
//httpReqHandler.DoLogging = true;
var createdConfig = await mapi.CreateConfigAsync(createConfig);
httpReqHandler.DoLogging = false;
//httpReqHandler.DoLogging = false;

//create the weather service
await h.DeleteServiceByName(svcName);
Expand Down Expand Up @@ -189,7 +190,8 @@ public async Task TestWeatherAsync() {

var c = new ZitiContext(tempFilePath);
var zitiSocketHandler = c.NewZitiSocketHandler(svcName);
var client = new HttpClient(new LoggingHandler(zitiSocketHandler));
//var client = new HttpClient(new LoggingHandler(zitiSocketHandler));
var client = new HttpClient(handler);
client.DefaultRequestHeaders.Add("User-Agent", "curl/7.59.0");

var result = await client.GetStringAsync("https://wttr.in:443");
Expand Down

0 comments on commit 5267ef0

Please sign in to comment.