1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Remove CloudFlare test copy, and specifically test token auth

This commit is contained in:
Ross McFarland
2020-02-15 16:02:20 -08:00
parent 78383df99f
commit 59b12dd9c0
2 changed files with 11 additions and 1211 deletions

View File

@@ -1212,3 +1212,14 @@ class TestCloudflareProvider(TestCase):
self.assertFalse(
extra_changes[0].new._octodns['cloudflare']['proxied']
)
def test_emailless_auth(self):
provider = CloudflareProvider('test', token='token 123',
email='email 234')
headers = provider._sess.headers
self.assertEquals('email 234', headers['X-Auth-Email'])
self.assertEquals('token 123', headers['X-Auth-Key'])
provider = CloudflareProvider('test', token='token 123')
headers = provider._sess.headers
self.assertEquals('Bearer token 123', headers['Authorization'])