Ejemplo n.º 1
0
        public override async Task RunAsync(string[] args)
        {
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: Instrumentation.GetObserver());
            AllTests.Run(this, communicator, false).Shutdown();
        }
Ejemplo n.º 2
0
        public static async Task <int> Main(string[] args)
        {
            ICommunicatorObserver?      observer   = Instrumentation.GetObserver();
            Dictionary <string, string> properties = CreateTestProperties(ref args);

            properties["Ice.Warn.Dispatch"] = "0";
            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"] = "0";

            await using var communicator = CreateCommunicator(properties, observer: observer);
            return(await RunTestAsync <Collocated>(communicator, args));
        }
Ejemplo n.º 3
0
        public static async Task <int> Main(string[] args)
        {
            Dictionary <string, string> properties = CreateTestProperties(ref args);

            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"] = "0";

            await using var communicator = CreateCommunicator(properties, observer: Instrumentation.GetObserver());
            await communicator.ActivateAsync();

            return(await RunTestAsync <Client>(communicator, args));
        }
Ejemplo n.º 4
0
        public override async Task RunAsync(string[] args)
        {
            ICommunicatorObserver?      observer   = Instrumentation.GetObserver();
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            properties["Ice.Warn.Dispatch"] = "0";
            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: observer);

            communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0));
            communicator.CreateObjectAdapter("TestAdapter").Add("retry", new Retry());
            await AllTests.Run(this, communicator, true).ShutdownAsync();
        }
Ejemplo n.º 5
0
Archivo: Client.cs Proyecto: rtxlab/ice
        public override async Task RunAsync(string[] args)
        {
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";

            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: Instrumentation.GetObserver());
            // Configure a second communicator for the invocation timeout + retry test, we need to configure a large
            // retry interval to avoid time-sensitive failures.
            properties["Ice.RetryIntervals"]       = "0 1 10000";
            await using Communicator communicator2 = Initialize(properties, observer: Instrumentation.GetObserver());
            AllTests.Run(this, communicator, communicator2, GetTestProxy("retry", 0)).Shutdown();
        }
Ejemplo n.º 6
0
        public override async Task RunAsync(string[] args)
        {
            var properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";

            //
            // This test kills connections, so we don't want warnings.
            //
            properties["Ice.Warn.Connections"] = "0";
            await using var communicator       = Initialize(properties, observer: Instrumentation.GetObserver());
            //
            // Configure a second communicator for the invocation timeout
            // + retry test, we need to configure a large retry interval
            // to avoid time-sensitive failures.
            //
            properties["Ice.RetryIntervals"] = "0 1 10000";
            await using var communicator2    = Initialize(properties, observer: Instrumentation.GetObserver());
            AllTests.allTests(this, communicator, communicator2, $"retry:{GetTestEndpoint(0)}").shutdown();
        }
Ejemplo n.º 7
0
        public override void Run(string[] args)
        {
            var observer   = Instrumentation.GetObserver();
            var properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";
            properties["Ice.Warn.Dispatch"]  = "0";
            //
            // This test kills connections, so we don't want warnings.
            //
            properties["Ice.Warn.Connections"] = "0";
            using var communicator             = Initialize(properties, observer: observer);
            //
            // Configure a second communicator for the invocation timeout
            // + retry test, we need to configure a large retry interval
            // to avoid time-sensitive failures.
            //
            properties["Ice.RetryIntervals"] = "0 1 10000";
            using var communicator2          = Initialize(properties, observer: observer);
            communicator.CreateObjectAdapter().Add("retry", new Retry());
            communicator2.CreateObjectAdapter().Add("retry", new Retry());
            AllTests.allTests(this, communicator, communicator2, "retry").shutdown();
        }
Ejemplo n.º 8
0
        public override async Task RunAsync(string[] args)
        {
            ICommunicatorObserver?      observer   = Instrumentation.GetObserver();
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";
            properties["Ice.Warn.Dispatch"]  = "0";
            //
            // This test kills connections, so we don't want warnings.
            //
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: observer);
            //
            // Configure a second communicator for the invocation timeout
            // + retry test, we need to configure a large retry interval
            // to avoid time-sensitive failures.
            //
            properties["Ice.RetryIntervals"]        = "0 1 10000";
            await using Communicator? communicator2 = Initialize(properties, observer: observer);
            communicator.CreateObjectAdapter().Add("retry", new Retry());
            communicator2.CreateObjectAdapter().Add("retry", new Retry());
            await AllTests.Run(this, communicator, communicator2, "retry").ShutdownAsync();
        }