public async Task AzureDnsTest()
        {
            var config = TestHelper.AzureDnsSettings;

            var service = new AzureDnsProvider(config);

            var id = Guid.NewGuid().ToString();
            await service.PersistChallenge("_acme-challenge", id);


            var exists = await new DnsLookupService().Exists("*.ai4bots.com", id, service.MinimumTtl);

            Assert.IsTrue(exists);

            await service.Cleanup("_acme-challenge");
        }
Exemple #2
0
        public async Task AzureDnsTest()
        {
            var config = TestHelper.AzureDnsSettings;

            var service = new AzureDnsProvider(config);

            var id = Guid.NewGuid().ToString();
            await service.PersistChallenge(zoneName : Domain, recordSetName : "_acme-challenge", recordValue : id);


            var exists = await new DnsLookupService().Exists(HostName, id, service.MinimumTtl);

            Assert.IsTrue(exists);

            await service.Cleanup(Domain, "_acme-challenge");
        }