public override async Task RunAsync(string[] args) { if (args.Length < 1) { throw new ArgumentException("Usage: client testdir"); } await AllTests.RunAsync(this, args[0]); }
public override async Task RunAsync(string[] args) { await Communicator.ActivateAsync(); Communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0)); ObjectAdapter adapter = Communicator.CreateObjectAdapter("TestAdapter"); adapter.Add("metrics", new Metrics()); // Don't activate OA to ensure collocation is used. await AllTests.RunAsync(this, _observer !, colocated : true); }
public override async Task RunAsync(string[] args) { var observer = new CommunicatorObserver(); Dictionary <string, string> properties = CreateTestProperties(ref args); bool ice1 = GetTestProtocol(properties) == Protocol.Ice1; properties["Ice.Admin.Endpoints"] = ice1 ? "tcp -h 127.0.0.1" : "ice+tcp://127.0.0.1:0"; properties["Ice.Admin.InstanceName"] = "client"; properties["Ice.Warn.Connections"] = "0"; properties["Ice.ConnectTimeout"] = "3s"; properties["Ice.InvocationMaxAttempts"] = "2"; await using Communicator? communicator = Initialize(properties, observer: observer); IMetricsPrx metrics = await AllTests.RunAsync(this, observer, colocated : false); await metrics.ShutdownAsync(); }
public override async Task RunAsync(string[] args) { Dictionary <string, string> properties = CreateTestProperties(ref args); // TODO: remove this when Never is the communicator default properties["Ice.Default.PreferNonSecure"] = "Never"; await using Ice.Communicator communicator = Initialize(properties); if (args.Length < 1) { throw new ArgumentException("Usage: client testdir"); } IServerFactoryPrx factory; factory = await AllTests.RunAsync(this, args[0]); await factory.ShutdownAsync(); }
public override async Task RunAsync(string[] args) { var observer = new CommunicatorObserver(); Dictionary <string, string> properties = CreateTestProperties(ref args); bool ice1 = GetTestProtocol(properties) == Protocol.Ice1; properties["Ice.Admin.Endpoints"] = ice1 ? "tcp -h 127.0.0.1" : "ice+tcp://127.0.0.1:0"; properties["Ice.Admin.InstanceName"] = "colocated"; properties["Ice.Warn.Connections"] = "0"; properties["Ice.Warn.Dispatch"] = "0"; properties["Ice.InvocationMaxAttempts"] = "2"; await using Communicator communicator = Initialize(properties, observer: observer); communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0)); ObjectAdapter adapter = communicator.CreateObjectAdapter("TestAdapter"); adapter.Add("metrics", new Metrics()); // Don't activate OA to ensure collocation is used. IMetricsPrx metrics = await AllTests.RunAsync(this, observer, colocated : true); await metrics.ShutdownAsync(); }
public override Task RunAsync(string[] args) => AllTests.RunAsync(this);
public override Task RunAsync(string[] args) => AllTests.RunAsync(this, _observer !, colocated: false);