public async Task TestConnection (TestContext ctx, CancellationToken cancellationToken,
			InstrumentationConnectionProvider provider,
			SimpleConnectionParameters parameters,
			SimpleConnectionTestRunner runner)
		{
			await runner.Run (ctx, cancellationToken);
		}
 public async Task TestConnection(TestContext ctx, CancellationToken cancellationToken,
                                  InstrumentationConnectionProvider provider,
                                  SimpleConnectionParameters parameters,
                                  SimpleConnectionTestRunner runner)
 {
     await runner.Run(ctx, cancellationToken);
 }
Esempio n. 3
0
 public async Task TestServer(TestContext ctx, CancellationToken cancellationToken,
                              MonoConnectionTestProvider provider,
                              SimpleConnectionParameters parameters,
                              SimpleConnectionTestRunner runner)
 {
     await runner.Run(ctx, cancellationToken);
 }
		public Task TestAllVersions (TestContext ctx, CancellationToken cancellationToken,
			InstrumentationConnectionProvider provider,
			SimpleConnectionParameters parameters,
			[ProtocolVersions] ProtocolVersions protocolVersion,
			SimpleConnectionTestRunner runner)
		{
			return runner.Run (ctx, cancellationToken);
		}
 public Task TestAllVersions(TestContext ctx, CancellationToken cancellationToken,
                             InstrumentationConnectionProvider provider,
                             SimpleConnectionParameters parameters,
                             [ProtocolVersions] ProtocolVersions protocolVersion,
                             SimpleConnectionTestRunner runner)
 {
     return(runner.Run(ctx, cancellationToken));
 }
Esempio n. 6
0
        public async Task TestInKeyChain(TestContext ctx, CancellationToken cancellationToken,
                                         AppleCertificateHost certificateHost,
                                         MonoConnectionTestProvider provider,
                                         SimpleConnectionParameters parameters,
                                         SimpleConnectionTestRunner runner)
        {
            var appleCertificateProvider = DependencyInjector.Get <IAppleCertificateProvider> ();

            ctx.Assert(appleCertificateProvider.IsInKeyChain(certificateHost.AppleCertificate), "certificate must be in keychain");
            await runner.Run(ctx, cancellationToken);
        }
Esempio n. 7
0
        public async Task TestNotInKeyChain(TestContext ctx, CancellationToken cancellationToken,
                                            MonoConnectionTestProvider provider,
                                            SimpleConnectionParameters parameters,
                                            SimpleConnectionTestRunner runner)
        {
            // FIXME: SecPKCS12Import actually imports the certificate and its private key into the keychain.
            var appleCertificateProvider = DependencyInjector.Get <IAppleCertificateProvider> ();

            ctx.Assert(appleCertificateProvider.IsInKeyChain(parameters.ServerCertificate), Is.False, "certificate must not be in keychain");
            await runner.Run(ctx, cancellationToken);
        }
Esempio n. 8
0
        public IEnumerable <SimpleConnectionParameters> GetParameters(TestContext ctx, string filter)
        {
            if (filter != null)
            {
                throw new NotImplementedException();
            }

            var category = ctx.GetParameter <InstrumentationCategory> ();

            var parameters = SimpleConnectionTestRunner.GetParameters(ctx, category);

            if (Type != null)
            {
                return(parameters.Where(p => p.Type == Type));
            }

            return(parameters);
        }