pax_global_header00006660000000000000000000000064132560636670014530gustar00rootroot0000000000000052 comment=3956ac9131a4c679aa9094f3b3a49a43591e3d3d lexicon-2.2.1/000077500000000000000000000000001325606366700131735ustar00rootroot00000000000000lexicon-2.2.1/.coveralls.yml000066400000000000000000000002021325606366700157600ustar00rootroot00000000000000repo_token: K7XQTZU3EAqFYrSGwlSZPWmn4VifLTSHR service_name: circleci parallel: false # if the CI is running your build in parallellexicon-2.2.1/.gitignore000066400000000000000000000015011325606366700151600ustar00rootroot00000000000000# Created by .ignore support plugin (hsz.mobi) ### Python template # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python env/ build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ *.egg-info/ .installed.cfg *.egg # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *,cover # Translations *.mo *.pot # Django stuff: *.log # Sphinx documentation docs/_build/ # PyBuilder target/ # Intellij .idea container_settings.json src/ venv/lexicon-2.2.1/CODEOWNERS000066400000000000000000000035111325606366700145660ustar00rootroot00000000000000# This is a comment. # Each line is a file pattern followed by one or more owners. # Order is important; the last matching pattern takes the most # precedence. When someone opens a pull request that only # modifies JS files, only @js-owner and not the global # owner(s) will be requested for a review. # *.js @js-owner # You can also use email addresses if you prefer. They'll be # used to look up users just like we do for commit author # emails. # *.go docs@example.com lexicon/providers/aurora.py @joostdebruijn lexicon/providers/cloudflare.py @analogj lexicon/providers/cloudns.py @ppmathis lexicon/providers/cloudxns.py @zh99998 lexicon/providers/digitalocean.py @analogj lexicon/providers/dnsimple.py @analogj lexicon/providers/dnsmadeeasy.py @analogj @nydr lexicon/providers/dnspark.py @analogj lexicon/providers/dnspod.py @analogj lexicon/providers/easydns.py @analogj lexicon/providers/gandi.py @hrunting @adferrand lexicon/providers/gehirn.py @chibiegg lexicon/providers/glesys.py @hecd lexicon/providers/godaddy.py @adferrand lexicon/providers/linode.py @trinopoty lexicon/providers/luadns.py @analogj lexicon/providers/memset.py @tnwhitwell lexicon/providers/namecheap.py @pschmitt @rbelnap lexicon/providers/namesilo.py @analogj lexicon/providers/nsone.py @init-js @trinopoty lexicon/providers/onapp.py @alexzorin lexicon/providers/ovh.py @adferrand lexicon/providers/pointhq.py @analogj lexicon/providers/powerdns.py @insertjokehere lexicon/providers/rackspace.py @rmarscher lexicon/providers/rage4.py @analogj lexicon/providers/route53.py @eadmundo lexicon/providers/sakuracloud.py @chibiegg lexicon/providers/softlayer.py @adherzog lexicon/providers/transip.py @LordGaav @yorickvP lexicon/providers/vultr.py @analogj lexicon/providers/yandex.py @kharkevich lexicon/providers/zonomi.py @jarossi lexicon-2.2.1/CONTRIBUTING.md000066400000000000000000000171671325606366700154400ustar00rootroot00000000000000# How to contribute Thanks! There are tons of different DNS services, and unfortunately a large portion of them require paid accounts, which makes it hard for us to develop `lexicon` providers on our own. We want to keep it as easy as possible to contribute to `lexicon`, so that you can automate your favorite DNS service. There are a few guidelines that we need contributors to follow so that we can keep on top of things. ## Getting Started Fork, then clone the repo: $ git clone git@github.com:your-username/lexicon.git Create a python virtual environment $ virtualenv -p python2.7 venv $ source venv/bin/activate Install all `lexicon` requirements: $ pip install -r optional-requirements.txt $ pip install -r test-requirements.txt Install `lexicon` in development mode $ pip install -e . Make sure the tests pass: $ py.test tests You can test a specific provider using: $ py.test tests/providers/test_foo.py ## Adding a new DNS provider Now that you have a working development environment, lets add a new provider. Internally lexicon does a bit of magic to wire everything together, so the only thing you'll really need to do is is create the following file. - `lexicon/providers/foo.py` Where `foo` should be replaced with the name of the DNS service in lowercase and without spaces or special characters (eg. `cloudflare`) Your provider file should contain 2 things: - a `ProviderParser` which is used to add provider specific commandline arguments. eg. If you define two cli arguments: `--auth-username` and `--auth-token`, those values will be available to your provider via `self.options['auth_username']` or `self.options['auth_token']` respectively - a `Provider` class which inherits from [`BaseProvider`](https://github.com/AnalogJ/lexicon/blob/master/lexicon/providers/base.py), which is in the `base.py` file. The [`BaseProvider`](https://github.com/AnalogJ/lexicon/blob/master/lexicon/providers/base.py) defines the following functions, which must be overridden in your provider implementation: - `authenticate` - `create_record` - `list_records` - `update_record` - `delete_record` - `_request` It also provides a few helper functions which you can use to simplify your implemenation. See the [`cloudflare.py`](https://github.com/AnalogJ/lexicon/blob/master/lexicon/providers/cloudflare.py) file, or any provider in the [`lexicon/providers/`](https://github.com/AnalogJ/lexicon/tree/master/lexicon/providers) folder for examples ## Testing your provider First let's validate that your provider shows up in the CLI $ lexicon foo --help If everything worked correctly, you should get a help page that's specific to your provider, including your custom optional arguments. Now you can run some manual commands against your provider to verify that everything works as you expect. $ lexicon foo list example.com TXT $ lexicon foo create example.com TXT --name demo --content "fake content" Once you're satisfied that your provider is working correctly, we'll run the integration test suite against it, and verify that your provider responds the same as all other `lexicon` providers. `lexicon` uses `vcrpy` to make recordings of actual HTTP requests against your DNS service's API, and then reuses those recordings during testing. The only thing you need to do is create the following file: - `tests/providers/test_foo.py` Then you'll need to populate it with the following template: ```python # Test for one implementation of the interface from lexicon.providers.foo import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class FooProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'foo' domain = 'example.com' def _filter_post_data_parameters(self): return ['login_token'] def _filter_headers(self): return ['Authorization'] def _filter_query_parameters(self): return ['secret_key'] ``` Make sure to replace any instance of `foo` or `Foo` with your provider name. `domain` should be a real domain registered with your provider (some providers have a sandbox/test environment which doesn't require you to validate ownership). The `_filter_*` methods ensure that your credentials are not included in the `vcrpy` recordings that are created. You can take a look at recordings for other providers, they are stored in the [`tests/fixtures/cassettes/`](https://github.com/AnalogJ/lexicon/tree/master/tests/fixtures/cassettes) sub-folders. Then you'll need to setup your environment variables for testing. Unlike running `lexicon` via the CLI, the test suite cannot take user input, so we'll need to provide any `auth-*` secrets/arguments using environmental variables prefixed with `LEXICON_FOO_`. eg. if you had a `--auth-token` CLI argument, you can also populate it using the `LEXICON_FOO_TOKEN` environmental variable. Notice that only `--auth-*` arguments can be passed like this. All non-secret arguments should be specified in the `test_options`. See [powerdns test suite](https://github.com/AnalogJ/lexicon/blob/82fa5056df2122357af7f9bec94aebc58b247f91/tests/providers/test_powerdns.py#L18-L21) for an example. ## Test recordings Now run the `py.test` suite again. It will automatically generate recordings for your provider: py.test tests/providers/test_foo.py If any of the integration tests fail on your provider, you'll need to delete the recordings that were created, make your changes and then try again. rm -rf tests/fixtures/cassettes/foo/IntegrationTests Once all your tests pass, you'll want to double check that there is no sensitive data in the `tests/fixtures/cassettes/foo/IntegrationTests` folder, and then `git add` the whole folder. git add tests/fixtures/cassettes/foo/IntegrationTests Finally, push your changes to your Github fork, and open a PR. :) ## Skipping Tests/Suites Neither of the snippets below should be used unless necessary. They are only included in the interest of documentation. In your `tests/providers/test_foo.py` file, you can use `@pytest.mark.skip` to skip any individual test that does not apply (and will never pass) ```python @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return ``` You can also skip extended test suites by adding the following snipped: ```python @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite') ``` ## CODEOWNERS file Next, you should add yourself to the [CODEOWNERS file](https://github.com/AnalogJ/lexicon/blob/master/CODEOWNERS), in the root of the repo. Github will automatically ask [for you to review any PR's that modify your provider](https://blog.github.com/2017-07-06-introducing-code-owners/). More importantly, it's also my way of keeping track of who to ping when I need updated recordings as the test suites expand & change. ## Additional Notes Please keep in mind the following: - `lexicon` is designed to work with multiple versions of python. That means your code will be tested against python 2.7, 3.4, 3.5 - any provider specific dependenices should be added to the `setup.py` file, under the `extra_requires` heading. The group name should be the name of the provider. eg: extras_require={ 'route53': ['boto3'] } when adding a new group, make sure it has been added to the `optional-requirements.txt` file as well. lexicon-2.2.1/Dockerfile000066400000000000000000000017731325606366700151750ustar00rootroot00000000000000FROM python:2 MAINTAINER Jason Kulatunga # Setup dependencies RUN apt-get update && \ apt-get -y install cron rsyslog git --no-install-recommends && \ rm -rf /var/lib/apt/lists/* && \ sed -i 's/session required pam_loginuid.so/#session required pam_loginuid.so/' /etc/pam.d/cron # Install dehydrated (letsencrypt client) & dns-lexicon RUN git clone --depth 1 https://github.com/lukas2511/dehydrated.git /srv/dehydrated && \ pip install requests[security] dns-lexicon # Copy over dehydrated and & cron files COPY ./examples/dehydrated.default.sh /srv/dehydrated/dehydrated.default.sh COPY ./examples/crontab /etc/crontab COPY ./examples/cron.sh /srv/dehydrated/cron.sh # Configure dehydrated and Cron # FIXME: This should be replaced with *your* domain name using a volume mount RUN echo "test.intranet.example.com" > /srv/dehydrated/domains.txt && \ chmod +x /srv/dehydrated/cron.sh && \ crontab /etc/crontab && \ touch /var/log/cron CMD [ "/srv/dehydrated/cron.sh" ] lexicon-2.2.1/LICENSE000066400000000000000000000020721325606366700142010ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2016 Jason Kulatunga Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. lexicon-2.2.1/MANIFEST.in000066400000000000000000000000621325606366700147270ustar00rootroot00000000000000include README.md LICENSE requirements.txt VERSIONlexicon-2.2.1/README.md000066400000000000000000000272311325606366700144570ustar00rootroot00000000000000[![Circle CI](https://circleci.com/gh/AnalogJ/lexicon.svg?style=shield)](https://circleci.com/gh/AnalogJ/lexicon) [![Coverage Status](https://coveralls.io/repos/github/AnalogJ/lexicon/badge.svg)](https://coveralls.io/github/AnalogJ/lexicon?branch=master) [![Docker Pulls](https://img.shields.io/docker/pulls/analogj/lexicon.svg)](https://hub.docker.com/r/analogj/lexicon) [![PyPI](https://img.shields.io/pypi/v/dns-lexicon.svg)](https://pypi.python.org/pypi/dns-lexicon) [![PyPI](https://img.shields.io/pypi/pyversions/dns-lexicon.svg)](https://pypi.python.org/pypi/dns-lexicon) [![GitHub license](https://img.shields.io/github/license/AnalogJ/lexicon.svg)](https://github.com/AnalogJ/lexicon/blob/master/LICENSE) # lexicon Manipulate DNS records on various DNS providers in a standardized/agnostic way. ## Introduction Lexicon provides a way to manipulate DNS records on multiple DNS providers in a standardized way. Lexicon has a CLI but it can also be used as a python library. Lexicon was designed to be used in automation, specifically letsencrypt. - [Generating Intranet & Private Network SSL Certificates using Lets Encrypt & Lexicon](http://blog.thesparktree.com/post/138999997429/generating-intranet-and-private-network-ssl) ## Providers Only DNS providers who have an API can be supported by `lexicon`. The current supported providers are: - AuroraDNS ([docs](https://www.pcextreme.com/aurora/dns)) - AWS Route53 ([docs](https://docs.aws.amazon.com/Route53/latest/APIReference/Welcome.html)) - Cloudflare ([docs](https://api.cloudflare.com/#endpoints)) - ClouDNS ([docs](https://www.cloudns.net/wiki/article/56/)) - CloudXNS ([docs](https://www.cloudxns.net/Support/lists/cid/17.html)) - DigitalOcean ([docs](https://developers.digitalocean.com/documentation/v2/#create-a-new-domain)) - DNSimple ([docs](https://developer.dnsimple.com/)) - DnsMadeEasy ([docs](http://www.dnsmadeeasy.com/pdf/API-Docv2.pdf)) - DNSPark ([docs](https://dnspark.zendesk.com/entries/31210577-REST-API-DNS-Documentation)) - DNSPod ([docs](https://support.dnspod.cn/Support/api)) - EasyDNS ([docs](http://docs.sandbox.rest.easydns.net/)) - Gandi ([docs](http://doc.rpc.gandi.net/)) - Gehirn Infrastructure Service ([docs](https://support.gehirn.jp/apidocs/gis/dns/index.html)) - Glesys ([docs](https://github.com/glesys/API/wiki/)) - GoDaddy ([docs](https://developer.godaddy.com/getstarted#access)) - Linode ([docs](https://www.linode.com/api/dns)) - LuaDNS ([docs](http://www.luadns.com/api.html)) - Memset ([docs](https://www.memset.com/apidocs/methods_dns.html)) - Namecheap ([docs](https://www.namecheap.com/support/api/methods.aspx)) - Namesilo ([docs](https://www.namesilo.com/api_reference.php)) - NS1 ([docs](https://ns1.com/api/)) - OnApp ([docs](https://docs.onapp.com/display/55API/OnApp+5.5+API+Guide)) - OVH ([docs](https://api.ovh.com/)) - PointHQ ([docs](https://pointhq.com/api/docs)) - PowerDNS ([docs](https://doc.powerdns.com/md/httpapi/api_spec/)) - Rackspace ([docs](https://developer.rackspace.com/docs/cloud-dns/v1/developer-guide/)) - Rage4 ([docs](https://gbshouse.uservoice.com/knowledgebase/articles/109834-rage4-dns-developers-api)) - Sakura Cloud by SAKURA Internet Inc. ([docs](https://developer.sakura.ad.jp/cloud/api/1.1/)) - SoftLayer ([docs](https://sldn.softlayer.com/article/REST#HTTP_Request_Types)) - Transip ([docs](https://www.transip.nl/transip/api/)) - Yandex ([docs](https://tech.yandex.com/domain/doc/reference/dns-add-docpage/)) - Vultr ([docs](https://www.vultr.com/api/)) - Zonomi ([docs](http://zonomi.com/app/dns/dyndns.jsp)) Potential providers are as follows. If you would like to contribute one, please open a pull request. - AHNames ([docs](https://ahnames.com/en/resellers?tab=2)) - ~~BuddyDNS ([docs](https://www.buddyns.com/support/api/v2/))~~ - Constellix ([docs](https://api-dns-docs.constellix.com/)) - ~~DurableDNS ([docs](https://durabledns.com/wiki/doku.php/ddns))~~ Can't set TXT records - ~~Dyn ([docs](https://help.dyn.com/dns-api-knowledge-base/))~~ Unable to test, requires paid account - ~~EntryDNS ([docs](https://entrydns.net/help))~~ Unable to test, requires paid account - FreeDNS ([docs](https://freedns.afraid.org/scripts/freedns.clients.php)) - Google Cloud DNS ([docs](https://cloud.google.com/dns/api/v1/)) - ~~Host Virtual DNS ([docs](https://github.com/hostvirtual/hostvirtual-python-sdk/blob/master/hostvirtual.py))~~ Unable to test, requires paid account - HostEurope - ~~ironDNS ([docs](https://www.irondns.net/download/soapapiguide.pdf;jsessionid=02A1029AA9FB8BACD2048A60F54668C0))~~ Unable to test, requires paid account - INWX ([docs](https://github.com/inwx/python2.7-client)) - ~~Liquidweb ([docs](https://www.liquidweb.com/storm/api/docs/v1/Network/DNS/Zone.html))~~ Unable to test, requires paid account - Mythic Beasts([docs](https://www.mythic-beasts.com/support/api/primary)) - ~~NFSN (NearlyFreeSpeech) ([docs](https://api.nearlyfreespeech.net/))~~ Unable to test, requires paid account - RFC2136 ([docs](https://en.wikipedia.org/wiki/Dynamic_DNS)) - ~~UltraDNS ([docs](https://restapi.ultradns.com/v1/docs))~~ Unable to test, requires paid account - ~~WorldWideDns ([docs](https://www.worldwidedns.net/dns_api_protocol.asp))~~ Unable to test, requires paid account - Zeit ([docs](https://zeit.co/api#post-domain-records)) - ~~Zerigo ([docs](https://www.zerigo.com/managed-dns/rest-api))~~ Unable to test, requires paid account - Zoneedit ([docs](http://forum.zoneedit.com/index.php?threads/dns-update-api.419/)) - __Any others I missed__ ## Setup To use lexicon as a CLI application, do the following: pip install dns-lexicon Some providers (like Route53 and TransIP) require additional dependencies. You can install provider specific dependencies separately: pip install dns-lexicon[route53] You can also install the latest version from the repository directly. pip install git+https://github.com/AnalogJ/lexicon.git and with Route 53 provider dependencies: pip install git+https://github.com/AnalogJ/lexicon.git#egg=dns-lexicon[route53] ## Usage $ lexicon -h usage: lexicon [-h] [--version] [--delegated DELEGATED] {cloudflare,cloudxns,digitalocean,dnsimple,dnsmadeeasy,dnspark,dnspod,easydns,luadns,namesilo,nsone,pointhq,rage4,route53,vultr,yandex,zonomi} ... Create, Update, Delete, List DNS entries positional arguments: {cloudflare,cloudxns,digitalocean,dnsimple,dnsmadeeasy,dnspark,dnspod,easydns,luadns,namesilo,nsone,pointhq,rage4,route53,vultr,yandex,zonomi} specify the DNS provider to use cloudflare cloudflare provider cloudxns cloudxns provider digitalocean digitalocean provider ... rage4 rage4 provider route53 route53 provider vultr vultr provider yandex yandex provider zonomi zonomi provider optional arguments: -h, --help show this help message and exit --version show the current version of lexicon --delegated DELEGATED specify the delegated domain $ lexicon cloudflare -h usage: lexicon cloudflare [-h] [--name NAME] [--content CONTENT] [--ttl TTL] [--priority PRIORITY] [--identifier IDENTIFIER] [--auth-username AUTH_USERNAME] [--auth-token AUTH_TOKEN] {create,list,update,delete} domain {A,AAAA,CNAME,MX,NS,SPF,SOA,TXT,SRV,LOC} positional arguments: {create,list,update,delete} specify the action to take domain specify the domain, supports subdomains as well {A,AAAA,CNAME,MX,NS,SPF,SOA,TXT,SRV,LOC} specify the entry type optional arguments: -h, --help show this help message and exit --name NAME specify the record name --content CONTENT specify the record content --ttl TTL specify the record time-to-live --priority PRIORITY specify the record priority --identifier IDENTIFIER specify the record for update or delete actions --auth-username AUTH_USERNAME specify email address used to authenticate --auth-token AUTH_TOKEN specify token used authenticate Using the lexicon CLI is pretty simple: # setup provider environmental variables: LEXICON_CLOUDFLARE_USERNAME="myusername@example.com" LEXICON_CLOUDFLARE_TOKEN="cloudflare-api-token" # list all TXT records on cloudflare lexicon cloudflare list example.com TXT # create a new TXT record on cloudflare lexicon cloudflare create www.example.com TXT --name="_acme-challenge.www.example.com." --content="challenge token" # delete a TXT record on cloudflare lexicon cloudflare delete www.example.com TXT --name="_acme-challenge.www.example.com." --content="challenge token" lexicon cloudflare delete www.example.com TXT --identifier="cloudflare record id" ## Authentication Most supported DNS services provide an API token, however each service implements authentication differently. Lexicon attempts to standardize authentication around the following CLI flags: - `--auth-username` - For DNS services that require it, this is usually the account id or email address - `--auth-password` - For DNS services that do not provide an API token, this is usually the account password - `--auth-token` - This is the most common auth method, the API token provided by the DNS service You can see all the `--auth-*` flags for a specific service by reading the DNS service specific help: `lexicon cloudflare -h` ### Environmental Variables Instead of providing Authentication information via the CLI, you can also specify them via Environmental Variables. Every DNS service and auth flag maps to an Environmental Variable as follows: `LEXICON_{DNS Provider Name}_{Auth Type}` So instead of specifying `--auth-username` and `--auth-token` flags when calling `lexicon cloudflare ...`, you could instead set the `LEXICON_CLOUDFLARE_USERNAME` and `LEXICON_CLOUDFLARE_TOKEN` environmental variables. ### Letsencrypt Instructions Lexicon has an example [dehydrated hook file](examples/dehydrated.default.sh) that you can use for any supported provider. All you need to do is set the PROVIDER env variable. PROVIDER=cloudflare dehydrated --cron --hook dehydrated.default.sh --challenge dns-01 Lexicon can also be used with [Certbot](https://certbot.eff.org/) and the included [Certbot hook file](examples/certbot.default.sh) (requires configuration). ## TroubleShooting & Useful Tools There is an included example Dockerfile that can be used to automatically generate certificates for your website. ## ToDo list - [x] Create and Register a lexicon pip package. - [ ] Write documentation on supported environmental variables. - [x] Wire up automated release packaging on PRs. - [x] Check for additional dns hosts with apis (from [fog](http://fog.io/about/provider_documentation.html), [dnsperf](http://www.dnsperf.com/), [libcloud](https://libcloud.readthedocs.io/en/latest/dns/supported_providers.html)) - [ ] Get a list of Letsencrypt clients, and create hook files for them ([letsencrypt clients](https://github.com/letsencrypt/letsencrypt/wiki/Links)) ## Contributing Changes. If the DNS provider you use is not already available, please consider contributing by opening a pull request. ## License MIT ## References tox lexicon-2.2.1/VERSION000066400000000000000000000000051325606366700142360ustar00rootroot000000000000002.2.1lexicon-2.2.1/capsule.yml000066400000000000000000000001021325606366700153430ustar00rootroot00000000000000--- engine_cmd_test: 'tox -e basic,py27' engine_disable_lint: truelexicon-2.2.1/circle.yml000066400000000000000000000003621325606366700151600ustar00rootroot00000000000000dependencies: override: #pyenv install 2.7.10 already exists. - pyenv install 3.4.4 - pyenv install 3.5.1 - pip install tox tox-pyenv - pyenv local 2.7.10 3.4.4 3.5.1 test: override: - tox --tox-pyenv-no-fallback lexicon-2.2.1/examples/000077500000000000000000000000001325606366700150115ustar00rootroot00000000000000lexicon-2.2.1/examples/certbot.default.sh000066400000000000000000000045441325606366700204410ustar00rootroot00000000000000#!/usr/bin/env bash # set -euf -o pipefail # ************** USAGE ************** # # This is an example hook that can be used with Certbot. # # Example usage (with certbot-auto and this hook file saved in /root/): # # sudo ./certbot-auto -d example.org -d www.example.org -a manual -i nginx --preferred-challenges dns \ # --manual-auth-hook "/root/certbot.default.sh auth" --manual-cleanup-hook "/root/certbot.default.sh cleanup" # # This hook requires configuration, continue reading. # # ************** CONFIGURATION ************** # # Please configure PROVIDER and PROVIDER_CREDENTIALS. # # PROVIDER: # Set this to whatever DNS host your domain is using: # # route53 cloudflare cloudns cloudxns digitalocean # dnsimple dnsmadeeasy dnspark dnspod easydns gandi # glesys godaddy linode luadns memset namecheap namesilo # nsone ovh pointhq powerdns rackspace rage4 softlayer # transip vultr yandex zonomi # # The full list is in Lexicon's README. # Defaults to Cloudflare. # PROVIDER="cloudflare" # # PROVIDER_CREDENTIALS: # Lexicon needs to know how to authenticate to your DNS Host. # This will vary from DNS host to host. # To figure out which flags to use, you can look at the Lexicon help. # For example, for help with Cloudflare: # # lexicon cloudflare -h # PROVIDER_CREDENTIALS=("--auth-username=MY_USERNAME" "--auth-token=MY_API_KEY") # # PROVIDER_UPDATE_DELAY: # How many seconds to wait after updating your DNS records. This may be required, # depending on how slow your DNS host is to begin serving new DNS records after updating # them via the API. 30 seconds is a safe default, but some providers can be very slow # (e.g. Linode). # # Defaults to 30 seconds. # PROVIDER_UPDATE_DELAY=30 # To be invoked via Certbot's --manual-auth-hook function auth { lexicon "${PROVIDER}" "${PROVIDER_CREDENTIALS[@]}" \ create "${CERTBOT_DOMAIN}" TXT --name "_acme-challenge.${CERTBOT_DOMAIN}" --content "${CERTBOT_VALIDATION}" sleep "${PROVIDER_UPDATE_DELAY}" } # To be invoked via Certbot's --manual-cleanup-hook function cleanup { lexicon "${PROVIDER}" "${PROVIDER_CREDENTIALS[@]}" \ delete "${CERTBOT_DOMAIN}" TXT --name "_acme-challenge.${CERTBOT_DOMAIN}" --content "${CERTBOT_VALIDATION}" } HANDLER=$1; shift; if [ -n "$(type -t $HANDLER)" ] && [ "$(type -t $HANDLER)" = function ]; then $HANDLER "$@" filexicon-2.2.1/examples/cron.sh000077500000000000000000000001401325606366700163040ustar00rootroot00000000000000#!/usr/bin/env bash env > /etc/environment rsyslogd cron tail -F /var/log/syslog /var/log/cron lexicon-2.2.1/examples/crontab000066400000000000000000000005051325606366700163640ustar00rootroot00000000000000@reboot root env - `cat /etc/environment` /srv/dehydrated/dehydrated --cron --hook /srv/dehydrated/dehydrated.default.sh --challenge dns-01 >> /var/log/cron 2>&1 @monthly root env - `cat /etc/environment` /srv/dehydrated/dehydrated --cron --hook /srv/dehydrated/dehydrated.default.sh --challenge dns-01 >> /var/log/cron 2>&1 lexicon-2.2.1/examples/dehydrated.default.sh000077500000000000000000000102271325606366700211120ustar00rootroot00000000000000#!/usr/bin/env bash # # Example how to deploy a DNS challenge using lexicon set -e set -u set -o pipefail export PROVIDER=${PROVIDER:-"cloudflare"} function deploy_challenge { local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}" echo "deploy_challenge called: ${DOMAIN}, ${TOKEN_FILENAME}, ${TOKEN_VALUE}" lexicon $PROVIDER create ${DOMAIN} TXT --name="_acme-challenge.${DOMAIN}." --content="${TOKEN_VALUE}" sleep 30 # This hook is called once for every domain that needs to be # validated, including any alternative names you may have listed. # # Parameters: # - DOMAIN # The domain name (CN or subject alternative name) being # validated. # - TOKEN_FILENAME # The name of the file containing the token to be served for HTTP # validation. Should be served by your web server as # /.well-known/acme-challenge/${TOKEN_FILENAME}. # - TOKEN_VALUE # The token value that needs to be served for validation. For DNS # validation, this is what you want to put in the _acme-challenge # TXT record. For HTTP validation it is the value that is expected # be found in the $TOKEN_FILENAME file. } function clean_challenge { local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}" echo "clean_challenge called: ${DOMAIN}, ${TOKEN_FILENAME}, ${TOKEN_VALUE}" lexicon $PROVIDER delete ${DOMAIN} TXT --name="_acme-challenge.${DOMAIN}." --content="${TOKEN_VALUE}" # This hook is called after attempting to validate each domain, # whether or not validation was successful. Here you can delete # files or DNS records that are no longer needed. # # The parameters are the same as for deploy_challenge. } function invalid_challenge() { local DOMAIN="${1}" RESPONSE="${2}" echo "invalid_challenge called: ${DOMAIN}, ${RESPONSE}" # This hook is called if the challenge response has failed, so domain # owners can be aware and act accordingly. # # Parameters: # - DOMAIN # The primary domain name, i.e. the certificate common # name (CN). # - RESPONSE # The response that the verification server returned } function deploy_cert { local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}" echo "deploy_cert called: ${DOMAIN}, ${KEYFILE}, ${CERTFILE}, ${FULLCHAINFILE}, ${CHAINFILE}" # This hook is called once for each certificate that has been # produced. Here you might, for instance, copy your new certificates # to service-specific locations and reload the service. # # Parameters: # - DOMAIN # The primary domain name, i.e. the certificate common # name (CN). # - KEYFILE # The path of the file containing the private key. # - CERTFILE # The path of the file containing the signed certificate. # - FULLCHAINFILE # The path of the file containing the full certificate chain. # - CHAINFILE # The path of the file containing the intermediate certificate(s). } function unchanged_cert { local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}" echo "unchanged_cert called: ${DOMAIN}, ${KEYFILE}, ${CERTFILE}, ${FULLCHAINFILE}, ${CHAINFILE}" # This hook is called once for each certificate that is still # valid and therefore wasn't reissued. # # Parameters: # - DOMAIN # The primary domain name, i.e. the certificate common # name (CN). # - KEYFILE # The path of the file containing the private key. # - CERTFILE # The path of the file containing the signed certificate. # - FULLCHAINFILE # The path of the file containing the full certificate chain. # - CHAINFILE # The path of the file containing the intermediate certificate(s). } exit_hook() { # This hook is called at the end of a dehydrated command and can be used # to do some final (cleanup or other) tasks. : } startup_hook() { # This hook is called before the dehydrated command to do some initial tasks # (e.g. starting a webserver). : } HANDLER=$1; shift; if [ -n "$(type -t $HANDLER)" ] && [ "$(type -t $HANDLER)" = function ]; then $HANDLER "$@" fi lexicon-2.2.1/lexicon/000077500000000000000000000000001325606366700146345ustar00rootroot00000000000000lexicon-2.2.1/lexicon/__init__.py000066400000000000000000000001441325606366700167440ustar00rootroot00000000000000""" lexicon - a DNS provider agnostic api to manipulate records. """ __author__ = 'Jason Kulatunga' lexicon-2.2.1/lexicon/__main__.py000066400000000000000000000060741325606366700167350ustar00rootroot00000000000000#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function import argparse import importlib import logging import os import sys import pkg_resources from .client import Client #based off https://docs.python.org/2/howto/argparse.html logger = logging.getLogger(__name__) def BaseProviderParser(): parser = argparse.ArgumentParser(add_help=False) parser.add_argument("action", help="specify the action to take", default='list', choices=['create', 'list', 'update', 'delete']) parser.add_argument("domain", help="specify the domain, supports subdomains as well") parser.add_argument("type", help="specify the entry type", default='TXT', choices=['A', 'AAAA', 'CNAME', 'MX', 'NS', 'SOA', 'TXT', 'SRV', 'LOC']) parser.add_argument("--name", help="specify the record name") parser.add_argument("--content", help="specify the record content") parser.add_argument("--ttl", type=int, help="specify the record time-to-live") parser.add_argument("--priority", help="specify the record priority") parser.add_argument("--identifier", help="specify the record for update or delete actions") parser.add_argument("--log_level", help="specify the log level", default="DEBUG", choices=["CRITICAL","ERROR","WARNING","INFO","DEBUG","NOTSET"]) return parser def MainParser(): current_filepath = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'providers') providers = [os.path.splitext(f)[0] for f in os.listdir(current_filepath) if os.path.isfile(os.path.join(current_filepath, f))] providers = list(set(providers)) providers.remove('base') providers.remove('__init__') providers = [x for x in providers if not x.startswith('.')] providers = sorted(providers) parser = argparse.ArgumentParser(description='Create, Update, Delete, List DNS entries') try: version = pkg_resources.get_distribution("dns-lexicon").version except pkg_resources.DistributionNotFound: version = 'unknown' parser.add_argument('--version', help="show the current version of lexicon", action='version', version='%(prog)s {0}'.format(version)) parser.add_argument('--delegated', help="specify the delegated domain") subparsers = parser.add_subparsers(dest='provider_name', help='specify the DNS provider to use') subparsers.required = True for provider in providers: provider_module = importlib.import_module('lexicon.providers.' + provider) provider_parser = getattr(provider_module, 'ProviderParser') subparser = subparsers.add_parser(provider, help='{0} provider'.format(provider), parents=[BaseProviderParser()]) provider_parser(subparser) return parser #dynamically determine all the providers available. def main(): parsed_args = MainParser().parse_args() log_level = logging.getLevelName(parsed_args.log_level) logging.basicConfig(stream=sys.stdout, level=log_level, format='%(message)s') logger.debug('Arguments: %s', parsed_args) client = Client(parsed_args.__dict__) client.execute() if __name__ == '__main__': main() lexicon-2.2.1/lexicon/client.py000066400000000000000000000051021325606366700164620ustar00rootroot00000000000000from builtins import object import importlib import os import tldextract from .common.options_handler import env_auth_options #from providers import Example class Client(object): def __init__(self, cli_options): #validate options self._validate(cli_options) #process domain, strip subdomain domain_parts = tldextract.extract(cli_options.get('domain')) cli_options['domain'] = '{0}.{1}'.format(domain_parts.domain, domain_parts.suffix) if cli_options.get('delegated'): # handle delegated domain delegated = cli_options.get('delegated').rstrip('.') if delegated != cli_options.get('domain'): # convert to relative name if delegated.endswith(cli_options.get('domain')): delegated = delegated[:-len(cli_options.get('domain'))] delegated = delegated.rstrip('.') # update domain cli_options['domain'] = '{0}.{1}'.format(delegated, cli_options.get('domain')) self.action = cli_options.get('action') self.provider_name = cli_options.get('provider_name') self.options = env_auth_options(self.provider_name) self.options.update(cli_options) provider_module = importlib.import_module('lexicon.providers.' + self.provider_name) provider_class = getattr(provider_module, 'Provider') self.provider = provider_class(self.options) def execute(self): self.provider.authenticate() if self.action == 'create': return self.provider.create_record(self.options.get('type'), self.options.get('name'), self.options.get('content')) elif self.action == 'list': return self.provider.list_records(self.options.get('type'), self.options.get('name'), self.options.get('content')) elif self.action == 'update': return self.provider.update_record(self.options.get('identifier'), self.options.get('type'), self.options.get('name'), self.options.get('content')) elif self.action == 'delete': return self.provider.delete_record(self.options.get('identifier'), self.options.get('type'), self.options.get('name'), self.options.get('content')) def _validate(self, options): if not options.get('provider_name'): raise AttributeError('provider_name') if not options.get('action'): raise AttributeError('action') if not options.get('domain'): raise AttributeError('domain') if not options.get('type'): raise AttributeError('type') lexicon-2.2.1/lexicon/common/000077500000000000000000000000001325606366700161245ustar00rootroot00000000000000lexicon-2.2.1/lexicon/common/__init__.py000066400000000000000000000000361325606366700202340ustar00rootroot00000000000000__author__ = 'Jason Kulatunga'lexicon-2.2.1/lexicon/common/options_handler.py000066400000000000000000000030051325606366700216640ustar00rootroot00000000000000import os # make sure that auth parameters can be specified via environmental variables as well. # basically we map env variables for the chosen provider to the options dictionary (if a value isnt already provided) # LEXICON_CLOUDFLARE_TOKEN => options['auth_token'] # LEXICON_CLOUDFLARE_USERNAME => options['auth_username'] # LEXICON_CLOUDFLARE_PASSWORD => options['auth_password'] # we only care about environmental variables for this Provider, which match --auth-* CLI parameters. def env_auth_options(provider_name): options = {} env_prefix = 'LEXICON_{0}_'.format(provider_name.upper()) for key in list(os.environ.keys()): if key.startswith(env_prefix): auth_type = key[len(env_prefix):].lower() options['auth_{0}'.format(auth_type)] = os.environ[key] return SafeOptions(options) class SafeOptions(dict): def update(self, update_options): if update_options: super(SafeOptions, self).update({k:v for k,v in update_options.items() if v}) class SafeOptionsWithFallback(SafeOptions): def __init__(self, content=None, fallbackFn=None): super(SafeOptionsWithFallback, self).__init__() self.update(content) self.fallbackFn = fallbackFn or (lambda x: None) #this method is the exact same as __main__.py parse env, with some slight modifications to storage. # should not be used directly. def __missing__(self, key): return self.fallbackFn(key) def get(self,key,default=None): return self[key] or default lexicon-2.2.1/lexicon/providers/000077500000000000000000000000001325606366700166515ustar00rootroot00000000000000lexicon-2.2.1/lexicon/providers/__init__.py000066400000000000000000000000361325606366700207610ustar00rootroot00000000000000__author__ = 'Jason Kulatunga'lexicon-2.2.1/lexicon/providers/aurora.py000066400000000000000000000141451325606366700205210ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import base64 import hmac import hashlib import datetime import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-api-key", help="specify API key to authenticate") subparser.add_argument("--auth-secret-key", help="specify the secret key to authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.auroradns.eu') def authenticate(self): zone = None payload = self._get('/zones') for item in payload: if item['name'] == self.options['domain']: zone = item if not zone: raise Exception('No domain found') self.domain_id = zone['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): data = {'type': type, 'name': self._relative_name(name), 'content': content} if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') payload = self._post('/zones/{0}/records'.format(self.domain_id), data) logger.debug('create_record: {0}'.format(payload)) return payload # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): payload = self._get('/zones/{0}/records'.format(self.domain_id)) # Apply filtering first. processed_records = payload if type: processed_records = [record for record in processed_records if record['type'] == type] if name: processed_records = [record for record in processed_records if record['name'] == self._relative_name(name)] if content: processed_records = [record for record in processed_records if record['content'].lower() == content.lower()] # Format the records. records = [] for record in processed_records: processed_record = { 'type': record['type'], 'name': self._full_name(record['name']), 'ttl': record['ttl'], 'content': record['content'], 'id': record['id'] } records.append(processed_record) logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): # Try to find record if no identifier was specified if not identifier: identifier = self._find_record_identifier(type, name, None) data = {} if type: data['type'] = type if name: data['name'] = self._relative_name(name) if content: data['content'] = content if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') payload = self._put('/zones/{0}/records/{1}'.format(self.domain_id, identifier), data) logger.debug('update_record: %s', payload) return payload # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): # Try to find record if no identifier was specified delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/zones/{0}/records/{1}'.format(self.domain_id, record_id)) logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} t = datetime.datetime.utcnow() timestamp = t.strftime('%Y%m%dT%H%M%SZ') authorization_header = self._generate_auth_header(action, url, timestamp) r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers={ 'X-AuroraDNS-Date': timestamp, 'Authorization': authorization_header, 'Content-Type': 'application/json' }) # If the response is a HTTP 409 statusCode, the record already exists: return true. if r.status_code == 409: return True # If the request fails for any other reason, throw an error. r.raise_for_status() # Try to parse the json, if it not exists, return true. try: return r.json() except: return True def _generate_auth_header(self, action, url, timestamp): secret_key = self.options['auth_secret_key'] api_key = self.options['auth_api_key'] sig = action + url + timestamp signature = base64.b64encode(hmac.new( secret_key.encode('utf-8'), sig.encode('utf-8'), digestmod=hashlib.sha256).digest()) auth = api_key + ':' + signature.decode('utf-8') auth_b64 = base64.b64encode(auth.encode('utf-8')) return 'AuroraDNSv1 %s' % (auth_b64.decode('utf-8')) def _find_record_identifier(self, type, name, content): records = self.list_records(type, name, content) logger.debug('records: %s', records) if len(records) == 1: return records[0]['id'] else: raise Exception('Record identifier could not be found. Try to provide an identifier') lexicon-2.2.1/lexicon/providers/base.py000066400000000000000000000114571325606366700201450ustar00rootroot00000000000000from builtins import object from ..common.options_handler import SafeOptionsWithFallback class Provider(object): """ This is the base class for all lexicon Providers. It provides common functionality and ensures that all implmented Providers follow a standard ducktype. All standardized options will be provided here as defaults, but can be overwritten by environmental variables and cli arguments. Common options are: action domain type name content ttl priority identifier The provider_env_cli_options will also contain any Provider specific options: auth_username auth_token auth_password ... :param provider_env_cli_options: is a SafeOptions object that contains all the options for this provider, merged from CLI and Env variables. :param engine_overrides: is an empty dict under runtime conditions, only used for testing (eg. overriding api_endpoint to point to sandbox url) see tests/providers/integration_tests.py """ def __init__(self, provider_env_cli_options, engine_overrides=None): self.provider_name = 'example', self.engine_overrides = engine_overrides or {} base_options = SafeOptionsWithFallback({'ttl': 3600}, engine_overrides.get('fallbackFn') if engine_overrides else None) base_options.update(provider_env_cli_options) self.options = base_options # Authenticate against provider, # Make any requests required to get the domain's id for this provider, so it can be used in subsequent calls. # Should throw an error if authentication fails for any reason, of if the domain does not exist. def authenticate(self): raise NotImplementedError("Providers should implement this!") # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): raise NotImplementedError("Providers should implement this!") # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): raise NotImplementedError("Providers should implement this!") # Update a record. Identifier must be specified. def update_record(self, identifier, type=None, name=None, content=None): raise NotImplementedError("Providers should implement this!") # Delete an existing record. # If record does not exist, do nothing. # If an identifier is specified, use it, otherwise do a lookup using type, name and content. def delete_record(self, identifier=None, type=None, name=None, content=None): raise NotImplementedError("Providers should implement this!") #Helpers def _request(self, action='GET', url='/', data=None, query_params=None): raise NotImplementedError("Providers should implement this!") def _get(self, url='/', query_params=None): return self._request('GET', url, query_params=query_params) def _post(self, url='/', data=None, query_params=None): return self._request('POST', url, data=data, query_params=query_params) def _put(self, url='/', data=None, query_params=None): return self._request('PUT', url, data=data, query_params=query_params) def _delete(self, url='/', query_params=None): return self._request('DELETE', url, query_params=query_params) def _fqdn_name(self, record_name): record_name = record_name.rstrip('.') # strip trailing period from fqdn if present #check if the record_name is fully specified if not record_name.endswith(self.options['domain']): record_name = "{0}.{1}".format(record_name, self.options['domain']) return "{0}.".format(record_name) #return the fqdn name def _full_name(self, record_name): record_name = record_name.rstrip('.') # strip trailing period from fqdn if present #check if the record_name is fully specified if not record_name.endswith(self.options['domain']): record_name = "{0}.{1}".format(record_name, self.options['domain']) return record_name def _relative_name(self, record_name): record_name = record_name.rstrip('.') # strip trailing period from fqdn if present #check if the record_name is fully specified if record_name.endswith(self.options['domain']): record_name = record_name[:-len(self.options['domain'])] record_name = record_name.rstrip('.') return record_name def _clean_TXT_record(self, record): if record['type'] == 'TXT': # some providers have quotes around the TXT records, so we're going to remove those extra quotes record['content'] = record['content'][1:-1] return record lexicon-2.2.1/lexicon/providers/cloudflare.py000066400000000000000000000114621325606366700213470ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify email address used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.cloudflare.com/client/v4') def authenticate(self): payload = self._get('/zones', { 'name': self.options['domain'], 'status': 'active' }) if not payload['result']: raise Exception('No domain found') if len(payload['result']) > 1: raise Exception('Too many domains found. This should not happen') self.domain_id = payload['result'][0]['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): data = {'type': type, 'name': self._full_name(name), 'content': content} if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') payload = {'success': True} try: payload = self._post('/zones/{0}/dns_records'.format(self.domain_id), data) except requests.exceptions.HTTPError as err: already_exists = next((True for error in err.response.json()['errors'] if error['code'] == 81057), False) if not already_exists: raise logger.debug('create_record: %s', payload['success']) return payload['success'] # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {'per_page': 100} if type: filter['type'] = type if name: filter['name'] = self._full_name(name) if content: filter['content'] = content payload = self._get('/zones/{0}/dns_records'.format(self.domain_id), filter) records = [] for record in payload['result']: processed_record = { 'type': record['type'], 'name': record['name'], 'ttl': record['ttl'], 'content': record['content'], 'id': record['id'] } records.append(processed_record) logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = {} if type: data['type'] = type if name: data['name'] = self._full_name(name) if content: data['content'] = content if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') payload = self._put('/zones/{0}/dns_records/{1}'.format(self.domain_id, identifier), data) logger.debug('update_record: %s', payload['success']) return payload['success'] # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/zones/{0}/dns_records/{1}'.format(self.domain_id, record_id)) logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers={ 'X-Auth-Email': self.options['auth_username'], 'X-Auth-Key': self.options.get('auth_token'), 'Content-Type': 'application/json' }) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/cloudns.py000066400000000000000000000164561325606366700207060ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): identity_group = subparser.add_mutually_exclusive_group() identity_group.add_argument("--auth-id", help="specify user id used to authenticate") identity_group.add_argument("--auth-subid", help="specify subuser id used to authenticate") identity_group.add_argument("--auth-subuser", help="specify subuser name used to authenticate") subparser.add_argument("--auth-password", help="specify password used to authenticate") subparser.add_argument("--weight", help="specify the SRV record weight") subparser.add_argument("--port", help="specify the SRV record port") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.cloudns.net') def authenticate(self): payload = self._get('/dns/get-zone-info.json', {'domain-name': self.options['domain']}) self.domain_id = payload['name'] logger.debug('authenticate: %s', payload) def create_record(self, type, name, content): # Skip execution if such a record already exists existing_records = self.list_records(type, name, content) if len(existing_records) > 0: return True # Build parameters for adding a new record params = { 'domain-name': self.domain_id, 'record-type': type, 'host': self._relative_name(name), 'record': content } if self.options['ttl']: params['ttl'] = self.options['ttl'] if self.options['priority']: params['priority'] = self.options['priority'] if self.options['weight']: params['weight'] = self.options['weight'] if self.options['port']: params['port'] = self.options['port'] # Add new record by calling the ClouDNS API payload = self._post('/dns/add-record.json', params) logger.debug('create_record: %s', payload) # Error handling is already covered by self._request return True def list_records(self, type=None, name=None, content=None): # Build parameters to make use of the built-in API filtering params = {'domain-name': self.domain_id} if type: params['type'] = type if name: params['host'] = self._relative_name(name) # Fetch and parse all records for the given zone payload = self._get('/dns/records.json', params) payload = payload if not isinstance(payload, list) else {} records = [] for record in payload.values(): records.append({ 'type': record['type'], 'name': self._full_name(record['host']), 'ttl': record['ttl'], 'content': record['record'], 'id': record['id'] }) # Filter by content manually as API does not support that if content: records = [record for record in records if record['content'] == content] # Print records as debug output and return them logger.debug('list_records: %s', records) return records def update_record(self, identifier, type=None, name=None, content=None): # Try to find record if no identifier was specified if not identifier: identifier = self._find_record_identifier(type, name, None) # Build parameters for updating an existing record params = {'domain-name': self.domain_id, 'record-id': identifier} if name: params['host'] = self._relative_name(name) if content: params['record'] = content if self.options.get('ttl'): params['ttl'] = self.options.get('ttl') if self.options['priority']: params['priority'] = self.options['priority'] if self.options['weight']: params['weight'] = self.options['weight'] if self.options['port']: params['port'] = self.options['port'] # Update existing record by calling the ClouDNS API payload = self._post('/dns/mod-record.json', params) logger.debug('update_record: %s', payload) # Error handling is already covered by self._request return True def delete_record(self, identifier=None, type=None, name=None, content=None): # Try to find record if no identifier was specified delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: # Delete existing record by calling the ClouDNS API payload = self._post('/dns/delete-record.json', {'domain-name': self.domain_id, 'record-id': record_id}) logger.debug('delete_record: %s', True) # Error handling is already covered by self._request return True def _build_authentication_data(self): if not self.options['auth_password']: raise Exception('No valid authentication data passed, expected: auth-password') if self.options['auth_id']: return {'auth-id': self.options['auth_id'], 'auth-password': self.options['auth_password']} elif self.options['auth_subid']: return {'sub-auth-id': self.options['auth_subid'], 'auth-password': self.options['auth_password']} elif self.options['auth_subuser']: return {'sub-auth-user': self.options['auth_subuser'], 'auth-password': self.options['auth_password']} else: raise Exception('No valid authentication data passed, expected: auth-id, auth-subid, auth-subuser') def _find_record_identifier(self, type, name, content): records = self.list_records(type, name, content) logger.debug('records: %s', records) if len(records) == 1: return records[0]['id'] else: raise Exception('Record identifier could not be found.') def _request(self, action='GET', url='/', data=None, query_params=None): # Set default values for missing arguments data = data if data else {} query_params = query_params if query_params else {} # Merge authentication data into request if action == 'GET': query_params.update(self._build_authentication_data()) else: data.update(self._build_authentication_data()) # Fire request against ClouDNS API and parse result as JSON r = requests.request(action, self.api_endpoint + url, params=query_params, data=data) r.raise_for_status() payload = r.json() # Check ClouDNS specific status code and description if 'status' in payload and 'statusDescription' in payload and payload['status'] != 'Success': raise Exception('ClouDNS API request has failed: ' + payload['statusDescription']) # Return payload return payload lexicon-2.2.1/lexicon/providers/cloudxns.py000066400000000000000000000144001325606366700210610ustar00rootroot00000000000000# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from future.standard_library import install_aliases install_aliases() import hashlib import json import logging import time import requests from .base import Provider as BaseProvider from urllib.parse import urlencode logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify API-KEY used authenticate to DNS provider") subparser.add_argument("--auth-token", help="specify SECRET-KEY used authenticate to DNS provider") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://www.cloudxns.net/api2') def authenticate(self): payload = self._get('/domain') for record in payload['data']: if record['domain'] == self.options['domain']+'.': self.domain_id = record['id'] break if self.domain_id == None: raise Exception('No domain found') # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): record = { 'domain_id': self.domain_id, 'host': self._relative_name(name), 'value': content, 'type': type, 'line_id': 1, } if self.options.get('ttl'): record['ttl'] = self.options.get('ttl') try: payload = self._post('/record', record) except requests.exceptions.HTTPError as err: already_exists = (err.response.json()['code'] == 34) if not already_exists: raise logger.debug('create_record: %s', True) # CloudXNS will return bad HTTP Status when error, will throw at r.raise_for_status() in _request() return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} payload = self._get('/record/' + self.domain_id, {'host_id':0, 'offset':0, 'row_num': 2000}) records = [] for record in payload['data']: processed_record = { 'type': record['type'], 'name': self._full_name(record['host']), 'ttl': record['ttl'], 'content': record['value'], #this id is useless unless your doing record linking. Lets return the original record identifier. 'id': record['record_id'] # } if processed_record['type'] == 'TXT': processed_record['content'] = processed_record['content'].replace('"', '') # CloudXNS will add quotes automaticly for TXT records, https://www.cloudxns.net/Support/detail/id/114.html records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): if not identifier: records = self.list_records(name=name) if len(records) == 1: identifier = records[0]['id'] else: raise Exception('Record identifier could not be found.') data = { 'domain_id': self.domain_id, 'host': self._relative_name(name), 'value': content, 'type': type } if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') payload = self._put('/record/' + identifier, data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/record/' + record_id + '/' + self.domain_id) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} data['login_token'] = self.options['auth_username'] + ',' + self.options['auth_token'] data['format'] = 'json' if query_params: query_string = '?' + urlencode(query_params) else: query_string = '' query_params = {} if data: data = json.dumps(data) else: data = '' date = time.strftime('%a %b %d %H:%M:%S %Y', time.localtime()) default_headers = { 'API-KEY': self.options['auth_username'], 'API-REQUEST-DATE': date, 'API-HMAC': hashlib.md5("{0}{1}{2}{3}{4}{5}{6}".format(self.options['auth_username'],self.api_endpoint, url, query_string, data, date, self.options['auth_token']).encode('utf-8')).hexdigest(), 'API-FORMAT':'json' } default_auth = None r = requests.request(action, self.api_endpoint + url, params=query_params, data=data, headers=default_headers, auth=default_auth) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/digitalocean.py000066400000000000000000000116441325606366700216540ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify token used authenticate to DNS provider") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.digitalocean.com/v2') def authenticate(self): payload = self._get('/domains/{0}'.format(self.options['domain'])) self.domain_id = self.options['domain'] def create_record(self, type, name, content): # check if record already exists if len(self.list_records(type, name, content)) == 0: record = { 'type': type, 'name': self._relative_name(name), 'data': content, } if type == 'CNAME': record['data'] = record['data'].rstrip('.') + '.' # make sure a the data is always a FQDN for CNAMe. payload = self._post('/domains/{0}/records'.format(self.domain_id), record) logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): url = '/domains/{0}/records'.format(self.domain_id) records = [] payload = {} next = url while next is not None: payload = self._get(next) if 'links' in payload \ and 'pages' in payload['links'] \ and 'next' in payload['links']['pages']: next = payload['links']['pages']['next'] else: next = None for record in payload['domain_records']: processed_record = { 'type': record['type'], 'name': "{0}.{1}".format(record['name'], self.domain_id), 'ttl': '', 'content': record['data'], 'id': record['id'] } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'].lower() == content.lower()] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = {} if type: data['type'] = type if name: data['name'] = self._relative_name(name) if content: data['data'] = content payload = self._put('/domains/{0}/records/{1}'.format(self.domain_id, identifier), data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/domains/{0}/records/{1}'.format(self.domain_id, record_id)) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer {0}'.format(self.options.get('auth_token')) } if not url.startswith(self.api_endpoint): url = self.api_endpoint + url r = requests.request(action, url, params=query_params, data=json.dumps(data), headers=default_headers) r.raise_for_status() # if the request fails for any reason, throw an error. if action == 'DELETE': return '' else: return r.json() lexicon-2.2.1/lexicon/providers/dnsimple.py000066400000000000000000000153411325606366700210420ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify api token used to authenticate") subparser.add_argument("--auth-username", help="specify email address used to authenticate") subparser.add_argument("--auth-password", help="specify password used to authenticate") subparser.add_argument("--auth-2fa", help="specify two-factor auth token (OTP) to use with email/password authentication") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.account_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.dnsimple.com/v2') def authenticate(self): payload = self._get('/accounts') if not payload[0]['id']: raise Exception('No account id found') for account in payload: dompayload = self._get('/{0}/domains'.format(account['id']), query_params={'name_like': self.options.get('domain')}) if len(dompayload) > 0 and dompayload[0]['id']: self.account_id = account['id'] self.domain_id = dompayload[0]['id'] if not self.account_id: raise Exception('No domain found like {}'.format(self.options.get('domain'))) # Create record. If record already exists with the same content, do nothing def create_record(self, type, name, content): # check if record already exists existing_records = self.list_records(type, name, content) if len(existing_records) == 1: return True record = { 'type': type, 'name': self._relative_name(name), 'content': content } if self.options.get('ttl'): record['ttl'] = self.options.get('ttl') if self.options.get('priority'): record['priority'] = self.options.get('priority') if self.options.get('regions'): record['regions'] = self.options.get('regions') payload = self._post('{0}/zones/{1}/records'.format(self.account_id, self.options.get('domain')), record) logger.debug('create_record: %s', 'id' in payload) return 'id' in payload # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} if type: filter['type'] = type if name: filter['name'] = self._relative_name(name) payload = self._get('/{0}/zones/{1}/records'.format(self.account_id, self.options.get('domain')), query_params=filter) records = [] for record in payload: processed_record = { 'type': record['type'], 'name': '{}'.format(self.options.get('domain')) if record['name'] == "" else '{0}.{1}'.format(record['name'],self.options.get('domain')), 'ttl': record['ttl'], 'content': record['content'], 'id': record['id'] } if record['priority']: processed_record['priority'] = record['priority'] records.append(processed_record) if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = {} if name: data['name'] = self._relative_name(name) if content: data['content'] = content if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') if self.options.get('priority'): data['priority'] = self.options.get('priority') if self.options.get('regions'): data['regions'] = self.options.get('regions') payload = self._patch('/{0}/zones/{1}/records/{2}'.format(self.account_id, self.options.get('domain'), identifier), data) logger.debug('update_record: %s', 'id' in payload) return 'id' in payload # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/{0}/zones/{1}/records/{2}'.format(self.account_id, self.options.get('domain'), record_id)) # is always True at this point; if a non 2xx response is returned, an error is raised. logger.debug('delete_record: True') return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' } default_auth = None if self.options.get('auth_token'): default_headers['Authorization'] = "Bearer {0}".format(self.options.get('auth_token')) elif self.options.get('auth_username') and self.options.get('auth_password'): default_auth = (self.options.get('auth_username'),self.options.get('auth_password')) if self.options.get('auth_2fa'): default_headers['X-Dnsimple-OTP'] = self.options.get('auth_2fa') else: raise Exception('No valid authentication mechanism found') r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers=default_headers, auth=default_auth) r.raise_for_status() # if the request fails for any reason, throw an error. if r.text and r.json()['data'] == None: raise Exception('No data returned') return r.json()['data'] if r.text else None def _patch(self, url='/', data=None, query_params=None): return self._request('PATCH', url, data=data, query_params=query_params) lexicon-2.2.1/lexicon/providers/dnsmadeeasy.py000066400000000000000000000132311325606366700215200ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import contextlib import hmac import json import locale import logging from email.utils import formatdate from hashlib import sha1 import requests from builtins import bytes from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify username used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate=") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.dnsmadeeasy.com/V2.0') def authenticate(self): try: payload = self._get('/dns/managed/name', {'domainname': self.options['domain']}) except requests.exceptions.HTTPError as e: if e.response.status_code == 404: payload = {} else: raise e if not payload or not payload['id']: raise Exception('No domain found') self.domain_id = payload['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): record = { 'type': type, 'name': self._relative_name(name), 'value': content, 'ttl': self.options['ttl'] } payload = {} try: payload = self._post('/dns/managed/{0}/records/'.format(self.domain_id), record) except requests.exceptions.HTTPError as e: if e.response.status_code != 400: raise # http 400 is ok here, because the record probably already exists logger.debug('create_record: %s', 'name' in payload) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} if type: filter['type'] = type if name: filter['recordName'] = self._relative_name(name) payload = self._get('/dns/managed/{0}/records'.format(self.domain_id), filter) records = [] for record in payload['data']: processed_record = { 'type': record['type'], 'name': '{0}.{1}'.format(record['name'], self.options['domain']), 'ttl': record['ttl'], 'content': record['value'], 'id': record['id'] } processed_record = self._clean_TXT_record(processed_record) records.append(processed_record) if content: records = [record for record in records if record['content'].lower() == content.lower()] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'id': identifier, 'ttl': self.options['ttl'] } if name: data['name'] = self._relative_name(name) if content: data['value'] = content if type: data['type'] = type payload = self._put('/dns/managed/{0}/records/{1}'.format(self.domain_id, identifier), data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/dns/managed/{0}/records/{1}'.format(self.domain_id, record_id)) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'x-dnsme-apiKey': self.options['auth_username'] } default_auth = None # Date string in HTTP format e.g. Sat, 12 Feb 2011 20:59:04 GMT request_date = formatdate(usegmt=True) hashed = hmac.new(bytes(self.options['auth_token'], 'ascii'), bytes(request_date, 'ascii'), sha1) default_headers['x-dnsme-requestDate'] = request_date default_headers['x-dnsme-hmac'] = hashed.hexdigest() r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers=default_headers, auth=default_auth) r.raise_for_status() # if the request fails for any reason, throw an error. # PUT and DELETE actions dont return valid json. if action == 'DELETE' or action == 'PUT': return r.text return r.json() lexicon-2.2.1/lexicon/providers/dnspark.py000066400000000000000000000112031325606366700206620ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify api key used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.dnspark.com/v2') def authenticate(self): payload = self._get('/dns/{0}'.format(self.options['domain'])) if not payload['additional']['domain_id']: raise Exception('No domain found') self.domain_id = payload['additional']['domain_id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): record = { 'rname': self._relative_name(name), 'rtype': type, 'rdata': content } payload = {} try: payload = self._post('/dns/{0}'.format(self.domain_id), record) except requests.exceptions.HTTPError as e: if e.response.status_code == 400: payload = {} raise e # http 400 is ok here, because the record probably already exists logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} payload = self._get('/dns/{0}'.format(self.domain_id)) records = [] for record in payload['records']: processed_record = { 'type': record['rtype'], 'name': record['rname'], 'ttl': record['ttl'], 'content': record['rdata'], 'id': record['record_id'] } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'ttl': self.options['ttl'] } if type: data['rtype'] = type if name: data['rname'] = self._relative_name(name) if content: data['rdata'] = content payload = self._put('/dns/{0}'.format(identifier), data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/dns/{0}'.format(record_id)) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' } default_auth = (self.options['auth_username'], self.options['auth_token']) r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers=default_headers, auth=default_auth) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/dnspod.py000066400000000000000000000124431325606366700205160ustar00rootroot00000000000000# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify api id used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate to DNS provider") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://dnsapi.cn') def authenticate(self): payload = self._post('/Domain.Info', {'domain':self.options['domain']}) if payload['status']['code'] != '1': raise Exception(payload['status']['message']) self.domain_id = payload['domain']['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): record = { 'domain_id': self.domain_id, 'sub_domain': self._relative_name(name), 'record_type': type, 'record_line': '默认', 'value': content } if self.options.get('ttl'): record['ttl'] = self.options.get('ttl') payload = self._post('/Record.Create', record) if payload['status']['code'] not in ['1', '31']: raise Exception(payload['status']['message']) logger.debug('create_record: %s', payload['status']['code'] == '1') return payload['status']['code'] == '1' # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} payload = self._post('/Record.List', {'domain':self.options['domain']}) logger.debug('payload: %s', payload) records = [] for record in payload['records']: processed_record = { 'type': record['type'], 'name': self._full_name(record['name']), 'ttl': record['ttl'], 'content': record['value'], #this id is useless unless your doing record linking. Lets return the original record identifier. 'id': record['id'] # } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'domain_id': self.domain_id, 'record_id': identifier, 'sub_domain': self._relative_name(name), 'record_type': type, 'record_line': '默认', 'value': content } if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') logger.debug('data: %s', data) payload = self._post('/Record.Modify', data) logger.debug('payload: %s', payload) if payload['status']['code'] != '1': raise Exception(payload['status']['message']) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._post('/Record.Remove', {'domain_id': self.domain_id, 'record_id': record_id}) #if payload['status']['code'] != '1': # raise Exception(payload['status']['message']) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} data['login_token'] = self.options['auth_username'] + ',' + self.options['auth_token'] data['format'] = 'json' if query_params is None: query_params = {} default_headers = {} default_auth = None r = requests.request(action, self.api_endpoint + url, params=query_params, data=data, headers=default_headers, auth=default_auth) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/easydns.py000066400000000000000000000115031325606366700206710ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify username used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://rest.easydns.net') def authenticate(self): payload = self._get('/domain/{0}'.format(self.options['domain'])) if payload['data']['exists'] == 'N': raise Exception('No domain found') self.domain_id = payload['data']['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): record = { 'type': type, 'domain': self.domain_id, 'host': self._relative_name(name), 'ttl': self.options['ttl'], 'prio': 0, 'rdata': content } payload = {} try: payload = self._put('/zones/records/add/{0}/{1}'.format(self.domain_id, type), record) except requests.exceptions.HTTPError as e: if e.response.status_code == 400: payload = {} # http 400 is ok here, because the record probably already exists logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} payload = self._get('/zones/records/all/{0}'.format(self.domain_id)) records = [] for record in payload['data']: processed_record = { 'type': record['type'], 'name': "{0}.{1}".format(record['host'], record['domain']), 'ttl': record['ttl'], 'content': record['rdata'], 'id': record['id'] } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'ttl': self.options['ttl'] } if type: data['type'] = type if name: data['host'] = self._relative_name(name) if content: data['rdata'] = content payload = self._post('/zones/records/{0}'.format(identifier), data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/zones/records/{0}/{1}'.format(self.domain_id, record_id)) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} query_params['format'] = 'json' query_params['_user'] = self.options['auth_username'] query_params['_key'] = self.options['auth_token'] default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' } r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers=default_headers) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/gandi.py000066400000000000000000000247511325606366700203160ustar00rootroot00000000000000"""Provide support to Lexicon for Gandi DNS changes. Lexicon provides a common interface for querying and managing DNS services through those services' APIs. This module implements the Lexicon interface against the Gandi API. The Gandi API is different from typical DNS APIs in that Gandi zone changes are atomic. You cannot edit the currently active configuration. Any changes require editing either a new or inactive configuration. Once the changes are committed, then the domain is switched to using the new zone configuration. This module makes no attempt to cleanup previous zone configurations. Note that Gandi domains can share zone configurations. In other words, I can have domain-a.com and domain-b.com which share the same zone configuration file. If I make changes to domain-a.com, those changes will only apply to domain-a.com, as domain-b.com will continue using the previous version of the zone configuration. This module makes no attempt to detect and account for that. """ from __future__ import print_function from __future__ import absolute_import import logging from .base import Provider as BaseProvider try: import xmlrpclib except ImportError: import xmlrpc.client as xmlrpclib LOGGER = logging.getLogger(__name__) def ProviderParser(subparser): """Specify arguments for Gandi Lexicon Provider.""" subparser.add_argument('--auth-token', help="specify Gandi API key") class Provider(BaseProvider): """Provide Gandi DNS API implementation of Lexicon Provider interface. The class will use the following environment variables to configure it instance. For more information, read the Lexicon documentation. - LEXICON_GANDI_API_ENDPOINT - the Gandi API endpoint to use The default is the production URL https://rpc.gandi.net/xmlrpc/. Set this environment variable to the OT&E URL for testing. """ def __init__(self, options, provider_options=None): """Initialize Gandi DNS provider.""" super(Provider, self).__init__(options) if provider_options is None: provider_options = {} api_endpoint = provider_options.get('api_endpoint') or 'https://rpc.gandi.net/xmlrpc/' self.apikey = self.options['auth_token'] self.api = xmlrpclib.ServerProxy(api_endpoint, allow_none=True) self.default_ttl = 3600 # self.domain_id is required by test suite self.domain_id = None self.zone_id = None self.domain = self.options['domain'].lower() # Authenicate against provider, # Make any requests required to get the domain's id for this provider, # so it can be used in subsequent calls. Should throw an error if # authentication fails for any reason, or if the domain does not exist. def authenticate(self): """Determine the current domain and zone IDs for the domain.""" try: payload = self.api.domain.info(self.apikey, self.domain) self.domain_id = payload['id'] self.zone_id = payload['zone_id'] except xmlrpclib.Fault as err: raise Exception("Failed to authenticate: '{0}'".format(err)) # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): """Creates a record for the domain in a new Gandi zone.""" version = None ret = False name = self._relative_name(name) # This isn't quite "do nothing" if the record already exists. # In this case, no new record will be created, but a new zone version # will be created and set. try: version = self.api.domain.zone.version.new(self.apikey, self.zone_id) self.api.domain.zone.record.add(self.apikey, self.zone_id, version, {'type': type.upper(), 'name': name, 'value': content, 'ttl': self.options.get('ttl') or self.default_ttl }) self.api.domain.zone.version.set(self.apikey, self.zone_id, version) ret = True finally: if not ret and version is not None: self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) LOGGER.debug("create_record: %s", ret) return ret # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): """List all record for the domain in the active Gandi zone.""" opts = {} if type is not None: opts['type'] = type.upper() if name is not None: opts['name'] = self._relative_name(name) if content is not None: opts['value'] = self._txt_encode(content) if opts.get('type', '') == 'TXT' else content records = [] payload = self.api.domain.zone.record.list(self.apikey, self.zone_id, 0, opts) for record in payload: processed_record = { 'type': record['type'], 'name': self._full_name(record['name']), 'ttl': record['ttl'], 'content': record['value'], 'id': record['id'] } # Gandi will add quotes to all TXT record strings if processed_record['type'] == 'TXT': processed_record['content'] = self._txt_decode(processed_record['content']) records.append(processed_record) LOGGER.debug("list_records: %s", records) return records # Update a record. Identifier must be specified. def update_record(self, identifier, type=None, name=None, content=None): """Updates the specified record in a new Gandi zone.""" if not identifier: records = self.list_records(type, name) if len(records) == 1: identifier = records[0]['id'] elif len(records) > 1: raise Exception('Several record identifiers match the request') else: raise Exception('Record identifier could not be found') identifier = int(identifier) version = None # Gandi doesn't allow you to edit records on the active zone file. # Gandi also doesn't persist zone record identifiers when creating # a new zone file. To update by identifier, we lookup the record # by identifier, then use the record fields to find the record in # the newly created zone. records = self.api.domain.zone.record.list(self.apikey, self.zone_id, 0, {'id': identifier}) if len(records) == 1: rec = records[0] del rec['id'] try: version = self.api.domain.zone.version.new(self.apikey, self.zone_id) records = self.api.domain.zone.record.list(self.apikey, self.zone_id, version, rec) if len(records) != 1: raise GandiInternalError("expected one record") if type is not None: rec['type'] = type.upper() if name is not None: rec['name'] = self._relative_name(name) if content is not None: rec['value'] = self._txt_encode(content) if rec['type'] == 'TXT' else content records = self.api.domain.zone.record.update(self.apikey, self.zone_id, version, {'id': records[0]['id']}, rec) if len(records) != 1: raise GandiInternalError("expected one updated record") self.api.domain.zone.version.set(self.apikey, self.zone_id, version) ret = True except GandiInternalError: pass finally: if not ret and version is not None: self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) LOGGER.debug("update_record: %s", ret) return ret # Delete an existing record. # If record does not exist, do nothing. # If an identifier is specified, use it, otherwise do a lookup using type, name and content. def delete_record(self, identifier=None, type=None, name=None, content=None): """Removes the specified record in a new Gandi zone.""" version = None ret = False opts = {} if identifier is not None: opts['id'] = identifier else: opts['type'] = type.upper() opts['name'] = self._relative_name(name) opts["value"] = self._txt_encode(content) if opts['type'] == 'TXT' else content records = self.api.domain.zone.record.list(self.apikey, self.zone_id, 0, opts) if len(records) == 1: rec = records[0] del rec['id'] try: version = self.api.domain.zone.version.new(self.apikey, self.zone_id) cnt = self.api.domain.zone.record.delete(self.apikey, self.zone_id, version, rec) if cnt != 1: raise GandiInternalError("expected one deleted record") self.api.domain.zone.version.set(self.apikey, self.zone_id, version) ret = True except GandiInternalError: pass finally: if not ret and version is not None: self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) LOGGER.debug("delete_record: %s", ret) return ret def _request(self, action='GET', url='/', data=None, query_params=None): # Not used here, as requests are handled by xmlrpc pass @staticmethod def _txt_encode(val): return ''.join(['"', val.replace('\\', '\\\\').replace('"', '\\"'), '"']) @staticmethod def _txt_decode(val): if len(val) > 1 and val[0:1] == '"': val = val[1:-1].replace('" "', '').replace('\\"', '"').replace('\\\\', '\\') return val # This exception is for cleaner handling of internal errors # within the Gandi provider codebase class GandiInternalError(Exception): """Internal exception handling class for Gandi management errors""" pass lexicon-2.2.1/lexicon/providers/gehirn.py000066400000000000000000000255671325606366700205160ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import re import base64 import copy import requests from requests.auth import HTTPBasicAuth from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument( "--auth-token", help="specify access token used authenticate to DNS provider") subparser.add_argument( "--auth-secret", help="specify asscess secret used authenticate to DNS provider") BUILD_FORMATS = { "A": "{address}", "AAAA": "{address}", "CNAME": "{cname}", "TXT": "{data}", "NS": "{nsdname}", "MX": "{prio} {exchange}", "SRV": "{prio} {weight} {port} {target}", } FORMAT_RE = { "A": re.compile("(?P
.+)"), "AAAA": re.compile("(?P
.+)"), "CNAME": re.compile("(?P.+)"), "TXT": re.compile("(?P.+)"), "NS": re.compile("(?P.+)"), "MX": re.compile("(?P\d+)\s+(?P.+)"), "SRV": re.compile("(?P\d+)\s+(?P\d+)\s+(?P\d+)\s+(?P.+)"), } class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.version_id = None self.api_endpoint = self.engine_overrides.get( 'api_endpoint', 'https://api.gis.gehirn.jp/dns/v1') def authenticate(self): payload = self._get('/zones') domains = [item for item in payload if item['name'] == self.options['domain']] if not domains: raise Exception('No domain found') self.domain_id = domains[0]["id"] self.version_id = domains[0]["current_version_id"] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): name = self._full_name(name) r = self._parse_content(type, content) record = None records = self._get_records(type=type, name=name) if len(records) == 0: record = { 'type': type, 'name': name, 'enable_alias': False, 'ttl': self.options['ttl'], 'records': [], } else: record = records[0] if r in record["records"]: logger.debug('create_record: %s', True) return True record["records"].append(r) self._update_record(record) logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): records = [] if name: name = self._full_name(name) for record in self._get_records(type=type, name=name): for i, r in enumerate(record["records"]): c = self._build_content(record['type'], r) processed_record = { 'type': record['type'], 'name': record['name'].rstrip("."), 'ttl': record['ttl'], 'content': c, 'id': "{}.{}".format(record["id"], base64.b64encode(c.encode("utf-8")).decode("ascii")), } self._parse_content( record['type'], processed_record["content"]) records.append(processed_record) if content: records = [ record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier=None, type=None, name=None, content=None): if name: name = self._full_name(name) record = None if not identifier: if not (type and name and content): raise Exception("type, name and content must be specified.") r = self._parse_content(type, content) records = self._get_records(type=type, name=name) if not records: self.create_record(type=type, name=name, content=content) logger.debug('update_record: %s', True) return True record = { 'id': records[0]["id"], 'type': type, 'name': name, 'enable_alias': False, 'ttl': self.options['ttl'], 'records': [self._parse_content(type, content)], } else: # with identifier records = self._get_records(identifier=identifier) if not records: raise Exception('Record identifier could not be found.') record = records[0] if "." in identifier: # modify single record self.delete_record(identifier=identifier) self.create_record( type=type or record["type"], name=name or record["name"], content=content ) logger.debug('update_record: %s', True) return True else: # update entire record if type: record["type"] = type if name: record["name"] = name record["ttl"] = self.options['ttl'] if content: record["records"] = [ self._parse_content(record["type"], content)] self._update_record(record) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): if identifier: if "." not in identifier: # delete entire record path = '/zones/{}/versions/{}/records/{}'.format( self.domain_id, self.version_id, identifier, ) self._delete(path) logger.debug('delete_record: %s', True) return True record_identifier = identifier.split(".")[1] records = self._get_records(identifier=identifier) if not records: raise Exception('Record identifier could not be found.') record = records[0] for index, r in enumerate(record["records"]): target_content = self._build_content(record['type'], r) target_identifier = base64.b64encode( target_content.encode("utf-8")).decode("ascii") if target_identifier == record_identifier: del record["records"][index] if len(record["records"]) == 0: # delete entire record path = '/zones/{}/versions/{}/records/{}'.format( self.domain_id, self.version_id, record['id'], ) self._delete(path) else: self._update_record(record) logger.debug('delete_record: %s', True) return True else: raise Exception('Record identifier could not be found.') r = None if name is not None: name = self._full_name(name) if content is not None: content = self._bind_format_target(type, content) r = self._parse_content(type, content) records = self._get_records(type=type, name=name) for record in records: if r and r in record["records"]: record["records"].remove(r) if len(record["records"]): self._update_record(record) continue path = '/zones/{}/versions/{}/records/{}'.format( self.domain_id, self.version_id, record["id"], ) self._delete(path) logger.debug('delete_record: %s', True) return True # Helpers def _full_name(self, name): name = super(Provider, self)._full_name(name) if not name.endswith("."): name += "." return name def _bind_format_target(self, type, target): if type == "CNAME" and not target.endswith("."): target += "." return target def _filter_records(self, records, identifier=None, type=None, name=None): filtered_records = [] if identifier: identifier = identifier.split(".")[0] for record in records: if type and record['type'] != type: continue if name and record['name'] != name: continue if identifier and record['id'] != identifier: continue filtered_records.append(record) return filtered_records def _get_records(self, identifier=None, type=None, name=None): path = '/zones/{}/versions/{}/records'.format( self.domain_id, self.version_id) return self._filter_records(self._get(path), identifier=identifier, type=type, name=name) def _update_record(self, record): if record.get("id"): # PUT path = '/zones/{}/versions/{}/records/{}'.format( self.domain_id, self.version_id, record["id"], ) return self._put(path, record) # POST path = '/zones/{}/versions/{}/records'.format( self.domain_id, self.version_id, ) return self._post(path, record) def _build_content(self, type, record): return BUILD_FORMATS[type].format(**record) def _parse_content(self, type, content): return FORMAT_RE[type].match(content).groupdict() def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', } default_auth = HTTPBasicAuth( self.options['auth_token'], self.options['auth_secret']) query_string = "" if query_params: query_string = json.dumps(query_params) r = requests.request(action, self.api_endpoint + url, params=query_string, data=json.dumps(data), headers=default_headers, auth=default_auth) try: # if the request fails for any reason, throw an error. r.raise_for_status() except: logger.error(r.text) raise return r.json() lexicon-2.2.1/lexicon/providers/glesys.py000066400000000000000000000124351325606366700205360ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import requests from .base import Provider as BaseProvider def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify username (CL12345)") subparser.add_argument("--auth-token", help="specify API key") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.glesys.com') def authenticate(self): payload = self._get('/domain/list') domains = payload['response']['domains'] for record in domains: if record['domainname'] == self.options['domain']: # Domain records do not have any id. # Since domain_id cannot be None, use domain name as id instead. self.domain_id = record['domainname'] break if self.domain_id == None: raise Exception('No domain found') # Create record. If record already exists with the same content, do nothing. def create_record(self, type, name, content): existing = self.list_records(type, name, content) if len(existing) > 0: # Already exists, do nothing. return True request_data = { 'domainname': self.options['domain'], 'host': self._full_name(name), 'type': type, 'data': content } self._addttl(request_data) self._post('/domain/addrecord', data=request_data) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): request_data = { 'domainname': self.options['domain'] } payload = self._post('/domain/listrecords', data=request_data) # Convert from Glesys record structure to Lexicon structure. processed_records = [self._glesysrecord2lexiconrecord(r) for r in payload['response']['records']] if type: processed_records = [record for record in processed_records if record['type'] == type] if name: processed_records = [record for record in processed_records if record['name'] == self._full_name(name)] if content: processed_records = [record for record in processed_records if record['content'].lower() == content.lower()] return processed_records # Update a record. Identifier must be specified. def update_record(self, identifier, type=None, name=None, content=None): request_data = {'recordid': identifier} if name: request_data['host'] = name if type: request_data['type'] = type if content: request_data['data'] = content self._addttl(request_data) self._post('/domain/updaterecord', data=request_data) return True # Delete an existing record. # If record does not exist, do nothing. # If an identifier is specified, use it, otherwise do a lookup using type, name and content. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) for record_id in delete_record_id: request_data = {'recordid': record_id} self._post('/domain/deleterecord', data=request_data) return True # Helpers. def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} query_params['format'] = 'json' default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' } credentials = (self.options['auth_username'], self.options['auth_token']) response = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers=default_headers, auth=credentials) # if the request fails for any reason, throw an error. response.raise_for_status() return response.json() # Adds TTL parameter if passed as argument to lexicon. def _addttl(self, request_data): if 'ttl'in self.options: request_data['ttl'] = self.options['ttl'] # From Glesys record structure: [u'domainname', u'recordid', u'type', u'host', u'ttl', u'data'] def _glesysrecord2lexiconrecord(self, glesys_record): return { 'id': glesys_record['recordid'], 'type': glesys_record['type'], 'name': glesys_record['host'], 'ttl': glesys_record['ttl'], 'content': glesys_record['data'] } lexicon-2.2.1/lexicon/providers/godaddy.py000066400000000000000000000120021325606366700206310ustar00rootroot00000000000000import logging import requests import json from .base import Provider as BaseProvider LOGGER = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument('--auth-key', help='specify the key to access the API') subparser.add_argument('--auth-secret', help='specify the secret to access the API') class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.godaddy.com/v1') def authenticate(self): domain = self.options.get('domain') result = self._get('/domains/{0}'.format(domain)) self.domain_id = result['domainId'] def create_record(self, type, name, content): domain = self.options.get('domain') ttl = self.options.get('ttl') data = {'data': content} if ttl: data['ttl'] = ttl self._put('/domains/{0}/records/{1}/{2}' .format(domain, type, self._relative_name(name)), [data]) LOGGER.debug('create_record: %s %s %s', type, name, content) return True def list_records(self, type=None, name=None, content=None): domain = self.options.get('domain') records = [] url = '/domains/{0}/records'.format(domain) if type: url += '/{0}'.format(type) if name: url += '/{0}'.format(self._relative_name(name)) raws = self._get(url) for raw in raws: records.append({ 'type': raw['type'], 'name': self._full_name(raw['name']), 'ttl': raw['ttl'], 'content': raw['data'] }) if content: records = [record for record in records if record['data'].lower() == content.lower()] LOGGER.debug('list_records: %s', records) return records def update_record(self, identifier, type=None, name=None, content=None): # With GoDaddy API, creating a record for given type and name is the same # than updating the record. return self.create_record(type, name, content) def delete_record(self, identifier=None, type=None, name=None, content=None): domain = self.options.get('domain') if not type: raise Exception('ERROR: type is required') if not name: raise Exception('ERROR: name is required') if not content: raise Exception('ERROR: content is required') # OK some explanations need to be done here. # GoDaddy DNS API does not provide a direct way to delete a record (weird). # However it provides a way to get and update all records of a zone. # So : # - we get all the records, # - we filter the array to remove the record to be deleted, # - then we push back the filtered array to set the zone without the record to be deleted. # And yes, we could limit the operation to a given type record (eg. TXT, there is an URL # for that), but GoDaddy refuses to push back an empty set of a given type (yep, you # cannot remove all your TXT with this URL, ultra weird). # It is likely to happen during a DNS challenge, as all TXT should be removed at the end. # So operating on all the zone avoid empty sets (there will always at least NS entries). records = self._get('/domains/{0}/records'.format(domain)) to_insert = [record for record in records if record['type'].lower() != type.lower() or record['name'].lower() != self._relative_name(name).lower() or record['data'].lower() != content.lower()] num_to_delete = len(records) - len(to_insert) if num_to_delete > 1: raise Exception('ERROR: multiple records marked to be deleted') self._put('/domains/{0}/records'.format(domain), to_insert) LOGGER.debug('delete_record: %s', num_to_delete != 0) return num_to_delete != 0 def _request(self, action='GET', url='/', data=None, query_params=None): if not data: data = {} if not query_params: query_params = {} result = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers={ 'Content-Type': 'application/json', 'Accept': 'application/json', # GoDaddy use a key/secret pair to authenticate 'Authorization': 'sso-key {0}:{1}'.format( self.options.get('auth_key'), self.options.get('auth_secret')) }) result.raise_for_status() return result.json() lexicon-2.2.1/lexicon/providers/linode.py000066400000000000000000000117741325606366700205070ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify api key used authenticate to DNS provider") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.linode.com/api/') def authenticate(self): self.domain_id = None payload = self._get('domain.list') for domain in payload['DATA']: if domain['DOMAIN'] == self.options['domain']: self.domain_id = domain['DOMAINID'] if self.domain_id == None: raise Exception('Domain not found') def create_record(self, type, name, content): if len(self.list_records(type, name, content)) == 0: self._get('domain.resource.create', query_params={ 'DomainID': self.domain_id, 'Name': self._relative_name(name), 'Type': type, 'Target': content, 'TTL_sec': 0 }) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): payload = self._get('domain.resource.list', query_params={ 'DomainID': self.domain_id }) resource_list = payload['DATA'] if type: resource_list = [resource for resource in resource_list if resource['TYPE'] == type] if name: cmp_name = self._relative_name(name.lower()) resource_list = [resource for resource in resource_list if resource['NAME'] == cmp_name] if content: resource_list = [resource for resource in resource_list if resource['TARGET'] == content] processed_records = [] for resource in resource_list: processed_records.append({ 'id': resource['RESOURCEID'], 'type': resource['TYPE'], 'name': self._full_name(resource['NAME']), 'ttl': resource['TTL_SEC'], 'content': resource['TARGET'] }) logger.debug('list_records: %s', processed_records) return processed_records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): if not identifier: resources = self.list_records(type, name, None) identifier = resources[0]['id'] if len(resources) > 0 else None logger.debug('update_record: %s', identifier) self._get('domain.resource.update', query_params={ 'DomainID': self.domain_id, 'ResourceID': identifier, 'Name': self._relative_name(name).lower() if name else None, 'Type': type if type else None, 'Target': content if content else None }) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_resource_id = [] if not identifier: resources = self.list_records(type, name, content) delete_resource_id = [resource['id'] for resource in resources] else: delete_resource_id.append(identifier) logger.debug('delete_records: %s', delete_resource_id) for resource_id in delete_resource_id: self._get('domain.resource.delete', query_params={ 'DomainID': self.domain_id, 'ResourceID': resource_id }) return True # Helpers def _request(self, action='GET', url='', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' } query_params['api_key'] = self.options.get('auth_token') query_params['resultFormat'] = 'JSON' query_params['api_action'] = url r = requests.request(action, self.api_endpoint, params=query_params, data=json.dumps(data), headers=default_headers) r.raise_for_status() # if the request fails for any reason, throw an error. if action == 'DELETE': return '' else: result = r.json() if len(result['ERRORARRAY']) > 0: raise Exception('Linode api error: {0}'.format(result['ERRORARRAY'])) return result lexicon-2.2.1/lexicon/providers/luadns.py000066400000000000000000000110151325606366700205070ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify email address used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.luadns.com/v1') def authenticate(self): payload = self._get('/zones') domain_info = next((domain for domain in payload if domain['name'] == self.options['domain']), None) if not domain_info: raise Exception('No domain found') self.domain_id = domain_info['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): # check if record already exists existing_records = self.list_records(type, name, content) if len(existing_records) == 1: return True payload = self._post('/zones/{0}/records'.format(self.domain_id), {'type': type, 'name': self._fqdn_name(name), 'content': content, 'ttl': self.options['ttl']}) logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): payload = self._get('/zones/{0}/records'.format(self.domain_id)) records = [] for record in payload: processed_record = { 'type': record['type'], 'name': self._full_name(record['name']), 'ttl': record['ttl'], 'content': record['content'], 'id': record['id'] } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'ttl': self.options['ttl'] } if type: data['type'] = type if name: data['name'] = self._fqdn_name(name) if content: data['content'] = content payload = self._put('/zones/{0}/records/{1}'.format(self.domain_id, identifier), data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/zones/{0}/records/{1}'.format(self.domain_id, record_id)) logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), auth=requests.auth.HTTPBasicAuth(self.options['auth_username'], self.options['auth_token']), headers={ 'Content-Type': 'application/json', 'Accept': 'application/json' }) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/memset.py000066400000000000000000000125441325606366700205230ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify API key used to authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.memset.com/v1/json') def authenticate(self): payload = self._get('/dns.zone_domain_info', { 'domain': self.options['domain'] }) if not payload['zone_id']: raise Exception('No domain found') self.domain_id = payload['zone_id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): data = {'type': type, 'record': self._relative_name(name), 'address': content} if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') data['zone_id'] = self.domain_id check_exists = self.list_records(type=type, name=name, content=content) if not len(check_exists) > 0: payload = self._get('/dns.zone_record_create', data) if payload['id']: self._get('/dns.reload') logger.debug('create_record: %s', payload['id']) return payload['id'] else: return check_exists # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): payload = self._get('/dns.zone_info', { 'id': self.domain_id }) records = [] for record in payload['records']: processed_record = { 'type': record['type'], 'name': self._full_name(record['record']), 'ttl': record['ttl'], 'content': record['address'], 'id': record['id'] } if name: name = self._full_name(name) if (processed_record['type'] == type): if (name is not None and content is not None): if processed_record['name'] == name and processed_record['content'] == content: records.append(processed_record) elif (name is not None and content is None): if processed_record['name'] == name: records.append(processed_record) elif (name is None and content is not None): if processed_record['content'] == content: records.append(processed_record) else: records.append(processed_record) logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = {} if not identifier: records = self.list_records(type, self._relative_name(name)) if len(records) == 1: identifier = records[0]['id'] else: raise Exception('Record identifier could not be found.') if type: data['type'] = type if name: data['record'] = self._relative_name(name) if content: data['address'] = content if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') data['id'] = identifier data['zone_id'] = self.domain_id payload = self._get('/dns.zone_record_update', data) if payload['id']: self._get('/dns.reload') logger.debug('update_record: %s', payload['id']) return payload['id'] # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, self._relative_name(name), content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._get('/dns.zone_record_delete', {'id': record_id}) if len(record_id) > 0: self._get('/dns.reload') logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), auth=(self.options['auth_token'], 'x'), headers={'Content-Type': 'application/json'}) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/namecheap.py000066400000000000000000000120741325606366700211500ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import logging from .base import Provider as BaseProvider try: import namecheap #optional dep except ImportError: pass logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument( '--auth-token', help='specify api token used to authenticate' ) subparser.add_argument( '--auth-username', help='specify email address used to authenticate' ) # FIXME What is the client IP used for? subparser.add_argument( '--auth-client-ip', help='Client IP address to send to Namecheap API calls', default='127.0.0.1' ) subparser.add_argument( '--auth-sandbox', help='Whether to use the sandbox server', action='store_true' ) class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.options = options self.client = namecheap.Api( ApiUser=options.get('auth_username',''), ApiKey=options.get('auth_token',''), UserName=options.get('auth_username',''), ClientIP=options.get('auth_client_ip',''), sandbox=options.get('auth_sandbox', False), debug=False ) self.domain = self.options['domain'] self.domain_id = None def authenticate(self): try: domain_names = [x['Name'] for x in self.client.domains_getList()] except namecheap.ApiError: raise Exception('Authentication failed') if self.domain not in domain_names: raise Exception('The domain {} is not controlled by this Namecheap ' 'account'.format(self.domain)) # FIXME What is this for? self.domain_id = self.domain # Create record. If record already exists with the same content, do nothing def create_record(self, type, name, content): record = { # required 'Type': type, 'Name': self._relative_name(name), 'Address': content } # logger.debug('create_record: %s', 'id' in payload) # return 'id' in payload self.client.domains_dns_addHost(self.domain, record) return True # List all records. Return an empty list if no records found. # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is # received. def list_records(self, type=None, name=None, content=None, id=None): records = [] raw_records = self.client.domains_dns_getHosts(self.domain) for record in raw_records: records.append(self._convert_to_lexicon(record)) if id: records = [record for record in records if record['id'] == id] if type: records = [record for record in records if record['type'] == type] if name: if name.endswith('.'): name = name[:-1] records = [record for record in records if name in record['name'] ] if content: records = [record for record in records if record['content'].lower() == content.lower()] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): # Delete record if it exists self.delete_record(identifier, type, name, content) return self.create_record(type, name, content) # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): records = self.list_records(type=type, name=name, content=content, id=identifier) for record in records: self.client.domains_dns_delHost(self.domain, self._convert_to_namecheap(record)) return True def _convert_to_namecheap(self, record): """ converts from lexicon format record to namecheap format record, suitable to sending through the api to namecheap""" name = record['name'] if name.endswith('.'): name = name[:-1] short_name = name[:name.find(self.domain)-1] processed_record = { 'Type': record['type'], 'Name': short_name, 'TTL': record['ttl'], 'Address': record['content'], 'HostId': record['id'] } return processed_record def _convert_to_lexicon(self, record): """ converts from namecheap raw record format to lexicon format record """ name = record['Name'] if self.domain not in name: name = "{}.{}".format(name,self.domain) processed_record = { 'type': record['Type'], 'name': '{0}.{1}'.format(record['Name'], self.domain), 'ttl': record['TTL'], 'content': record['Address'], 'id': record['HostId'] } return processed_record lexicon-2.2.1/lexicon/providers/namesilo.py000066400000000000000000000121151325606366700210320ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import logging from xml.etree import ElementTree import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify key used authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://www.namesilo.com/api') def authenticate(self): payload = self._get('/getDomainInfo', {'domain': self.options['domain']}) self.domain_id = self.options['domain'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): record = { 'domain': self.domain_id, 'rrhost': self._relative_name(name), 'rrtype': type, 'rrvalue': content } if self.options.get('ttl'): record['rrttl'] = self.options.get('ttl') try: payload = self._get('/dnsAddRecord', record) except ValueError as err: # noop if attempting to create record that already exists. logger.debug('Ignoring error: {0}'.format(err)) logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): query = {'domain': self.domain_id} payload = self._get('/dnsListRecords', query) records = [] for record in payload.find('reply').findall('resource_record'): processed_record = { 'type': record.find('type').text, 'name': record.find('host').text, 'ttl': record.find('ttl').text, 'content': record.find('value').text, 'id': record.find('record_id').text } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'domain': self.domain_id, 'rrid': identifier } # if type: # data['rtype'] = type if name: data['rrhost'] = self._relative_name(name) if content: data['rrvalue'] = content if self.options.get('ttl'): data['rrttl'] = self.options.get('ttl') payload = self._get('/dnsUpdateRecord', data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): data = { 'domain': self.domain_id } delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: data['rrid'] = record_id payload = self._get('/dnsDeleteRecord', data) logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} query_params['version'] = 1 query_params['type'] = 'xml' query_params['key'] = self.options['auth_token'] r = requests.request(action, self.api_endpoint + url, params=query_params) #data=json.dumps(data)) r.raise_for_status() # if the request fails for any reason, throw an error. # TODO: check if the response is an error using tree = ElementTree.ElementTree(ElementTree.fromstring(r.content)) root = tree.getroot() if root.find('reply').find('code').text == '280': raise ValueError('An error occurred: {0}, {1}'.format(root.find('reply').find('detail').text, root.find('reply').find('code').text)) elif root.find('reply').find('code').text != '300': raise Exception('An error occurred: {0}, {1}'.format(root.find('reply').find('detail').text, root.find('reply').find('code').text)) return root lexicon-2.2.1/lexicon/providers/nsone.py000066400000000000000000000217511325606366700203530ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify token used authenticate to DNS provider") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.nsone.net/v1') def authenticate(self): payload = self._get('/zones/{0}'.format(self.options['domain'])) if not payload['id']: raise Exception('No domain found') self.domain_id = self.options['domain'] def _get_record_set(self, name, type): try: payload = self._get('/zones/{0}/{1}/{2}'.format(self.domain_id, name, type)) except requests.exceptions.HTTPError as e: if e.response.status_code == 404: return None else: raise e return { 'type': payload['type'], 'name': payload['domain'], 'ttl': payload['ttl'], 'answers': payload['answers'] } # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): name = self._full_name(name) existing_record_set = self._get_record_set(name, type) if existing_record_set: def _record_set_has_answer(record_set, content): for answer in record_set['answers']: if content in answer['answer']: return True return False if not _record_set_has_answer(existing_record_set, content): existing_record_set['answers'].append({ 'answer': [content] }) self._post('/zones/{0}/{1}/{2}'.format(self.domain_id, name, type), existing_record_set) else: record = { 'type': type, 'domain': name, 'zone': self.domain_id, 'answers':[ {"answer": [content]} ] } payload = {} try: payload = self._put('/zones/{0}/{1}/{2}'.format(self.domain_id, name, type), record) except requests.exceptions.HTTPError as e: # http 400 is ok here, because the record probably already exists if e.response.status_code == 400: payload = {} logger.debug('create_record: %s', 'id' in payload) return True def _find_record(self, domain, _type=None): """search for a record on NS1 across zones. returns None if not found.""" def _is_matching(record): """filter function for records""" if domain and record.get('domain', None) != domain: return False if _type and record.get('type', None) != _type: return False return True payload = self._get('/search?q={0}&type=record'.format(domain)) for record in payload: if _is_matching(record): match = record break else: # no such domain on ns1 return None record = self._get('/zones/{0}/{1}/{2}'.format(match['zone'], match['domain'], match['type'])) if record.get('message', None): return None # {"message":"record not found"} short_answers = [ x['answer'][0] for x in record['answers'] ] # ensure a compatibility level with self.list_records record['short_answers'] = short_answers return record # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): def _resolve_link(record, recurse=0): # https://ns1.com/articles/cname-alias-and-linked-records # - recursion is allowed # - link source and link target are always of the same type # - target can be anywhere on ns1, not necessarily self.domain_id. if record.get('link', None) is None: # not a linked record return record if recurse < 1: return None match = self._find_record(record['link'], _type=record['type']) if not match: return None return _resolve_link(match, recurse=recurse-1) payload = self._get('/zones/{0}'.format(self.domain_id)) records = [] for record in payload['records']: if type and record['type'] != type: continue if name and record['domain'] != self._full_name(name): continue link_target = _resolve_link(record, recurse=3) if link_target and link_target.get('short_answers', None): # target found (could be the same as orig record) answers = link_target['short_answers'] else: # recursion limit reached. or unhandled record format. answers = [] if content and content not in answers: continue for answer in answers: processed_record = { 'type': record['type'], 'name': record['domain'], 'ttl': record['ttl'], 'content': answer, #this id is useless unless your doing record linking. Lets return the original record identifier. 'id': '{0}/{1}/{2}'.format(self.domain_id, record['domain'], record['type']) } records.append(processed_record) logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = {} payload = None new_identifier = "{0}/{1}/{2}".format(self.domain_id, self._full_name(name),type) if(new_identifier == identifier or (type is None and name is None)): # the identifier hasnt changed, or type and name are both unspecified, only update the content. data['answers'] = [ {"answer": [content]} ] self._post('/zones/{0}'.format(identifier), data) else: # identifiers are different # get the old record, create a new one with updated data, delete the old record. old_record = self._get('/zones/{0}'.format(identifier)) self.create_record(type or old_record['type'], name or old_record['domain'], content or old_record['answers'][0]['answer'][0]) self.delete_record(identifier) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): if not identifier: name = self._full_name(name) record_set = self._get_record_set(name, type) if record_set: record_set_new = { 'type': record_set['type'], 'name': record_set['name'], 'ttl': record_set['ttl'], 'answers': [] } if content: for answer in record_set['answers']: if content not in answer['answer']: record_set_new['answers'].append(answer) if len(record_set_new['answers']) > 0: self._post('/zones/{0}/{1}/{2}'.format(self.domain_id, name, type), record_set_new) else: self._delete('/zones/{0}/{1}/{2}'.format(self.domain_id, name, type)) else: self._delete('/zones/{0}'.format(identifier)) logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'X-NSONE-Key': self.options['auth_token'] } default_auth = None r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers=default_headers, auth=default_auth) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/onapp.py000066400000000000000000000151171325606366700203450ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from requests.auth import HTTPBasicAuth from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.description = ''' The OnApp provider requires your OnApp account\'s email address and API token, which can be found on your /profile page on the Control Panel interface. The server is your dashboard URL, in the format of e.g. https://dashboard.youronapphost.org''' subparser.add_argument('--auth-username', help='specify email address of the OnApp account') subparser.add_argument('--auth-token', help='specify API Key for the OnApp account') subparser.add_argument('--auth-server', help='specify URL to the OnApp Control Panel Server') class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None if not self.options.get('auth_username'): raise Exception('Error, OnApp Email Address is not defined') if not self.options.get('auth_token'): raise Exception('Error, OnApp API Key is not defined') if not self.options.get('auth_server'): raise Exception('Error, OnApp Control Panel URL is not defined') self.session = requests.Session() def authenticate(self): domain = self.options.get('domain') zones = self._get('/dns_zones.json') for zone in zones: if zone['dns_zone']['name'] == domain: self.domain_id = zone['dns_zone']['id'] break if self.domain_id == None: raise Exception('Could not find {0} in OnApp DNS Zones'.format(domain)) def create_record(self, type, name, content): data = { 'name': self._relative_name(name), 'type': type, self._key_for_record_type(type): content } ttl = self.options.get('ttl') if ttl: data['ttl'] = "{0}".format(ttl) result = self._post('/dns_zones/{0}/records.json'.format(self.domain_id), { 'dns_record': data }) logger.debug('create_record: %s', result) return True def list_records(self, type=None, name=None, content=None): records = [] response = self._get('/dns_zones/{0}/records.json'.format(self.domain_id)) for recordType in response['dns_zone']['records']: # For now we do not support other RR types so we ignore them, also see _key_for_record_type if recordType not in ('A','AAAA','CNAME','TXT'): continue if type and recordType != type: continue for record in response['dns_zone']['records'][recordType]: record = record['dns_record'] if name and record['name'] != self._relative_name(name): continue recordContent = record[self._key_for_record_type(recordType)] if content and recordContent != content: continue records.append({ 'id': record['id'], 'name': self._full_name(record['name']), 'type': record['type'], 'ttl': record['ttl'], 'content': recordContent }) logger.debug('list_records: %s', records) return records def update_record(self, identifier, type=None, name=None, content=None): if not identifier: existing = self._guess_record(type, name) identifier = existing['id'] ttl = self.options.get('ttl') if not name or not ttl: if not existing: existing = self._get('/dns_zones/{0}/records/{1}.json'.format(self.domain_id, identifier)) if not name: name = existing['name'] if not ttl: ttl = existing['ttl'] request = { 'name': self._relative_name(name), 'ttl': '{0}'.format(ttl), self._key_for_record_type(type): content } result = self._put('/dns_zones/{0}/records/{1}.json'.format(self.domain_id, identifier), { 'dns_record': request }) logger.debug('update_record: %s', result) return True def delete_record(self, identifier=None, type=None, name=None, content=None): deletion_ids = [] if not identifier: records = self.list_records(type, name, content) deletion_ids = [ record['id'] for record in records ] else: deletion_ids.append(identifier) for id in deletion_ids: self._delete('/dns_zones/{0}/records/{1}.json'.format(self.domain_id, id)) logger.debug('delete_record: %s', True) return True def _request(self, action='GET', url='/', data=None, query_params=None): headers = { 'Content-Type': 'application/json', 'Accept': 'application/json' } target = self.options['auth_server'] + url body = '' if data is not None: body = json.dumps(data) auth = HTTPBasicAuth(self.options['auth_username'], self.options['auth_token']) request = requests.Request(action, target, data=body, headers=headers, params=query_params, auth=auth) prepared_request = self.session.prepare_request(request) result = self.session.send(prepared_request) result.raise_for_status() if result.text: return result.json() else: return None def _key_for_record_type(self, record_type): if record_type in ('A','AAAA'): return 'ip' elif record_type == 'CNAME': return 'hostname' elif record_type == 'TXT': return 'txt' elif record_type in ('MX','NS', 'SOA', 'SRV', 'LOC'): raise Exception('{0} record type is not supported in the OnApp Provider'.format(record_type)) def _guess_record(self, type, name=None, content=None): records = self.list_records(type=type, name=name, content=content) if len(records) == 1: return records[0] elif len(records) > 1: raise Exception('Identifier was not provided and several existing records match the request for {0}/{1}'.format(type,name)) elif len(records) == 0: raise Exception('Identifier was not provided and no existing records match the request for {0}/{1}'.format(type,name)) lexicon-2.2.1/lexicon/providers/ovh.py000066400000000000000000000160721325606366700200250ustar00rootroot00000000000000import json import hashlib import time import logging import requests from .base import Provider as BaseProvider LOGGER = logging.getLogger(__name__) ENDPOINTS = { 'ovh-eu': 'https://eu.api.ovh.com/1.0', 'ovh-ca': 'https://ca.api.ovh.com/1.0', 'kimsufi-eu': 'https://eu.api.kimsufi.com/1.0', 'kimsufi-ca': 'https://ca.api.kimsufi.com/1.0', 'soyoustart-eu': 'https://eu.api.soyoustart.com/1.0', 'soyoustart-ca': 'https://ca.api.soyoustart.com/1.0', } def ProviderParser(subparser): subparser.description = ''' OVH Provider requires a token with full rights on /domain/*. It can be generated for your OVH account on the following URL: https://api.ovh.com/createToken/index.cgi?GET=/domain/*&PUT=/domain/*&POST=/domain/*&DELETE=/domain/*''' subparser.add_argument('--auth-entrypoint', help='specify the OVH entrypoint', choices=[ 'ovh-eu', 'ovh-ca', 'soyoustart-eu', 'soyoustart-ca', 'kimsufi-eu', 'kimsufi-ca' ]) subparser.add_argument('--auth-application-key', help='specify the application key') subparser.add_argument('--auth-application-secret', help='specify the application secret') subparser.add_argument('--auth-consumer-key', help='specify the consumer key') class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) # Handling missing required parameters if not self.options.get('auth_entrypoint'): raise Exception('Error, entrypoint is not defined') if not self.options.get('auth_application_key'): raise Exception('Error, application key is not defined') if not self.options.get('auth_application_secret'): raise Exception('Error, application secret is not defined') if not self.options.get('auth_consumer_key'): raise Exception('Error, consumer key is not defined') # Construct DNS OVH environment self.domain_id = None self.endpoint_api = ENDPOINTS.get(self.options.get('auth_entrypoint')) # All requests will be done in one HTTPS session self.session = requests.Session() # Calculate delta time between local and OVH to avoid requests rejection server_time = self.session.get('{0}/auth/time'.format(self.endpoint_api)).json() self.time_delta = server_time - int(time.time()) def authenticate(self): domain = self.options.get('domain') domains = self._get('/domain/zone/') if domain not in domains: raise Exception('Domain {0} not found'.format(domain)) status = self._get('/domain/zone/{0}/status'.format(domain)) if not status['isDeployed']: raise Exception('Zone {0} is not deployed'.format(domain)) self.domain_id = domain def create_record(self, type, name, content): domain = self.options.get('domain') ttl = self.options.get('ttl') data = { 'fieldType': type, 'subDomain': self._relative_name(name), 'target': content } if ttl: data['ttl'] = ttl result = self._post('/domain/zone/{0}/record'.format(domain), data) self._post('/domain/zone/{0}/refresh'.format(domain)) LOGGER.debug('create_record: %s', result['id']) return True def list_records(self, type=None, name=None, content=None): domain = self.options.get('domain') records = [] params = {} if type: params['fieldType'] = type if name: params['subDomain'] = self._relative_name(name) record_ids = self._get('/domain/zone/{0}/record'.format(domain), params) for record_id in record_ids: raw = self._get('/domain/zone/{0}/record/{1}'.format(domain, record_id)) records.append({ 'type': raw['fieldType'], 'name': self._full_name(raw['subDomain']), 'ttl': raw['ttl'], 'content': raw['target'], 'id': raw['id'] }) if content: records = [record for record in records if record['content'].lower() == content.lower()] LOGGER.debug('list_records: %s', records) return records def update_record(self, identifier, type=None, name=None, content=None): domain = self.options.get('domain') if not identifier: records = self.list_records(type, name) if len(records) == 1: identifier = records[0]['id'] elif len(records) > 1: raise Exception('Several record identifiers match the request') else: raise Exception('Record identifier could not be found') data = {} if name: data['subDomain'] = self._relative_name(name) if content: data['target'] = content self._put('/domain/zone/{0}/record/{1}'.format(domain, identifier), data) self._post('/domain/zone/{0}/refresh'.format(domain)) LOGGER.debug('update_record: %s', identifier) return True def delete_record(self, identifier=None, type=None, name=None, content=None): domain = self.options.get('domain') delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) LOGGER.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: self._delete('/domain/zone/{0}/record/{1}'.format(domain, record_id)) self._post('/domain/zone/{0}/refresh'.format(domain)) LOGGER.debug('delete_record: %s', True) return True def _request(self, action='GET', url='/', data=None, query_params=None): headers = {} target = self.endpoint_api + url body = '' if data is not None: headers['Content-type'] = 'application/json' body = json.dumps(data) # Get correctly sync time now = str(int(time.time()) + self.time_delta) headers['X-Ovh-Application'] = self.options.get('auth_application_key') headers['X-Ovh-Consumer'] = self.options.get('auth_consumer_key') headers['X-Ovh-Timestamp'] = now request = requests.Request(action, target, data=body, params=query_params, headers=headers) prepared_request = self.session.prepare_request(request) # Build OVH API signature for the current request signature = hashlib.sha1() signature.update('+'.join([ self.options.get('auth_application_secret'), self.options.get('auth_consumer_key'), action.upper(), prepared_request.url, body, now ]).encode('utf-8')) # Sign the request prepared_request.headers['X-Ovh-Signature'] = '$1$' + signature.hexdigest() result = self.session.send(prepared_request) result.raise_for_status() return result.json() lexicon-2.2.1/lexicon/providers/pointhq.py000066400000000000000000000111121325606366700207010ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify email address used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://pointhq.com') def authenticate(self): payload = self._get('/zones/{0}'.format(self.options['domain'])) if not payload['zone']: raise Exception('No domain found') self.domain_id = payload['zone']['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): # check if record already exists existing_records = self.list_records(type, name, content) if len(existing_records) == 1: return True payload = self._post('/zones/{0}/records'.format(self.domain_id), {'zone_record': {'record_type': type, 'name': self._relative_name(name), 'data': content}}) logger.debug('create_record: %s', payload['zone_record']) return bool(payload['zone_record']) # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} if type: filter['record_type'] = type if name: filter['name'] = self._relative_name(name) payload = self._get('/zones/{0}/records'.format(self.domain_id), filter) records = [] for record in payload: processed_record = { 'type': record['zone_record']['record_type'], 'name': self._full_name(record['zone_record']['name']), 'ttl': record['zone_record']['ttl'], 'content': record['zone_record']['data'], 'id': record['zone_record']['id'] } processed_record = self._clean_TXT_record(processed_record) records.append(processed_record) if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = {} if type: data['record_type'] = type if name: data['name'] = self._relative_name(name) if content: data['data'] = content payload = self._put('/zones/{0}/records/{1}'.format(self.domain_id, identifier), {'zone_record': data}) logger.debug('update_record: %s', payload) return bool(payload['zone_record']) # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete('/zones/{0}/records/{1}'.format(self.domain_id, record_id)) logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), auth=requests.auth.HTTPBasicAuth(self.options['auth_username'], self.options['auth_token']), headers={ 'Content-Type': 'application/json', 'Accept': 'application/json' }) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/powerdns.py000066400000000000000000000171731325606366700210750ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) # Lexicon PowerDNS Provider # # Author: Will Hughes, 2017 # # API Docs: https://doc.powerdns.com/md/httpapi/api_spec/ # # Implementation notes: # * The PowerDNS API does not assign a unique identifier to each record in the way # that Lexicon expects. We work around this by creating an ID based on the record # name, type and content, which when taken together are always unique # * The PowerDNS API has no notion of 'create a single record' or 'delete a single # record'. All operations are either 'replace the RRSet with this new set of records' # or 'delete all records for this name and type. Similarly, there is no notion of # 'change the content of this record', because records are identified by their name, # type and content. # * The API is very picky about the format of values used when creating records: # ** CNAMEs must be fully qualified # ** TXT, LOC records must be quoted # This is why the _clean_content and _unclean_content methods exist, to convert # back and forth between the format PowerDNS expects, and the format Lexicon uses def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify token used authenticate") subparser.add_argument("--pdns-server", help="URI for PowerDNS server") subparser.add_argument("--pdns-server-id", help="Server ID to interact with") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.api_endpoint = self.options.get('pdns_server') if self.api_endpoint.endswith('/'): self.api_endpoint = self.api_endpoint[:-1] if not self.api_endpoint.endswith("/api/v1"): self.api_endpoint += "/api/v1" self.server_id = self.options.get('pdns_server_id') if self.server_id is None: self.server_id = 'localhost' self.api_endpoint += "/servers/" + self.server_id self.api_key = self.options.get('auth_token') assert self.api_key is not None self._zone_data = None def zone_data(self): if self._zone_data is None: self._zone_data = self._get('/zones/' + self.options['domain']).json() return self._zone_data def authenticate(self): self.zone_data() self.domain_id = self.options['domain'] def _make_identifier(self, type, name, content): return "{}/{}={}".format(type, name, content) def _parse_identifier(self, identifier): parts = identifier.split('/') type = parts[0] parts = parts[1].split('=') name = parts[0] content = "=".join(parts[1:]) return type, name, content def list_records(self, type=None, name=None, content=None): records = [] for rrset in self.zone_data()['rrsets']: if (name is None or self._fqdn_name(rrset['name']) == self._fqdn_name(name)) and (type is None or rrset['type'] == type): for record in rrset['records']: if content is None or record['content'] == self._clean_content(type, content): records.append({ 'type': rrset['type'], 'name': self._full_name(rrset['name']), 'ttl': rrset['ttl'], 'content': self._unclean_content(rrset['type'], record['content']), 'id': self._make_identifier(rrset['type'], rrset['name'], record['content']) }) logger.debug('list_records: %s', records) return records def _clean_content(self, type, content): if type in ("TXT", "LOC"): if content[0] != '"': content = '"' + content if content[-1] != '"': content += '"' elif type == "CNAME": content = self._fqdn_name(content) return content def _unclean_content(self, type, content): if type in ("TXT", "LOC"): content = content.strip('"') elif type == "CNAME": content = self._full_name(content) return content def create_record(self, type, name, content): content = self._clean_content(type, content) for rrset in self.zone_data()['rrsets']: if rrset['name'] == name and rrset['type'] == type: update_data = rrset if 'comments' in update_data: del update_data['comments'] update_data['changetype'] = 'REPLACE' break else: update_data = { 'name': name, 'type': type, 'records': [], 'ttl': self.options.get('ttl', 600), 'changetype': 'REPLACE' } for record in update_data['records']: if record['content'] == content: return True update_data['records'].append({ 'content': content, 'disabled': False }) update_data['name'] = self._fqdn_name(update_data['name']) request = {'rrsets': [update_data]} logger.debug('request: %s', request) self._patch('/zones/' + self.options['domain'], data=request) self._zone_data = None return True def delete_record(self, identifier=None, type=None, name=None, content=None): if identifier is not None: type, name, content = self._parse_identifier(identifier) logger.debug("delete %s %s %s", type, name, content) if type is None or name is None: raise Exception("Must specify at least both type and name") for rrset in self.zone_data()['rrsets']: if rrset['type'] == type and self._fqdn_name(rrset['name']) == self._fqdn_name(name): update_data = rrset if 'comments' in update_data: del update_data['comments'] update_data['changetype'] = 'REPLACE' break else: return True new_records = [] for record in update_data['records']: if content is None or self._unclean_content(type, record['content']) != self._unclean_content(type, content): new_records.append(record) update_data['name'] = self._fqdn_name(update_data['name']) update_data['records'] = new_records request = {'rrsets': [update_data]} logger.debug('request: %s', request) self._patch('/zones/' + self.options['domain'], data=request) self._zone_data = None return True def update_record(self, identifier, type=None, name=None, content=None): self.delete_record(identifier) return self.create_record(type, name, content) def _patch(self, url='/', data=None, query_params=None): return self._request('PATCH', url, data=data, query_params=query_params) def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers={ 'X-API-Key': self.api_key, 'Content-Type': 'application/json' }) logger.debug('response: %s', r.text) r.raise_for_status() return r lexicon-2.2.1/lexicon/providers/rackspace.py000066400000000000000000000207131325606366700211620ustar00rootroot00000000000000"""Rackspace provider implementation""" from __future__ import absolute_import from __future__ import print_function import json import logging import time import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def _async_request_completed(payload): """Looks into an async response payload to see if the requested job has finished.""" if payload['status'] == 'COMPLETED': return True if payload['status'] == 'ERROR': return True return False def ProviderParser(subparser): subparser.add_argument("--auth-account", help="specify account number used to authenticate") subparser.add_argument("--auth-username", help="specify username used to authenticate. Only used if --auth-token is empty.") subparser.add_argument("--auth-api-key", help="specify api key used to authenticate. Only used if --auth-token is empty.") subparser.add_argument("--auth-token", help="specify token used authenticate. If empty, the username and api key will be used to create a token.") subparser.add_argument("--sleep-time", type=float, default=1, help="number of seconds to wait between update requests.") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get( 'api_endpoint', 'https://dns.api.rackspacecloud.com/v1.0' ) self.auth_api_endpoint = self.engine_overrides.get( 'auth_api_endpoint', 'https://identity.api.rackspacecloud.com/v2.0' ) def authenticate(self): if not self.options['auth_token']: auth_response = self._auth_request('POST', '/tokens', { 'auth': { 'RAX-KSKEY:apiKeyCredentials': { 'username': self.options['auth_username'], 'apiKey': self.options['auth_api_key'] } } }) self.options['auth_token'] = auth_response['access']['token']['id'] payload = self._get('/domains', { 'name': self.options['domain'] }) if not payload['domains']: raise Exception('No domain found') if len(payload['domains']) > 1: raise Exception('Too many domains found. This should not happen') self.domain_id = payload['domains'][0]['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): data = {'records': [{'type': type, 'name': self._full_name(name), 'data': content}]} if self.options.get('ttl'): data['records'][0]['ttl'] = self.options.get('ttl') payload = self._post_and_wait('/domains/{0}/records'.format(self.domain_id), data) success = len(payload['records']) > 0 logger.debug('create_record: %s', success) return success # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {'per_page': 100} if type: filter['type'] = type if name: filter['name'] = self._full_name(name) if content: filter['content'] = content payload = self._get('/domains/{0}/records'.format(self.domain_id), filter) records = [] for record in payload['records']: processed_record = { 'type': record['type'], 'name': record['name'], 'ttl': record['ttl'], 'content': record['data'], 'id': record['id'] } records.append(processed_record) logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = {} if type: data['type'] = type if name: data['name'] = self._full_name(name) if content: data['data'] = content if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') if identifier is None: records = self.list_records(type, name, content) if not records[0]: raise Exception('Unable to find record to modify: ' + name) identifier = records[0]['id'] self._put_and_wait('/domains/{0}/records/{1}'.format(self.domain_id, identifier), data) # If it didn't raise from the http status code, then we're good logger.debug('update_record: %s', identifier) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._delete_and_wait('/domains/{0}/records/{1}'.format(self.domain_id, record_id)) # If it didn't raise from the http status code, then we're good success = True logger.debug('delete_record: %s', success) return success # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} full_url = (self.api_endpoint + '/{0}' + url).format(self.options.get('auth_account')) r = requests.request(action, full_url, params=query_params, data=json.dumps(data), headers={ 'X-Auth-Token': self.options.get('auth_token'), 'Content-Type': 'application/json' }) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() # Non-GET requests to the Rackspace CloudDNS API are asynchronous def _request_and_wait(self, action='POST', url='/', data=None, query_params=None): result = self._request(action, url, data, query_params) sleep_time = self.options.get('sleep_time') if sleep_time == "": sleep_time = "1" sleep_time = float(sleep_time) while not _async_request_completed(result): if sleep_time: time.sleep(sleep_time) result = self._update_response(result) if result['status'] == 'ERROR': raise Exception(result['error']['details']) if 'response' in result: return result['response'] return None def _post_and_wait(self, url='/', data=None, query_params=None): return self._request_and_wait('POST', url, data, query_params) def _put_and_wait(self, url='/', data=None, query_params=None): return self._request_and_wait('PUT', url, data, query_params) def _delete_and_wait(self, url='/', data=None, query_params=None): return self._request_and_wait('DELETE', url, data, query_params) def _update_response(self, payload): r = requests.request('GET', payload['callbackUrl'], params={'showDetails': 'true'}, data={}, headers={ 'X-Auth-Token': self.options.get('auth_token'), 'Content-Type': 'application/json' }) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() def _auth_request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} r = requests.request(action, self.auth_api_endpoint + url, params=query_params, data=json.dumps(data), headers={ 'Content-Type': 'application/json' }) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/rage4.py000066400000000000000000000120041325606366700202220ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify email address used to authenticate") subparser.add_argument("--auth-token", help="specify token used authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://rage4.com/rapi') def authenticate(self): payload = self._get('/getdomainbyname/', {'name': self.options['domain']}) if not payload['id']: raise Exception('No domain found') self.domain_id = payload['id'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): # check if record already exists existing_records = self.list_records(type, name, content) if len(existing_records) == 1: return True record = { 'id': self.domain_id, 'name': self._full_name(name), 'content': content, 'type': type } if self.options.get('ttl'): record['ttl'] = self.options.get('ttl') payload = {} try: payload = self._post('/createrecord/',{},record) except requests.exceptions.HTTPError as e: if e.response.status_code == 400: payload = {} # http 400 is ok here, because the record probably already exists logger.debug('create_record: %s', payload['status']) return payload['status'] # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = { 'id': self.domain_id } if name: filter['name'] = self._full_name(name) payload = self._get('/getrecords/', filter) records = [] for record in payload: processed_record = { 'type': record['type'], 'name': record['name'], 'ttl': record['ttl'], 'content': record['content'], 'id': record['id'] } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'id': identifier } if name: data['name'] = self._full_name(name) if content: data['content'] = content if self.options.get('ttl'): data['ttl'] = self.options.get('ttl') # if type: # raise 'Type updating is not supported by this provider.' payload = self._put('/updaterecord/', {}, data) logger.debug('update_record: %s', payload['status']) return payload['status'] # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._post('/deleterecord/', {'id': record_id}) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', } default_auth = requests.auth.HTTPBasicAuth(self.options['auth_username'], self.options['auth_token']) r = requests.request(action, self.api_endpoint + url, params=query_params, data=json.dumps(data), headers=default_headers, auth=default_auth) r.raise_for_status() # if the request fails for any reason, throw an error. return r.json() lexicon-2.2.1/lexicon/providers/route53.py000066400000000000000000000167411325606366700205420ustar00rootroot00000000000000"""Provide support to Lexicon for AWS Route 53 DNS changes.""" from __future__ import absolute_import from __future__ import print_function import logging from .base import Provider as BaseProvider try: import boto3 #optional dep import botocore #optional dep except ImportError: pass logger = logging.getLogger(__name__) def ProviderParser(subparser): """Specify arguments for AWS Route 53 Lexicon Provider.""" subparser.add_argument("--auth-access-key", help="specify ACCESS_KEY used to authenticate") subparser.add_argument("--auth-access-secret", help="specify ACCESS_SECRET used authenticate") subparser.add_argument("--private-zone", help="indicates what kind of hosted zone to use, if true, use only private zones, if false, use only public zones") #TODO: these are only required for testing, we should figure out a way to remove them & update the integration tests # to dynamically populate the auth credentials that are required. subparser.add_argument("--auth-username", help="alternative way to specify ACCESS_KEY used to authenticate") subparser.add_argument("--auth-token", help="alternative way to specify ACCESS_SECRET used authenticate") class RecordSetPaginator(object): """Paginate through complete list of record sets.""" def __init__(self, r53_client, hosted_zone_id, max_items=None): """Initialize paginator.""" self.r53_client = r53_client self.hosted_zone_id = hosted_zone_id self.max_items = max_items def get_record_sets(self, **kwargs): """Retrieve a page from API.""" return self.r53_client.list_resource_record_sets(**kwargs) def get_base_kwargs(self): """Get base kwargs for API call.""" kwargs = { 'HostedZoneId': self.hosted_zone_id } if self.max_items is not None: kwargs.update({ 'MaxItems': str(self.max_items) }) return kwargs def all_record_sets(self): """Generator to loop through current record set. Call next page if it exists. """ is_truncated = True start_record_name = None start_record_type = None kwargs = self.get_base_kwargs() while is_truncated: if start_record_name is not None: kwargs.update({ 'StartRecordName': start_record_name, 'StartRecordType': start_record_type }) result = self.get_record_sets(**kwargs) for record_set in result.get('ResourceRecordSets', []): yield record_set is_truncated = result.get('IsTruncated', False) start_record_name = result.get('NextRecordName', None) start_record_type = result.get('NextRecordType', None) class Provider(BaseProvider): """Provide AWS Route 53 implementation of Lexicon Provider interface.""" def __init__(self, options, engine_overrides=None): """Initialize AWS Route 53 DNS provider.""" super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.private_zone = options.get('private_zone', None) # instantiate the client self.r53_client = boto3.client( 'route53', aws_access_key_id=self.options.get('auth_access_key', self.options.get('auth_username')), aws_secret_access_key=self.options.get('auth_access_secret', self.options.get('auth_token')) ) def filter_zone(self, hz): if self.private_zone is not None: if hz['Config']['PrivateZone'] != self.str2bool(self.private_zone): return False if hz['Name'] != '{0}.'.format(self.options['domain']): return False return True @staticmethod def str2bool(input_string): return input_string.lower() in ('true', 'yes') def authenticate(self): """Determine the hosted zone id for the domain.""" try: hosted_zones = self.r53_client.list_hosted_zones_by_name()[ 'HostedZones' ] hosted_zone = next( hz for hz in hosted_zones if self.filter_zone(hz) ) self.domain_id = hosted_zone['Id'] except StopIteration: raise Exception('No domain found') def _change_record_sets(self, action, type, name, content): ttl = self.options['ttl'] value = '"{0}"'.format(content) if type in ['TXT', 'SPF'] else content try: self.r53_client.change_resource_record_sets( HostedZoneId=self.domain_id, ChangeBatch={ 'Comment': '{0} using lexicon Route 53 provider'.format( action ), 'Changes': [ { 'Action': action, 'ResourceRecordSet': { 'Name': self._fqdn_name(name), 'Type': type, 'TTL': ttl if ttl is not None else 300, 'ResourceRecords': [ { 'Value': value } ] } } ] } ) return True except botocore.exceptions.ClientError as e: logger.debug(e.message, exc_info=True) def create_record(self, type, name, content): """Create a record in the hosted zone.""" return self._change_record_sets('CREATE', type, name, content) def update_record(self, identifier=None, type=None, name=None, content=None): """Update a record from the hosted zone.""" return self._change_record_sets('UPSERT', type, name, content) def delete_record(self, identifier=None, type=None, name=None, content=None): """Delete a record from the hosted zone.""" return self._change_record_sets('DELETE', type, name, content) def _format_content(self, type, content): return content[1:-1] if type in ['TXT', 'SPF'] else content def list_records(self, type=None, name=None, content=None): """List all records for the hosted zone.""" records = [] paginator = RecordSetPaginator(self.r53_client, self.domain_id) for record in paginator.all_record_sets(): if type is not None and record['Type'] != type: continue if name is not None and record['Name'] != self._fqdn_name(name): continue if record.get('AliasTarget', None) is not None: record_content = [record['AliasTarget'].get('DNSName', None)] if record.get('ResourceRecords', None) is not None: record_content = [self._format_content(record['Type'], value['Value']) for value in record['ResourceRecords']] if content is not None and content not in record_content: continue logger.debug('record: %s', record) records.append({ 'type': record['Type'], 'name': self._full_name(record['Name']), 'ttl': record.get('TTL', None), 'content': record_content[0] if len(record_content) == 1 else record_content, }) logger.debug('list_records: %s', records) return records lexicon-2.2.1/lexicon/providers/sakuracloud.py000066400000000000000000000177051325606366700215520ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from requests.auth import HTTPBasicAuth from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument( "--auth-token", help="specify access token used authenticate to DNS provider") subparser.add_argument( "--auth-secret", help="specify asscess secret used authenticate to DNS provider") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get( 'api_endpoint', 'https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1') def authenticate(self): query_params = { "Filter": { "Provider.Class": "dns", "Name": self.options['domain'] } } payload = self._get( '/commonserviceitem'.format(self.options['domain']), query_params=query_params) for item in payload["CommonServiceItems"]: if item["Status"]["Zone"] == self.options['domain']: self.domain_id = item["ID"] return raise Exception('No domain found') # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): name = self._relative_name(name) resource_record_sets = self._get_resource_record_sets() index = self._find_resource_record_set( resource_record_sets, type=type, name=name, content=content) if index >= 0: logger.debug('create_record: %s', False) return resource_record_sets.append( { "Name": name, "Type": type, "RData": self._bind_format_target(type, content), "TTL": self.options["ttl"], } ) payload = self._update_resource_record_sets(resource_record_sets) logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): records = [] for record in self._get_resource_record_sets(): processed_record = { 'type': record['Type'], 'name': self._full_name(record['Name']), 'ttl': record['TTL'], 'content': record['RData'], # 'id': None, } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [ record for record in records if record['name'] == self._full_name(name) ] if content: records = [ record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier=None, type=None, name=None, content=None): if not (type and name and content): raise Exception("type ,name and content must be specified.") name = self._relative_name(name) resource_record_sets = self._get_resource_record_sets() index = self._find_resource_record_set( resource_record_sets, type=type, name=name) if index >= 0: resource_record_sets[index]["Type"] = type resource_record_sets[index]["Name"] = name resource_record_sets[index]["RData"] = self._bind_format_target( type, content) resource_record_sets[index]["TTL"] = self.options["ttl"] else: resource_record_sets.append( { "Name": name, "Type": type, "RData": self._bind_format_target(type, content), "TTL": self.options["ttl"], } ) payload = self._update_resource_record_sets(resource_record_sets) logger.debug('create_record') logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): resource_record_sets = self._get_resource_record_sets() if name is not None: name = self._relative_name(name) if content is not None: content = self._bind_format_target(type, content) filtered_records = [] for record in resource_record_sets: if type and record['Type'] != type: continue if name and record['Name'] != name: continue if content and record['RData'] != content: continue filtered_records.append(record) if len(filtered_records) == 0: logger.debug('delete_record: %s', False) return False for record in filtered_records: resource_record_sets.remove(record) self._update_resource_record_sets(resource_record_sets) logger.debug('delete_record: %s', True) return True # Helpers def _full_name(self, record_name): if record_name == "@": record_name = self.options['domain'] return super(Provider, self)._full_name(record_name) def _relative_name(self, record_name): name = super(Provider, self)._relative_name(record_name) if not name: name = "@" return name def _bind_format_target(self, type, target): if type == "CNAME" and not target.endswith("."): target += "." return target def _find_resource_record_set(self, records, type=None, name=None, content=None): for index, record in enumerate(records): if type and record['Type'] != type: continue if name and record['Name'] != name: continue if content and record['RData'] != content: continue return index return -1 def _get_resource_record_sets(self): payload = self._get('/commonserviceitem/{0}'.format(self.domain_id)) return payload['CommonServiceItem']['Settings']['DNS']['ResourceRecordSets'] def _update_resource_record_sets(self, resource_record_sets): content = { "CommonServiceItem": { "Settings": { "DNS": { "ResourceRecordSets": resource_record_sets } } } } return self._put('/commonserviceitem/{0}'.format(self.domain_id), content) def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', } default_auth = HTTPBasicAuth( self.options['auth_token'], self.options['auth_secret']) query_string = "" if query_params: query_string = json.dumps(query_params) r = requests.request(action, self.api_endpoint + url, params=query_string, data=json.dumps(data), headers=default_headers, auth=default_auth) try: # if the request fails for any reason, throw an error. r.raise_for_status() except: logger.error(r.json().get("error_msg")) raise return r.json() lexicon-2.2.1/lexicon/providers/softlayer.py000066400000000000000000000112131325606366700212310ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import logging from .base import Provider as BaseProvider try: import SoftLayer except ImportError: pass logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify username used to authenticate") subparser.add_argument("--auth-api-key", help="specify API private key to authenticate") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None username = self.options.get('auth_username') api_key = self.options.get('auth_api_key') if not username or not api_key: raise Exception("No username and/or api key was specified") sl_client = SoftLayer.create_client_from_env(username=username, api_key=api_key) self.sl_dns = SoftLayer.managers.dns.DNSManager(sl_client) # Authenticate against provider, # Make any requests required to get the domain's id for this provider, so it can be used in subsequent calls. # Should throw an error if authentication fails for any reason, of if the domain does not exist. def authenticate(self): domain = self.options.get('domain') payload = self.sl_dns.resolve_ids(domain) if len(payload) < 1: raise Exception('No domain found') if len(payload) > 1: raise Exception('Too many domains found. This should not happen') logger.debug('domain id: %s', payload[0]) self.domain_id = payload[0] # Create record. If record already exists with the same content, do nothing def create_record(self, type, name, content): records = self.list_records(type,name,content) if len(records) > 0: # Nothing to do, record already exists logger.debug('create_record: already exists') return True name = self._relative_name(name) ttl = self.options.get('ttl') payload = self.sl_dns.create_record(self.domain_id,name,type,content,ttl) logger.debug('create_record: %s', payload) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): ttl=None if name: name = self._relative_name(name) payload = self.sl_dns.get_records(self.domain_id,ttl,content,name,type) records = [] for record in payload: processed_record = { 'type': record['type'].upper(), 'name': self._full_name(record['host']), 'ttl': record['ttl'], 'content': record['data'], 'id': record['id'] } records.append(processed_record) logger.debug('list_records: %s', records) return records # Update a record. # If an identifier is specified, use it, otherwise do a lookup using type and name. def update_record(self, identifier=None, type=None, name=None, content=None): if not identifier: records = self.list_records(type, name) if len(records) == 1: identifier = records[0]['id'] else: raise Exception('Record identifier could not be found.') record = { 'id': identifier } if type: record['type'] = type if name: record['host'] = self._relative_name(name) if content: record['data'] = content if self.options.get('ttl'): record['ttl'] = self.options.get('ttl') payload = self.sl_dns.edit_record(record) logger.debug('update_record: %s', payload) return True # Delete an existing record. # If record does not exist, do nothing. # If an identifier is specified, use it, otherwise do a lookup using type, name and content. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self.sl_dns.delete_record(record_id) logger.debug('delete_record: %s', True) return True lexicon-2.2.1/lexicon/providers/transip.py000066400000000000000000000156421325606366700207130ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import logging from .base import Provider as BaseProvider try: from transip.service.dns import DnsEntry from transip.service.domain import DomainService except ImportError: pass logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-username", help="specify username used to authenticate") subparser.add_argument("--auth-api-key", help="specify API private key to authenticate") class Provider(BaseProvider): """ provider_options can be overwritten by a Provider to setup custom defaults. They will be overwritten by any options set via the CLI or Env. order is: """ def provider_options(self): return {'ttl': 86400} def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.provider_name = 'transip' self.domain_id = None username = self.options.get('auth_username') key_file = self.options.get('auth_api_key') if not username or not key_file: raise Exception("No username and/or keyfile was specified") self.client = DomainService( login=username, private_key_file=key_file ) # Authenticate against provider, # Make any requests required to get the domain's id for this provider, so it can be used in subsequent calls. # Should throw an error if authentication fails for any reason, of if the domain does not exist. def authenticate(self): ## This request will fail when the domain does not exist, ## allowing us to check for existence domain = self.options.get('domain') try: self.client.get_info(domain) except: raise raise Exception("Could not retrieve information about {0}, " "is this domain yours?".format(domain)) self.domain_id = domain # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): records = self.client.get_info(self.options.get('domain')).dnsEntries if self._filter_records(records, type, name, content): # Nothing to do, record already exists logger.debug('create_record: already exists') return True records.append(DnsEntry(**{ "name": self._relative_name(name), "record_type": type, "content": self._bind_format_target(type, content), "expire": self.options.get('ttl') })) self.client.set_dns_entries(self.options.get('domain'), records) status = len(self.list_records(type, name, content, show_output=False)) >= 1 logger.debug('create_record: %s', status) return status # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None, show_output=True): all_records = self._convert_records(self.client.get_info(self.options.get('domain')).dnsEntries) records = self._filter_records( records=all_records, type=type, name=name, content=content ) if show_output: logger.debug('list_records: %s', records) return records # Update a record. Identifier must be specified. def update_record(self, identifier=None, type=None, name=None, content=None): if not (type or name or content): raise Exception("At least one of type, name or content must be specified.") all_records = self.list_records(show_output=False) filtered_records = self._filter_records(all_records, type, name) for record in filtered_records: all_records.remove(record) all_records.append({ "name": name, "type": type, "content": self._bind_format_target(type, content), "ttl": self.options.get('ttl') }) self.client.set_dns_entries(self.options.get('domain'), self._convert_records_back(all_records)) status = len(self.list_records(type, name, content, show_output=False)) >= 1 logger.debug('update_record: %s', status) return status # Delete an existing record. # If record does not exist, do nothing. # If an identifier is specified, use it, otherwise do a lookup using type, name and content. def delete_record(self, identifier=None, type=None, name=None, content=None): if not (type or name or content): raise Exception("At least one of type, name or content must be specified.") all_records = self.list_records(show_output=False) filtered_records = self._filter_records(all_records, type, name, content) for record in filtered_records: all_records.remove(record) self.client.set_dns_entries(self.options.get('domain'), self._convert_records_back(all_records)) status = len(self.list_records(type, name, content, show_output=False)) == 0 logger.debug('delete_record: %s', status) return status def _full_name(self, record_name): if record_name == "@": record_name = self.options['domain'] return super(Provider, self)._full_name(record_name) def _relative_name(self, record_name): name = super(Provider, self)._relative_name(record_name) if not name: name = "@" return name def _bind_format_target(self, type, target): if type == "CNAME" and not target.endswith("."): target += "." return target # Convert the objects from transip to dicts, for easier processing def _convert_records(self, records): _records = [] for record in records: _records.append({ "id": "{0}-{1}".format(self._full_name(record.name), record.type), "name": self._full_name(record.name), "type": record.type, "content": record.content, "ttl": record.expire }) return _records def _to_dns_entry(self, _entry): return DnsEntry(self._relative_name(_entry['name']), _entry['ttl'], _entry['type'], _entry['content']) def _convert_records_back(self, _records): return [self._to_dns_entry(record) for record in _records] # Filter a list of records based on criteria def _filter_records(self, records, type=None, name=None, content=None): _records = [] for record in records: if (not type or record['type'] == type) and \ (not name or record['name'] == self._full_name(name)) and \ (not content or record['content'] == content): _records.append(record) return _records lexicon-2.2.1/lexicon/providers/vultr.py000066400000000000000000000117721325606366700204070ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import logging import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify token used authenticate to DNS provider") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://api.vultr.com/v1') def authenticate(self): payload = self._get('/dns/list') if not [item for item in payload if item['domain'] == self.options['domain']]: raise Exception('No domain found') self.domain_id = self.options['domain'] # Create record. If record already exists with the same content, do nothing' def create_record(self, type, name, content): record = { 'type': type, 'domain': self.domain_id, 'name': self._relative_name(name), 'priority': 0 } if type == 'TXT': record['data'] = "\"{0}\"".format(content) else: record['data'] = content if self.options.get('ttl'): record['ttl'] = self.options.get('ttl') payload = self._post('/dns/create_record', record) logger.debug('create_record: %s', True) return True # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): filter = {} payload = self._get('/dns/records', {'domain': self.domain_id}) records = [] for record in payload: processed_record = { 'type': record['type'], 'name': "{0}.{1}".format(record['name'], self.domain_id), 'ttl': record.get('ttl', self.options['ttl']), 'content': record['data'], 'id': record['RECORDID'] } processed_record = self._clean_TXT_record(processed_record) records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'] == content] logger.debug('list_records: %s', records) return records # Create or update a record. def update_record(self, identifier, type=None, name=None, content=None): data = { 'domain': self.domain_id, 'RECORDID': identifier, 'ttl': self.options['ttl'] } # if type: # data['type'] = type if name: data['name'] = self._relative_name(name) if content: if type == 'TXT': data['data'] = "\"{0}\"".format(content) else: data['data'] = content payload = self._post('/dns/update_record', data) logger.debug('update_record: %s', True) return True # Delete an existing record. # If record does not exist, do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: data = { 'domain': self.domain_id, 'RECORDID': record_id } payload = self._post('/dns/delete_record', data) # is always True at this point, if a non 200 response is returned an error is raised. logger.debug('delete_record: %s', True) return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', # 'Content-Type': 'application/json', 'API-Key': self.options['auth_token'] } r = requests.request(action, self.api_endpoint + url, params=query_params, data=data, headers=default_headers) r.raise_for_status() # if the request fails for any reason, throw an error. if action == 'DELETE' or action == 'PUT' or action == 'POST': return r.text # vultr handles succss/failure via HTTP Codes, Only GET returns a response. return r.json() lexicon-2.2.1/lexicon/providers/yandex.py000066400000000000000000000133211325606366700205130ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import json import logging import requests from .base import Provider as BaseProvider __author__ = 'Aliaksandr Kharkevich' __license__ = 'MIT' __contact__ = 'https://github.com/kharkevich' logger = logging.getLogger(__name__) def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify PDD token (https://tech.yandex.com/domain/doc/concepts/access-docpage/)") class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None self.api_endpoint = self.engine_overrides.get('api_endpoint', 'https://pddimp.yandex.ru/api2/admin/dns') def authenticate(self): payload = self._get('/list?domain={0}'.format(self.options['domain'])) if payload['success'] != "ok": raise Exception('No domain found') self.domain_id = self.options['domain'] def create_record(self, type, name, content): if (type == 'CNAME') or (type == 'MX') or (type == 'NS'): content = content.rstrip('.') + '.' # make sure a the data is always a FQDN for CNAMe. querystring = 'domain={0}&type={1}&subdomain={2}&content={3}'.format(self.domain_id, type, self._relative_name(name), content) if self.options.get('ttl'): querystring += "&ttl={0}".format(self.options.get('ttl')) payload = self._post('/add', {},querystring) return self._check_exitcode(payload, 'create_record') # List all records. Return an empty list if no records found # type, name and content are used to filter records. # If possible filter during the query, otherwise filter after response is received. def list_records(self, type=None, name=None, content=None): url = '/list?domain={0}'.format(self.domain_id) records = [] payload = {} next = url while next is not None: payload = self._get(next) if 'links' in payload \ and 'pages' in payload['links'] \ and 'next' in payload['links']['pages']: next = payload['links']['pages']['next'] else: next = None for record in payload['records']: processed_record = { 'type': record['type'], 'name': "{0}.{1}".format(record['subdomain'], self.domain_id), 'ttl': record['ttl'], 'content': record['content'], 'id': record['record_id'] } records.append(processed_record) if type: records = [record for record in records if record['type'] == type] if name: records = [record for record in records if record['name'] == self._full_name(name)] if content: records = [record for record in records if record['content'].lower() == content.lower()] logger.debug('list_records: %s', records) return records # Just update existing record. Domain ID (domain) and Identifier (record_id) is mandatory def update_record(self, identifier, type=None, name=None, content=None): if not identifier: logger.debug('Domain ID (domain) and Identifier (record_id) is mandatory parameters for this case') return False data = '' if type: data += '&type={0}'.format(type) if name: data += '&subdomain={0}'.format(self._relative_name(name)) if content: data += '&content={0}'.format(content) payload = self._post('/edit', {}, 'domain={0}&record_id={1}'.format(self.domain_id, identifier) + data) return self._check_exitcode(payload, 'update_record') # Delete an existing record. # If record does not exist (I'll hope), do nothing. def delete_record(self, identifier=None, type=None, name=None, content=None): delete_record_id = [] if not identifier: records = self.list_records(type, name, content) delete_record_id = [record['id'] for record in records] else: delete_record_id.append(identifier) logger.debug('delete_records: %s', delete_record_id) for record_id in delete_record_id: payload = self._post('/del', {}, 'domain={0}&record_id={1}'.format(self.domain_id, record_id)) #return self._check_exitcode(payload, 'delete_record') return True # Helpers def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} default_headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'PddToken': self.options.get('auth_token') } if not url.startswith(self.api_endpoint): url = self.api_endpoint + url r = requests.request(action, url, params=query_params, data=json.dumps(data), headers=default_headers) r.raise_for_status() # if the request fails for any reason, throw an error. if action == 'DELETE': return '' else: return r.json() def _check_exitcode(self, payload, title): if payload['success'] == 'ok': logger.debug('%s: %s', title, payload['success']) return True elif payload['error'] == 'record_exists': logger.debug('%s: %s', title, True) return True else: logger.debug('%s: %s', title, payload['error']) return False lexicon-2.2.1/lexicon/providers/zonomi.py000066400000000000000000000155141325606366700205440ustar00rootroot00000000000000from __future__ import absolute_import from __future__ import print_function import logging from xml.etree import ElementTree import requests from .base import Provider as BaseProvider logger = logging.getLogger(__name__) APIENTRYPOINT = { 'zonomi': 'https://zonomi.com/app', 'rimuhosting' : 'https://rimuhosting.com' } # Lexicon Zonomi and Rimuhosting Provider # # Author: Juan Rossi, 2017 # # Zonomi API Docs: https://zonomi.com/app/dns/dyndns.jsp # Rimuhosting API Docs: https://rimuhosting.com/dns/dyndns.jsp # # Implementation notes: # * Lots of tricks taken from the PowerDNS API # * The Zonomi API does not assign a unique identifier to each record in the way # that Lexicon expects. We work around this by creating an ID based on the record # name, type and content, which when taken together are always unique # * The API has no notion of 'create a single record' or 'delete a single # record'. All operations are either 'replace the RRSet with this new set of records' # or 'delete all records for this name and type. Similarly, there is no notion of # 'change the content of this record', because records are identified by their name, # type and content. def ProviderParser(subparser): subparser.add_argument("--auth-token", help="specify token used authenticate") subparser.add_argument("--auth-entrypoint", help="use Zonomi or Rimuhosting API", choices=[ 'zonomi', 'rimuhosting' ]) class Provider(BaseProvider): def __init__(self, options, engine_overrides=None): super(Provider, self).__init__(options, engine_overrides) self.domain_id = None if not self.options.get('auth_token'): raise Exception('Error, application key is not defined') self.api_endpoint = self.engine_overrides.get('api_endpoint', APIENTRYPOINT.get('zonomi')) if self.options.get('auth_entrypoint'): self.api_endpoint = self.engine_overrides.get('api_endpoint', APIENTRYPOINT.get(self.options.get('auth_entrypoint'))) def authenticate(self): payload = self._get('/dns/dyndns.jsp', { 'action' : 'QUERY', 'name' : "**." + self.options['domain'], 'type' : 'SOA' }) if payload.find('is_ok').text != 'OK:': raise Exception('Error with api {0}'.format(payload.find('is_ok').text)) self.domain_id = self.options['domain'] def _make_identifier(self, type, name, content): return "{}/{}={}".format(type, self._full_name(name), content) def _parse_identifier(self, identifier): parts = identifier.split('/') type = parts[0] parts = parts[1].split('=') name = parts[0] content = "=".join(parts[1:]) return type, name, content def create_record(self, type, name, content): request = { 'action': 'SET', 'type': type, 'name': self.options['domain'], 'value': content } if name is not None: request['name'] = self._full_name(name) if self.options.get('ttl'): request['ttl'] = self.options.get('ttl') if self.options.get('priority'): request['prio'] = self.options.get('priority') payload = self._get('/dns/dyndns.jsp', request) if payload.find('is_ok').text != 'OK:': raise Exception('An error occurred: {0}'.format(payload.find('is_ok').text)) logger.debug('create_record: %s', True) return True def list_records(self, type=None, name=None, content=None): records = [] request = { 'action' : 'QUERY', 'name': "**." + self.options['domain'] } if type is not None: request['type'] = type if name is not None: request['name'] = self._full_name(name) if content is not None: request['value'] = content payload = self._get('/dns/dyndns.jsp', request) for rxml in payload.iter('record'): processed_record = { 'type': rxml.attrib['type'], 'name': rxml.attrib['name'], 'content': rxml.attrib['content'], 'id': self._make_identifier(rxml.attrib['type'],rxml.attrib['name'],rxml.attrib['content']), 'ttl': rxml.attrib['ttl'].split()[0] } records.append(processed_record) logger.debug('list_records: %s', records) return records def delete_record(self, identifier=None, type=None, name=None, content=None): if identifier is not None: type, name, content = self._parse_identifier(identifier) request = { 'action' : 'DELETE', 'name': self.options['domain'] } if type is not None: request['type'] = type if name is not None: request['name'] = self._full_name(name) if content is not None: request['value'] = content payload = self._get('/dns/dyndns.jsp', request) if payload.find('is_ok').text != 'OK:': raise Exception('An error occurred: {0}'.format(payload.find('is_ok').text)) logger.debug('delete_record: %s', True) return True def update_record(self, identifier, type=None, name=None, content=None): self.delete_record(identifier) ttype, tname, tcontent = self._parse_identifier(identifier) request = { 'action': 'SET', 'type': ttype, 'name': self._full_name(tname), 'value': tcontent } if type is not None: request['type'] = type if name is not None: request['name'] = self._full_name(name) if content is not None: request['value'] = content if self.options.get('ttl'): request['ttl'] = self.options.get('ttl') if self.options.get('priority'): request['prio'] = self.options.get('priority') payload = self._get('/dns/dyndns.jsp', request) if payload.find('is_ok').text != 'OK:': raise Exception('An error occurred: {0}'.format(payload.find('is_ok').text)) logger.debug('update_record: %s', True) return True def _request(self, action='GET', url='/', data=None, query_params=None): if data is None: data = {} if query_params is None: query_params = {} else: query_params['api_key'] = self.options.get('auth_token') r = requests.request(action, self.api_endpoint + url, params=query_params) tree = ElementTree.ElementTree(ElementTree.fromstring(r.content)) root = tree.getroot() if root.tag == 'error': raise Exception('An error occurred: {0}'.format(root.text)) else: r.raise_for_status() return root lexicon-2.2.1/optional-requirements.txt000066400000000000000000000011711325606366700203020ustar00rootroot00000000000000############################################################################### # Optional Dependencies # # This file specifies all dependency groups that are defined in the # extras_require section of setup.py. Each dependency group should match # the name of the the provider who requires additional libraries to work. # # eg. The route53 provider requires the boto library, which is specified # in setup.py as follows: # # extras_require={ # 'route53': ['boto3'] # } # ############################################################################### --process-dependency-links .[namecheap] .[route53] .[softlayer] .[transip] lexicon-2.2.1/requirements.txt000066400000000000000000000004741325606366700164640ustar00rootroot00000000000000############################################################################### # Standard Dependencies # # This file specifies all standard dependencies that are required for # lexicon to work. # ############################################################################### requests[security] tldextract future lexicon-2.2.1/setup.cfg000066400000000000000000000003741325606366700150200ustar00rootroot00000000000000[bdist_wheel] # This flag says that the code is written to work on both Python 2 and Python # 3. If at all possible, it is good practice to do this. If you cannot, you # will need to generate wheels for each Python version that you support. universal=1lexicon-2.2.1/setup.py000066400000000000000000000072121325606366700147070ustar00rootroot00000000000000"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path, listdir version = 'unknown' with open(path.join(path.dirname(path.abspath(__file__)), 'VERSION'), encoding='utf-8') as version_file: version = version_file.read().strip() here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() # Get a list of all the providers current_filepath = path.join(here, 'lexicon', 'providers') providers = [path.splitext(f)[0] for f in listdir(current_filepath) if path.isfile(path.join(current_filepath, f))] providers = list(set(providers)) providers.remove('base') providers.remove('__init__') setup( name='dns-lexicon', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html version=version, description='Manipulate DNS records on various DNS providers in a standardized/agnostic way', long_description=long_description, # The project's main homepage. url='https://github.com/AnalogJ/lexicon', # Author details author='Jason Kulatunga', author_email='jason@thesparktree.com', license='MIT', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Internet :: Name Service (DNS)', 'Topic :: System :: Systems Administration', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], keywords='dns lexicon dns-lexicon dehydrated letsencrypt ' + ' '.join(providers), packages=find_packages(exclude=['contrib', 'docs', 'tests']), # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=['requests', 'tldextract', 'future'], # Each dependency group in extras_require should match a provider name # When adding a new depenency group here, please ensure that it has been # added to optional-requirements.txt as well. extras_require={ 'namecheap': ['PyNamecheap'], 'route53': ['boto3'], 'softlayer': ['SoftLayer'], 'transip': ['transip>=0.3.0'], }, # To provide executable scripts, use entry points in preference to the # "scripts" keyword. Entry points provide cross-platform support and allow # pip to create the appropriate form of executable for the target platform. entry_points={ 'console_scripts': [ 'lexicon=lexicon.__main__:main', ], }, test_suite='tests' ) lexicon-2.2.1/test-requirements.txt000066400000000000000000000006031325606366700174330ustar00rootroot00000000000000############################################################################### # Test Dependencies # # This file specifies all test dependencies that are required for a # successful tox run. # ############################################################################### -e git+https://github.com/kevin1024/vcrpy.git#egg=vcrpy pytest==2.9.0 pytest-cov==2.2.1 python-coveralls==2.7.0lexicon-2.2.1/test.py000066400000000000000000000002241325606366700145220ustar00rootroot00000000000000 # myobj = {'a':1,'b':1,'c':1} # myobj.update({'a':2,'b':2}) # myobj.update({'a':3}) # print myobj test = dict({'foo':'bar'}) print(test['foo']) lexicon-2.2.1/tests/000077500000000000000000000000001325606366700143355ustar00rootroot00000000000000lexicon-2.2.1/tests/__init__.py000066400000000000000000000000001325606366700164340ustar00rootroot00000000000000lexicon-2.2.1/tests/cleanup.sh000077500000000000000000000030751325606366700163300ustar00rootroot00000000000000PROVIDER_NAME=rage4 TEST_DOMAIN=capsulecd.com lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.createrecordset.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.deleterecordinset.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.deleterecordset.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.fqdn.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.full.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.listrecordset.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.noop.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name _acme-challenge.test.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name random.fqdntest.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name random.fulltest.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name random.test.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name updated.test.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name updated.testfqdn.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name updated.testfull.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com A --name localhost.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com TXT --name ttl.fqdn.${TEST_DOMAIN} lexicon ${PROVIDER_NAME} delete capsulecd.com CNAME --name docs.${TEST_DOMAIN} lexicon-2.2.1/tests/common/000077500000000000000000000000001325606366700156255ustar00rootroot00000000000000lexicon-2.2.1/tests/common/test_options_handler.py000066400000000000000000000050321325606366700224260ustar00rootroot00000000000000from lexicon.common.options_handler import * def test_env_auth_options_reads_only_specified_env(monkeypatch): monkeypatch.setenv('LEXICON_FOO_USERNAME','test_username') env_auth_options('foo')['auth_username'] == 'test_username' def test_SafeOptions_update_shouldnt_override_when_None(): options = SafeOptions() options['test'] = 'test' assert options['test'] == 'test' options.update({'test':None}) assert options['test'] == 'test' def test_SafeOptions_update_should_handle_empty_update(): options = SafeOptions() options['test'] = 'test' assert options['test'] == 'test' options.update({}) assert options['test'] == 'test' def test_OptionsWithFallback_returns_none_when_no_fallbackFn_set(): options = SafeOptionsWithFallback() assert options['test'] == None def test_OptionsWithFallback_with_only_data_should_return(): options = SafeOptionsWithFallback({'foo': 'bar'}) assert options['test'] == None assert options['foo'] == 'bar' def test_OptionsWithFallback_returns_placeholder_when_fallbackFn_set(): options = SafeOptionsWithFallback({}, lambda x: 'placeholder_' + x) options['exists'] = 'test_value' assert options['test_key1'] == 'placeholder_test_key1' assert options.get('test_key2') == 'placeholder_test_key2' assert options['exists'] == 'test_value' assert options.get('exists') == 'test_value' def test_OptionsWithFallback_chain(monkeypatch): base_options = SafeOptionsWithFallback({}, lambda x: 'placeholder_' + x) base_options['test1'] = 'base' base_options['test2'] = 'base' base_options['test3'] = 'base' base_options['auth_test3'] = 'base' base_options['auth_test4'] = 'base' provider_options = SafeOptions() provider_options['test2'] = 'provider' provider_options['test3'] = 'provider' provider_options['auth_test3'] = 'provider' provider_options['auth_test4'] = 'provider' monkeypatch.setenv('LEXICON_FOO_TEST3','env') monkeypatch.setenv('LEXICON_FOO_TEST4','env') env_options = env_auth_options('foo') cli_options = SafeOptions() cli_options['auth_test4'] = 'cli' #merge them together base_options.update(provider_options) base_options.update(env_options) base_options.update(cli_options) assert base_options['test0'] == 'placeholder_test0' assert base_options['test1'] == 'base' assert base_options['test2'] == 'provider' assert base_options['test3'] == 'provider' assert base_options['auth_test3'] == 'env' assert base_options['auth_test4'] == 'cli' lexicon-2.2.1/tests/fixtures/000077500000000000000000000000001325606366700162065ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/000077500000000000000000000000001325606366700202045ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/000077500000000000000000000000001325606366700214755ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTests/000077500000000000000000000000001325606366700250035ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000021621325606366700332570ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204149Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:50 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000021621325606366700421520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204149Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:50 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000043331325606366700447330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204150Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:50 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "A", "name": "localhost", "content": "127.0.0.1", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204150Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"127.0.0.1\",\n \"created\": \"2018-03-22T20:41:51Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"A\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['266'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:51 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000043541325606366700454010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204150Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:51 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "CNAME", "name": "docs", "content": "docs.example.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['77'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204150Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"docs.example.com\",\n \"created\": \"2018-03-22T20:41:51Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['272'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:51 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000044041325606366700450620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204150Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:51 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.fqdn", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204150Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"0f250d94-4015-45d5-b670-66ab0389f561\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['284'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:51 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000044041325606366700450740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204151Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:52 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.full", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204151Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['284'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:52 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000044041325606366700452310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204151Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:52 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.test", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204151Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"5d6a8946-304c-4a5c-ab5e-008f1d5bee32\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.test\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['284'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:52 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000067101325606366700462660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204152Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:53 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.createrecordset", "content": "challengetoken1", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204152Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['296'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:53 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{"type": "TXT", "name": "_acme-challenge.createrecordset", "content": "challengetoken2", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204152Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['296'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:53 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000210521325606366700457210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204152Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:53 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.noop", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204152Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['284'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:53 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{"type": "TXT", "name": "_acme-challenge.noop", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204153Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"error\": \"RecordExistsError\",\n \"errormsg\": \"Record\ \ _acme-challenge.noop.example.nl already exists in zone example.nl\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['125'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:54 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 409, message: CONFLICT} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204153Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3692'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:54 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000341071325606366700443700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204153Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:54 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testfilt", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204153Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:54Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"0481db36-16ce-4e6c-8171-fc52ef8fde78\"\ ,\n \"modified\": \"2018-03-22T20:41:54Z\",\n \"name\": \"delete.testfilt\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['279'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:54 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204153Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:54Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0481db36-16ce-4e6c-8171-fc52ef8fde78\",\n \"modified\": \"2018-03-22T20:41:54Z\"\ ,\n \"name\": \"delete.testfilt\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3996'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:54 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204154Z] method: DELETE uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/0481db36-16ce-4e6c-8171-fc52ef8fde78 response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:55 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204154Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3692'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:55 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000341071325606366700474330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204155Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:55 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testfqdn", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204155Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:56Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"a6ca19b1-4e05-4a4e-af04-0d9a753f18fb\"\ ,\n \"modified\": \"2018-03-22T20:41:56Z\",\n \"name\": \"delete.testfqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['279'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:56 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204155Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:56Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ a6ca19b1-4e05-4a4e-af04-0d9a753f18fb\",\n \"modified\": \"2018-03-22T20:41:56Z\"\ ,\n \"name\": \"delete.testfqdn\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3996'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:56 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204155Z] method: DELETE uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/a6ca19b1-4e05-4a4e-af04-0d9a753f18fb response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:56 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204155Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3692'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:56 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000341071325606366700474450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204156Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:57 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testfull", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204156Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:57Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"5aa4c62f-6cfe-4d3b-9710-99c2ef0fd396\"\ ,\n \"modified\": \"2018-03-22T20:41:57Z\",\n \"name\": \"delete.testfull\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['279'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:57 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204156Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:57Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5aa4c62f-6cfe-4d3b-9710-99c2ef0fd396\",\n \"modified\": \"2018-03-22T20:41:57Z\"\ ,\n \"name\": \"delete.testfull\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3996'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:57 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204157Z] method: DELETE uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/5aa4c62f-6cfe-4d3b-9710-99c2ef0fd396 response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:58 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204157Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3692'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:58 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000341011325606366700452170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204157Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:58 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testid", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204158Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:59Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"fae175b0-731c-455d-b46b-da975211338b\"\ ,\n \"modified\": \"2018-03-22T20:41:59Z\",\n \"name\": \"delete.testid\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['277'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:59 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204158Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:59Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ fae175b0-731c-455d-b46b-da975211338b\",\n \"modified\": \"2018-03-22T20:41:59Z\"\ ,\n \"name\": \"delete.testid\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3994'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:59 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204158Z] method: DELETE uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/fae175b0-731c-455d-b46b-da975211338b response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:59 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204158Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['3692'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:59 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 64112b7cba3b885af4a6fa39cffd7d9f5133aa77.paxheader00006660000000000000000000000257132560636670020761xustar00rootroot00000000000000175 path=lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 64112b7cba3b885af4a6fa39cffd7d9f5133aa77.data000066400000000000000000000401521325606366700176150ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204158Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:41:59 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.deleterecordinset", "content": "challengetoken1", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204159Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"a71160fe-d107-47d1-b7f4-5d75f8168e3f\"\ ,\n \"modified\": \"2018-03-22T20:42:00Z\",\n \"name\": \"_acme-challenge.deleterecordinset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['298'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:00 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{"type": "TXT", "name": "_acme-challenge.deleterecordinset", "content": "challengetoken2", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204159Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"818387bc-def0-484b-9689-e8b64d36516b\"\ ,\n \"modified\": \"2018-03-22T20:42:00Z\",\n \"name\": \"_acme-challenge.deleterecordinset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['298'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:00 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204159Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ a71160fe-d107-47d1-b7f4-5d75f8168e3f\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"818387bc-def0-484b-9689-e8b64d36516b\"\ ,\n \"modified\": \"2018-03-22T20:42:00Z\",\n \"name\": \"_acme-challenge.deleterecordinset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['4338'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:00 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204159Z] method: DELETE uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/a71160fe-d107-47d1-b7f4-5d75f8168e3f response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:00 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204159Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['4015'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:00 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000423641325606366700445150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204200Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:01 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.deleterecordset", "content": "challengetoken1", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204200Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:01Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"ff11a468-938e-40a3-906e-dd4efbe6cab3\"\ ,\n \"modified\": \"2018-03-22T20:42:01Z\",\n \"name\": \"_acme-challenge.deleterecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['296'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:01 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{"type": "TXT", "name": "_acme-challenge.deleterecordset", "content": "challengetoken2", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204200Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:01Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"d9e51494-01de-4bd6-a161-fd2dd11d67b5\"\ ,\n \"modified\": \"2018-03-22T20:42:01Z\",\n \"name\": \"_acme-challenge.deleterecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['296'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:01 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204200Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken1\",\n \"created\": \"2018-03-22T20:42:01Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"ff11a468-938e-40a3-906e-dd4efbe6cab3\"\ ,\n \"modified\": \"2018-03-22T20:42:01Z\",\n \"name\": \"_acme-challenge.deleterecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:01Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ d9e51494-01de-4bd6-a161-fd2dd11d67b5\",\n \"modified\": \"2018-03-22T20:42:01Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['4657'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:01 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204200Z] method: DELETE uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/ff11a468-938e-40a3-906e-dd4efbe6cab3 response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:01 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204201Z] method: DELETE uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/d9e51494-01de-4bd6-a161-fd2dd11d67b5 response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:02 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204201Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['4015'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:02 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000205651325606366700415400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204201Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:02 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "ttl.fqdn", "content": "ttlshouldbe3600", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['78'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204202Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['273'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:03 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204202Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['4313'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:03 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000245671325606366700432320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204202Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:03 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.listrecordset", "content": "challengetoken1", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204202Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"b8a57575-fcc9-4344-b4c1-ab9959dd6916\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['294'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:03 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{"type": "TXT", "name": "_acme-challenge.listrecordset", "content": "challengetoken2", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204202Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['294'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:03 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204203Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['4951'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:04 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000231031325606366700466510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204203Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:04 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "random.fqdntest", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204203Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"random.fqdntest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['279'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:04 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204204Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['5255'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:04 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000237111325606366700466700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204204Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:05 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "random.fulltest", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204204Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:05Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['279'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:05 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204204Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['5559'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:05 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000215011325606366700463310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204204Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:05 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204205Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['5559'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:05 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000245151325606366700456510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204205Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:06 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "random.test", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204205Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:06Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"ee6b75f3-63ae-4718-bed9-60d9a77f99e8\"\ ,\n \"modified\": \"2018-03-22T20:42:06Z\",\n \"name\": \"random.test\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['275'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:06 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204205Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:06Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ ee6b75f3-63ae-4718-bed9-60d9a77f99e8\",\n \"modified\": \"2018-03-22T20:42:06Z\"\ ,\n \"name\": \"random.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['5859'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:06 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000223151325606366700450070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204205Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:06 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204206Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:06Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ ee6b75f3-63ae-4718-bed9-60d9a77f99e8\",\n \"modified\": \"2018-03-22T20:42:06Z\"\ ,\n \"name\": \"random.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['5859'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:06 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000270201325606366700423370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204206Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:07 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.test", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['78'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204206Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:07Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"f2f06b1b-cf44-4a89-a4b8-7762ecf18652\"\ ,\n \"modified\": \"2018-03-22T20:42:07Z\",\n \"name\": \"orig.test\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['273'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:07 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204206Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:06Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ ee6b75f3-63ae-4718-bed9-60d9a77f99e8\",\n \"modified\": \"2018-03-22T20:42:06Z\"\ ,\n \"name\": \"random.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:07Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"f2f06b1b-cf44-4a89-a4b8-7762ecf18652\"\ ,\n \"modified\": \"2018-03-22T20:42:07Z\",\n \"name\": \"orig.test\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['6157'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:07 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "updated.test", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['81'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204206Z] method: PUT uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/f2f06b1b-cf44-4a89-a4b8-7762ecf18652 response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:07 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000276661325606366700453720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204207Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:08 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.nameonly.test", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204207Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:08Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"3571b95c-424a-4d84-b50e-320cd39fca57\"\ ,\n \"modified\": \"2018-03-22T20:42:08Z\",\n \"name\": \"orig.nameonly.test\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['282'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:08 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204207Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:06Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ ee6b75f3-63ae-4718-bed9-60d9a77f99e8\",\n \"modified\": \"2018-03-22T20:42:06Z\"\ ,\n \"name\": \"random.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:07Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"f2f06b1b-cf44-4a89-a4b8-7762ecf18652\"\ ,\n \"modified\": \"2018-03-22T20:42:07Z\",\n \"name\": \"updated.test\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:08Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3571b95c-424a-4d84-b50e-320cd39fca57\",\n \"modified\": \"2018-03-22T20:42:08Z\"\ ,\n \"name\": \"orig.nameonly.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['6467'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:08 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.nameonly.test", "content": "updated", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204208Z] method: PUT uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/3571b95c-424a-4d84-b50e-320cd39fca57 response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:09 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000304561325606366700454110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204208Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:09 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.testfqdn", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204208Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:09Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"90b8df1a-ee78-475a-9f12-5153feefe8ad\"\ ,\n \"modified\": \"2018-03-22T20:42:09Z\",\n \"name\": \"orig.testfqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['277'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:09 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204208Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:06Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ ee6b75f3-63ae-4718-bed9-60d9a77f99e8\",\n \"modified\": \"2018-03-22T20:42:06Z\"\ ,\n \"name\": \"random.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:07Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"f2f06b1b-cf44-4a89-a4b8-7762ecf18652\"\ ,\n \"modified\": \"2018-03-22T20:42:07Z\",\n \"name\": \"updated.test\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"updated\",\n \"created\": \"2018-03-22T20:42:08Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3571b95c-424a-4d84-b50e-320cd39fca57\",\n \"modified\": \"2018-03-22T20:42:09Z\"\ ,\n \"name\": \"orig.nameonly.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:09Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"90b8df1a-ee78-475a-9f12-5153feefe8ad\"\ ,\n \"modified\": \"2018-03-22T20:42:09Z\",\n \"name\": \"orig.testfqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['6762'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:09 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "updated.testfqdn", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204208Z] method: PUT uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/90b8df1a-ee78-475a-9f12-5153feefe8ad response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:09 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000312771325606366700454250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/aurora/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204209Z] method: GET uri: https://api.auroradns.eu/zones response: body: {string: "[\n {\n \"account_id\": \"e8cb5994-0158-5f45-82b2-879810619c84\",\n\ \ \"cluster_id\": \"511d5146-ca0f-4cb0-b005-f546afaa1006\",\n \"created\"\ : \"2018-03-22T19:54:33Z\",\n \"id\": \"2128b47e-556d-40c6-be5f-e595015921eb\"\ ,\n \"name\": \"example.nl\",\n \"servers\": [\n \"ns001.auroradns.eu\"\ ,\n \"ns002.auroradns.nl\",\n \"ns003.auroradns.info\"\n ]\n\ \ }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['1752'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:10 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.testfull", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204209Z] method: POST uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "{\n \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:10Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"decfb372-b66f-4b05-8c41-e5c995396a84\"\ ,\n \"modified\": \"2018-03-22T20:42:10Z\",\n \"name\": \"orig.testfull\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n}\n"} headers: Connection: [Keep-Alive] Content-Length: ['277'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:10 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 201, message: CREATED} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204209Z] method: GET uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records response: body: {string: "[\n {\n \"content\": \"ns001.auroradns.eu admin.auroradns.eu\ \ 2018032201 86400 7200 604800 300\",\n \"created\": \"2018-03-22T19:54:33Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3276c8d3-cefe-46eb-ac37-d7a53bf30605\",\n \"modified\": \"2018-03-22T19:54:33Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 4800,\n \"type\"\ : \"SOA\"\n },\n {\n \"content\": \"ns001.auroradns.eu\",\n \"created\"\ : \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c0d3d21e-9618-4d78-a204-5a9c8b219a99\",\n \"modified\"\ : \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"prio\": 0,\n \"\ ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\": \"ns002.auroradns.nl\"\ ,\n \"created\": \"2018-03-22T19:54:34Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"d910ebb1-7471-43cb-9e7d-98bef5b95bfd\"\ ,\n \"modified\": \"2018-03-22T19:54:34Z\",\n \"name\": \"\",\n \"\ prio\": 0,\n \"ttl\": 3600,\n \"type\": \"NS\"\n },\n {\n \"content\"\ : \"ns003.auroradns.info\",\n \"created\": \"2018-03-22T19:54:34Z\",\n\ \ \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ dc1db0ee-6a6f-4c7e-bea9-015429dca187\",\n \"modified\": \"2018-03-22T19:54:34Z\"\ ,\n \"name\": \"\",\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\"\ : \"NS\"\n },\n {\n \"content\": \"127.0.0.1\",\n \"created\": \"\ 2018-03-22T20:41:51Z\",\n \"disabled\": false,\n \"health_check_id\"\ : null,\n \"id\": \"c27331ba-1e5a-4b1b-aabd-7faabde47b1e\",\n \"modified\"\ : \"2018-03-22T20:41:51Z\",\n \"name\": \"localhost\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"A\"\n },\n {\n \"content\": \"docs.example.com\"\ ,\n \"created\": \"2018-03-22T20:41:51Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"f5ba986c-cf1a-46ea-b7ba-38173d7150ee\"\ ,\n \"modified\": \"2018-03-22T20:41:51Z\",\n \"name\": \"docs\",\n\ \ \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"CNAME\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 0f250d94-4015-45d5-b670-66ab0389f561\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.fqdn\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\"\ ,\n \"created\": \"2018-03-22T20:41:52Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c86e9f2c-6aae-4706-b437-e982fac56842\"\ ,\n \"modified\": \"2018-03-22T20:41:52Z\",\n \"name\": \"_acme-challenge.full\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:41:52Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 5d6a8946-304c-4a5c-ab5e-008f1d5bee32\",\n \"modified\": \"2018-03-22T20:41:52Z\"\ ,\n \"name\": \"_acme-challenge.test\",\n \"prio\": 0,\n \"ttl\"\ : 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken1\"\ ,\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"ac2adeba-deb8-4d34-a6e5-6ff195b19f51\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.createrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:41:53Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 047c7b9d-5b02-4b38-8ac0-923fccc7b7f0\",\n \"modified\": \"2018-03-22T20:41:53Z\"\ ,\n \"name\": \"_acme-challenge.createrecordset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ challengetoken\",\n \"created\": \"2018-03-22T20:41:53Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"b83a4d56-653a-48da-aeea-6d0f97434c64\"\ ,\n \"modified\": \"2018-03-22T20:41:53Z\",\n \"name\": \"_acme-challenge.noop\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken2\",\n \"created\": \"2018-03-22T20:42:00Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 818387bc-def0-484b-9689-e8b64d36516b\",\n \"modified\": \"2018-03-22T20:42:00Z\"\ ,\n \"name\": \"_acme-challenge.deleterecordinset\",\n \"prio\": 0,\n\ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"\ ttlshouldbe3600\",\n \"created\": \"2018-03-22T20:42:03Z\",\n \"disabled\"\ : false,\n \"health_check_id\": null,\n \"id\": \"fdbc01ab-83e5-465e-a0f5-698089620127\"\ ,\n \"modified\": \"2018-03-22T20:42:03Z\",\n \"name\": \"ttl.fqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken1\",\n \"created\": \"2018-03-22T20:42:03Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ b8a57575-fcc9-4344-b4c1-ab9959dd6916\",\n \"modified\": \"2018-03-22T20:42:03Z\"\ ,\n \"name\": \"_acme-challenge.listrecordset\",\n \"prio\": 0,\n \ \ \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken2\"\ ,\n \"created\": \"2018-03-22T20:42:04Z\",\n \"disabled\": false,\n\ \ \"health_check_id\": null,\n \"id\": \"c77b2f6b-ef05-4988-b3f9-5d49091c8326\"\ ,\n \"modified\": \"2018-03-22T20:42:04Z\",\n \"name\": \"_acme-challenge.listrecordset\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:04Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ afa3ca70-0f6e-42c2-8923-c4f3629f4cdf\",\n \"modified\": \"2018-03-22T20:42:04Z\"\ ,\n \"name\": \"random.fqdntest\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:05Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"6b8cc470-6578-43c3-99c7-a3e1b90f7fe0\"\ ,\n \"modified\": \"2018-03-22T20:42:05Z\",\n \"name\": \"random.fulltest\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:06Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ ee6b75f3-63ae-4718-bed9-60d9a77f99e8\",\n \"modified\": \"2018-03-22T20:42:06Z\"\ ,\n \"name\": \"random.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:07Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"f2f06b1b-cf44-4a89-a4b8-7762ecf18652\"\ ,\n \"modified\": \"2018-03-22T20:42:07Z\",\n \"name\": \"updated.test\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"updated\",\n \"created\": \"2018-03-22T20:42:08Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ 3571b95c-424a-4d84-b50e-320cd39fca57\",\n \"modified\": \"2018-03-22T20:42:09Z\"\ ,\n \"name\": \"orig.nameonly.test\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n },\n {\n \"content\": \"challengetoken\",\n\ \ \"created\": \"2018-03-22T20:42:09Z\",\n \"disabled\": false,\n \ \ \"health_check_id\": null,\n \"id\": \"90b8df1a-ee78-475a-9f12-5153feefe8ad\"\ ,\n \"modified\": \"2018-03-22T20:42:09Z\",\n \"name\": \"updated.testfqdn\"\ ,\n \"prio\": 0,\n \"ttl\": 3600,\n \"type\": \"TXT\"\n },\n {\n\ \ \"content\": \"challengetoken\",\n \"created\": \"2018-03-22T20:42:10Z\"\ ,\n \"disabled\": false,\n \"health_check_id\": null,\n \"id\": \"\ decfb372-b66f-4b05-8c41-e5c995396a84\",\n \"modified\": \"2018-03-22T20:42:10Z\"\ ,\n \"name\": \"orig.testfull\",\n \"prio\": 0,\n \"ttl\": 3600,\n\ \ \"type\": \"TXT\"\n }\n]\n"} headers: Connection: [Keep-Alive] Content-Length: ['7067'] Content-Type: [application/json; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:10 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "updated.testfull", "content": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-AuroraDNS-Date: [20180322T204209Z] method: PUT uri: https://api.auroradns.eu/zones/2128b47e-556d-40c6-be5f-e595015921eb/records/decfb372-b66f-4b05-8c41-e5c995396a84 response: body: {string: ' '} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [text/plain; charset=utf-8] Date: ['Thu, 22 Mar 2018 20:42:10 GMT'] Keep-Alive: ['timeout=5, max=100'] Server: [Apache/2.4.7 (Ubuntu)] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/000077500000000000000000000000001325606366700223245ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTests/000077500000000000000000000000001325606366700256325ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000047371325606366700341200ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f53ec75927fe-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:41 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d03c0a68dbaa1d29ad8b330d8151dd55a1459303121; expires=Thu, 30-Mar-17 01:58:41 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000024531325606366700430040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=thisisadomainidonotown.com response: body: {string: !!python/unicode '{"result":[],"result_info":{"page":1,"per_page":20,"total_pages":0,"count":0,"total_count":0},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f5403aad120d-SJC] connection: [keep-alive] content-length: ['135'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:41 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d769cb15312a13abdcd1dfe57f873eac71459303121; expires=Thu, 30-Mar-17 01:58:41 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000101651325606366700455620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f540d8dd1e71-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:42 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d8e8ba1a928aefe6c587114349692e1681459303122; expires=Thu, 30-Mar-17 01:58:42 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "127.0.0.1", "type": "A", "name": "localhost"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['58'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"c6ce17a0dd99a84df92c5cfd17fd67ed","type":"A","name":"localhost.capsulecd.com","content":"127.0.0.1","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.153786Z","created_on":"2016-03-30T01:59:37.153786Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f698f4a61ecb-SJC] connection: [keep-alive] content-length: ['404'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:37 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d4cb3f51f85942b872f008796226766021459303177; expires=Thu, 30-Mar-17 01:59:37 GMT; path=/; domain=.cloudflare.com; HttpOnly', vses2=3vchl2sugtaqg06bbpmam1ar47; path=/; domain=www.cloudflare.com; secure; HttpOnly] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000100371325606366700462230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f5420197070d-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:42 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d781a4e1235d6fd32ad8148e72e5e5e9d1459303122; expires=Thu, 30-Mar-17 01:58:42 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "docs.example.com", "type": "CNAME", "name": "docs"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['64'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"7cf4de6393936fcc56a93a2b78245fb2","type":"CNAME","name":"docs.capsulecd.com","content":"docs.example.com","proxiable":true,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.365516Z","created_on":"2016-03-30T01:59:37.365516Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f69a403011dd-SJC] connection: [keep-alive] content-length: ['409'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:37 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d8b472a2d10de14604328eb705fb1aedd1459303177; expires=Thu, 30-Mar-17 01:59:37 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000101071325606366700457060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f5434626070d-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:42 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d781a4e1235d6fd32ad8148e72e5e5e9d1459303122; expires=Thu, 30-Mar-17 01:58:42 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.fqdn.capsulecd.com."}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['91'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"8bf37a12cbeb4c2968e1f6fff2057aef","type":"TXT","name":"_acme-challenge.fqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.566754Z","created_on":"2016-03-30T01:59:37.566754Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f69b81e80657-SJC] connection: [keep-alive] content-length: ['422'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:37 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d28385c8c7e4f516affd6d237475bd1231459303177; expires=Thu, 30-Mar-17 01:59:37 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000101061325606366700457170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f5446e720657-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:42 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d0c7001f17db84ee1fdfc4154f73b840d1459303122; expires=Thu, 30-Mar-17 01:58:42 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.full.capsulecd.com"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"ef6f6f0e70b6242a65d9c58cb96b979a","type":"TXT","name":"_acme-challenge.full.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.817718Z","created_on":"2016-03-30T01:59:37.817718Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f69d11e10296-SJC] connection: [keep-alive] content-length: ['422'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:37 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=db112b990e6dc477ab57213342f4d9dc11459303177; expires=Thu, 30-Mar-17 01:59:37 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000100701325606366700460540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f5458e981e95-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:42 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d46b132a8894c4b628413e00b42afbbde1459303122; expires=Thu, 30-Mar-17 01:58:42 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.test"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['76'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"431d9eb36efce35037dff4170a9c84b9","type":"TXT","name":"_acme-challenge.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.008244Z","created_on":"2016-03-30T01:59:38.008244Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f69e548d2864-SJC] connection: [keep-alive] content-length: ['422'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:38 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=da8e96734e5a8b56064c3dfb281bc1ca31459303177; expires=Thu, 30-Mar-17 01:59:37 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000152101325606366700471100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2018-03-19T18:16:06.363776Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"id":"521a961001d9333c8191f53a9f70eb31","type":"user","email":"darkmethodz@gmail.com"},"account":{"id":"b8a8f2a19ca47cd6e934b5d3f3d4c7a5","name":"darkmethodz@gmail.com"},"permissions":["#access:edit","#access:read","#analytics:read","#app:edit","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#member:edit","#member:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#subscription:edit","#subscription:read","#waf:edit","#waf:read","#worker:edit","#worker:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","is_subscribed":true,"can_subscribe":false,"legacy_id":"free","legacy_discount":false,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222985b746cfa-SJC] connection: [keep-alive] content-length: ['1593'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.045'] server: [cloudflare] set-cookie: ['__cfduid=d9fa4f59b64065f57832834989139795f1521485536; expires=Tue, 19-Mar-19 18:52:16 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.createrecordset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"190d2aeaef052a69bec40e6cd7b4472a","type":"TXT","name":"_acme-challenge.createrecordset.capsulecd.com","content":"challengetoken1","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:16.340372Z","created_on":"2018-03-19T18:52:16.340372Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229968416e4a-SJC] connection: [keep-alive] content-length: ['461'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.064'] server: [cloudflare] set-cookie: ['__cfduid=d0e2eb055817662fe1f3f644b061557481521485536; expires=Tue, 19-Mar-19 18:52:16 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.createrecordset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"4bd9fba03fc24c6fdb73a489db87bac8","type":"TXT","name":"_acme-challenge.createrecordset.capsulecd.com","content":"challengetoken2","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:16.496841Z","created_on":"2018-03-19T18:52:16.496841Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229a9d976ce2-SJC] connection: [keep-alive] content-length: ['461'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.057'] server: [cloudflare] set-cookie: ['__cfduid=d6cc729d91b67d12733c4554a4d5de0791521485536; expires=Tue, 19-Mar-19 18:52:16 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000202041325606366700465460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2018-03-19T18:52:18.517052Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"id":"521a961001d9333c8191f53a9f70eb31","type":"user","email":"darkmethodz@gmail.com"},"account":{"id":"b8a8f2a19ca47cd6e934b5d3f3d4c7a5","name":"darkmethodz@gmail.com"},"permissions":["#access:edit","#access:read","#analytics:read","#app:edit","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#member:edit","#member:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#subscription:edit","#subscription:read","#waf:edit","#waf:read","#worker:edit","#worker:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","is_subscribed":true,"can_subscribe":false,"legacy_id":"free","legacy_discount":false,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe22b043c8c6bfe-SJC] connection: [keep-alive] content-length: ['1593'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:58:01 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.046'] server: [cloudflare] set-cookie: ['__cfduid=d133cbbaa85cc95fc2228693af15aae3a1521485880; expires=Tue, 19-Mar-19 18:58:00 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.noop.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"b0ce2daaed6d0939bfd9bb6d295dfb39","type":"TXT","name":"_acme-challenge.noop.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:58:01.287352Z","created_on":"2018-03-19T18:58:01.287352Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe22b055d0e6dc6-SJC] connection: [keep-alive] content-length: ['449'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:58:01 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.062'] server: [cloudflare] set-cookie: ['__cfduid=d6c3d56cd4de03a2dc4ddcf424921ed621521485881; expires=Tue, 19-Mar-19 18:58:01 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.noop.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"success":false,"errors":[{"code":81057,"message":"The record already exists."}],"messages":[],"result":null}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe22b067e6d6dc0-SJC] connection: [keep-alive] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:58:01 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.109'] server: [cloudflare] set-cookie: ['__cfduid=d60e7d29d2a61b088247af512994a2f5a1521485881; expires=Tue, 19-Mar-19 18:58:01 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 400, message: Bad Request} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=_acme-challenge.noop.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"b0ce2daaed6d0939bfd9bb6d295dfb39","type":"TXT","name":"_acme-challenge.noop.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:58:01.287352Z","created_on":"2018-03-19T18:58:01.287352Z","meta":{"auto_added":false,"managed_by_apps":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe22b0799396e02-SJC] connection: [keep-alive] content-length: ['533'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:58:01 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.096'] server: [cloudflare] set-cookie: ['__cfduid=d90e1aa7ee1253767ef36bde12b7cb56a1521485881; expires=Tue, 19-Mar-19 18:58:01 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000203511325606366700452130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f54695c71ec5-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:43 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d404dbcee5760f63d05e9d4c570a0d3701459303122; expires=Thu, 30-Mar-17 01:58:42 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "delete.testfilt"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"0db8871aa2273f87692feef922b7edfb","type":"TXT","name":"delete.testfilt.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.184739Z","created_on":"2016-03-30T01:59:38.184739Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f69f6c971e71-SJC] connection: [keep-alive] content-length: ['417'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:38 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=de335139051cfed922057ac75c67358e11459303178; expires=Thu, 30-Mar-17 01:59:38 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?content=challengetoken&per_page=100&type=TXT&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"0db8871aa2273f87692feef922b7edfb","type":"TXT","name":"delete.testfilt.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.184739Z","created_on":"2016-03-30T01:59:38.184739Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f75c61da11dd-SJC] connection: [keep-alive] content-length: ['501'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:08 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d207bb2f48a01488ef9043e442c00561c1459303208; expires=Thu, 30-Mar-17 02:00:08 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/0db8871aa2273f87692feef922b7edfb response: body: {string: !!python/unicode '{"result":{"id":"0db8871aa2273f87692feef922b7edfb"},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7bc9069012c-SJC] connection: [keep-alive] content-length: ['93'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:23 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d3db64c25c4aee4ab86f27bd158317fb81459303223; expires=Thu, 30-Mar-17 02:00:23 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '{"result":[],"result_info":{"page":1,"per_page":100,"total_pages":0,"count":0,"total_count":0},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f840248b012c-SJC] connection: [keep-alive] content-length: ['136'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:44 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d02241e80b582d02690f95c74a5ed33441459303244; expires=Thu, 30-Mar-17 02:00:44 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000203701325606366700502570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f5479a5e285e-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:43 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=db7e7b8401f426bea8e926fa5da7bfea61459303123; expires=Thu, 30-Mar-17 01:58:43 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "delete.testfqdn.capsulecd.com."}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"a3e2fe6e0aa51fb870cba393a1647bd2","type":"TXT","name":"delete.testfqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.365776Z","created_on":"2016-03-30T01:59:38.365776Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6a098d82894-SJC] connection: [keep-alive] content-length: ['417'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:38 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d98a06bbc4d0e0f597a46da4d12a7b75a1459303178; expires=Thu, 30-Mar-17 01:59:38 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?content=challengetoken&per_page=100&type=TXT&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"a3e2fe6e0aa51fb870cba393a1647bd2","type":"TXT","name":"delete.testfqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.365776Z","created_on":"2016-03-30T01:59:38.365776Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f75dbccb0657-SJC] connection: [keep-alive] content-length: ['501'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:08 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d53f4374d0e6813fd02a7284119a668ad1459303208; expires=Thu, 30-Mar-17 02:00:08 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/a3e2fe6e0aa51fb870cba393a1647bd2 response: body: {string: !!python/unicode '{"result":{"id":"a3e2fe6e0aa51fb870cba393a1647bd2"},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7be16d82894-SJC] connection: [keep-alive] content-length: ['93'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:24 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d49cf0afc376edb5def4997ff6a4d734c1459303224; expires=Thu, 30-Mar-17 02:00:24 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"result":[],"result_info":{"page":1,"per_page":100,"total_pages":0,"count":0,"total_count":0},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f841c0ee1ecb-SJC] connection: [keep-alive] content-length: ['136'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:45 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=da98a4626d8dbd5a746cae1343dffbd281459303245; expires=Thu, 30-Mar-17 02:00:45 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000203671325606366700502770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f5489a580d7f-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:43 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d4bd453e23ef6f04e67117968ad3c6c311459303123; expires=Thu, 30-Mar-17 01:58:43 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "delete.testfull.capsulecd.com"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"7a313ad309edcdbdff7f3faf6b12afb3","type":"TXT","name":"delete.testfull.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:39.536809Z","created_on":"2016-03-30T01:59:39.536809Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6a1a022283a-SJC] connection: [keep-alive] content-length: ['417'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:39 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d27041f1fa732efa7fccd34ad30c856b41459303178; expires=Thu, 30-Mar-17 01:59:38 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?content=challengetoken&per_page=100&type=TXT&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"7a313ad309edcdbdff7f3faf6b12afb3","type":"TXT","name":"delete.testfull.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:39.536809Z","created_on":"2016-03-30T01:59:39.536809Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f75f2c900296-SJC] connection: [keep-alive] content-length: ['501'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:08 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d1f59b36705d856df6ec05b50ceb7bb061459303208; expires=Thu, 30-Mar-17 02:00:08 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/7a313ad309edcdbdff7f3faf6b12afb3 response: body: {string: !!python/unicode '{"result":{"id":"7a313ad309edcdbdff7f3faf6b12afb3"},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7bfa5a8120d-SJC] connection: [keep-alive] content-length: ['93'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:24 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d5ffcde5fa73a0c77d84c1a85eb44cf5d1459303224; expires=Thu, 30-Mar-17 02:00:24 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '{"result":[],"result_info":{"page":1,"per_page":100,"total_pages":0,"count":0,"total_count":0},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f8434381283a-SJC] connection: [keep-alive] content-length: ['136'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:45 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dc1f40ebb338059fa2a27b2f3b9eb61111459303245; expires=Thu, 30-Mar-17 02:00:45 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000203101325606366700460430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f549d54011b3-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:43 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=da8c61d08f308f9e0141e2eb84cfce4ad1459303123; expires=Thu, 30-Mar-17 01:58:43 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "delete.testid"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['69'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"1f4c56b0c0d1cf12687812672badea9a","type":"TXT","name":"delete.testid.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:39.806263Z","created_on":"2016-03-30T01:59:39.806263Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6a982910657-SJC] connection: [keep-alive] content-length: ['415'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:39 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dff9159c044b478db0feb1db2d229da861459303179; expires=Thu, 30-Mar-17 01:59:39 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"1f4c56b0c0d1cf12687812672badea9a","type":"TXT","name":"delete.testid.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:39.806263Z","created_on":"2016-03-30T01:59:39.806263Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7605ce9120d-SJC] connection: [keep-alive] content-length: ['499'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:09 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d1988cfe598500a8668caaabf6ae341ae1459303209; expires=Thu, 30-Mar-17 02:00:09 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/1f4c56b0c0d1cf12687812672badea9a response: body: {string: !!python/unicode '{"result":{"id":"1f4c56b0c0d1cf12687812672badea9a"},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7c0f352283a-SJC] connection: [keep-alive] content-length: ['93'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:24 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dac637b8992c36f906b7514612ca1ecca1459303224; expires=Thu, 30-Mar-17 02:00:24 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '{"result":[],"result_info":{"page":1,"per_page":100,"total_pages":0,"count":0,"total_count":0},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f844979a2864-SJC] connection: [keep-alive] content-length: ['136'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:45 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d7b0dacab6722f5bf92e60ec10472a3001459303245; expires=Thu, 30-Mar-17 02:00:45 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 728bdf479db5233463877171b6d681ef47910c74.paxheader00006660000000000000000000000263132560636670020202xustar00rootroot00000000000000179 path=lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 728bdf479db5233463877171b6d681ef47910c74.data000066400000000000000000000276571325606366700170600ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2018-03-19T18:52:16.496841Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"id":"521a961001d9333c8191f53a9f70eb31","type":"user","email":"darkmethodz@gmail.com"},"account":{"id":"b8a8f2a19ca47cd6e934b5d3f3d4c7a5","name":"darkmethodz@gmail.com"},"permissions":["#access:edit","#access:read","#analytics:read","#app:edit","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#member:edit","#member:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#subscription:edit","#subscription:read","#waf:edit","#waf:read","#worker:edit","#worker:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","is_subscribed":true,"can_subscribe":false,"legacy_id":"free","legacy_discount":false,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229bdc4e6cfa-SJC] connection: [keep-alive] content-length: ['1593'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.041'] server: [cloudflare] set-cookie: ['__cfduid=d9fa4f59b64065f57832834989139795f1521485536; expires=Tue, 19-Mar-19 18:52:16 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.deleterecordinset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['117'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"42a00534944f5e9abed3feb99f86e095","type":"TXT","name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken1","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:16.775262Z","created_on":"2018-03-19T18:52:16.775262Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229c8e246ce2-SJC] connection: [keep-alive] content-length: ['463'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.051'] server: [cloudflare] set-cookie: ['__cfduid=d6cc729d91b67d12733c4554a4d5de0791521485536; expires=Tue, 19-Mar-19 18:52:16 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.deleterecordinset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['117'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"81f8e22e37d45f5dccc622ef62e0d66a","type":"TXT","name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken2","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:16.959862Z","created_on":"2018-03-19T18:52:16.959862Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229d4ea26d00-SJC] connection: [keep-alive] content-length: ['463'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.063'] server: [cloudflare] set-cookie: ['__cfduid=deb59b5843a26979ef5a9a0a748932a411521485536; expires=Tue, 19-Mar-19 18:52:16 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?content=challengetoken1&per_page=100&type=TXT&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"42a00534944f5e9abed3feb99f86e095","type":"TXT","name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken1","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:16.775262Z","created_on":"2018-03-19T18:52:16.775262Z","meta":{"auto_added":false,"managed_by_apps":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229e7f3a6d30-SJC] connection: [keep-alive] content-length: ['547'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:17 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.051'] server: [cloudflare] set-cookie: ['__cfduid=d79f002c7045e726d371fe93150f5c74d1521485537; expires=Tue, 19-Mar-19 18:52:17 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/42a00534944f5e9abed3feb99f86e095 response: body: {string: !!python/unicode '{"result":{"id":"42a00534944f5e9abed3feb99f86e095"},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229f3b726cee-SJC] connection: [keep-alive] content-length: ['93'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:17 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.050'] server: [cloudflare] set-cookie: ['__cfduid=d3a116649d2fdea8336243fda049c70b51521485537; expires=Tue, 19-Mar-19 18:52:17 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"81f8e22e37d45f5dccc622ef62e0d66a","type":"TXT","name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken2","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:16.959862Z","created_on":"2018-03-19T18:52:16.959862Z","meta":{"auto_added":false,"managed_by_apps":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2229ff91f6cca-SJC] connection: [keep-alive] content-length: ['547'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:17 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.042'] server: [cloudflare] set-cookie: ['__cfduid=d4063181680c29e026f59cae0499b489b1521485537; expires=Tue, 19-Mar-19 18:52:17 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000322651325606366700453430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2018-03-19T18:52:17.204631Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"id":"521a961001d9333c8191f53a9f70eb31","type":"user","email":"darkmethodz@gmail.com"},"account":{"id":"b8a8f2a19ca47cd6e934b5d3f3d4c7a5","name":"darkmethodz@gmail.com"},"permissions":["#access:edit","#access:read","#analytics:read","#app:edit","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#member:edit","#member:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#subscription:edit","#subscription:read","#waf:edit","#waf:read","#worker:edit","#worker:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","is_subscribed":true,"can_subscribe":false,"legacy_id":"free","legacy_discount":false,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a10fbc6dde-SJC] connection: [keep-alive] content-length: ['1593'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:17 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.049'] server: [cloudflare] set-cookie: ['__cfduid=dc1e368371922ab34e5fa4978194a25c81521485537; expires=Tue, 19-Mar-19 18:52:17 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.deleterecordset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"2f98e33d5265c03576c8deaed2dac568","type":"TXT","name":"_acme-challenge.deleterecordset.capsulecd.com","content":"challengetoken1","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:17.683569Z","created_on":"2018-03-19T18:52:17.683569Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a1dc636cee-SJC] connection: [keep-alive] content-length: ['461'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:17 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.052'] server: [cloudflare] set-cookie: ['__cfduid=d3a116649d2fdea8336243fda049c70b51521485537; expires=Tue, 19-Mar-19 18:52:17 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.deleterecordset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"60800950141034d5260b798f2c710819","type":"TXT","name":"_acme-challenge.deleterecordset.capsulecd.com","content":"challengetoken2","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:17.889294Z","created_on":"2018-03-19T18:52:17.889294Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a2fcc56cee-SJC] connection: [keep-alive] content-length: ['461'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:17 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.078'] server: [cloudflare] set-cookie: ['__cfduid=d3a116649d2fdea8336243fda049c70b51521485537; expires=Tue, 19-Mar-19 18:52:17 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"2f98e33d5265c03576c8deaed2dac568","type":"TXT","name":"_acme-challenge.deleterecordset.capsulecd.com","content":"challengetoken1","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:17.683569Z","created_on":"2018-03-19T18:52:17.683569Z","meta":{"auto_added":false,"managed_by_apps":false}},{"id":"60800950141034d5260b798f2c710819","type":"TXT","name":"_acme-challenge.deleterecordset.capsulecd.com","content":"challengetoken2","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:17.889294Z","created_on":"2018-03-19T18:52:17.889294Z","meta":{"auto_added":false,"managed_by_apps":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":2,"total_count":2},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a448246d00-SJC] connection: [keep-alive] content-length: ['955'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:18 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.041'] server: [cloudflare] set-cookie: ['__cfduid=d9b4cd4ba5c54dbf68aed54ec7da1513b1521485537; expires=Tue, 19-Mar-19 18:52:17 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/2f98e33d5265c03576c8deaed2dac568 response: body: {string: !!python/unicode '{"result":{"id":"2f98e33d5265c03576c8deaed2dac568"},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe231908efd6cca-SJC] connection: [keep-alive] content-length: ['93'] content-type: [application/json] date: ['Mon, 19 Mar 2018 19:02:29 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.124'] server: [cloudflare] set-cookie: ['__cfduid=d1070f8b76bb44ec357564b7b24bad0a01521486149; expires=Tue, 19-Mar-19 19:02:29 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/60800950141034d5260b798f2c710819 response: body: {string: !!python/unicode '{"result":{"id":"60800950141034d5260b798f2c710819"},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe2319228356cb8-SJC] connection: [keep-alive] content-length: ['93'] content-type: [application/json] date: ['Mon, 19 Mar 2018 19:02:29 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.065'] server: [cloudflare] set-cookie: ['__cfduid=d6939021e8dd10fd4f8668a70c3f22a141521486149; expires=Tue, 19-Mar-19 19:02:29 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '{"result":[],"result_info":{"page":1,"per_page":100,"total_pages":0,"count":0,"total_count":0},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe231930e776d30-SJC] connection: [keep-alive] content-length: ['136'] content-type: [application/json] date: ['Mon, 19 Mar 2018 19:02:29 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.051'] server: [cloudflare] set-cookie: ['__cfduid=d2213bec190c8be0433bce0dbaf87afa21521486149; expires=Tue, 19-Mar-19 19:02:29 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000133471325606366700423670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-07-30T20:59:34.628808Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","legacy_discount":false,"is_subscribed":null,"can_subscribe":null,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [2cabd520f7ad2840-SJC] connection: [keep-alive] content-length: ['1365'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:16:35 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dd9d24e707e22b025cd9a50565acc2e7b1469913395; expires=Sun, 30-Jul-17 21:16:35 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "ttlshouldbe3600", "type": "TXT", "name": "ttl.fqdn.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"d8228669d592e95dae643af3f02b3121","type":"TXT","name":"ttl.fqdn.capsulecd.com","content":"ttlshouldbe3600","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-07-30T21:16:37.708905Z","created_on":"2016-07-30T21:16:37.708905Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [2cabd52f886e2840-SJC] connection: [keep-alive] content-length: ['414'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:16:37 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dc4936330fb57b49d96db3db72b9c73471469913397; expires=Sun, 30-Jul-17 21:16:37 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=ttl.fqdn.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"d8228669d592e95dae643af3f02b3121","type":"TXT","name":"ttl.fqdn.capsulecd.com","content":"ttlshouldbe3600","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-07-30T21:16:37.708905Z","created_on":"2016-07-30T21:16:37.708905Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [2cabd53e19080669-SJC] connection: [keep-alive] content-length: ['498'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:16:40 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dc94c57a150fef3b606be0709cb6fed481469913400; expires=Sun, 30-Jul-17 21:16:40 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000216671325606366700440570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2018-03-19T18:52:17.889294Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"id":"521a961001d9333c8191f53a9f70eb31","type":"user","email":"darkmethodz@gmail.com"},"account":{"id":"b8a8f2a19ca47cd6e934b5d3f3d4c7a5","name":"darkmethodz@gmail.com"},"permissions":["#access:edit","#access:read","#analytics:read","#app:edit","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#member:edit","#member:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#subscription:edit","#subscription:read","#waf:edit","#waf:read","#worker:edit","#worker:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","is_subscribed":true,"can_subscribe":false,"legacy_id":"free","legacy_discount":false,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a5f87b6d00-SJC] connection: [keep-alive] content-length: ['1593'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:18 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.040'] server: [cloudflare] set-cookie: ['__cfduid=d01bc887019d71798081671a95166d36f1521485538; expires=Tue, 19-Mar-19 18:52:18 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.listrecordset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['113'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"953d7daeb30fa9ba4911a7ea2354548d","type":"TXT","name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken1","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:18.396311Z","created_on":"2018-03-19T18:52:18.396311Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a6aff26cfa-SJC] connection: [keep-alive] content-length: ['459'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:18 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.059'] server: [cloudflare] set-cookie: ['__cfduid=d6aece7746a1bef34cf1c9f3d2c98d0971521485538; expires=Tue, 19-Mar-19 18:52:18 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.listrecordset.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['113'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"701b40a8345a1379064ab2c7f49ccdae","type":"TXT","name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken2","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:18.517052Z","created_on":"2018-03-19T18:52:18.517052Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a768d06d00-SJC] connection: [keep-alive] content-length: ['459'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:18 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.074'] server: [cloudflare] set-cookie: ['__cfduid=d01bc887019d71798081671a95166d36f1521485538; expires=Tue, 19-Mar-19 18:52:18 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=_acme-challenge.listrecordset.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"953d7daeb30fa9ba4911a7ea2354548d","type":"TXT","name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken1","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:18.396311Z","created_on":"2018-03-19T18:52:18.396311Z","meta":{"auto_added":false,"managed_by_apps":false}},{"id":"701b40a8345a1379064ab2c7f49ccdae","type":"TXT","name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken2","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:52:18.517052Z","created_on":"2018-03-19T18:52:18.517052Z","meta":{"auto_added":false,"managed_by_apps":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":2,"total_count":2},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe222a8684a6d2a-SJC] connection: [keep-alive] content-length: ['951'] content-type: [application/json] date: ['Mon, 19 Mar 2018 18:52:18 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.054'] server: [cloudflare] set-cookie: ['__cfduid=d1103948fedc1f7f12cd8f25973263e571521485538; expires=Tue, 19-Mar-19 18:52:18 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000133221325606366700475020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f54b3da30294-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:43 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dcfbb3fc88dabdbe9a1bd16f3a286a5e11459303123; expires=Thu, 30-Mar-17 01:58:43 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "random.fqdntest.capsulecd.com."}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"1108230d84d4f9e878c28bac40615ca2","type":"TXT","name":"random.fqdntest.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.189203Z","created_on":"2016-03-30T01:59:40.189203Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6abfab40657-SJC] connection: [keep-alive] content-length: ['417'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:40 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d24f69544a34e774595910b93d656f0f61459303180; expires=Thu, 30-Mar-17 01:59:40 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=random.fqdntest.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"1108230d84d4f9e878c28bac40615ca2","type":"TXT","name":"random.fqdntest.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.189203Z","created_on":"2016-03-30T01:59:40.189203Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f76196670296-SJC] connection: [keep-alive] content-length: ['501'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:09 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=db71c394170e28f10c05fb1bd2ac68d9e1459303209; expires=Thu, 30-Mar-17 02:00:09 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000133211325606366700475130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f54c42220d85-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:43 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=db32a66b149cfa3cbad23319a5ab0c5c71459303123; expires=Thu, 30-Mar-17 01:58:43 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "random.fulltest.capsulecd.com"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"e067fadfc99801df8352f7d33e4068cc","type":"TXT","name":"random.fulltest.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.364776Z","created_on":"2016-03-30T01:59:40.364776Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6ad1e6a120d-SJC] connection: [keep-alive] content-length: ['417'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:40 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=db9d9d62ce940414b1277096693d8fa991459303180; expires=Thu, 30-Mar-17 01:59:40 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=random.fulltest.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"e067fadfc99801df8352f7d33e4068cc","type":"TXT","name":"random.fulltest.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.364776Z","created_on":"2016-03-30T01:59:40.364776Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f762e14027fe-SJC] connection: [keep-alive] content-length: ['501'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:09 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d6d3977886ab6839ee09e39a9e785b6f81459303209; expires=Thu, 30-Mar-17 02:00:09 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000106121325606366700471610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2018-03-19T19:02:29.535783Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"id":"521a961001d9333c8191f53a9f70eb31","type":"user","email":"darkmethodz@gmail.com"},"account":{"id":"b8a8f2a19ca47cd6e934b5d3f3d4c7a5","name":"darkmethodz@gmail.com"},"permissions":["#access:edit","#access:read","#analytics:read","#app:edit","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#member:edit","#member:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#subscription:edit","#subscription:read","#waf:edit","#waf:read","#worker:edit","#worker:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","is_subscribed":true,"can_subscribe":false,"legacy_id":"free","legacy_discount":false,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe5c4e959cd92b8-SJC] connection: [keep-alive] content-length: ['1593'] content-type: [application/json] date: ['Tue, 20 Mar 2018 05:27:21 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.041'] server: [cloudflare] set-cookie: ['__cfduid=d1cabd7bc4ccee67823720d7c74c4974e1521523641; expires=Wed, 20-Mar-19 05:27:21 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=filter.thisdoesnotexist.capsulecd.com response: body: {string: !!python/unicode '{"result":[],"result_info":{"page":1,"per_page":100,"total_pages":0,"count":0,"total_count":0},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [3fe5c4ea7d3e93f6-SJC] connection: [keep-alive] content-length: ['136'] content-type: [application/json] date: ['Tue, 20 Mar 2018 05:27:22 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] served-in-seconds: ['0.042'] server: [cloudflare] set-cookie: ['__cfduid=d1d62649d5b2a394a760753988b1a8caf1521523641; expires=Wed, 20-Mar-19 05:27:21 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=15780000; includeSubDomains] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000132631325606366700464760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f54e92be1e9b-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:44 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d3379e2244d0bf3bc36c20c6188265d241459303124; expires=Thu, 30-Mar-17 01:58:44 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "random.test"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['67'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"8c47b1d412e51bc12eed8ed80790585e","type":"TXT","name":"random.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.567807Z","created_on":"2016-03-30T01:59:40.567807Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6ae4f0711dd-SJC] connection: [keep-alive] content-length: ['413'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:40 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d114b07c686bdb8dee3763df389d720a71459303180; expires=Thu, 30-Mar-17 01:59:40 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=random.test.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"8c47b1d412e51bc12eed8ed80790585e","type":"TXT","name":"random.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.567807Z","created_on":"2016-03-30T01:59:40.567807Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7641788120d-SJC] connection: [keep-alive] content-length: ['497'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:09 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d1988cfe598500a8668caaabf6ae341ae1459303209; expires=Thu, 30-Mar-17 02:00:09 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000220541325606366700456360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f54f9010012c-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:44 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d24e7f143ef6c578b76c5e8fc51193bc21459303124; expires=Thu, 30-Mar-17 01:58:44 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100 response: body: {string: !!python/unicode '{"result":[{"id":"87ecc307fd1f86cf8969e7ac21a8b431","type":"A","name":"*.capsulecd.com","content":"69.64.147.242","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-09T07:40:05.179668Z","created_on":"2016-03-09T07:40:05.179668Z","meta":{"auto_added":true}},{"id":"c6ce17a0dd99a84df92c5cfd17fd67ed","type":"A","name":"localhost.capsulecd.com","content":"127.0.0.1","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.153786Z","created_on":"2016-03-30T01:59:37.153786Z","meta":{"auto_added":false}},{"id":"9bef70f6b39fd78c3efbaabcc8ca3e4f","type":"CNAME","name":"api.capsulecd.com","content":"d1r4kp9curc3yo.cloudfront.net","proxiable":true,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-22T01:17:44.127822Z","created_on":"2016-03-22T01:17:44.127822Z","meta":{"auto_added":false}},{"id":"7cf4de6393936fcc56a93a2b78245fb2","type":"CNAME","name":"docs.capsulecd.com","content":"docs.example.com","proxiable":true,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.365516Z","created_on":"2016-03-30T01:59:37.365516Z","meta":{"auto_added":false}},{"id":"95b6926de91d9f4c108aeb88e97c0e87","type":"CNAME","name":"www.capsulecd.com","content":"analogj.github.io","proxiable":true,"proxied":true,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-16T04:25:32.148724Z","created_on":"2016-03-16T04:25:32.148724Z","meta":{"auto_added":false}},{"id":"8bf37a12cbeb4c2968e1f6fff2057aef","type":"TXT","name":"_acme-challenge.fqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.566754Z","created_on":"2016-03-30T01:59:37.566754Z","meta":{"auto_added":false}},{"id":"ef6f6f0e70b6242a65d9c58cb96b979a","type":"TXT","name":"_acme-challenge.full.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:37.817718Z","created_on":"2016-03-30T01:59:37.817718Z","meta":{"auto_added":false}},{"id":"431d9eb36efce35037dff4170a9c84b9","type":"TXT","name":"_acme-challenge.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.008244Z","created_on":"2016-03-30T01:59:38.008244Z","meta":{"auto_added":false}},{"id":"0db8871aa2273f87692feef922b7edfb","type":"TXT","name":"delete.testfilt.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.184739Z","created_on":"2016-03-30T01:59:38.184739Z","meta":{"auto_added":false}},{"id":"a3e2fe6e0aa51fb870cba393a1647bd2","type":"TXT","name":"delete.testfqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:38.365776Z","created_on":"2016-03-30T01:59:38.365776Z","meta":{"auto_added":false}},{"id":"7a313ad309edcdbdff7f3faf6b12afb3","type":"TXT","name":"delete.testfull.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:39.536809Z","created_on":"2016-03-30T01:59:39.536809Z","meta":{"auto_added":false}},{"id":"1f4c56b0c0d1cf12687812672badea9a","type":"TXT","name":"delete.testid.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:39.806263Z","created_on":"2016-03-30T01:59:39.806263Z","meta":{"auto_added":false}},{"id":"1108230d84d4f9e878c28bac40615ca2","type":"TXT","name":"random.fqdntest.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.189203Z","created_on":"2016-03-30T01:59:40.189203Z","meta":{"auto_added":false}},{"id":"e067fadfc99801df8352f7d33e4068cc","type":"TXT","name":"random.fulltest.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.364776Z","created_on":"2016-03-30T01:59:40.364776Z","meta":{"auto_added":false}},{"id":"8c47b1d412e51bc12eed8ed80790585e","type":"TXT","name":"random.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.567807Z","created_on":"2016-03-30T01:59:40.567807Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":15,"total_count":15},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6af716c283a-SJC] connection: [keep-alive] content-length: ['5592'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:40 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d318f3ba613193454d9266c213b91093b1459303180; expires=Thu, 30-Mar-17 01:59:40 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000164241325606366700431740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f550b07a11dd-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:44 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=ddf016ab8883ab50ae47b91a80b0d41c41459303124; expires=Thu, 30-Mar-17 01:58:44 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "orig.test"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['65'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"93ac70a0c05e57322285f00ff45764c8","type":"TXT","name":"orig.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.963785Z","created_on":"2016-03-30T01:59:40.963785Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6b0c1a3283a-SJC] connection: [keep-alive] content-length: ['411'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:40 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d318f3ba613193454d9266c213b91093b1459303180; expires=Thu, 30-Mar-17 01:59:40 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=orig.test.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"93ac70a0c05e57322285f00ff45764c8","type":"TXT","name":"orig.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:40.963785Z","created_on":"2016-03-30T01:59:40.963785Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f76581080da9-SJC] connection: [keep-alive] content-length: ['495'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:09 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d9f32cf8049f58c74b34cb07a9d82da041459303209; expires=Thu, 30-Mar-17 02:00:09 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "updated.test"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/93ac70a0c05e57322285f00ff45764c8 response: body: {string: !!python/unicode '{"result":{"id":"93ac70a0c05e57322285f00ff45764c8","type":"TXT","name":"updated.test.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T02:00:24.869892Z","created_on":"2016-03-30T02:00:24.869892Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7c33940120d-SJC] connection: [keep-alive] content-length: ['414'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:24 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d5ffcde5fa73a0c77d84c1a85eb44cf5d1459303224; expires=Thu, 30-Mar-17 02:00:24 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000165121325606366700462350ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f551f059012c-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:44 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d24e7f143ef6c578b76c5e8fc51193bc21459303124; expires=Thu, 30-Mar-17 01:58:44 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "orig.testfqdn.capsulecd.com."}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"473fbde34f64d8b0ca4049926d6f3068","type":"TXT","name":"orig.testfqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:41.141523Z","created_on":"2016-03-30T01:59:41.141523Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6b1e8091e9b-SJC] connection: [keep-alive] content-length: ['415'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:41 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d343be9655b4bbdc19126892111e56ac11459303181; expires=Thu, 30-Mar-17 01:59:41 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=orig.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"473fbde34f64d8b0ca4049926d6f3068","type":"TXT","name":"orig.testfqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:41.141523Z","created_on":"2016-03-30T01:59:41.141523Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7677eca012c-SJC] connection: [keep-alive] content-length: ['499'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:10 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d3ae1c3ee7c0ebb461c930364899e3cee1459303210; expires=Thu, 30-Mar-17 02:00:10 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "updated.testfqdn.capsulecd.com."}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/473fbde34f64d8b0ca4049926d6f3068 response: body: {string: !!python/unicode '{"result":{"id":"473fbde34f64d8b0ca4049926d6f3068","type":"TXT","name":"updated.testfqdn.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T02:00:25.091818Z","created_on":"2016-03-30T02:00:25.091818Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7c493370657-SJC] connection: [keep-alive] content-length: ['418'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:25 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d7d1010bb6ca370c9c71e122af6eba2c21459303225; expires=Thu, 30-Mar-17 02:00:25 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000165101325606366700462450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudflare/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2016-03-24T17:04:38.265363Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":"3","phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"type":"user","id":"521a961001d9333c8191f53a9f70eb31","email":"darkmethodz@gmail.com"},"permissions":["#analytics:read","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#waf:edit","#waf:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free Website","price":0,"currency":"USD","frequency":"","legacy_id":"free","is_subscribed":true,"can_subscribe":true,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f55394471ecb-SJC] connection: [keep-alive] content-length: ['1343'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:58:45 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dd6f1165f73d2a1eb28e9229d9a82c7561459303125; expires=Thu, 30-Mar-17 01:58:45 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "orig.testfull.capsulecd.com"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['83'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records response: body: {string: !!python/unicode '{"result":{"id":"e86d7d1486e340f788acfb3af67d0ac8","type":"TXT","name":"orig.testfull.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:41.355210Z","created_on":"2016-03-30T01:59:41.355210Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f6b3410e070d-SJC] connection: [keep-alive] content-length: ['415'] content-type: [application/json] date: ['Wed, 30 Mar 2016 01:59:41 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=dea00dec78e275189de479eec302d32e01459303181; expires=Thu, 30-Mar-17 01:59:41 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=orig.testfull.capsulecd.com response: body: {string: !!python/unicode '{"result":[{"id":"e86d7d1486e340f788acfb3af67d0ac8","type":"TXT","name":"orig.testfull.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T01:59:41.355210Z","created_on":"2016-03-30T01:59:41.355210Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f768e4bc1ecb-SJC] connection: [keep-alive] content-length: ['499'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:10 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d564c7075c527473aa562ed0f2b2a11271459303210; expires=Thu, 30-Mar-17 02:00:10 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: '{"content": "challengetoken", "type": "TXT", "name": "updated.testfull.capsulecd.com"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records/e86d7d1486e340f788acfb3af67d0ac8 response: body: {string: !!python/unicode '{"result":{"id":"e86d7d1486e340f788acfb3af67d0ac8","type":"TXT","name":"updated.testfull.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":1,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2016-03-30T02:00:25.310771Z","created_on":"2016-03-30T02:00:25.310771Z","meta":{"auto_added":false}},"success":true,"errors":[],"messages":[]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] cf-ray: [28b7f7c5f1631e9b-SJC] connection: [keep-alive] content-length: ['418'] content-type: [application/json] date: ['Wed, 30 Mar 2016 02:00:25 GMT'] expires: ['Sun, 25 Jan 1981 05:00:00 GMT'] pragma: [no-cache] server: [cloudflare-nginx] set-cookie: ['__cfduid=d86cdbe4a47e52c863cec15521be99f221459303225; expires=Thu, 30-Mar-17 02:00:25 GMT; path=/; domain=.cloudflare.com; HttpOnly'] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/cloudns/000077500000000000000000000000001325606366700216535ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTests/000077500000000000000000000000001325606366700251615ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000014031325606366700334320ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:30 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000014041325606366700423260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=thisisadomainidonotown.com response: body: {string: '{"status":"Failed","statusDescription":"Missing domain-name"}'} headers: Connection: [Keep-Alive] Content-Length: ['61'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:30 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000046331325606366700451140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:30 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=localhost&type=A response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:31 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=A&host=localhost&record=127.0.0.1&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['204'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776944}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:31 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000046401325606366700455550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:31 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=docs&type=CNAME response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:31 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=CNAME&host=docs&record=docs.example.com&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['210'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776945}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:31 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000046721325606366700452470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:32 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=_acme-challenge.fqdn&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:32 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=_acme-challenge.fqdn&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['222'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776946}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:32 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000046721325606366700452610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:32 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=_acme-challenge.full&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:33 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=_acme-challenge.full&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['222'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776947}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:33 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000046721325606366700454160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:33 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=_acme-challenge.test&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:33 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=_acme-challenge.test&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['222'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776948}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:33 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000113741325606366700445470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:34 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfilt&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:34 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=delete.testfilt&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['217'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776949}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:34 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfilt&type=TXT response: body: {string: '{"30776949":{"id":"30776949","type":"TXT","host":"delete.testfilt","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['118'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:34 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776949 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/delete-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was deleted successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['79'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:35 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfilt&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:35 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000113741325606366700476120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:35 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfqdn&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:35 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=delete.testfqdn&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['217'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776950}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:35 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfqdn&type=TXT response: body: {string: '{"30776950":{"id":"30776950","type":"TXT","host":"delete.testfqdn","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['118'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:36 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776950 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/delete-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was deleted successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['79'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:36 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfqdn&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:36 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000113741325606366700476240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:36 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfull&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:37 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=delete.testfull&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['217'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776952}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:37 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfull&type=TXT response: body: {string: '{"30776952":{"id":"30776952","type":"TXT","host":"delete.testfull","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['118'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:37 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776952 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/delete-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was deleted successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['79'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:37 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testfull&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:37 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000113621325606366700454010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:38 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testid&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:38 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=delete.testid&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['215'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776953}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:38 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testid&type=TXT response: body: {string: '{"30776953":{"id":"30776953","type":"TXT","host":"delete.testid","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['116'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:38 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776953 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/delete-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was deleted successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['79'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:39 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=delete.testid&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:39 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000063101325606366700417060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:39 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=ttl.fqdn&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:39 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=ttl.fqdn&record=ttlshouldbe3600&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['211'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776954}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:39 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=ttl.fqdn&type=TXT response: body: {string: '{"30776954":{"id":"30776954","type":"TXT","host":"ttl.fqdn","record":"ttlshouldbe3600","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['112'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:40 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000063421325606366700470350ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:40 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=random.fqdntest&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:40 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=random.fqdntest&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['217'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776956}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:40 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=random.fqdntest&type=TXT response: body: {string: '{"30776956":{"id":"30776956","type":"TXT","host":"random.fqdntest","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['118'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:41 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000063421325606366700470470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:41 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=random.fulltest&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:41 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=random.fulltest&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['217'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776957}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:41 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=random.fulltest&type=TXT response: body: {string: '{"30776957":{"id":"30776957","type":"TXT","host":"random.fulltest","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['118'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:41 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000014731325606366700465150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: !!python/unicode '{"status":"Failed","statusDescription":"Invalid authentication, incorrect auth-id or auth-password."}'} headers: connection: [Keep-Alive] content-length: ['101'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:25:27 GMT'] keep-alive: [timeout=5] server: [Apache] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000063221325606366700460230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:42 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=random.test&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:42 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=random.test&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['213'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776958}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:42 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=random.test&type=TXT response: body: {string: '{"30776958":{"id":"30776958","type":"TXT","host":"random.test","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['114'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:42 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000047071325606366700451720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:43 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com response: body: {string: '{"30776945":{"id":"30776945","type":"CNAME","host":"docs","record":"docs.example.com","ttl":"3600","status":1},"30776944":{"id":"30776944","type":"A","host":"localhost","record":"127.0.0.1","dynamicurl_status":0,"ttl":"3600","status":1},"30776956":{"id":"30776956","type":"TXT","host":"random.fqdntest","record":"challengetoken","ttl":"3600","status":1},"30776957":{"id":"30776957","type":"TXT","host":"random.fulltest","record":"challengetoken","ttl":"3600","status":1},"30776958":{"id":"30776958","type":"TXT","host":"random.test","record":"challengetoken","ttl":"3600","status":1},"30776954":{"id":"30776954","type":"TXT","host":"ttl.fqdn","record":"ttlshouldbe3600","ttl":"3600","status":1},"30776946":{"id":"30776946","type":"TXT","host":"_acme-challenge.fqdn","record":"challengetoken","ttl":"3600","status":1},"30776947":{"id":"30776947","type":"TXT","host":"_acme-challenge.full","record":"challengetoken","ttl":"3600","status":1},"30776948":{"id":"30776948","type":"TXT","host":"_acme-challenge.test","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['1061'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:43 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000102461325606366700425170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:43 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.test&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:43 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=orig.test&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['211'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776959}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:43 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.test&type=TXT response: body: {string: '{"30776959":{"id":"30776959","type":"TXT","host":"orig.test","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['112'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:44 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776959&host=updated.test&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['217'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/mod-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was modified successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['80'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:44 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000103111325606366700455230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:44 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.nameonly.test&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:44 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=orig.nameonly.test&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['220'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776960}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:45 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.nameonly.test&type=TXT response: body: {string: '{"30776960":{"id":"30776960","type":"TXT","host":"orig.nameonly.test","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['121'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:45 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776960&host=orig.nameonly.test&record=updated&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['216'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/mod-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was modified successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['80'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:45 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000102721325606366700455610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:45 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.testfqdn&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:45 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=orig.testfqdn&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['215'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776961}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:46 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.testfqdn&type=TXT response: body: {string: '{"30776961":{"id":"30776961","type":"TXT","host":"orig.testfqdn","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['116'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:46 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776961&host=updated.testfqdn&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['221'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/mod-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was modified successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['80'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:46 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000102721325606366700455730ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: '{"name":"api-example.com","type":"master","zone":"domain","status":"1"}'} headers: Connection: [Keep-Alive] Content-Length: ['71'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:46 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.testfull&type=TXT response: body: {string: '[]'} headers: Connection: [Keep-Alive] Content-Length: ['2'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:47 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-type=TXT&host=orig.testfull&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['215'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/add-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was added successfully.","data":{"id":30776962}}'} headers: Connection: [Keep-Alive] Content-Length: ['100'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:47 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.3] method: GET uri: https://api.cloudns.net/dns/records.json?domain-name=api-example.com&host=orig.testfull&type=TXT response: body: {string: '{"30776962":{"id":"30776962","type":"TXT","host":"orig.testfull","record":"challengetoken","ttl":"3600","status":1}}'} headers: Connection: [Keep-Alive] Content-Length: ['116'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:47 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: domain-name=api-example.com&record-id=30776962&host=updated.testfull&record=challengetoken&ttl=3600&priority=placeholder_priority&weight=placeholder_weight&port=placeholder_port headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['221'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.3] method: POST uri: https://api.cloudns.net/dns/mod-record.json response: body: {string: '{"status":"Success","statusDescription":"The record was modified successfully."}'} headers: Connection: [Keep-Alive] Content-Length: ['80'] Content-Type: [application/json] Date: ['Fri, 04 Aug 2017 21:44:47 GMT'] Keep-Alive: [timeout=5] Server: [Apache] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_creating_record_set.yaml000066400000000000000000000014731325606366700357320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: !!python/unicode '{"status":"Failed","statusDescription":"Invalid authentication, incorrect auth-id or auth-password."}'} headers: connection: [Keep-Alive] content-length: ['101'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:25:28 GMT'] keep-alive: [timeout=5] server: [Apache] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_deleting_record_in_record_set_by_content_should_leave_others_untouched.yaml000066400000000000000000000014731325606366700503750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: !!python/unicode '{"status":"Failed","statusDescription":"Invalid authentication, incorrect auth-id or auth-password."}'} headers: connection: [Keep-Alive] content-length: ['101'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:25:29 GMT'] keep-alive: [timeout=5] server: [Apache] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_deleting_record_set_should_remove_all_matching.yaml000066400000000000000000000014731325606366700433660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: !!python/unicode '{"status":"Failed","statusDescription":"Invalid authentication, incorrect auth-id or auth-password."}'} headers: connection: [Keep-Alive] content-length: ['101'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:25:31 GMT'] keep-alive: [timeout=5] server: [Apache] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_duplicate_create_record_should_be_noop.yaml000066400000000000000000000014731325606366700416370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: !!python/unicode '{"status":"Failed","statusDescription":"Invalid authentication, incorrect auth-id or auth-password."}'} headers: connection: [Keep-Alive] content-length: ['101'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:25:32 GMT'] keep-alive: [timeout=5] server: [Apache] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_listing_record_set.yaml000066400000000000000000000014731325606366700356070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudns/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.cloudns.net/dns/get-zone-info.json?domain-name=api-example.com response: body: {string: !!python/unicode '{"status":"Failed","statusDescription":"Invalid authentication, incorrect auth-id or auth-password."}'} headers: connection: [Keep-Alive] content-length: ['101'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:25:33 GMT'] keep-alive: [timeout=5] server: [Apache] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/000077500000000000000000000000001325606366700220435ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTests/000077500000000000000000000000001325606366700253515ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000023621325606366700336270ustar00rootroot00000000000000interactions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [7fee70b55288dc6459877a326685e691] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:13:22 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:13:26 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=9cacdde29b33acbacc1663967b582747; expires=Wed, 08-Jun-2016 17:13:26 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000023621325606366700425220ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [b640f14091e463e42d1aabae5516eb32] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:13:27 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:13:31 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=ea38e21bea7961af0adeb7002f4f98e9; expires=Wed, 08-Jun-2016 17:13:31 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000045251325606366700453040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [45acdc7753b4a7122dcd861c5ea67e06] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:13:31 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:13:36 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=e2e6d68651e3dc3f27e30f6111627c98; expires=Wed, 08-Jun-2016 17:13:36 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "127.0.0.1", "line_id": 1, "host": "localhost", "type": "A", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [25ca82db0b9b95dff930d3f03b05c4dd] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:56 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373543]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:58 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=5bcfc2c16c0e2fafef1969536bc05984; expires=Wed, 08-Jun-2016 17:14:58 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000045331325606366700457460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [329ff253c267d150cec81e88390aeb27] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:13:36 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:13:41 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=d28fe1662f3d017ba6356d3d4da85c09; expires=Wed, 08-Jun-2016 17:13:41 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "docs.example.com", "line_id": 1, "host": "docs", "type": "CNAME", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [979b71047bb514f5ffe0b1430e8dd01e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:58 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['184'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373545]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:00 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=2239cda33cf5dae187af7af0bbe3abc9; expires=Wed, 08-Jun-2016 17:15:00 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000043501325606366700454300ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [ef75116c0c28c9e155968ea0541ff256] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:13:42 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:13:43 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=feeea29812fe7b7d05e7ed9422c3c044; expires=Wed, 08-Jun-2016 17:13:43 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "_acme-challenge.fqdn", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [3f7b60224686518923dfd1755607365e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:00 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['196'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373547]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:02 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000043501325606366700454420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [8ed04346fcf8e632e937fa82fb89bc5e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:13:44 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:13:52 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=4fe2a5df2691d8d6a8207ff96814ca70; expires=Wed, 08-Jun-2016 17:13:52 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "_acme-challenge.full", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [db1fce50e79b79e6872bc0662813ebb2] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:02 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['196'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373549]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:04 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000043501325606366700455770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [3dd9bfac2703e736a50d966a991ada3c] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:13:57 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:21 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=7c306270827d565c72b31e8d9caf5706; expires=Wed, 08-Jun-2016 17:14:21 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "_acme-challenge.test", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [df45857b4da5710308857a5e4251b782] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:04 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['196'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373551]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:07 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000071121325606366700466310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [c5572677d5b483ef84eb6a64643a5c67] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:09 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"Operate successfully","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"Untaken over","create_time":"2016-06-08 14:49:10","update_time":"2018-03-19 13:36:38","ttl":"600"}]}'} headers: connection: [close] content-length: ['249'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:10 GMT'] set-cookie: ['CloudXNS_TOKEN=23ef292366aa36441812b56d24d16c6e; expires=Tue, 20-Mar-2018 13:56:10 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken1", "line_id": 1, "host": "_acme-challenge.createrecordset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [3a6de8b513ef9fa165b06f6c8a8212f0] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:10 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['221'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223741]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:11 GMT'] set-cookie: ['CloudXNS_TOKEN=f5ce26586a91c6fec83b6215c99e500f; expires=Tue, 20-Mar-2018 13:56:11 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken2", "line_id": 1, "host": "_acme-challenge.createrecordset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [fe27ee687e736f487939877703b816b9] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:11 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['221'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223743]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:12 GMT'] set-cookie: ['CloudXNS_TOKEN=f5104efd4872bf12aa117d689b359bca; expires=Tue, 20-Mar-2018 13:56:12 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000247011325606366700462730ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [5a096a060c8b2c590104e2e33ffa673e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:27 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"Operate successfully","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"Untaken over","create_time":"2016-06-08 14:49:10","update_time":"2018-03-20 11:56:25","ttl":"600"}]}'} headers: connection: [close] content-length: ['249'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:27 GMT'] set-cookie: ['CloudXNS_TOKEN=ec8c027af1fa951be54835bea23fe93d; expires=Tue, 20-Mar-2018 13:56:27 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "_acme-challenge.noop", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [53aef83ebc8525a75e7213144f034e58] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:28 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['209'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223753]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:29 GMT'] set-cookie: ['CloudXNS_TOKEN=456c07d0a217e3c127e2025a631eb65c; expires=Tue, 20-Mar-2018 13:56:28 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "_acme-challenge.noop", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [937bf8ed3b7cdd87db76db7642ea496d] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:29 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['209'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":34,"message":"The record has existed in lines with same level, cannot add repeatedly."}'} headers: connection: [close] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:29 GMT'] set-cookie: ['CloudXNS_TOKEN=96ebc254162f6070e679c9990971745b; expires=Tue, 20-Mar-2018 13:56:29 GMT; path=/'] status: {code: 400, message: INVALID REQUEST} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [8e4d4c6fc4862649116272ab7815ba55] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 21:09:49 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"20","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"4223741","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223743","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223747","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:17"},{"record_id":"4221717","host_id":"3610593","host":"_acme-challenge.donothing","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-19 13:36:38","update_time":"2018-03-19 13:36:38"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"4223755","host_id":"3612285","host":"_acme-challenge.listrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:31","update_time":"2018-03-20 11:56:32"},{"record_id":"4223757","host_id":"3612285","host":"_acme-challenge.listrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:31","update_time":"2018-03-20 11:56:32"},{"record_id":"4223753","host_id":"3612283","host":"_acme-challenge.noop","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:28","update_time":"2018-03-20 11:56:28"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [close] content-length: ['5960'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 04:09:50 GMT'] set-cookie: ['CloudXNS_TOKEN=e59710b85a66c51df2c17855a8134b0f; expires=Tue, 20-Mar-2018 14:09:49 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000311701325606366700447330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [e2558dcce10e8dc2a704a6ee1e83e8ec] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:21 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:29 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=826605e6d0da6348612845bb41113cd8; expires=Wed, 08-Jun-2016 17:14:29 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "delete.testfilt", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [1eb466fdefcf55b9196e1e6e639a4007] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:07 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['191'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373553]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:09 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [4253eaa32948cf83a507ecf61061c30a] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:45 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:47 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [a92ac1335f8924c8669c996db8f5554e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:09 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://www.cloudxns.net/api2/record/1373553/89415 response: body: {string: !!python/unicode '{"code":1,"message":"success"}'} headers: connection: [keep-alive] content-length: ['30'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:12 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=4efd27f29683940e888e1d60b6e1c883; expires=Wed, 08-Jun-2016 17:16:12 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [7c8dff50f719b1dc263e5eb488ff1f53] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:32 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"11","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['3251'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:33 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000311701325606366700477760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [3470aacbcf705525a7253c44ee76d517] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:30 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:32 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=2a910ec6e59e74112d1de275d0a38d5b; expires=Wed, 08-Jun-2016 17:14:32 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "delete.testfqdn", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [9d7826813995911e2f37802531ff86d1] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:09 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['191'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373555]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:11 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [082b021e4cec0957ffa5bb949df25acc] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:48 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:49 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [5b8169e2ef2765ff424c25a456a2783d] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:12 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://www.cloudxns.net/api2/record/1373555/89415 response: body: {string: !!python/unicode '{"code":1,"message":"success"}'} headers: connection: [keep-alive] content-length: ['30'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:17 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=a14cb3c141569cd037a68ce2905122ac; expires=Wed, 08-Jun-2016 17:16:17 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [6fc816bddcba21797cb39db1a8c73db2] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:34 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"11","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['3251'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:35 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000311701325606366700500100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [65fc7df5cd95d9b48c8df9f82a114864] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:33 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:34 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=7db11ec08467f4475e63a6c4e7f8c9b2; expires=Wed, 08-Jun-2016 17:14:34 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "delete.testfull", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [a02958c3def71a280c11bdfc74bda107] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:11 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['191'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373557]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:12 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [8d089d26f6588d5b7995a3ba65dbefad] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:50 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:51 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [5864fd0de79b1c2536d2b6791f5c01ae] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:17 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://www.cloudxns.net/api2/record/1373557/89415 response: body: {string: !!python/unicode '{"code":1,"message":"success"}'} headers: connection: [keep-alive] content-length: ['30'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:18 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=e19576060db2f3926da7fc82eaf59743; expires=Wed, 08-Jun-2016 17:16:18 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [ae3ae36d8401591214d34791351ef66a] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:35 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"11","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['3251'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:37 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000311661325606366700455750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [48906a1b6863481f6307e8169df98d5e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:34 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:36 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=828ccf90705db4069259bf0755bf60de; expires=Wed, 08-Jun-2016 17:14:36 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "delete.testid", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [b2284714cbb2a1673f2eed83b8e15b0a] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:12 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['189'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373559]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:14 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [6b534616c92f2b79f6faef245d41c70b] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:52 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:54 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [dc6b1aa5aba0158ba501e6c2552966ed] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:19 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://www.cloudxns.net/api2/record/1373559/89415 response: body: {string: !!python/unicode '{"code":1,"message":"success"}'} headers: connection: [keep-alive] content-length: ['30'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:21 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=54f13aaae0fdb16905fa6e3d20eab6ae; expires=Wed, 08-Jun-2016 17:16:21 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [b2c7dbdf2efc6c3fb8c544ddb35a910d] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:37 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"11","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['3251'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:40 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 cad882058986e528a2ba63c57bf5297d16b87413.paxheader00006660000000000000000000000261132560636670020332xustar00rootroot00000000000000177 path=lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml cad882058986e528a2ba63c57bf5297d16b87413.data000066400000000000000000000420741325606366700172000ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [ba7689889f6437c23e0598d17687b4f8] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:12 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"Operate successfully","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"Untaken over","create_time":"2016-06-08 14:49:10","update_time":"2018-03-20 11:56:12","ttl":"600"}]}'} headers: connection: [close] content-length: ['249'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:13 GMT'] set-cookie: ['CloudXNS_TOKEN=72242274ed729815d5c4a865df6b62e7; expires=Tue, 20-Mar-2018 13:56:13 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken1", "line_id": 1, "host": "_acme-challenge.deleterecordinset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [317ef799f053d64d08ad79c5ad377269] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:13 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['223'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223745]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:14 GMT'] set-cookie: ['CloudXNS_TOKEN=3827578ed11484ab12c25c3f46f58026; expires=Tue, 20-Mar-2018 13:56:14 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken2", "line_id": 1, "host": "_acme-challenge.deleterecordinset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [6f26e14e2d6655f72837cf088fb87f92] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:14 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['223'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223747]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:15 GMT'] set-cookie: ['CloudXNS_TOKEN=a4afaf8b56d99c8eb99b872dd68e39e1; expires=Tue, 20-Mar-2018 13:56:15 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [1e1be368268a4d18068990d3d12340eb] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:15 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"18","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"4223741","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223743","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223745","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:15"},{"record_id":"4223747","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:15"},{"record_id":"4221717","host_id":"3610593","host":"_acme-challenge.donothing","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-19 13:36:38","update_time":"2018-03-19 13:36:38"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [close] content-length: ['5362'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:16 GMT'] set-cookie: ['CloudXNS_TOKEN=104e2a416581919be8e8345f023f30e2; expires=Tue, 20-Mar-2018 13:56:16 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [9274f07d5d9c85e1f2aa25e0e44bb0f8] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:16 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://www.cloudxns.net/api2/record/4223745/89415 response: body: {string: !!python/unicode '{"code":1,"message":"success"}'} headers: connection: [close] content-length: ['30'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:17 GMT'] set-cookie: ['CloudXNS_TOKEN=a85923feca49556d5f014f68ad041b1d; expires=Tue, 20-Mar-2018 13:56:17 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [841fc5615b7add5fa45af9b6515ed96f] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:17 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"17","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"4223741","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223743","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223747","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:17"},{"record_id":"4221717","host_id":"3610593","host":"_acme-challenge.donothing","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-19 13:36:38","update_time":"2018-03-19 13:36:38"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [close] content-length: ['5052'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:18 GMT'] set-cookie: ['CloudXNS_TOKEN=9452ca9927716980507b8a05956de1a4; expires=Tue, 20-Mar-2018 13:56:18 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000446041325606366700450620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [12a03d3b3192592f934d525388a8b4e7] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:18 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"Operate successfully","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"Untaken over","create_time":"2016-06-08 14:49:10","update_time":"2018-03-20 11:56:17","ttl":"600"}]}'} headers: connection: [close] content-length: ['249'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:19 GMT'] set-cookie: ['CloudXNS_TOKEN=34766c8c1808c0e3c6be4f104d5c8026; expires=Tue, 20-Mar-2018 13:56:19 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken1", "line_id": 1, "host": "_acme-challenge.deleterecordset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [d3ee778bd035a77f4aa53d729664e2c2] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:19 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['221'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223749]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:20 GMT'] set-cookie: ['CloudXNS_TOKEN=eae629d24e117711b97a20374720f729; expires=Tue, 20-Mar-2018 13:56:20 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken2", "line_id": 1, "host": "_acme-challenge.deleterecordset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [e9011f1a96c9696b884aa4c168e916a0] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:20 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['221'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223751]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:22 GMT'] set-cookie: ['CloudXNS_TOKEN=98b559150d1cf7c40894923f94b44e09; expires=Tue, 20-Mar-2018 13:56:21 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [d7d29a9602a6245c9400607935a55360] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:22 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"19","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"4223741","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223743","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223747","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:17"},{"record_id":"4223749","host_id":"3612281","host":"_acme-challenge.deleterecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:20","update_time":"2018-03-20 11:56:21"},{"record_id":"4223751","host_id":"3612281","host":"_acme-challenge.deleterecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:20","update_time":"2018-03-20 11:56:21"},{"record_id":"4221717","host_id":"3610593","host":"_acme-challenge.donothing","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-19 13:36:38","update_time":"2018-03-19 13:36:38"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [close] content-length: ['5668'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:23 GMT'] set-cookie: ['CloudXNS_TOKEN=909c374efeb791dc407b3d5aa3a8a583; expires=Tue, 20-Mar-2018 13:56:23 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [62d17cd5406f0a9f44868db5324c2951] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:23 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://www.cloudxns.net/api2/record/4223749/89415 response: body: {string: !!python/unicode '{"code":1,"message":"success"}'} headers: connection: [close] content-length: ['30'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:24 GMT'] set-cookie: ['CloudXNS_TOKEN=8b6f098d00f58af96af381c45e5dded0; expires=Tue, 20-Mar-2018 13:56:24 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [866be9f2de080cfcf26e851504de316e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:24 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://www.cloudxns.net/api2/record/4223751/89415 response: body: {string: !!python/unicode '{"code":1,"message":"success"}'} headers: connection: [close] content-length: ['30'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:25 GMT'] set-cookie: ['CloudXNS_TOKEN=3bbff8775fa89d8a474a10c1d943f966; expires=Tue, 20-Mar-2018 13:56:25 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [dfc70b67fc121577c8a1b5bf3294b9f2] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:25 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"17","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"4223741","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223743","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223747","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:17"},{"record_id":"4221717","host_id":"3610593","host":"_acme-challenge.donothing","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-19 13:36:38","update_time":"2018-03-19 13:36:38"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [close] content-length: ['5052'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:26 GMT'] set-cookie: ['CloudXNS_TOKEN=ac1ed53504e8a74736a36d2e5d1896f0; expires=Tue, 20-Mar-2018 13:56:26 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000156671325606366700421150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [60d4f1dcba8c9ca4be5765da8013798f] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Sat Jul 30 14:17:51 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-07-31 05:00:05","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Sat, 30 Jul 2016 21:17:52 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=51fea81f44602db1d2e5b802389e290f; expires=Sun, 31-Jul-2016 07:17:52 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "ttlshouldbe3600", "line_id": 1, "host": "ttl.fqdn", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [e0c9b4324d37554aa5484bc07b5f9ab5] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Sat Jul 30 14:18:35 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['198'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1598051]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Sat, 30 Jul 2016 21:18:36 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [b7935f975dabe3a7edc65c58c8357570] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Sat Jul 30 14:18:53 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"13","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['3825'] content-type: [text/html; charset=utf-8] date: ['Sat, 30 Jul 2016 21:18:54 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000250711325606366700435670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [fc6e48c6f83cdb1c66889b9ff3e7b246] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:30 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"Operate successfully","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"Untaken over","create_time":"2016-06-08 14:49:10","update_time":"2018-03-20 11:56:28","ttl":"600"}]}'} headers: connection: [close] content-length: ['249'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:30 GMT'] set-cookie: ['CloudXNS_TOKEN=0ea09e35bee27a570b690631bbc49cd4; expires=Tue, 20-Mar-2018 13:56:30 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken1", "line_id": 1, "host": "_acme-challenge.listrecordset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [8e477e4fb795712e8dd13c6f35ced110] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:31 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['219'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223755]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:31 GMT'] set-cookie: ['CloudXNS_TOKEN=ae0aec6955113b0b6528c9b7d432c936; expires=Tue, 20-Mar-2018 13:56:31 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken2", "line_id": 1, "host": "_acme-challenge.listrecordset", "ttl": 3600, "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [b441c70d8a3345983bb941829e7bdb2d] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:32 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['219'] User-Agent: [python-requests/2.18.4] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[4223757]}'} headers: connection: [close] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:33 GMT'] set-cookie: ['CloudXNS_TOKEN=ef2d61ce0bdd4244588f34759f5b3978; expires=Tue, 20-Mar-2018 13:56:32 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [9fafd76983e13b23bf8802b93d120b88] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 20:56:33 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"20","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"4223741","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223743","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223747","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:17"},{"record_id":"4221717","host_id":"3610593","host":"_acme-challenge.donothing","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-19 13:36:38","update_time":"2018-03-19 13:36:38"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"4223755","host_id":"3612285","host":"_acme-challenge.listrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:31","update_time":"2018-03-20 11:56:32"},{"record_id":"4223757","host_id":"3612285","host":"_acme-challenge.listrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:31","update_time":"2018-03-20 11:56:32"},{"record_id":"4223753","host_id":"3612283","host":"_acme-challenge.noop","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:28","update_time":"2018-03-20 11:56:28"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [close] content-length: ['5960'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 03:56:34 GMT'] set-cookie: ['CloudXNS_TOKEN=b6c45aa3ad99553f3efe3a338e419405; expires=Tue, 20-Mar-2018 13:56:33 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000167771325606366700472420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [1577adbf358bf47de58991b759a5b736] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:36 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:38 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=60b8ec2428e015425638f4fb98e1ba94; expires=Wed, 08-Jun-2016 17:14:38 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "random.fqdntest", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [80b2d251f95e83afe29da14c7652a083] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:14 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['191'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373561]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:15 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [f9aef6cc63766bd98815c7609dc96d41] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:54 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:56 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000167771325606366700472540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [7782b70959561a51f87407089f4c13c1] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:38 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:41 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=382a849185e07d64222d11f0e8ae790b; expires=Wed, 08-Jun-2016 17:14:41 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "random.fulltest", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [2ba7f9579a2bad4444d88e1d66ece8b7] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:15 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['191'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373563]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:17 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [b87331b5563a095bebaf2fd62b565a89] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:57 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:58 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000203611325606366700467020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [2d1286fdd87d550c2ce0b8cec9e826d8] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 22:27:26 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"Operate successfully","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"Untaken over","create_time":"2016-06-08 14:49:10","update_time":"2018-03-20 11:56:32","ttl":"600"}]}'} headers: connection: [close] content-length: ['249'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 05:27:28 GMT'] set-cookie: ['CloudXNS_TOKEN=db74b7f4c53b8257da2d12ba66bddc84; expires=Tue, 20-Mar-2018 15:27:28 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [c512b30d2913c62e499af35df3852919] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Mon Mar 19 22:27:28 2018'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.18.4] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"20","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1598051","host_id":"1368285","host":"ttl.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe3600\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2016-07-31 05:18:36","update_time":"2016-07-31 05:18:36"},{"record_id":"1598049","host_id":"1368283","host":"ttlrecord.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"ttlshouldbe500\"","ttl":"500","type":"TXT","status":"ok","create_time":"2016-07-31 05:00:05","update_time":"2016-07-31 05:00:05"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"4223741","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223743","host_id":"3612277","host":"_acme-challenge.createrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:11","update_time":"2018-03-20 11:56:12"},{"record_id":"4223747","host_id":"3612279","host":"_acme-challenge.deleterecordinset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:14","update_time":"2018-03-20 11:56:17"},{"record_id":"4221717","host_id":"3610593","host":"_acme-challenge.donothing","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-19 13:36:38","update_time":"2018-03-19 13:36:38"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"4223755","host_id":"3612285","host":"_acme-challenge.listrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken1\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:31","update_time":"2018-03-20 11:56:32"},{"record_id":"4223757","host_id":"3612285","host":"_acme-challenge.listrecordset","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken2\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:31","update_time":"2018-03-20 11:56:32"},{"record_id":"4223753","host_id":"3612283","host":"_acme-challenge.noop","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"3600","type":"TXT","status":"ok","create_time":"2018-03-20 11:56:28","update_time":"2018-03-20 11:56:28"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [close] content-length: ['5960'] content-type: [text/html; charset=utf-8] date: ['Tue, 20 Mar 2018 05:27:29 GMT'] set-cookie: ['CloudXNS_TOKEN=f7fe494bb82e882248ee5cbf53dbf99c; expires=Tue, 20-Mar-2018 15:27:29 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000167731325606366700462260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [23a5356d8bee100b3e1c2608c6ba46d7] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:41 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:43 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=76d926206bcb5ba2441fb9bebd53f3e5; expires=Wed, 08-Jun-2016 17:14:43 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "random.test", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [c1e066ccc5f1863d0ed8caa4384785ef] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:17 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['187'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373565]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:20 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [a56bd4c09ab5bb5b540c0d44dfef66a5] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:59 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:00 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000132321325606366700453530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [733906b94af7bd6092c29ebfd5a12121] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:43 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:44 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=8e8d03fb330a6dcc15e0fbb4d8766c3d; expires=Wed, 08-Jun-2016 17:14:44 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [88be11ef723f9030b4d6e4ab0177645e] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:20 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"12","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['3540'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:21 GMT'] server: [Tengine] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000212451325606366700427100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [343e92a7a1f613616bc949b2d1793df4] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:44 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:49 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=808dccd7630ec3487a944bc7e932d21e; expires=Wed, 08-Jun-2016 17:14:49 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "orig.test", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [adcc578dd9158bd27a788127da918dbd] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:22 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['185'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373567]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:24 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [a318a83ed1c55bbe03658c14d6a4b4eb] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:00 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:02 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "host": "updated.test", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [4804a55829ad6c163716e6a8a686f8fb] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:22 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['174'] User-Agent: [python-requests/2.9.1] method: PUT uri: https://www.cloudxns.net/api2/record/1373567 response: body: {string: !!python/unicode '{"code":1,"message":"success","data":{"id":1373567,"domain_name":"updated.test.capsulecd.com.","value":"challengetoken"}}'} headers: connection: [keep-alive] content-length: ['121'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:23 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=072397cb32c665613d12649d816914f9; expires=Wed, 08-Jun-2016 17:16:23 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000212611325606366700457510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [fec095c5645e64cdaf3c9a01526f0ce6] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:49 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:50 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=bfc3cc5c2a68e0a3568e1046f9232dc1; expires=Wed, 08-Jun-2016 17:14:50 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "orig.testfqdn", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [992ed299b0a3ce635505d99ef2b794c7] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:24 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['189'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373569]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:26 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [027b78ecf44289035473a8aeecf87d9c] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:02 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:04 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "host": "updated.testfqdn", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [75b289dc27dad5b73ffe3057d759278a] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:24 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] User-Agent: [python-requests/2.9.1] method: PUT uri: https://www.cloudxns.net/api2/record/1373569 response: body: {string: !!python/unicode '{"code":1,"message":"success","data":{"id":1373569,"domain_name":"updated.testfqdn.capsulecd.com.","value":"challengetoken"}}'} headers: connection: [keep-alive] content-length: ['125'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:25 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=b73c4cc40769281865351cab77cdd6a3; expires=Wed, 08-Jun-2016 17:16:25 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000212611325606366700457630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/cloudxns/IntegrationTestsinteractions: - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [fe2a6a343c20f1a72ca97e832fb9a7f2] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:14:50 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/domain response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08 14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'} headers: connection: [keep-alive] content-length: ['226'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:14:52 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=60606b9fd146e34bcc0ac087e6f974c6; expires=Wed, 08-Jun-2016 17:14:52 GMT; path=/'] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "line_id": 1, "host": "orig.testfull", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [8919ea50f797c832fbcb618021e8d7fb] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:15:26 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['189'] User-Agent: [python-requests/2.9.1] method: POST uri: https://www.cloudxns.net/api2/record response: body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373571]}'} headers: connection: [keep-alive] content-length: ['52'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:15:28 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format": "json"}' headers: API-FORMAT: [json] API-HMAC: [d0ef5162672a188f328f58fcec749ae0] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:04 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] User-Agent: [python-requests/2.9.1] method: GET uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0 response: body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08 15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08 15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08 15:15:07","update_time":"2016-06-08 15:15:07"}]}'} headers: connection: [keep-alive] content-length: ['4400'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:06 GMT'] server: [Tengine] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "value": "challengetoken", "host": "updated.testfull", "type": "TXT", "domain_id": "89415"}' headers: API-FORMAT: [json] API-HMAC: [7eb8787006981d07c07cc87d01044fad] API-KEY: [c34e4c5a884101c4c2be3737af8d3d08] API-REQUEST-DATE: ['Wed Jun 08 00:16:25 2016'] Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] User-Agent: [python-requests/2.9.1] method: PUT uri: https://www.cloudxns.net/api2/record/1373571 response: body: {string: !!python/unicode '{"code":1,"message":"success","data":{"id":1373571,"domain_name":"updated.testfull.capsulecd.com.","value":"challengetoken"}}'} headers: connection: [keep-alive] content-length: ['125'] content-type: [text/html; charset=utf-8] date: ['Wed, 08 Jun 2016 07:16:28 GMT'] server: [Tengine] set-cookie: ['CloudXNS_TOKEN=a7cf5a7b84ff010191b3b92593306675; expires=Wed, 08-Jun-2016 17:16:28 GMT; path=/'] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/000077500000000000000000000000001325606366700226275ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTests/000077500000000000000000000000001325606366700261355ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000035741325606366700344210ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528334 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63986eabc93ba-SJC] connection: [keep-alive] content-length: ['384'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:46:58 GMT'] etag: [W/"14737b4e9755da61fdc598b65a8acfef"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4831'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d4d58f93be576a6ce11836df58a77a36a1521528418; expires=Wed, 20-Mar-19 06:46:58 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [3b0268bb-cd71-4d06-b9c8-a488fea3b5d9] x-response-from: [service] x-runtime: ['0.139256'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000027711325606366700433120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/thisisadomainidonotown.com response: body: {string: !!python/unicode '{"id":"not_found","message":"The resource you were accessing could not be found."}'} headers: cache-control: [no-cache] cf-ray: [3fe6398a38c0963d-SJC] connection: [keep-alive] content-length: ['82'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:46:59 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4830'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d960d81cd97950f5062b63cce419b9c041521528418; expires=Wed, 20-Mar-19 06:46:58 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [08079df0-6e9f-4ddf-8eef-9d5c3a8978df] x-response-from: [service] x-runtime: ['0.180951'] x-xss-protection: [1; mode=block] status: {code: 404, message: Not Found} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000130701325606366700460630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528334 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe6398e8d459306-SJC] connection: [keep-alive] content-length: ['384'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:00 GMT'] etag: [W/"14737b4e9755da61fdc598b65a8acfef"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4829'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d8a4579282b3fdb2986203c601d04a7551521528419; expires=Wed, 20-Mar-19 06:46:59 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [205833e4-1ac3-4c3f-ace4-26103bb19dba] x-response-from: [service] x-runtime: ['0.136796'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":4}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63991cdf6937e-SJC] connection: [keep-alive] content-length: ['622'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:00 GMT'] etag: [W/"57376df3dd9b4b8068884260815f535e"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4828'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dbcd133e1b51af7264dba4444927ecc1f1521528420; expires=Wed, 20-Mar-19 06:47:00 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [c3567db4-3b3e-4518-9148-0636450f2b42] x-response-from: [service] x-runtime: ['0.251428'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "127.0.0.1", "type": "A", "name": "localhost"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['55'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe6399469d69390-SJC] connection: [keep-alive] content-length: ['159'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:01 GMT'] etag: ['"d6198f8fb7c01dc3e2904f5e463ad39c"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4827'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d24c452092fcf3a036811b482c335c7d61521528420; expires=Wed, 20-Mar-19 06:47:00 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [62896642-3bdf-48a6-b3f0-dae477c8e4ab] x-response-from: [service] x-runtime: ['0.334220'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000134071325606366700465320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528421 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63999e953937e-SJC] connection: [keep-alive] content-length: ['430'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:01 GMT'] etag: [W/"9e0cb0349bfacd74b4a1ebded7cbcef4"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4826'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d36fa79048c7851458236ae10210cd62f1521528421; expires=Wed, 20-Mar-19 06:47:01 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [d3d6d011-9ef1-4129-80e2-88c6a77e6e20] x-response-from: [service] x-runtime: ['0.115045'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":5}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe6399d2f24961f-SJC] connection: [keep-alive] content-length: ['764'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:02 GMT'] etag: [W/"040f0ccae41423f1cc7609823170b3dd"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4825'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d82f49f69b8eb265779ccf269be68a8211521528421; expires=Wed, 20-Mar-19 06:47:01 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [3f4eb733-5f0b-4c56-986b-40d194cc37d8] x-response-from: [service] x-runtime: ['0.194555'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "docs.example.com.", "type": "CNAME", "name": "docs"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['62'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639a0e9729300-SJC] connection: [keep-alive] content-length: ['165'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:03 GMT'] etag: ['"0990dccafd00e3ece9646ebb4d212bb5"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4824'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d0e99b8b84a66a1f88422310a0792ff5f1521528422; expires=Wed, 20-Mar-19 06:47:02 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [ab64cdbd-074e-429e-8d09-68a0ef92f79e] x-response-from: [service] x-runtime: ['0.346528'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000137511325606366700462210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528422 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639a5cdcf929a-SJC] connection: [keep-alive] content-length: ['483'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:03 GMT'] etag: [W/"2db1ebc3c6f69e677c58db5646092a54"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4823'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=ddc9639be1ece62f7fea4eebe998c6c9d1521528423; expires=Wed, 20-Mar-19 06:47:03 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [98d2ca24-e1d9-4fb3-86a3-e025bbe1e696] x-response-from: [service] x-runtime: ['0.173532'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":6}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639a9dde593ba-SJC] connection: [keep-alive] content-length: ['912'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:04 GMT'] etag: [W/"91f34071825f1260b872df382789d257"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4822'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d33de990338b6381a755f2daca5f52d1e1521528423; expires=Wed, 20-Mar-19 06:47:03 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [fce3201d-9550-48f1-b522-de6c6f647029] x-response-from: [service] x-runtime: ['0.161374'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.fqdn"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['73'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639ac0c8292f4-SJC] connection: [keep-alive] content-length: ['177'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:06 GMT'] etag: ['"b819a1f16e14b2852812bea14f90582b"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4821'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d59de3d795b27d934162ae0f2a338ed111521528424; expires=Wed, 20-Mar-19 06:47:04 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [86b59b89-506b-47a1-b1d6-85914e6a3779] x-response-from: [service] x-runtime: ['2.140992'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000143221325606366700462260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528424 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639bc5b6d961f-SJC] connection: [keep-alive] content-length: ['547'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:07 GMT'] etag: [W/"c47db09e4d8080a49f9907693d6b6c3f"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4820'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d01bef0a955051e0e6c224e74dd3b4c1e1521528426; expires=Wed, 20-Mar-19 06:47:06 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [11527996-a2cd-47b3-ac75-96c3e07028e5] x-response-from: [service] x-runtime: ['0.164336'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":7}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639c05cc29306-SJC] connection: [keep-alive] content-length: ['1072'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:08 GMT'] etag: [W/"25c309bf06db813d3750828b9756511a"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4819'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d40d3c335786fa34ddd6795a53c499e461521528427; expires=Wed, 20-Mar-19 06:47:07 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [b67110a0-6357-4ec7-8b1c-e109d890f2e9] x-response-from: [service] x-runtime: ['0.264221'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.full"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['73'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639c4af3192f4-SJC] connection: [keep-alive] content-length: ['177'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:08 GMT'] etag: ['"3c72d3f36f4f8817c0c24c3069432484"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4818'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d22cabdb7fd32cfdbf8c24a9378ccd6e41521528428; expires=Wed, 20-Mar-19 06:47:08 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [f391073f-566e-40f2-8d00-32f4560ee6eb] x-response-from: [service] x-runtime: ['0.236344'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000146621325606366700463720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528428 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639c77e73929a-SJC] connection: [keep-alive] content-length: ['611'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:09 GMT'] etag: [W/"71991aa0d5aa88ef4382ce8a33eeec7e"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4817'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=da3cdeda37c28e17bd320eac9106eeaf51521528428; expires=Wed, 20-Mar-19 06:47:08 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [743b3a76-4927-4a4b-a37e-06df5f60283d] x-response-from: [service] x-runtime: ['0.251502'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":8}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639ca2d8292b8-SJC] connection: [keep-alive] content-length: ['1232'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:09 GMT'] etag: [W/"dea739dda54c7340feb82f2d611cc251"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4816'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dbc0469e4142788b047cfcc4c303844271521528429; expires=Wed, 20-Mar-19 06:47:09 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [63562946-4451-4f98-9030-9e74a82a6e21] x-response-from: [service] x-runtime: ['0.150108'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.test"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['73'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639cdacc992c4-SJC] connection: [keep-alive] content-length: ['177'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:10 GMT'] etag: ['"91d69b48f13dbb76031a6ae5dc3ecb44"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4815'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dc1f2e1df596ba5b1c2ffe3043fffde1d1521528429; expires=Wed, 20-Mar-19 06:47:09 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [5f9af0db-5741-4ae7-85eb-47bf4c54dfbd] x-response-from: [service] x-runtime: ['0.397806'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000330131325606366700474140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528456 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfqdn.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfull.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a762b6693f0-SJC] connection: [keep-alive] content-length: ['1024'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:36 GMT'] etag: [W/"81632fc7fb093d74a32a08385541dcfa"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4759'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=ddeb5c8d68539714ecfdc95781dec8c191521528456; expires=Wed, 20-Mar-19 06:47:36 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4adebea3-46ce-4f90-be1a-2f33cb490110] x-response-from: [service] x-runtime: ['0.141264'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":15}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a781812929a-SJC] connection: [keep-alive] content-length: ['2318'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:37 GMT'] etag: [W/"2483fd5cdc64a71a29fd40cc74c1f802"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4758'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d6505dd4baf8c57a42bae78c6fa082da71521528456; expires=Wed, 20-Mar-19 06:47:36 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [b2084e5f-5f4e-4950-aaa3-d061bdd05598] x-response-from: [service] x-runtime: ['0.166464'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken1", "type": "TXT", "name": "_acme-challenge.createrecordset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a7a2ffe92c4-SJC] connection: [keep-alive] content-length: ['189'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:37 GMT'] etag: ['"eeb396bd2f7b1a6c7fdc95eda6103bba"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4757'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=df6be8831329f9faaec3dc012c97caceb1521528457; expires=Wed, 20-Mar-19 06:47:37 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [6c861dc4-3f06-425a-b4d0-1bee1fdbb397] x-response-from: [service] x-runtime: ['0.236893'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":16}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a7cd833961f-SJC] connection: [keep-alive] content-length: ['2490'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:38 GMT'] etag: [W/"39429373c8b2aa3e3f3208c7357472af"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4756'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=de5d231b869456d1f95d66962e4df82351521528457; expires=Wed, 20-Mar-19 06:47:37 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [fead5d14-bae0-4c3b-9488-8081ce7378fa] x-response-from: [service] x-runtime: ['0.161286'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken2", "type": "TXT", "name": "_acme-challenge.createrecordset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a7eeaa692c4-SJC] connection: [keep-alive] content-length: ['189'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:38 GMT'] etag: ['"d769c14b49c5578ee920c6cd628b6ec5"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4755'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d66655f1f3c7a4230c65c17ed8956b0361521528458; expires=Wed, 20-Mar-19 06:47:38 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4e33c6cf-1a63-4f55-90f9-f49d35d72057] x-response-from: [service] x-runtime: ['0.364808'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000426621325606366700470650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528465 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfqdn.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfull.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken1\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken2\n_acme-challenge.deleterecordinset.capsulecd.com. 1800 IN TXT challengetoken2\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ab3ab7e9360-SJC] connection: [keep-alive] content-length: ['1254'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:46 GMT'] etag: [W/"dd53cb9cf9168a4276be2455624bbd45"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4737'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d45bc49ce1f35eb771e84f68f971a96891521528466; expires=Wed, 20-Mar-19 06:47:46 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [0881956d-3114-43f5-a034-3f9ccb03865e] x-response-from: [service] x-runtime: ['0.254919'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":18}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ab67af49306-SJC] connection: [keep-alive] content-length: ['2836'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:47 GMT'] etag: [W/"426ccb0b3ce475ab7c503729ec48335c"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4736'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d37f203d63b88201a5bd52f2cd09250c01521528466; expires=Wed, 20-Mar-19 06:47:46 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [d57bd24b-d36d-4b4e-a3a9-6f62e3f53100] x-response-from: [service] x-runtime: ['0.150592'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.noop"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['73'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629411,"type":"TXT","name":"_acme-challenge.noop","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ab90b6092b8-SJC] connection: [keep-alive] content-length: ['177'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:47 GMT'] etag: ['"1afbe4e3cde4de91bddb92ef5faa602a"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4735'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dff549e87e8e939c3d0206b5ec4257a2a1521528467; expires=Wed, 20-Mar-19 06:47:47 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [b02a7d3b-f5e0-475f-ad4d-f7cf316371cc] x-response-from: [service] x-runtime: ['0.414516'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629411,"type":"TXT","name":"_acme-challenge.noop","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":19}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63abcb98d92c4-SJC] connection: [keep-alive] content-length: ['2996'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:48 GMT'] etag: [W/"3db2e27af9789ae39a4150b3a8d69ef2"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4734'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dedb92327fd3cfd542b8eb8badd79b2691521528467; expires=Wed, 20-Mar-19 06:47:47 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [660ee72e-21fa-45e8-b37a-0d1acc41439d] x-response-from: [service] x-runtime: ['0.173774'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629411,"type":"TXT","name":"_acme-challenge.noop","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":19}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63abeefe39360-SJC] connection: [keep-alive] content-length: ['2996'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:48 GMT'] etag: [W/"3db2e27af9789ae39a4150b3a8d69ef2"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4733'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=da7019850dc57d400d44b529c983288e61521528468; expires=Wed, 20-Mar-19 06:47:48 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [02781c89-12d0-427c-82fd-8b1859fb7808] x-response-from: [service] x-runtime: ['0.151229'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000332741325606366700455260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528430 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639d2ec6193ba-SJC] connection: [keep-alive] content-length: ['675'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:10 GMT'] etag: [W/"b3664919476cb350d1cacb4fc6d6bfcc"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4814'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dac68b7fb699fde4146921be7480e56c81521528430; expires=Wed, 20-Mar-19 06:47:10 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4ece341a-56ed-4a06-b075-f2c30d9ccf51] x-response-from: [service] x-runtime: ['0.232200'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639d5bed29390-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:11 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4813'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d5df95171d18ef7d0a107b0c44627eef01521528430; expires=Wed, 20-Mar-19 06:47:10 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [329cabcb-575b-446b-a655-8ea7bed8ee29] x-response-from: [service] x-runtime: ['0.252166'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "delete.testfilt"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629358,"type":"TXT","name":"delete.testfilt","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639d868399306-SJC] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:13 GMT'] etag: ['"abd738f65ddf1a8f793deaa3d5b31a0c"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4812'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=ddac033bc2a5d9ed30dbc4302f35c1e4c1521528431; expires=Wed, 20-Mar-19 06:47:11 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [069ef783-ff9f-4b6a-ab8b-6066427475f6] x-response-from: [service] x-runtime: ['1.581476'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629358,"type":"TXT","name":"delete.testfilt","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":10}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639e368a3961f-SJC] connection: [keep-alive] content-length: ['1548'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:13 GMT'] etag: [W/"3d558e8c996c53441832e5c931709129"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4811'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d7edc0c5616f899da05ca19a3d51a426c1521528433; expires=Wed, 20-Mar-19 06:47:13 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [c6ec14a5-2fee-4f2a-a4b8-011a24e05f3e] x-response-from: [service] x-runtime: ['0.324014'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629358 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] cf-ray: [3fe639e6ecb6929a-SJC] connection: [keep-alive] date: ['Tue, 20 Mar 2018 06:47:14 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4810'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dbcee63c755bd53a536ea890f7ac2735f1521528433; expires=Wed, 20-Mar-19 06:47:13 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [ab7e0038-6eae-4e2f-b3ae-f0a81e29c0f3] x-response-from: [service] x-runtime: ['0.163510'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639e91b25961f-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:14 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4809'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=df69a38feb9b4118d8286fa1093e0583f1521528434; expires=Wed, 20-Mar-19 06:47:14 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [536622bf-6743-4550-be36-b24ca8521c26] x-response-from: [service] x-runtime: ['0.129714'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000332741325606366700505710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528433 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639ebbdd993f0-SJC] connection: [keep-alive] content-length: ['675'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:14 GMT'] etag: [W/"e637be30b300a0d4489ddbb6e121160c"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4808'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dc00cf34b9238a6077601d1d14f753bb21521528434; expires=Wed, 20-Mar-19 06:47:14 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [deb75d5d-d86b-4b44-9e00-191cbe3e85da] x-response-from: [service] x-runtime: ['0.158162'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639ee39b69306-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:15 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4807'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d980d6d96fa4044eeb7fc29c5f16e59d01521528434; expires=Wed, 20-Mar-19 06:47:14 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [ba47f658-81be-4efd-b6e9-aaf5cf62a449] x-response-from: [service] x-runtime: ['0.157243'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "delete.testfqdn"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629361,"type":"TXT","name":"delete.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639f23a6192f4-SJC] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:15 GMT'] etag: ['"e3d967f40f2809ef1ae3e725f5495d87"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4806'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d4f84e200d31471224a47ca6284ac7c2b1521528435; expires=Wed, 20-Mar-19 06:47:15 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [a9f11f28-927d-4d7b-8110-a5d71735cba2] x-response-from: [service] x-runtime: ['0.239036'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629361,"type":"TXT","name":"delete.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":10}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639f50bdd9390-SJC] connection: [keep-alive] content-length: ['1548'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:16 GMT'] etag: [W/"5307ec50c93967e1c3859caf6328ad8b"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4805'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=de2546e13004f155d7689c4acb4fe92421521528436; expires=Wed, 20-Mar-19 06:47:16 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [2aa6a3b2-4d36-4900-a7ea-e41eef4bdb97] x-response-from: [service] x-runtime: ['0.153885'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629361 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] cf-ray: [3fe639f75a26933c-SJC] connection: [keep-alive] date: ['Tue, 20 Mar 2018 06:47:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4804'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dc631a300814540f88566023d5012deac1521528436; expires=Wed, 20-Mar-19 06:47:16 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [e1b4d2b3-6b71-488f-956c-17b7644afc31] x-response-from: [service] x-runtime: ['0.204011'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639f9b931961f-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:17 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4803'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d8f1d75ede1aa871df1daa7808d02b3fa1521528436; expires=Wed, 20-Mar-19 06:47:16 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [e307df8e-ca38-4094-831a-034080519003] x-response-from: [service] x-runtime: ['0.293612'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000332741325606366700506030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528436 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe639ff59f99360-SJC] connection: [keep-alive] content-length: ['675'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:17 GMT'] etag: [W/"5edcb7847f955fa3c9d5cf79397b1948"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4802'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=de32d894656d437e0a5832aca94a5f3bc1521528437; expires=Wed, 20-Mar-19 06:47:17 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [add71560-7af0-4efe-96f6-6ff1fe9150e3] x-response-from: [service] x-runtime: ['0.164296'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a018e7293f0-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:18 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4801'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d932aecdcdd37cd591c25ffbd72f660c21521528438; expires=Wed, 20-Mar-19 06:47:18 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [7e7f744f-b9c6-4d6e-9a19-238e6bd33c17] x-response-from: [service] x-runtime: ['0.127457'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "delete.testfull"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629366,"type":"TXT","name":"delete.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a04faa09300-SJC] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:18 GMT'] etag: ['"76dc2248fb10de6c0fed22ef8099bc04"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4800'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d3aa65e0472a9841dfb6848c5eb7161d41521528438; expires=Wed, 20-Mar-19 06:47:18 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [590fef6e-1a6d-4061-9e6f-c3edca23efdd] x-response-from: [service] x-runtime: ['0.241996'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629366,"type":"TXT","name":"delete.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":10}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a078ead937e-SJC] connection: [keep-alive] content-length: ['1548'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:19 GMT'] etag: [W/"62b8df8e8603f11991c24ea835502cf2"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4799'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d2c9fff750ef4c08fddb001075d6826601521528438; expires=Wed, 20-Mar-19 06:47:18 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [f72b39f5-e26d-43f1-872c-acdd0e365b57] x-response-from: [service] x-runtime: ['0.634561'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629366 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] cf-ray: [3fe63a0ccde793ba-SJC] connection: [keep-alive] date: ['Tue, 20 Mar 2018 06:47:20 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4798'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=daf45c3fe95bf4c2459348d883be052831521528439; expires=Wed, 20-Mar-19 06:47:19 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [83e09092-d890-4b52-9fe0-792abe49df66] x-response-from: [service] x-runtime: ['0.349746'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a11abac931e-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:20 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4797'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d14be87d7e5d18626bb236743c9328eb41521528440; expires=Wed, 20-Mar-19 06:47:20 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [3c1c334a-33fe-4d3f-acfa-56fd9095b29f] x-response-from: [service] x-runtime: ['0.124064'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000332661325606366700463640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528440 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a147dc693f0-SJC] connection: [keep-alive] content-length: ['675'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:21 GMT'] etag: [W/"a25e6dcea4f1c17bdb9ad87b5abfcc6d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4796'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d1443ab2735fa1ca9252a0d103e52e6601521528441; expires=Wed, 20-Mar-19 06:47:21 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [36246001-8c9f-4c6c-99b6-b740e83492f3] x-response-from: [service] x-runtime: ['0.125850'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a164cd7929a-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:21 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4795'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d2667173c88819d6dccf1454bfc51e6311521528441; expires=Wed, 20-Mar-19 06:47:21 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4c75aaaa-a86d-4bc6-a6b3-c9ec2c299ab5] x-response-from: [service] x-runtime: ['0.131117'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "delete.testid"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['66'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629372,"type":"TXT","name":"delete.testid","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a187d449300-SJC] connection: [keep-alive] content-length: ['170'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:22 GMT'] etag: ['"798ca56d46ca530410784c91c914fd2e"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4794'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d71730068306a7e89dee188cdc53a102e1521528441; expires=Wed, 20-Mar-19 06:47:21 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [d918fa62-ab40-4790-b06e-945fb6e72e68] x-response-from: [service] x-runtime: ['0.220723'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629372,"type":"TXT","name":"delete.testid","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":10}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a1b08a7931e-SJC] connection: [keep-alive] content-length: ['1546'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:22 GMT'] etag: [W/"903884bd8f0c5bb9f5525a14dc3f412b"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4793'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=deab484152d8addea6d431d611b77702e1521528442; expires=Wed, 20-Mar-19 06:47:22 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [17e69904-6aea-447d-b503-efb5031543c1] x-response-from: [service] x-runtime: ['0.147431'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629372 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] cf-ray: [3fe63a1d1ffb9306-SJC] connection: [keep-alive] date: ['Tue, 20 Mar 2018 06:47:22 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4792'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d6a71509f3521f63de7edccb4d6c4e56a1521528442; expires=Wed, 20-Mar-19 06:47:22 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [2ff61d27-148d-4047-8e52-208a35bb9574] x-response-from: [service] x-runtime: ['0.336543'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a20683e9390-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:23 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4791'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d9d574e94d75406f2353d5fc039baacaf1521528442; expires=Wed, 20-Mar-19 06:47:22 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [239c3d6c-bfed-45c8-8ae6-1d2cb18230a7] x-response-from: [service] x-runtime: ['0.234581'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 a09a1b0bf44e4fc5d4cbf287b7b77deb7ba134f5.paxheader00006660000000000000000000000265132560636670021105xustar00rootroot00000000000000181 path=lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml a09a1b0bf44e4fc5d4cbf287b7b77deb7ba134f5.data000066400000000000000000000603631325606366700177500ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528458 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfqdn.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfull.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken1\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken2\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a82ca90937e-SJC] connection: [keep-alive] content-length: ['1176'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:39 GMT'] etag: [W/"f789cfe0938791cfac3ce36c7de8a4bd"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4754'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d9bbb582c6d07b2a941a060c0b90b8de51521528458; expires=Wed, 20-Mar-19 06:47:38 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [77f27f4f-ead2-4cb4-8c60-13fc10b50577] x-response-from: [service] x-runtime: ['0.210901'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":17}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a85286892f4-SJC] connection: [keep-alive] content-length: ['2662'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:39 GMT'] etag: [W/"d9abaf3045af3ca763ca93258d7e7056"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4753'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d9b4ae75526c6e1c70ab53b98c6e4eb991521528459; expires=Wed, 20-Mar-19 06:47:39 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [ed85fbbf-2866-4506-a660-c3978382d980] x-response-from: [service] x-runtime: ['0.243643'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken1", "type": "TXT", "name": "_acme-challenge.deleterecordinset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629395,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a88f8779360-SJC] connection: [keep-alive] content-length: ['191'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:40 GMT'] etag: ['"cce1c8d72b560b758cfdb37c3b161856"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4752'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d60b6e6bb327bd2e88e1197299f6d4ffb1521528459; expires=Wed, 20-Mar-19 06:47:39 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [0299cb8e-6e05-4030-906f-3a2779d1b689] x-response-from: [service] x-runtime: ['0.451145'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629395,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":18}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a8cd91a92c4-SJC] connection: [keep-alive] content-length: ['2836'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:40 GMT'] etag: [W/"9d4b8c8281b0bf057719f7466f02e7ce"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4751'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d482c7431717514d42148b2d8105de66f1521528460; expires=Wed, 20-Mar-19 06:47:40 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [f0e4203b-f55b-46ad-a8fd-c334da2e7a17] x-response-from: [service] x-runtime: ['0.158815'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken2", "type": "TXT", "name": "_acme-challenge.deleterecordinset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a8ef9c592c4-SJC] connection: [keep-alive] content-length: ['191'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:41 GMT'] etag: ['"81394c8e50f1b9967b09135ee13cb08a"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4750'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d482c7431717514d42148b2d8105de66f1521528460; expires=Wed, 20-Mar-19 06:47:40 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [01dfe70e-82ac-4618-84d3-1223a51654c2] x-response-from: [service] x-runtime: ['0.302497'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629395,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":19}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a91fd0c9360-SJC] connection: [keep-alive] content-length: ['3010'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:41 GMT'] etag: [W/"d5a6f549e83b65d9cb5450afa3d8237a"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4749'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d08ad9336ae40a5d351a1b7894852e0de1521528461; expires=Wed, 20-Mar-19 06:47:41 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [f5f4b00e-ee6d-4fd3-b434-3bca16aa5dec] x-response-from: [service] x-runtime: ['0.331896'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629395 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] cf-ray: [3fe63a955a14937e-SJC] connection: [keep-alive] date: ['Tue, 20 Mar 2018 06:47:41 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4748'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d8e4e13a9a3b8830ae7516ffc48be7d9b1521528461; expires=Wed, 20-Mar-19 06:47:41 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [52f583db-2040-43db-9486-35ef2ee2a54d] x-response-from: [service] x-runtime: ['0.184328'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":18}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a979c409300-SJC] connection: [keep-alive] content-length: ['2836'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:42 GMT'] etag: [W/"426ccb0b3ce475ab7c503729ec48335c"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4747'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dee342f153463a0c81709fac6aff1567f1521528462; expires=Wed, 20-Mar-19 06:47:42 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [26936adf-d124-40d7-abe1-f2ee55a4049f] x-response-from: [service] x-runtime: ['0.250435'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000641351325606366700456470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528461 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfqdn.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfull.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken1\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken2\n_acme-challenge.deleterecordinset.capsulecd.com. 1800 IN TXT challengetoken2\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a9b2f989390-SJC] connection: [keep-alive] content-length: ['1254'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:42 GMT'] etag: [W/"859a3babd1c92f4776ddfa7be09175c7"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4746'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dd81856949c470a3cecd158bfc724a6ca1521528462; expires=Wed, 20-Mar-19 06:47:42 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [6af3219d-2118-4da8-b003-64766767cac3] x-response-from: [service] x-runtime: ['0.158629'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":18}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a9d8ca792b8-SJC] connection: [keep-alive] content-length: ['2836'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:43 GMT'] etag: [W/"426ccb0b3ce475ab7c503729ec48335c"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4745'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d752ad28656c7f4a74b61d0095d055fba1521528462; expires=Wed, 20-Mar-19 06:47:42 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [55c1873b-893c-4b26-910a-686835122c80] x-response-from: [service] x-runtime: ['0.147496'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken1", "type": "TXT", "name": "_acme-challenge.deleterecordset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629405,"type":"TXT","name":"_acme-challenge.deleterecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63aa0df83933c-SJC] connection: [keep-alive] content-length: ['189'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:43 GMT'] etag: ['"6fb9df8a48dba07f77a47374e71024d4"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4744'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d42660e683e90ba353f359a4ef4f6cd3a1521528463; expires=Wed, 20-Mar-19 06:47:43 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [f41ca2df-bc37-432c-b08f-357c5ec9838e] x-response-from: [service] x-runtime: ['0.266969'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629405,"type":"TXT","name":"_acme-challenge.deleterecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":19}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63aa3ac0e93f0-SJC] connection: [keep-alive] content-length: ['3008'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:44 GMT'] etag: [W/"d220a4ac50a0d84273ddf93029fe0951"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4743'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d351651fc9131e4b1844f7998d7eb82391521528463; expires=Wed, 20-Mar-19 06:47:43 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4e8ba9ab-2360-40ad-8cf7-36f269ab6d66] x-response-from: [service] x-runtime: ['0.215559'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken2", "type": "TXT", "name": "_acme-challenge.deleterecordset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629408,"type":"TXT","name":"_acme-challenge.deleterecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63aa6a88e931e-SJC] connection: [keep-alive] content-length: ['189'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:44 GMT'] etag: ['"4d3087405d097514f21fba01bda40ed8"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4742'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d8955341e02117d82e051250f809e91d01521528464; expires=Wed, 20-Mar-19 06:47:44 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [be66c81b-734f-47ef-820d-253056a3bb5e] x-response-from: [service] x-runtime: ['0.268308'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629405,"type":"TXT","name":"_acme-challenge.deleterecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629408,"type":"TXT","name":"_acme-challenge.deleterecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":20}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63aa96aac92b8-SJC] connection: [keep-alive] content-length: ['3180'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:45 GMT'] etag: [W/"c3c19f53b678e30b850a4eea65ef05df"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4741'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d3e108114f2ac5fb81dac6745e3b7f39b1521528464; expires=Wed, 20-Mar-19 06:47:44 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [118a0c5b-41a4-4d0c-84e9-caa799e8ced5] x-response-from: [service] x-runtime: ['0.150355'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629405 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] cf-ray: [3fe63aabcb1c937e-SJC] connection: [keep-alive] date: ['Tue, 20 Mar 2018 06:47:45 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4740'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d163c3cf62263df51f21e236caccd36831521528465; expires=Wed, 20-Mar-19 06:47:45 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [bd4dffbb-4dbe-4bce-8eb0-d67f5bb91b6e] x-response-from: [service] x-runtime: ['0.192949'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629408 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] cf-ray: [3fe63aae0d2c963d-SJC] connection: [keep-alive] date: ['Tue, 20 Mar 2018 06:47:45 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4739'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dcd763abb9dcd164502c5148a7b3085751521528465; expires=Wed, 20-Mar-19 06:47:45 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [88c3de68-5b08-4f11-bbfb-040350c9cd5d] x-response-from: [service] x-runtime: ['0.229421'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":18}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ab09bf793ba-SJC] connection: [keep-alive] content-length: ['2836'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:46 GMT'] etag: [W/"426ccb0b3ce475ab7c503729ec48335c"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4738'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dfe82df9acbb702da4f746440c91c8cc61521528466; expires=Wed, 20-Mar-19 06:47:46 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [24b1d559-1a75-4360-8bed-c53872dc03cb] x-response-from: [service] x-runtime: ['0.159209'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000532671325606366700443630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528467 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfqdn.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfull.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken1\n_acme-challenge.createrecordset.capsulecd.com. 1800 IN TXT challengetoken2\n_acme-challenge.deleterecordinset.capsulecd.com. 1800 IN TXT challengetoken2\n_acme-challenge.noop.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ac17e27929a-SJC] connection: [keep-alive] content-length: ['1318'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:49 GMT'] etag: [W/"be0152cb8296a75d0f76865f1e3161ad"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4732'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dc9519ca5f425e8bc8132e1baf8b5283c1521528468; expires=Wed, 20-Mar-19 06:47:48 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [9a01c6ca-9b93-4a11-800f-19a8aa120934] x-response-from: [service] x-runtime: ['0.143320'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629411,"type":"TXT","name":"_acme-challenge.noop","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":19}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ac4095192b8-SJC] connection: [keep-alive] content-length: ['2996'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:49 GMT'] etag: [W/"3db2e27af9789ae39a4150b3a8d69ef2"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4731'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d9c73044520c5af9b899ae128a5cb3ffd1521528469; expires=Wed, 20-Mar-19 06:47:49 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [b6291c4c-6795-4ae5-b792-b35a4b069483] x-response-from: [service] x-runtime: ['0.190625'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken1", "type": "TXT", "name": "_acme-challenge.listrecordset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['83'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629414,"type":"TXT","name":"_acme-challenge.listrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ac659bf9390-SJC] connection: [keep-alive] content-length: ['187'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:49 GMT'] etag: ['"af5bbfec610ae608cfed465922ae51e9"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4730'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d82fde7a77d772829f3b89cbef20be8351521528469; expires=Wed, 20-Mar-19 06:47:49 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [d803b75d-c308-458a-9857-efd9b124f405] x-response-from: [service] x-runtime: ['0.207309'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629411,"type":"TXT","name":"_acme-challenge.noop","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629414,"type":"TXT","name":"_acme-challenge.listrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":20}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ac8ab3e929a-SJC] connection: [keep-alive] content-length: ['3166'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:50 GMT'] etag: [W/"462f851f43e8bbb74be0859c99c3dea4"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4729'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dbdeb7d8ce7b27f22e7fa5be17a1ffa901521528469; expires=Wed, 20-Mar-19 06:47:49 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4fb93591-9b7c-4566-b731-52fe654508ef] x-response-from: [service] x-runtime: ['0.201318'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken2", "type": "TXT", "name": "_acme-challenge.listrecordset"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['83'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629415,"type":"TXT","name":"_acme-challenge.listrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63acafe5592f4-SJC] connection: [keep-alive] content-length: ['187'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:50 GMT'] etag: ['"1cfbf782c56ea29a78f9b628ac6580d6"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4728'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d344ea46f871913617f406e0a40a7c2f81521528470; expires=Wed, 20-Mar-19 06:47:50 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [20260dc1-9379-477d-8c88-6daad78b565a] x-response-from: [service] x-runtime: ['0.368443'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629393,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629394,"type":"TXT","name":"_acme-challenge.createrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629397,"type":"TXT","name":"_acme-challenge.deleterecordinset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629411,"type":"TXT","name":"_acme-challenge.noop","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629414,"type":"TXT","name":"_acme-challenge.listrecordset","data":"challengetoken1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{"pages":{"last":"https://api.digitalocean.com/v2/domains/capsulecd.com/records?page=2","next":"https://api.digitalocean.com/v2/domains/capsulecd.com/records?page=2"}},"meta":{"total":21}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63acfab09933c-SJC] connection: [keep-alive] content-length: ['3331'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:51 GMT'] etag: [W/"048d820c0a20da1e80aae90657adf751"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4727'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d2072534b501bdde1a46a2e5d4350ae6f1521528470; expires=Wed, 20-Mar-19 06:47:50 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [f71d6217-8dc0-4f28-a36c-b57cf770910f] x-response-from: [service] x-runtime: ['0.211385'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records?page=2 response: body: {string: !!python/unicode '{"domain_records":[{"id":38629415,"type":"TXT","name":"_acme-challenge.listrecordset","data":"challengetoken2","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{"pages":{"first":"https://api.digitalocean.com/v2/domains/capsulecd.com/records?page=1","prev":"https://api.digitalocean.com/v2/domains/capsulecd.com/records?page=1"}},"meta":{"total":21}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63ad3bd4492c4-SJC] connection: [keep-alive] content-length: ['387'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:51 GMT'] etag: [W/"3c4a0032470453799035639377b0caf3"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4726'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d053ad98d5be72c8da387f9c6130aa1881521528471; expires=Wed, 20-Mar-19 06:47:51 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [32d9c6c1-5b88-4ad1-8fd6-6b84efbd3596] x-response-from: [service] x-runtime: ['0.140691'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000231501325606366700500050ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528442 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a239dae931e-SJC] connection: [keep-alive] content-length: ['675'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:23 GMT'] etag: [W/"c2a4f93218ae6be615686ae8546a0dda"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4790'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=ddc474fb4372ae9e2ce3df2f22c3693f51521528443; expires=Wed, 20-Mar-19 06:47:23 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [14cb92c2-5153-43a4-8e26-9bbf8718a78a] x-response-from: [service] x-runtime: ['0.137646'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":9}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a257d719300-SJC] connection: [keep-alive] content-length: ['1392'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:24 GMT'] etag: [W/"6233565674659fe96fd8233ffa44c43d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4789'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d2dc333f3128b04828a38c78bca49ba981521528443; expires=Wed, 20-Mar-19 06:47:23 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [03c315ea-3649-4457-b225-6b923335a2f6] x-response-from: [service] x-runtime: ['0.144789'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "random.fqdntest"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a276f93931e-SJC] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:24 GMT'] etag: ['"9b708f5b1100c0890775cda48670b0d9"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4788'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d66f4141aa57701c13dda5592d1fad9ba1521528444; expires=Wed, 20-Mar-19 06:47:24 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4d682492-3a9a-46e1-b539-21a2b43e5a97] x-response-from: [service] x-runtime: ['0.308140'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":10}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a2a5cf7937e-SJC] connection: [keep-alive] content-length: ['1548'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:25 GMT'] etag: [W/"e06a9b6e7bae99bd5d92367f8272b328"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4787'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dc4960be0e826274968f27b39f2601c241521528444; expires=Wed, 20-Mar-19 06:47:24 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [31170b95-078e-49fb-861c-ba747222d7a4] x-response-from: [service] x-runtime: ['0.153778'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000237321325606366700500250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528444 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a2e89ab9306-SJC] connection: [keep-alive] content-length: ['734'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:25 GMT'] etag: [W/"aee8ab6ea99f70f709d26a14583885df"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4786'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d30f07bd295341d6eaa9136573cc57e231521528445; expires=Wed, 20-Mar-19 06:47:25 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [2d60eae1-3502-4a2e-946d-2ec5f8a8a265] x-response-from: [service] x-runtime: ['0.187994'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":10}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a30ced892f4-SJC] connection: [keep-alive] content-length: ['1548'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:26 GMT'] etag: [W/"e06a9b6e7bae99bd5d92367f8272b328"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4785'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d4fee1f8715d9a19b9add155b083cb95a1521528445; expires=Wed, 20-Mar-19 06:47:25 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [72c042d5-8b44-4f7c-84c3-28941f92a66c] x-response-from: [service] x-runtime: ['0.362780'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "random.fulltest"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a357b09933c-SJC] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:26 GMT'] etag: ['"989faf3cd225996979f35817b9ded371"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4784'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=da3891a93cb29277eac3e7f8c9c0cf3301521528446; expires=Wed, 20-Mar-19 06:47:26 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [b1b188d1-7dcb-4080-81ce-e3dd7e978337] x-response-from: [service] x-runtime: ['0.249976'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":11}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a387ca79390-SJC] connection: [keep-alive] content-length: ['1703'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:27 GMT'] etag: [W/"0569b948d017b56f74ad445c47b00b64"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4783'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=df2737092738a75512e17745d57f927881521528446; expires=Wed, 20-Mar-19 06:47:26 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [2179f0c0-b904-4d72-b9f1-bd7b46929e4f] x-response-from: [service] x-runtime: ['0.149317'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000126501325606366700474700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528446 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a3adbe2929a-SJC] connection: [keep-alive] content-length: ['793'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:27 GMT'] etag: [W/"1d6c640bea62c48c6108bf9104df83cf"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4782'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d335d94f4f1b9d484b664b776998693741521528447; expires=Wed, 20-Mar-19 06:47:27 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [ebb5506c-0403-4e57-89f9-60c3096c6368] x-response-from: [service] x-runtime: ['0.135968'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":11}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a3cc817933c-SJC] connection: [keep-alive] content-length: ['1703'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:27 GMT'] etag: [W/"0569b948d017b56f74ad445c47b00b64"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4781'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dab5893ca8deb84614b095b7eb65520271521528447; expires=Wed, 20-Mar-19 06:47:27 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [af5e7eb4-78a5-4400-8629-ede6085b10aa] x-response-from: [service] x-runtime: ['0.186803'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000245071325606366700470040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528446 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a3f1f10930c-SJC] connection: [keep-alive] content-length: ['793'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:28 GMT'] etag: [W/"1d6c640bea62c48c6108bf9104df83cf"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4780'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d82c80100b474827c0472aefee2ff5b561521528447; expires=Wed, 20-Mar-19 06:47:27 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [3d4e5312-90b9-4240-9179-db44b07ab81e] x-response-from: [service] x-runtime: ['0.194177'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":11}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a4168719390-SJC] connection: [keep-alive] content-length: ['1703'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:28 GMT'] etag: [W/"0569b948d017b56f74ad445c47b00b64"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4779'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=daaf3d731504c8e5f96bc9ebe43bc8b4d1521528448; expires=Wed, 20-Mar-19 06:47:28 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4cdf42d8-e27b-4cbd-bcea-5619361af0af] x-response-from: [service] x-runtime: ['0.202884'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "random.test"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['64'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a452a82930c-SJC] connection: [keep-alive] content-length: ['168'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:29 GMT'] etag: ['"7b2c76812ed5d6e655c05bb3cdacdb79"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4778'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dcc1cbb10f7d1d6ec9250daa12ff8156a1521528448; expires=Wed, 20-Mar-19 06:47:28 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [4b1a26a0-27d1-4bba-885c-d09e14deccfc] x-response-from: [service] x-runtime: ['0.215289'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":12}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a479c1c929a-SJC] connection: [keep-alive] content-length: ['1854'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:29 GMT'] etag: [W/"c31a22714b06ad0f9f1b6a74549ec9f5"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4777'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d70fef3b049c027f429700cf484ac232a1521528449; expires=Wed, 20-Mar-19 06:47:29 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [2bb16e76-6ac1-4119-a76b-687ee5093c90] x-response-from: [service] x-runtime: ['0.242023'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000131661325606366700461450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528448 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a4a8880963d-SJC] connection: [keep-alive] content-length: ['848'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:29 GMT'] etag: [W/"4a80ecea41f9f6136417f79a315f1d26"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4776'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d86ca116d6ae040a60f4e4ff1463813b31521528449; expires=Wed, 20-Mar-19 06:47:29 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [7eee44be-c741-4a10-b365-ec3f150bd9d0] x-response-from: [service] x-runtime: ['0.136283'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":12}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a4cbdce9390-SJC] connection: [keep-alive] content-length: ['1854'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:30 GMT'] etag: [W/"c31a22714b06ad0f9f1b6a74549ec9f5"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4775'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d6f9239a646923ed842efbbe1c32d03d41521528450; expires=Wed, 20-Mar-19 06:47:30 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [b66ab956-42f7-4c11-bf90-48bfe26e8876] x-response-from: [service] x-runtime: ['0.181188'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000305431325606366700434750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528448 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a4f2bd493f0-SJC] connection: [keep-alive] content-length: ['848'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:30 GMT'] etag: [W/"4a80ecea41f9f6136417f79a315f1d26"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4774'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dd980d474dc539b18e743476fbe868a9a1521528450; expires=Wed, 20-Mar-19 06:47:30 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [df8475ad-3741-4559-9ced-93f810db0da5] x-response-from: [service] x-runtime: ['0.155433'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":12}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a513b4b963d-SJC] connection: [keep-alive] content-length: ['1854'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:31 GMT'] etag: [W/"c31a22714b06ad0f9f1b6a74549ec9f5"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4773'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d83410c656ef2ddffe560424c758d26d91521528450; expires=Wed, 20-Mar-19 06:47:30 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [eeb3d541-75bb-4e42-950a-a4b27618bdca] x-response-from: [service] x-runtime: ['0.169196'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "orig.test"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['62'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629387,"type":"TXT","name":"orig.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a537d7c937e-SJC] connection: [keep-alive] content-length: ['166'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:31 GMT'] etag: ['"099e9f658143a9d31cdd1618f59749d1"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4772'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d453674e8ae72abfc1481ca35c81cd3ab1521528451; expires=Wed, 20-Mar-19 06:47:31 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [cb70e8d9-c7c1-4e3d-ac1a-ba13f8e93bb7] x-response-from: [service] x-runtime: ['0.205752'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"orig.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":13}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a55edcd92f4-SJC] connection: [keep-alive] content-length: ['2003'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:31 GMT'] etag: [W/"e92856f36a38a092de9d9d8439748582"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4771'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d8164e217d491648ecae7aa35c06fe9d91521528451; expires=Wed, 20-Mar-19 06:47:31 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [c5d34374-1b8c-41c7-91f0-cad0141edcd1] x-response-from: [service] x-runtime: ['0.264896'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "updated.test"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['65'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629387 response: body: {string: !!python/unicode '{"domain_record":{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a58bddc9306-SJC] connection: [keep-alive] content-length: ['169'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:32 GMT'] etag: [W/"de957d881a0fb34f4dffb320e638fc24"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4770'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d614dbb7a709b1a6f683e2632b2044b251521528451; expires=Wed, 20-Mar-19 06:47:31 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [caab0e0e-e916-47e3-8614-c110d1abcbf9] x-response-from: [service] x-runtime: ['0.239264'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000313471325606366700465430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528452 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a5bfba2929a-SJC] connection: [keep-alive] content-length: ['904'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:32 GMT'] etag: [W/"740c9212fe06168150cfd054bf9aa506"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4769'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d6ed0ccec69acd0d3a39f0b09d9a1324d1521528452; expires=Wed, 20-Mar-19 06:47:32 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [62fa9fdb-9fc8-4d8e-b274-ba8f7efa639a] x-response-from: [service] x-runtime: ['0.132193'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":13}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a5e5ab5933c-SJC] connection: [keep-alive] content-length: ['2006'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:33 GMT'] etag: [W/"f165fb8d1062d1c64dd36d6114dadfe6"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4768'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d760bf4711677d7364336cf879737bbd21521528452; expires=Wed, 20-Mar-19 06:47:32 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [fb487721-a018-47e8-9bc1-ebcbeb6167cd] x-response-from: [service] x-runtime: ['0.128346'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "orig.testfqdn"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['66'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629390,"type":"TXT","name":"orig.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a61aaee963d-SJC] connection: [keep-alive] content-length: ['170'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:33 GMT'] etag: ['"9517ede3489556ed7967fc0bc249d36b"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4767'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d978e3e6b3a7ab59ac79b7d6859fd08471521528453; expires=Wed, 20-Mar-19 06:47:33 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [499d06ae-938f-43c7-a142-4098ca746dcc] x-response-from: [service] x-runtime: ['0.211582'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"orig.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":14}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a640bdb93ba-SJC] connection: [keep-alive] content-length: ['2159'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:34 GMT'] etag: [W/"c50118e950a3fe567a9c45caebd86d89"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4766'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d0861b3d02ab7a9c77a793a2d5e4853ad1521528453; expires=Wed, 20-Mar-19 06:47:33 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [cdd5c049-0264-4f77-8db0-c10cdc57558a] x-response-from: [service] x-runtime: ['0.157538'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "updated.testfqdn"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['69'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629390 response: body: {string: !!python/unicode '{"domain_record":{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a662bab92f4-SJC] connection: [keep-alive] content-length: ['173'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:34 GMT'] etag: [W/"3ca3292a1a430bdd09867200d75c5504"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4765'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d3a12a9e49c454b6f785cddd4fb03ee771521528454; expires=Wed, 20-Mar-19 06:47:34 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [29a74ff3-d445-49bd-b8fb-e0376f4961d8] x-response-from: [service] x-runtime: ['0.330992'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000321331325606366700465470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/digitalocean/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com response: body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com. 1521528454 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com. 1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com. 1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.testfqdn.capsulecd.com. 1800 IN TXT challengetoken\n"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a69be3093f0-SJC] connection: [keep-alive] content-length: ['964'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:34 GMT'] etag: [W/"ea51bd387995f817d4f8cffa0fa7f3c6"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4764'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d526755e149dfe866a9df275718e5a8171521528454; expires=Wed, 20-Mar-19 06:47:34 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [ef73d6b5-1bce-41de-9fd4-8f971352e34c] x-response-from: [service] x-runtime: ['0.137924'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":14}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a6b9a29961f-SJC] connection: [keep-alive] content-length: ['2162'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:35 GMT'] etag: [W/"085748aa62c7513e083e7f703aa079df"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4763'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=dc43e81d181abb282f088cec2c8f806681521528454; expires=Wed, 20-Mar-19 06:47:34 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [6ce40ef2-3854-4e82-85f2-26dc1ebbb456] x-response-from: [service] x-runtime: ['0.212471'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "orig.testfull"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['66'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_record":{"id":38629391,"type":"TXT","name":"orig.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a6e0b8c9360-SJC] connection: [keep-alive] content-length: ['170'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:35 GMT'] etag: ['"b476889aec80d40201ab0b1914fdada9"'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4762'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=defe169c4bd016edfd9c36f86bba330a31521528455; expires=Wed, 20-Mar-19 06:47:35 GMT; path=/; domain=.digitalocean.com; HttpOnly'] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [ea402900-ef09-4b7a-9538-128e48843030] x-response-from: [service] x-runtime: ['0.242642'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records response: body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629391,"type":"TXT","name":"orig.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":15}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a70cd339360-SJC] connection: [keep-alive] content-length: ['2315'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:36 GMT'] etag: [W/"4832487ff6991c57df75870b83ebb987"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4761'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=defe169c4bd016edfd9c36f86bba330a31521528455; expires=Wed, 20-Mar-19 06:47:35 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [f18b0f76-0011-47ac-b643-467eac1fc38b] x-response-from: [service] x-runtime: ['0.120825'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "updated.testfull"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['69'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629391 response: body: {string: !!python/unicode '{"domain_record":{"id":38629391,"type":"TXT","name":"updated.testfull","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] cf-ray: [3fe63a729dda933c-SJC] connection: [keep-alive] content-length: ['173'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 06:47:36 GMT'] etag: [W/"cf5e343ed3dc379ffde88cbd0e553584"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] ratelimit-limit: ['5000'] ratelimit-remaining: ['4760'] ratelimit-reset: ['1521525195'] server: [cloudflare] set-cookie: ['__cfduid=d28ce0a8a5d082718c56ec96c9e53c2001521528456; expires=Wed, 20-Mar-19 06:47:36 GMT; path=/; domain=.digitalocean.com; HttpOnly'] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-gateway: [Edge-Gateway] x-request-id: [0bbab726-9d5a-4dab-9098-14e77372cc4e] x-response-from: [service] x-runtime: ['0.333516'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/000077500000000000000000000000001325606366700220175ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTests/000077500000000000000000000000001325606366700253255ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000057561325606366700336150ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:51 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1901'] x-ratelimit-reset: ['1521784778'] x-request-id: [d062f0d9-4927-4815-8dfb-f13e72799541] x-runtime: ['0.020045'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:51 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1900'] x-ratelimit-reset: ['1521784779'] x-request-id: [5b09a614-b9a2-4374-87bd-962a72e98fa8] x-runtime: ['0.023548'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000053151325606366700424770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:51 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1899'] x-ratelimit-reset: ['1521784778'] x-request-id: [14d1b13e-f952-451d-9be2-25dd1f9acae9] x-runtime: ['0.020600'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=thisisadomainidonotown.com response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:52 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1898'] x-ratelimit-reset: ['1521784779'] x-request-id: [b0422f7a-4262-442a-81c9-1eadb99b0161] x-runtime: ['0.025471'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000136121325606366700452550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:52 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1897'] x-ratelimit-reset: ['1521784779'] x-request-id: [a9161c26-2ff9-4018-8a53-eeb2090e5bd5] x-runtime: ['0.017484'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:52 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1896'] x-ratelimit-reset: ['1521784778'] x-request-id: [751700c4-d473-462a-8a36-a48229fe8671] x-runtime: ['0.022484'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=A&name=localhost response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:53 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1895'] x-ratelimit-reset: ['1521784779'] x-request-id: [e8e04b3e-d012-42da-991d-0249ff15ddb8] x-runtime: ['0.032222'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "localhost", "content": "127.0.0.1", "regions": ["global"], "ttl": 3600, "type": "A"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['130'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362797,"zone_id":"lexicontest.com","parent_id":null,"name":"localhost","content":"127.0.0.1","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:53Z","updated_at":"2018-03-23T05:34:53Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:53 GMT'] etag: [W/"9373ef6d2863a2d8e46e5a17434ae8a8"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1894'] x-ratelimit-reset: ['1521784778'] x-request-id: [764ec7a4-8ee5-4f54-a8fc-dd0e0c68567e] x-runtime: ['0.083166'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000136251325606366700457240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:54 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1893'] x-ratelimit-reset: ['1521784779'] x-request-id: [fa265391-d08f-4b4b-adc7-b185dc0c94ca] x-runtime: ['0.025088'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:54 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1892'] x-ratelimit-reset: ['1521784779'] x-request-id: [80986739-7fbb-4159-920e-69078f473d00] x-runtime: ['0.021593'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=CNAME&name=docs response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:54 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1891'] x-ratelimit-reset: ['1521784778'] x-request-id: [9bddec25-74f2-4ef6-8f03-d9642daa88b1] x-runtime: ['0.030844'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "docs", "content": "docs.example.com", "regions": ["global"], "ttl": 3600, "type": "CNAME"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['136'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362798,"zone_id":"lexicontest.com","parent_id":null,"name":"docs","content":"docs.example.com","ttl":3600,"priority":null,"type":"CNAME","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:55Z","updated_at":"2018-03-23T05:34:55Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:55 GMT'] etag: [W/"d72d4dff361cad72e1f73b7fbe9ed4ed"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1890'] x-ratelimit-reset: ['1521784779'] x-request-id: [83c2e017-4304-4ad0-8121-959e2e33e299] x-runtime: ['0.084157'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000136731325606366700454140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:55 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1889'] x-ratelimit-reset: ['1521784779'] x-request-id: [7f9624ba-d315-4d41-aab3-e5f7c5fe13f9] x-runtime: ['0.026128'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:56 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1888'] x-ratelimit-reset: ['1521784779'] x-request-id: [d9bf986d-cff9-432a-a312-14d42b7b4238] x-runtime: ['0.029632'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.fqdn response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:56 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1887'] x-ratelimit-reset: ['1521784779'] x-request-id: [32303c28-c88b-42c2-8c4e-df4b74e2a83d] x-runtime: ['0.035062'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.fqdn", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['148'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362799,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.fqdn","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:56Z","updated_at":"2018-03-23T05:34:56Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:56 GMT'] etag: [W/"1add6a73b817decb88f69a9afd37cb6e"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1886'] x-ratelimit-reset: ['1521784778'] x-request-id: [e7b48d4f-799a-44fa-9410-b0f6b5faa9a5] x-runtime: ['0.108405'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000136731325606366700454260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:57 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1885'] x-ratelimit-reset: ['1521784779'] x-request-id: [fdf1d43b-c5fd-464f-989e-3bebe2f45f1b] x-runtime: ['0.019444'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:57 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1884'] x-ratelimit-reset: ['1521784779'] x-request-id: [4f11aa36-1fab-4280-a222-b6b142a39c82] x-runtime: ['0.027728'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.full response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:58 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1883'] x-ratelimit-reset: ['1521784778'] x-request-id: [2326e46b-c8d4-4116-920d-68e682ec38fc] x-runtime: ['0.030713'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.full", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['148'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362800,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.full","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:58Z","updated_at":"2018-03-23T05:34:58Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:58 GMT'] etag: [W/"2030fca68033b23f6fe4c4daf65f45a0"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1882'] x-ratelimit-reset: ['1521784779'] x-request-id: [d3fa4c0a-fb4a-4b3f-b7f5-dd10e80740cc] x-runtime: ['0.081655'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000136731325606366700455630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:58 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1881'] x-ratelimit-reset: ['1521784778'] x-request-id: [b4da16ab-1334-41df-9089-25869a9be2a6] x-runtime: ['0.020299'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:59 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1880'] x-ratelimit-reset: ['1521784779'] x-request-id: [edbb3b8e-000e-4f03-8bfc-ac63312b203c] x-runtime: ['0.022406'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.test response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:59 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1879'] x-ratelimit-reset: ['1521784779'] x-request-id: [da64d123-4db0-4096-838c-f6eeb1eaef32] x-runtime: ['0.037070'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.test", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['148'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362801,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:59Z","updated_at":"2018-03-23T05:34:59Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:34:59 GMT'] etag: [W/"a024a2941221799bd557cf735fc1ff7b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1878'] x-ratelimit-reset: ['1521784778'] x-request-id: [cc23c4d9-680b-47a3-b509-a3c4666f6096] x-runtime: ['0.082168'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000223511325606366700466070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:00 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1877'] x-ratelimit-reset: ['1521784779'] x-request-id: [ee31910f-ce68-4d35-87e1-204ed2f4d4a6] x-runtime: ['0.025170'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:00 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1876'] x-ratelimit-reset: ['1521784778'] x-request-id: [27c5c277-9c14-40be-a0c4-a31bd367e1e9] x-runtime: ['0.029035'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.createrecordset response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:01 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1875'] x-ratelimit-reset: ['1521784779'] x-request-id: [0fafd00a-3450-4af8-824e-b79fd54de7bd] x-runtime: ['0.026444'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.createrecordset", "content": "challengetoken1", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['160'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362802,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.createrecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:01Z","updated_at":"2018-03-23T05:35:01Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:01 GMT'] etag: [W/"6578beb79ced738d27069636a981beab"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1874'] x-ratelimit-reset: ['1521784779'] x-request-id: [16567d5c-1afb-4885-ad9f-f1722c65e969] x-runtime: ['0.091560'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.createrecordset response: body: {string: !!python/unicode '{"data":[{"id":362802,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.createrecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:01Z","updated_at":"2018-03-23T05:35:01Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['373'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:01 GMT'] etag: [W/"39db5735f8d150090f621bf58bc3e1d4"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1873'] x-ratelimit-reset: ['1521784778'] x-request-id: [e738af5c-0696-48d2-beac-c61f6ec50065] x-runtime: ['0.031213'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.createrecordset", "content": "challengetoken2", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['160'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362803,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.createrecordset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:02Z","updated_at":"2018-03-23T05:35:02Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:02 GMT'] etag: [W/"307c7fc32a62eb4438216d939f29cb36"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1872'] x-ratelimit-reset: ['1521784779'] x-request-id: [8f0a0bb2-f367-4203-87b0-34a9dbac0af6] x-runtime: ['0.092737'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000222131325606366700462430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:02 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1871'] x-ratelimit-reset: ['1521784778'] x-request-id: [86f02f9c-9a28-446d-944b-d1b6fb26f513] x-runtime: ['0.025410'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:03 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1870'] x-ratelimit-reset: ['1521784779'] x-request-id: [a0285eea-3842-4e40-8f6d-dc434c874711] x-runtime: ['0.026094'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.noop response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:03 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1869'] x-ratelimit-reset: ['1521784779'] x-request-id: [be4f1bb0-02f8-4218-b12b-931178c3288d] x-runtime: ['0.031147'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.noop", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['148'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362804,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.noop","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:03Z","updated_at":"2018-03-23T05:35:03Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:04 GMT'] etag: [W/"17e6977a8dc7f12a223fc1dd3baaffda"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1868'] x-ratelimit-reset: ['1521784779'] x-request-id: [572dc3d3-b5f2-42a1-b014-a4d6976a32f5] x-runtime: ['0.083431'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.noop response: body: {string: !!python/unicode '{"data":[{"id":362804,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.noop","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:03Z","updated_at":"2018-03-23T05:35:03Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['361'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:04 GMT'] etag: [W/"cb67b0d28b0326a1f1bb3a04da957895"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1867'] x-ratelimit-reset: ['1521784779'] x-request-id: [9b0b61df-bc25-494f-a72e-266100514ae3] x-runtime: ['0.035000'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.noop response: body: {string: !!python/unicode '{"data":[{"id":362804,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.noop","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:03Z","updated_at":"2018-03-23T05:35:03Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['361'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:04 GMT'] etag: [W/"cb67b0d28b0326a1f1bb3a04da957895"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1866'] x-ratelimit-reset: ['1521784778'] x-request-id: [5688eb78-67c1-4e56-9d50-15186370bf13] x-runtime: ['0.029546'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000236051325606366700447130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:05 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1865'] x-ratelimit-reset: ['1521784779'] x-request-id: [596876c4-7f5d-4bcb-adf2-e5c72a317bd9] x-runtime: ['0.025170'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:05 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1864'] x-ratelimit-reset: ['1521784779'] x-request-id: [b9e77f35-a0ef-4230-a6e5-33130691a5b8] x-runtime: ['0.028430'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfilt response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:05 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1863'] x-ratelimit-reset: ['1521784778'] x-request-id: [f7429cd6-df97-413a-88fa-340005cab4b5] x-runtime: ['0.024335'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "delete.testfilt", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['143'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362805,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testfilt","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:06Z","updated_at":"2018-03-23T05:35:06Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:06 GMT'] etag: [W/"348b2190aab6ba2cc3f82dd015ae52c4"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1862'] x-ratelimit-reset: ['1521784779'] x-request-id: [4014c675-7ede-43d5-b8a1-cc9e290e5c81] x-runtime: ['0.108857'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfilt response: body: {string: !!python/unicode '{"data":[{"id":362805,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testfilt","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:06Z","updated_at":"2018-03-23T05:35:06Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['356'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:06 GMT'] etag: [W/"070b7ce3ea91716c331a286fe316de3a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1861'] x-ratelimit-reset: ['1521784778'] x-request-id: [213bf13b-01d1-4695-a433-64498e9bf0cb] x-runtime: ['0.025364'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362805 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] date: ['Fri, 23 Mar 2018 05:35:07 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1860'] x-ratelimit-reset: ['1521784779'] x-request-id: [4c092941-748c-40a1-b924-3e4237a8e689] x-runtime: ['0.097697'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfilt response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:07 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1859'] x-ratelimit-reset: ['1521784779'] x-request-id: [3d43fa17-7788-4cde-91ef-07a23ae72eab] x-runtime: ['0.070048'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000236051325606366700477560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:08 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1858'] x-ratelimit-reset: ['1521784779'] x-request-id: [c923e0ad-4e85-4329-8f6d-c9dc137365b0] x-runtime: ['0.025327'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:08 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1857'] x-ratelimit-reset: ['1521784779'] x-request-id: [6a5925ec-3966-4dfe-b3c1-933edae4f312] x-runtime: ['0.025513'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfqdn response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:08 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1856'] x-ratelimit-reset: ['1521784778'] x-request-id: [ca45f977-bf7c-44b3-ac89-b82c876c9137] x-runtime: ['0.030862'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "delete.testfqdn", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['143'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362806,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testfqdn","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:09Z","updated_at":"2018-03-23T05:35:09Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:09 GMT'] etag: [W/"60eda21905e3d2ebd69d65c4256779e3"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1855'] x-ratelimit-reset: ['1521784779'] x-request-id: [e01cd88a-3e73-47e2-b8b1-461ca0913c3d] x-runtime: ['0.098388'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfqdn response: body: {string: !!python/unicode '{"data":[{"id":362806,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testfqdn","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:09Z","updated_at":"2018-03-23T05:35:09Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['356'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:09 GMT'] etag: [W/"3a14972dd6769cbbeee5992ff0825909"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1854'] x-ratelimit-reset: ['1521784779'] x-request-id: [d6c52912-fea9-4a7b-9a8d-97bc00d80ccb] x-runtime: ['0.030185'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362806 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] date: ['Fri, 23 Mar 2018 05:35:10 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1853'] x-ratelimit-reset: ['1521784779'] x-request-id: [22d2ee3d-bdbd-4454-8b52-94fc236b5f47] x-runtime: ['0.099241'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfqdn response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:10 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1852'] x-ratelimit-reset: ['1521784779'] x-request-id: [0c1a74d3-234d-412a-ab78-2b870771e95f] x-runtime: ['0.024992'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000236051325606366700477700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:10 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1851'] x-ratelimit-reset: ['1521784778'] x-request-id: [7bc886f4-2fe9-4180-85aa-bf3aad89edf8] x-runtime: ['0.024295'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:11 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1850'] x-ratelimit-reset: ['1521784779'] x-request-id: [cf38bc2b-a1e7-45af-9b9c-d79f506bcdd4] x-runtime: ['0.023106'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfull response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:11 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1849'] x-ratelimit-reset: ['1521784779'] x-request-id: [4c631822-7517-451c-8e58-80465f016c35] x-runtime: ['0.031356'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "delete.testfull", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['143'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362807,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testfull","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:11Z","updated_at":"2018-03-23T05:35:11Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:11 GMT'] etag: [W/"8ee27b5917f2ac94902e714225d90cc7"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1848'] x-ratelimit-reset: ['1521784778'] x-request-id: [fbf29fe1-0467-423b-8e7d-41d08848ae92] x-runtime: ['0.099949'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfull response: body: {string: !!python/unicode '{"data":[{"id":362807,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testfull","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:11Z","updated_at":"2018-03-23T05:35:11Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['356'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:12 GMT'] etag: [W/"bf4525fb446f95a3ff518aa9686e3b44"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1847'] x-ratelimit-reset: ['1521784779'] x-request-id: [333cae4a-66f3-49d8-8dca-f767c85a0779] x-runtime: ['0.025247'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362807 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] date: ['Fri, 23 Mar 2018 05:35:12 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1846'] x-ratelimit-reset: ['1521784778'] x-request-id: [e1c6e561-b245-47da-bd6e-bd57047c804e] x-runtime: ['0.102674'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testfull response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:13 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1845'] x-ratelimit-reset: ['1521784779'] x-request-id: [7bac37bd-86c1-4828-a6a4-ec6587ea90b7] x-runtime: ['0.023728'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000235711325606366700455520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:13 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1844'] x-ratelimit-reset: ['1521784779'] x-request-id: [5117ace7-fabc-46b8-a434-609b9d0b7cf8] x-runtime: ['0.024576'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:13 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1843'] x-ratelimit-reset: ['1521784778'] x-request-id: [8301b45a-4886-4bc1-89c1-9ebe34a2e423] x-runtime: ['0.024381'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testid response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:14 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1842'] x-ratelimit-reset: ['1521784779'] x-request-id: [5eddc2eb-92cf-4e59-b209-953e68e0d87a] x-runtime: ['0.032437'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "delete.testid", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['141'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362808,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testid","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:14Z","updated_at":"2018-03-23T05:35:14Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:14 GMT'] etag: [W/"ec9941ddd97f7c6c7c2df7e37f793e37"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1841'] x-ratelimit-reset: ['1521784778'] x-request-id: [ee7851e9-1140-4f47-a478-d413ec93115b] x-runtime: ['0.085997'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testid response: body: {string: !!python/unicode '{"data":[{"id":362808,"zone_id":"lexicontest.com","parent_id":null,"name":"delete.testid","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:14Z","updated_at":"2018-03-23T05:35:14Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['354'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:15 GMT'] etag: [W/"3a8a48d0020e79da1df91d989fdeaa40"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1840'] x-ratelimit-reset: ['1521784779'] x-request-id: [5d03d344-002b-495e-a8e3-adbbcdc49fac] x-runtime: ['0.027272'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362808 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] date: ['Fri, 23 Mar 2018 05:35:15 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1839'] x-ratelimit-reset: ['1521784779'] x-request-id: [83a2cfd1-c38f-4d63-b94f-18313a3886f3] x-runtime: ['0.096837'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=delete.testid response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:15 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1838'] x-ratelimit-reset: ['1521784778'] x-request-id: [987d23db-24dc-43bd-89fa-c9574daa17ae] x-runtime: ['0.027512'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 c2f5334d1f7713e17110f5a0bf3e0c5d56dbe041.paxheader00006660000000000000000000000261132560636670020500xustar00rootroot00000000000000177 path=lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml c2f5334d1f7713e17110f5a0bf3e0c5d56dbe041.data000066400000000000000000000335011325606366700173410ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:16 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1837'] x-ratelimit-reset: ['1521784779'] x-request-id: [e951df02-ba6a-4e91-89c0-d510f7bfa35f] x-runtime: ['0.026654'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:16 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1836'] x-ratelimit-reset: ['1521784778'] x-request-id: [74f62ac7-f9a6-415e-aa63-e79813d2f6e6] x-runtime: ['0.032578'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:17 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1835'] x-ratelimit-reset: ['1521784779'] x-request-id: [79842dd6-ab17-4b64-9ddc-1218a6ed6e4d] x-runtime: ['0.046604'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.deleterecordinset", "content": "challengetoken1", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['162'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362809,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordinset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:17Z","updated_at":"2018-03-23T05:35:17Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:17 GMT'] etag: [W/"8ad015f6c68cd78b4e1a6f963d4be4a2"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1834'] x-ratelimit-reset: ['1521784779'] x-request-id: [db8a751f-3add-4a97-bf8c-e7d78392228c] x-runtime: ['0.088026'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '{"data":[{"id":362809,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordinset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:17Z","updated_at":"2018-03-23T05:35:17Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['375'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:17 GMT'] etag: [W/"565ff63d75aea454f89390ac742ee8a4"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1833'] x-ratelimit-reset: ['1521784778'] x-request-id: [3c95b27b-d347-46db-9eaf-721a0cab0a83] x-runtime: ['0.033906'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.deleterecordinset", "content": "challengetoken2", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['162'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362810,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordinset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:18Z","updated_at":"2018-03-23T05:35:18Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:18 GMT'] etag: [W/"faac380238490b563d031aa0fa0392a0"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1832'] x-ratelimit-reset: ['1521784779'] x-request-id: [8238c33f-58f5-4883-80a0-743466b246e6] x-runtime: ['0.091913'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '{"data":[{"id":362809,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordinset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:17Z","updated_at":"2018-03-23T05:35:17Z"},{"id":362810,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordinset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:18Z","updated_at":"2018-03-23T05:35:18Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['660'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:18 GMT'] etag: [W/"0378ba7b052e53a012ebc3b264de9514"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1831'] x-ratelimit-reset: ['1521784778'] x-request-id: [0a0abfcb-453b-4abb-b3da-a302a43eed72] x-runtime: ['0.031704'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362809 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] date: ['Fri, 23 Mar 2018 05:35:19 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1830'] x-ratelimit-reset: ['1521784779'] x-request-id: [83b73c34-c38b-4b5f-a1b1-5fcbe2acb268] x-runtime: ['0.096866'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '{"data":[{"id":362810,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordinset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:18Z","updated_at":"2018-03-23T05:35:18Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['375'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:19 GMT'] etag: [W/"ad8e6491eb7811190ee82daad780bb2d"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1829'] x-ratelimit-reset: ['1521784779'] x-request-id: [a30f9e50-6eba-459d-933f-ef4de534b601] x-runtime: ['0.032103'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000350651325606366700450370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:20 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1828'] x-ratelimit-reset: ['1521784779'] x-request-id: [ea20cc11-5952-4f37-a12d-424773e3411e] x-runtime: ['0.021240'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:20 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1827'] x-ratelimit-reset: ['1521784779'] x-request-id: [c74bae11-756b-433e-a069-5a9441e88614] x-runtime: ['0.023205'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:20 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1826'] x-ratelimit-reset: ['1521784778'] x-request-id: [f05a015f-e253-4915-968e-d4b646f28433] x-runtime: ['0.031274'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.deleterecordset", "content": "challengetoken1", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['160'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362811,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:21Z","updated_at":"2018-03-23T05:35:21Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:21 GMT'] etag: [W/"62d9bd67080bb07807ccdc5b6f0cbd50"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1825'] x-ratelimit-reset: ['1521784779'] x-request-id: [42cbdd4f-d86c-419f-a983-3ecc3035bd58] x-runtime: ['0.073727'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '{"data":[{"id":362811,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:21Z","updated_at":"2018-03-23T05:35:21Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['373'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:21 GMT'] etag: [W/"b51dcc8ac137c8384d06f13e5e133f0a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1824'] x-ratelimit-reset: ['1521784779'] x-request-id: [0302e5a6-63b4-4cb5-82e4-787825871dbd] x-runtime: ['0.028634'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.deleterecordset", "content": "challengetoken2", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['160'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362812,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:21Z","updated_at":"2018-03-23T05:35:21Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:22 GMT'] etag: [W/"63e8ac58caef302d33013f8c2075135b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1823'] x-ratelimit-reset: ['1521784779'] x-request-id: [7d178bda-1900-4b10-b620-5c4efb560210] x-runtime: ['0.108207'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '{"data":[{"id":362811,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:21Z","updated_at":"2018-03-23T05:35:21Z"},{"id":362812,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:21Z","updated_at":"2018-03-23T05:35:21Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['656'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:22 GMT'] etag: [W/"6f40df087f4832aaf8e958ee8ee25ecb"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1822'] x-ratelimit-reset: ['1521784779'] x-request-id: [f43c076f-b550-49c7-aecf-6ff5bebddf16] x-runtime: ['0.033858'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362811 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] date: ['Fri, 23 Mar 2018 05:35:22 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1821'] x-ratelimit-reset: ['1521784778'] x-request-id: [a05aec09-e9eb-4edf-b862-bc16d719c0f6] x-runtime: ['0.097899'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362812 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] date: ['Fri, 23 Mar 2018 05:35:23 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1820'] x-ratelimit-reset: ['1521784779'] x-request-id: [1c090897-b27b-4b8f-8ecd-1a8fcf9a5278] x-runtime: ['0.081315'] x-xss-protection: [1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:23 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1819'] x-ratelimit-reset: ['1521784778'] x-request-id: [df75c58b-fb1f-4bf5-a7e2-818203cff55e] x-runtime: ['0.031886'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000167521325606366700420650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:24 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1818'] x-ratelimit-reset: ['1521784779'] x-request-id: [3d87e216-7517-41a4-b61d-6be374a2680f] x-runtime: ['0.019865'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:24 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1817'] x-ratelimit-reset: ['1521784779'] x-request-id: [24c94df8-3ae8-46e0-a2eb-186bb1e21481] x-runtime: ['0.029956'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=ttl.fqdn response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:24 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1816'] x-ratelimit-reset: ['1521784778'] x-request-id: [e474527a-8ad6-40e6-bb18-449f8df4409e] x-runtime: ['0.031050'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "ttl.fqdn", "content": "ttlshouldbe3600", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['137'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362813,"zone_id":"lexicontest.com","parent_id":null,"name":"ttl.fqdn","content":"ttlshouldbe3600","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:25Z","updated_at":"2018-03-23T05:35:25Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:25 GMT'] etag: [W/"8274b7240e33892d2ed91c29b94c9d85"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1815'] x-ratelimit-reset: ['1521784779'] x-request-id: [d2d3c9aa-74a2-4627-b2b9-8e72ceaa0b0f] x-runtime: ['0.082289'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=ttl.fqdn response: body: {string: !!python/unicode '{"data":[{"id":362813,"zone_id":"lexicontest.com","parent_id":null,"name":"ttl.fqdn","content":"ttlshouldbe3600","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:25Z","updated_at":"2018-03-23T05:35:25Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['350'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:25 GMT'] etag: [W/"9016075867368e77059717d2d3e5c046"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1814'] x-ratelimit-reset: ['1521784778'] x-request-id: [bb9fdf0e-7acb-4123-9a34-d854c4f7ae9c] x-runtime: ['0.036764'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000261571325606366700435510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:26 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1813'] x-ratelimit-reset: ['1521784779'] x-request-id: [cd265e94-e219-4396-8672-9a4cae785dd8] x-runtime: ['0.019429'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:26 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1812'] x-ratelimit-reset: ['1521784779'] x-request-id: [2c24c05a-95df-4a05-9bd9-31f567ba0dbf] x-runtime: ['0.023221'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.listrecordset response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:26 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1811'] x-ratelimit-reset: ['1521784778'] x-request-id: [d4e4762a-9fd8-4584-9457-1862311bb333] x-runtime: ['0.033056'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.listrecordset", "content": "challengetoken1", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['158'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362814,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.listrecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:27Z","updated_at":"2018-03-23T05:35:27Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:27 GMT'] etag: [W/"6d003e0f351d0166a7555cb990246612"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1810'] x-ratelimit-reset: ['1521784779'] x-request-id: [ba613542-a72c-4a4a-a916-86adfd69c68a] x-runtime: ['0.089202'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.listrecordset response: body: {string: !!python/unicode '{"data":[{"id":362814,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.listrecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:27Z","updated_at":"2018-03-23T05:35:27Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['371'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:27 GMT'] etag: [W/"63f83ad8a0eaa4f5c9c704c61f3bd6c6"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1809'] x-ratelimit-reset: ['1521784778'] x-request-id: [6eb1b187-31a3-4055-bc90-63c3a249cc67] x-runtime: ['0.035458'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "_acme-challenge.listrecordset", "content": "challengetoken2", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['158'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362815,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.listrecordset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:28Z","updated_at":"2018-03-23T05:35:28Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:28 GMT'] etag: [W/"b3eb6b8e25bf7305e0b1ade815b0121c"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1808'] x-ratelimit-reset: ['1521784779'] x-request-id: [aa4d63fb-2457-48df-ae41-6565955f640f] x-runtime: ['0.093907'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=_acme-challenge.listrecordset response: body: {string: !!python/unicode '{"data":[{"id":362814,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.listrecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:27Z","updated_at":"2018-03-23T05:35:27Z"},{"id":362815,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.listrecordset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:28Z","updated_at":"2018-03-23T05:35:28Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['652'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:28 GMT'] etag: [W/"df43d1d41c147bbab90009030d616983"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1807'] x-ratelimit-reset: ['1521784779'] x-request-id: [75375f68-9b32-4a7a-a4cf-150fa6e23523] x-runtime: ['0.028968'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000170121325606366700471750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:28 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1806'] x-ratelimit-reset: ['1521784778'] x-request-id: [dd83519b-3867-4a72-99c5-2dec60965aeb] x-runtime: ['0.024239'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:29 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1805'] x-ratelimit-reset: ['1521784779'] x-request-id: [f04d8e1c-e5ce-4dbf-9ad4-7c75ad935e26] x-runtime: ['0.023046'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=random.fqdntest response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:29 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1804'] x-ratelimit-reset: ['1521784778'] x-request-id: [25811b3c-716e-44b4-aa09-d46ccd333ba8] x-runtime: ['0.040276'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "random.fqdntest", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['143'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362816,"zone_id":"lexicontest.com","parent_id":null,"name":"random.fqdntest","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:30Z","updated_at":"2018-03-23T05:35:30Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:30 GMT'] etag: [W/"fb0e015ab166247a272dc50019605fb1"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1803'] x-ratelimit-reset: ['1521784779'] x-request-id: [e6e67d1d-536d-4529-a7e2-416a4daefc82] x-runtime: ['0.098606'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=random.fqdntest response: body: {string: !!python/unicode '{"data":[{"id":362816,"zone_id":"lexicontest.com","parent_id":null,"name":"random.fqdntest","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:30Z","updated_at":"2018-03-23T05:35:30Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['356'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:30 GMT'] etag: [W/"2ef5a08b8bd9603f0e64afc9d77d5a80"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1802'] x-ratelimit-reset: ['1521784779'] x-request-id: [3a02a334-c96f-4016-81e8-5bead1f9bfae] x-runtime: ['0.035389'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000170121325606366700472070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:30 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1801'] x-ratelimit-reset: ['1521784778'] x-request-id: [591cb369-6651-45b9-a8ab-bce956b4aaa5] x-runtime: ['0.020576'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:31 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1800'] x-ratelimit-reset: ['1521784779'] x-request-id: [222091df-d05f-45d3-9097-66c2b0a0f82a] x-runtime: ['0.023414'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=random.fulltest response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:31 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1799'] x-ratelimit-reset: ['1521784778'] x-request-id: [4e94a175-094b-4d5e-afb0-5def143feee3] x-runtime: ['0.031551'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "random.fulltest", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['143'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362817,"zone_id":"lexicontest.com","parent_id":null,"name":"random.fulltest","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:32Z","updated_at":"2018-03-23T05:35:32Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:32 GMT'] etag: [W/"b580eb2e8671de4e2a57e78bd661c506"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1798'] x-ratelimit-reset: ['1521784779'] x-request-id: [8a1daa52-5230-40a7-a156-f2624013b968] x-runtime: ['0.080261'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=random.fulltest response: body: {string: !!python/unicode '{"data":[{"id":362817,"zone_id":"lexicontest.com","parent_id":null,"name":"random.fulltest","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:32Z","updated_at":"2018-03-23T05:35:32Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['356'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:32 GMT'] etag: [W/"1756540896f9bdc903ec206d52fcb9b0"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1797'] x-ratelimit-reset: ['1521784779'] x-request-id: [07fa0bd3-9917-45aa-9c36-936c89b6ec2b] x-runtime: ['0.035005'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000105121325606366700466530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:32 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1796'] x-ratelimit-reset: ['1521784778'] x-request-id: [b833454e-d899-463e-a5e1-14efbd9d7fef] x-runtime: ['0.030853'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:33 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1795'] x-ratelimit-reset: ['1521784779'] x-request-id: [23d1f41b-d7a1-424a-bbd9-1d0c8069899c] x-runtime: ['0.029886'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=filter.thisdoesnotexist response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:33 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1794'] x-ratelimit-reset: ['1521784778'] x-request-id: [466cf437-fc50-430e-8475-36f77f6cd29e] x-runtime: ['0.030226'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000167661325606366700462040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:34 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1793'] x-ratelimit-reset: ['1521784779'] x-request-id: [a8ee0075-42d6-4bd1-90d1-971e524954af] x-runtime: ['0.024952'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:34 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1792'] x-ratelimit-reset: ['1521784779'] x-request-id: [95d7fd44-2285-40fd-85c6-86707fbc4e31] x-runtime: ['0.029097'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=random.test response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:34 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1791'] x-ratelimit-reset: ['1521784778'] x-request-id: [0de6e015-8c9d-4cc8-8f73-454c79d09739] x-runtime: ['0.027429'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "random.test", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['139'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362818,"zone_id":"lexicontest.com","parent_id":null,"name":"random.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:35Z","updated_at":"2018-03-23T05:35:35Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:35 GMT'] etag: [W/"24d7ae369a2708b9e3b2c8b149de6e1a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1790'] x-ratelimit-reset: ['1521784779'] x-request-id: [75036c4a-1c6a-494f-a2b8-031a9c6d7225] x-runtime: ['0.096381'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=random.test response: body: {string: !!python/unicode '{"data":[{"id":362818,"zone_id":"lexicontest.com","parent_id":null,"name":"random.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:35Z","updated_at":"2018-03-23T05:35:35Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['352'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:35 GMT'] etag: [W/"d552dcc3d25a76173dfc7bcbb18bb4a7"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1789'] x-ratelimit-reset: ['1521784779'] x-request-id: [e6f4eae7-9b12-4d1e-a1d1-89b22a36db9b] x-runtime: ['0.030867'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000230511325606366700453270ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:36 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1788'] x-ratelimit-reset: ['1521784779'] x-request-id: [6d27cf4a-8d2c-4a14-8731-ed64d85d9b9f] x-runtime: ['0.025149'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:36 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1787'] x-ratelimit-reset: ['1521784779'] x-request-id: [9d872873-d421-42eb-8273-b0fbe878cdf8] x-runtime: ['0.024918'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":[{"id":362717,"zone_id":"lexicontest.com","parent_id":null,"name":"","content":"ns1.dnsimple.com admin.dnsimple.com 1521781307 86400 7200 604800 300","ttl":3600,"priority":null,"type":"SOA","regions":["global"],"system_record":true,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T05:35:35Z"},{"id":362718,"zone_id":"lexicontest.com","parent_id":null,"name":"","content":"ns1.dnsimple.com","ttl":3600,"priority":null,"type":"NS","regions":["global"],"system_record":true,"created_at":"2018-03-23T04:58:40Z","updated_at":"2018-03-23T04:58:40Z"},{"id":362719,"zone_id":"lexicontest.com","parent_id":null,"name":"","content":"ns2.dnsimple.com","ttl":3600,"priority":null,"type":"NS","regions":["global"],"system_record":true,"created_at":"2018-03-23T04:58:40Z","updated_at":"2018-03-23T04:58:40Z"},{"id":362720,"zone_id":"lexicontest.com","parent_id":null,"name":"","content":"ns3.dnsimple.com","ttl":3600,"priority":null,"type":"NS","regions":["global"],"system_record":true,"created_at":"2018-03-23T04:58:40Z","updated_at":"2018-03-23T04:58:40Z"},{"id":362721,"zone_id":"lexicontest.com","parent_id":null,"name":"","content":"ns4.dnsimple.com","ttl":3600,"priority":null,"type":"NS","regions":["global"],"system_record":true,"created_at":"2018-03-23T04:58:40Z","updated_at":"2018-03-23T04:58:40Z"},{"id":362797,"zone_id":"lexicontest.com","parent_id":null,"name":"localhost","content":"127.0.0.1","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:53Z","updated_at":"2018-03-23T05:34:53Z"},{"id":362798,"zone_id":"lexicontest.com","parent_id":null,"name":"docs","content":"docs.example.com","ttl":3600,"priority":null,"type":"CNAME","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:55Z","updated_at":"2018-03-23T05:34:55Z"},{"id":362799,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.fqdn","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:56Z","updated_at":"2018-03-23T05:34:56Z"},{"id":362800,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.full","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:58Z","updated_at":"2018-03-23T05:34:58Z"},{"id":362801,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:34:59Z","updated_at":"2018-03-23T05:34:59Z"},{"id":362802,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.createrecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:01Z","updated_at":"2018-03-23T05:35:01Z"},{"id":362803,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.createrecordset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:02Z","updated_at":"2018-03-23T05:35:02Z"},{"id":362804,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.noop","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:03Z","updated_at":"2018-03-23T05:35:03Z"},{"id":362810,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.deleterecordinset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:18Z","updated_at":"2018-03-23T05:35:18Z"},{"id":362813,"zone_id":"lexicontest.com","parent_id":null,"name":"ttl.fqdn","content":"ttlshouldbe3600","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:25Z","updated_at":"2018-03-23T05:35:25Z"},{"id":362814,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.listrecordset","content":"challengetoken1","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:27Z","updated_at":"2018-03-23T05:35:27Z"},{"id":362815,"zone_id":"lexicontest.com","parent_id":null,"name":"_acme-challenge.listrecordset","content":"challengetoken2","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:28Z","updated_at":"2018-03-23T05:35:28Z"},{"id":362816,"zone_id":"lexicontest.com","parent_id":null,"name":"random.fqdntest","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:30Z","updated_at":"2018-03-23T05:35:30Z"},{"id":362817,"zone_id":"lexicontest.com","parent_id":null,"name":"random.fulltest","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:32Z","updated_at":"2018-03-23T05:35:32Z"},{"id":362818,"zone_id":"lexicontest.com","parent_id":null,"name":"random.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:35Z","updated_at":"2018-03-23T05:35:35Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":20,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['5462'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:36 GMT'] etag: [W/"4464b51a0816134db3f2cf0efc57ada0"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1786'] x-ratelimit-reset: ['1521784778'] x-request-id: [539855dd-7e77-4074-8a0e-4b1a723f5be9] x-runtime: ['0.071459'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000221431325606366700426620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:37 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1785'] x-ratelimit-reset: ['1521784779'] x-request-id: [28db37a7-e797-4100-a8c9-b476829d8c6f] x-runtime: ['0.011884'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:37 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1784'] x-ratelimit-reset: ['1521784779'] x-request-id: [3d15ce74-91d5-42ab-8e98-25ab86941ae7] x-runtime: ['0.024069'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=orig.test response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:37 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1783'] x-ratelimit-reset: ['1521784778'] x-request-id: [fd9e669e-875a-414e-8fc9-e01052519b8c] x-runtime: ['0.036057'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "orig.test", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['137'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362819,"zone_id":"lexicontest.com","parent_id":null,"name":"orig.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:38Z","updated_at":"2018-03-23T05:35:38Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:38 GMT'] etag: [W/"16d4cf052cfadb92834057363ec6de8d"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1782'] x-ratelimit-reset: ['1521784779'] x-request-id: [3598f17d-e999-4d8d-86e1-c18c9edb6a28] x-runtime: ['0.112922'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=orig.test response: body: {string: !!python/unicode '{"data":[{"id":362819,"zone_id":"lexicontest.com","parent_id":null,"name":"orig.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:38Z","updated_at":"2018-03-23T05:35:38Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['350'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:38 GMT'] etag: [W/"6fb67f29e746d2e335db81eb24f725f8"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1781'] x-ratelimit-reset: ['1521784778'] x-request-id: [d2eaf546-cc08-473d-9f53-3a07cf7a177c] x-runtime: ['0.038702'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "priority": "placeholder_priority", "regions": ["global"], "name": "updated.test", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['125'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PATCH uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362819 response: body: {string: !!python/unicode '{"data":{"id":362819,"zone_id":"lexicontest.com","parent_id":null,"name":"updated.test","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:38Z","updated_at":"2018-03-23T05:35:39Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['271'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:39 GMT'] etag: [W/"bf9f03eb066f96b6d7cec3611e42aaca"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1780'] x-ratelimit-reset: ['1521784779'] x-request-id: [9cc94a21-66fe-4c3b-9cbf-9b0b40f70f6e] x-runtime: ['0.100263'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000221771325606366700457340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:39 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1779'] x-ratelimit-reset: ['1521784778'] x-request-id: [7a73176e-5404-43f7-86af-d7ecb0213600] x-runtime: ['0.025372'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:40 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1778'] x-ratelimit-reset: ['1521784779'] x-request-id: [3bab51b0-8f9b-49ba-ac04-49d0672c39ad] x-runtime: ['0.026886'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=orig.testfqdn response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:40 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1777'] x-ratelimit-reset: ['1521784779'] x-request-id: [b6d13cb4-bc6f-4702-8f40-c3010c88347e] x-runtime: ['0.031691'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "orig.testfqdn", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['141'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362820,"zone_id":"lexicontest.com","parent_id":null,"name":"orig.testfqdn","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:40Z","updated_at":"2018-03-23T05:35:40Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:40 GMT'] etag: [W/"159b5223660b04a5e4f8ae0508556eff"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1776'] x-ratelimit-reset: ['1521784778'] x-request-id: [526d1c37-0224-4728-999c-51d791ff8157] x-runtime: ['0.097229'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=orig.testfqdn response: body: {string: !!python/unicode '{"data":[{"id":362820,"zone_id":"lexicontest.com","parent_id":null,"name":"orig.testfqdn","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:40Z","updated_at":"2018-03-23T05:35:40Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['354'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:41 GMT'] etag: [W/"08a905bf1eedb6405b7f08797728857d"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1775'] x-ratelimit-reset: ['1521784779'] x-request-id: [78093f3a-21d7-4420-a3d2-3829e5f581b4] x-runtime: ['0.030749'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "priority": "placeholder_priority", "regions": ["global"], "name": "updated.testfqdn", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['129'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PATCH uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362820 response: body: {string: !!python/unicode '{"data":{"id":362820,"zone_id":"lexicontest.com","parent_id":null,"name":"updated.testfqdn","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:40Z","updated_at":"2018-03-23T05:35:41Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['275'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:41 GMT'] etag: [W/"d3b6aa6a0924f4dbf3a72fd53e595953"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1774'] x-ratelimit-reset: ['1521784778'] x-request-id: [c4edf076-3fad-465e-9f26-6f980f52ca89] x-runtime: ['0.099417'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000221771325606366700457460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsimple/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/accounts response: body: {string: !!python/unicode '{"data":[{"id":762,"email":"lexicontest@mailinator.com","plan_identifier":"dnsimple-professional","created_at":"2018-03-23T04:57:08Z","updated_at":"2018-03-23T04:57:35Z"}]}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['172'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:42 GMT'] etag: [W/"41f6b179fd60416d261e24db13a6b843"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1773'] x-ratelimit-reset: ['1521784779'] x-request-id: [71edaec2-dddf-481b-b54c-a511ea47d254] x-runtime: ['0.019877'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/domains?name_like=lexicontest.com response: body: {string: !!python/unicode '{"data":[{"id":39243,"account_id":762,"registrant_id":null,"name":"lexicontest.com","unicode_name":"lexicontest.com","token":"Xq3UtdK2VXBM23CE0w3xNDQkigc8VnWj","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2018-03-23T04:58:39Z","updated_at":"2018-03-23T04:58:39Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['390'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:42 GMT'] etag: [W/"3c522308175b5c6e8cebe22bd408c32a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1772'] x-ratelimit-reset: ['1521784779'] x-request-id: [5fec97c5-034b-41bc-bff0-675663dce57d] x-runtime: ['0.029772'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=orig.testfull response: body: {string: !!python/unicode '{"data":[],"pagination":{"current_page":1,"per_page":30,"total_entries":0,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['91'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:42 GMT'] etag: [W/"0605e329ddd741bf0b60c52b68e9846b"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1771'] x-ratelimit-reset: ['1521784778'] x-request-id: [20b3d96e-7395-41a5-bf37-ebdd72275be9] x-runtime: ['0.029392'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"priority": "placeholder_priority", "name": "orig.testfull", "content": "challengetoken", "regions": ["global"], "ttl": 3600, "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['141'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.dnsimple.com/v2762/zones/lexicontest.com/records response: body: {string: !!python/unicode '{"data":{"id":362821,"zone_id":"lexicontest.com","parent_id":null,"name":"orig.testfull","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:43Z","updated_at":"2018-03-23T05:35:43Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:43 GMT'] etag: [W/"fa60f7c2d0ee0bbd73a31f78e2fbd7a2"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1770'] x-ratelimit-reset: ['1521784779'] x-request-id: [9b2d45c7-1d65-4ced-9698-fd69b4449a8a] x-runtime: ['0.097958'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records?type=TXT&name=orig.testfull response: body: {string: !!python/unicode '{"data":[{"id":362821,"zone_id":"lexicontest.com","parent_id":null,"name":"orig.testfull","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:43Z","updated_at":"2018-03-23T05:35:43Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['354'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:43 GMT'] etag: [W/"6aeca102629690e3acb30834e3c46c3a"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1769'] x-ratelimit-reset: ['1521784778'] x-request-id: [9c97ff7e-0fe5-45c9-970f-4a5812f93d34] x-runtime: ['0.033000'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "priority": "placeholder_priority", "regions": ["global"], "name": "updated.testfull", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['129'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PATCH uri: https://api.sandbox.dnsimple.com/v2/762/zones/lexicontest.com/records/362821 response: body: {string: !!python/unicode '{"data":{"id":362821,"zone_id":"lexicontest.com","parent_id":null,"name":"updated.testfull","content":"challengetoken","ttl":3600,"priority":null,"type":"TXT","regions":["global"],"system_record":false,"created_at":"2018-03-23T05:35:43Z","updated_at":"2018-03-23T05:35:44Z"}}'} headers: cache-control: ['max-age=0, private, must-revalidate'] connection: [keep-alive] content-length: ['275'] content-type: [application/json; charset=utf-8] date: ['Fri, 23 Mar 2018 05:35:44 GMT'] etag: [W/"9f573a1d79aa7dbb3951ef4ec53fc2e7"] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-download-options: [noopen] x-frame-options: [DENY] x-permitted-cross-domain-policies: [none] x-ratelimit-limit: ['2400'] x-ratelimit-remaining: ['1768'] x-ratelimit-reset: ['1521784779'] x-request-id: [3aa244a5-c7df-44be-87dd-d2c0d81e4168] x-runtime: ['0.085510'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/000077500000000000000000000000001325606366700225015ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTests/000077500000000000000000000000001325606366700260075ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000032611325606366700342640ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:10 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:11 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=314DD030BB1D7C91C17D1D018670C2DF; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [9542d921-3c70-4616-b62b-d48281601800] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['149'] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000257211325606366700431640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:11 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=thisisadomainidonotown.com response: body: {string: !!python/unicode "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\ \n\r\n\r\n\tManagement Console\r\n\t\r\n\r\n\r\n\ \ \r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\t\r\n\t\r\n\t\r\n \r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n \r\ \n\r\n\t\r\n\r\n\t\r\n\r\n\t\r\n\r\n \r\n\r\n \r\n \r\n\ \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\t

\r\n\t\tEnter\ \ a title and description of your issue and a support ticket will be created\ \ for you.\r\n\t

\r\n\t
\r\n\r\n\t\
\r\n\t\t
\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t
\r\n\t

\r\ \n\t\tTo view the status of an existing ticket, visit the support site.\r\ \n\t

\r\n
\r\n\r\n\r\n\
\r\n\t\r\n\t\t\r\n\t\r\n\t

A system error has occurred.

\r\n\t

\r\n\t\tHave no fear - our team of emergency response nerds have\ \ already been alerted and are on the case.\r\n\t

\r\n\r\n\tReturn to console\t\
\r\n\t\r\n\t\tSubmit a support ticket\r\n\t\r\n\tSupport Center\r\n\t
\r\n\t
\r\n\t\tCurrent IP address:
\r\n\t\tLast logged in\ \ on Wed Mar 21 00:00:00 UTC 2018 from 136.24.36.67

\r\n\t
\r\ \n\t
\r\n\t\tCurrent Date and Time: 2018-03-21\ \ 05:25:11:254
\r\n\t
\r\n\t\r\n
\r\n\r\n\r\n\ "} headers: content-type: [text/html;charset=ISO-8859-1] date: ['Wed, 21 Mar 2018 05:25:11 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=05063484E79269EF4CA1EC2683CD713B; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [bdce20a2-a05f-49a6-b58b-d54b53558f11] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['148'] status: {code: 404, message: Not Found} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000057021325606366700457400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:11 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:11 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=F2C5D0D465D163996B27467BFA11AD72; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [d298e24d-194b-4665-bfe6-b238e338cb84] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['147'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "A", "name": "localhost", "value": "127.0.0.1", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['69'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:11 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"localhost","value":"127.0.0.1","id":10168984,"type":"A"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:11 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168984'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=239ACC1287F2347BE1EB861936921B44; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [a14fe595-03e7-4197-9a7e-4f3361f9da86] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['146'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000057161325606366700464100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:11 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:12 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=5A34E7045A26D90EC1A86AF9AD8D99DC; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [f00374ba-7cad-4959-80e9-fbac7a5bd0cb] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['145'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "CNAME", "name": "docs", "value": "docs.example.com", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['75'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:12 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"docs","value":"docs.example.com","id":10168985,"type":"CNAME"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:12 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168985'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=7A46C22C3B4D499331BB9E67EED541CF; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [e5c1a723-869a-43d8-8a77-7331577944b0] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['144'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000057521325606366700460750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:12 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:12 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=D58B3D67C06DE078FF3B085A8473AA4A; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [a3eb905d-e208-4ee9-ba0f-bf42ab944920] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['143'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.fqdn", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:12 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.fqdn","value":"\"challengetoken\"","id":10168986,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:12 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168986'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=BF988F7D22E8A7B21A1E7EDDEA6D51AC; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [fc7bcf2c-8a3d-465a-99c3-33ce0a35ea97] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['142'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000057521325606366700461070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:13 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:13 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=6BB1935677D9B96EE03D233A892A7FD9; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [5743d300-ec1c-4bd8-b7ce-67a712238675] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['141'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.full", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:13 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.full","value":"\"challengetoken\"","id":10168987,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:13 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168987'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=83137FE19D9A5EECC3A1CF268E7028FC; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [b4d7e04f-d02b-4246-9d30-23ae42f5aeeb] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['140'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000057521325606366700462440ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:13 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:13 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=B82896893195686C8EF1F7A0DA63FDFE; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [00cdb2b4-26ec-4182-a32d-bd5c6a8bfc19] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['139'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.test", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:13 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.test","value":"\"challengetoken\"","id":10168988,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:13 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168988'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=63A1E9757543EF5ECAF1A957A74FC6BF; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [5a0597fd-ec52-42c4-9615-256120dcada9] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['138'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000105231325606366700472670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:14 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:14 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=3E2B5C9670FF33274078C48023D05F23; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [2a5207e5-e17e-4ca8-9064-72aa353dbef6] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['137'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.createrecordset", "value": "challengetoken1", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:14 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.createrecordset","value":"\"challengetoken1\"","id":10168989,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:14 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168989'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=0DF707FCA98174922D2306342C7C5289; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [8d2e3e4f-0c46-4e28-8a9a-cbaef92f92e5] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['136'] status: {code: 201, message: Created} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.createrecordset", "value": "challengetoken2", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:14 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.createrecordset","value":"\"challengetoken2\"","id":10168990,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:14 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168990'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=4F28A08CF4AE953BD609AA610BC9DC15; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [414fac91-3401-4cfa-9af3-5cdd0e5d9345] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['135'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000125071325606366700467320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:15 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:14 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=D9A37758619957330746445119B765BE; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [6e0385db-96d7-40f8-9c97-a9138dbd568b] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['134'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.noop", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:15 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.noop","value":"\"challengetoken\"","id":10168991,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:15 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168991'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=012B584F805A9B75A4C40BBE8BB3F6A1; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [b68d6af7-a2e2-4c40-979c-260f6a993e1f] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['133'] status: {code: 201, message: Created} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.noop", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:15 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"error":["Record with this type (TXT), name (_acme-challenge.noop), and value (\"challengetoken\") already exists."]}'} headers: connection: [close] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:15 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=B24950C826FF3DE92347C5F1ED063B66; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [ca71c253-a072-4904-b8f5-05b6bb8574d1] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['132'] status: {code: 400, message: Bad Request} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:16 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=_acme-challenge.noop&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.noop","value":"\"challengetoken\"","id":10168991,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:15 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=3CDD01FC3AA74D29AD282F88373B82BD; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [fab0faa4-6201-422c-8fe2-f65cc9e4c1e1] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['131'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000140341325606366700453710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:16 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:15 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=1BC19A9B2CCF44D8942371BBEF6C4F0A; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [e659c500-443f-49ad-8a12-8f9e07067529] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['130'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "delete.testfilt", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:16 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testfilt","value":"\"challengetoken\"","id":10168992,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:15 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168992'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=C724BA3805B3CEC1F082FA76DFFA100C; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [f2643e27-20e9-42c4-96ad-08da32b00085] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['129'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:16 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testfilt&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testfilt","value":"\"challengetoken\"","id":10168992,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:17 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=2C4C47050E421BFE87FBCED9393DDD9E; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [7f4c350a-a1c7-43d3-9d32-a02b8407f4f1] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['128'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:17 GMT'] method: DELETE uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168992 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:17 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=04BEFA4BADE42CD71FFA3C2CEF794EE9; Path=/V2.0; HttpOnly] x-dnsme-requestid: [1f849fa8-a5d8-4f6c-b548-2f4640d7d4a7] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['127'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:17 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testfilt&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":0,"data":[],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:17 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=58FA33DF59DCA94B0CB45B7ECB2E562D; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [80a02299-14b2-4af1-9e4a-6d96cb571027] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['126'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000140341325606366700504340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:17 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:17 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=B1C8B8AA4AE809038FC68A4133E6EECB; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [a0c4021a-ca75-4040-9104-11222db930db] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['125'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "delete.testfqdn", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:17 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testfqdn","value":"\"challengetoken\"","id":10168993,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:18 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168993'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=F7C86768E204CA3DD46AA34DDB6BB8D1; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [8eff83e2-fd4e-40a7-a457-662a2deffe6f] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['124'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:18 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testfqdn&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testfqdn","value":"\"challengetoken\"","id":10168993,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:18 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=4388C2AE79A2FD9144CA155BE7C73611; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [d0d3392e-88ee-4c56-b4d8-745f3b737e78] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['123'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:18 GMT'] method: DELETE uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168993 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:18 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=0E4B64749B0798A7CAB9A89A087C2991; Path=/V2.0; HttpOnly] x-dnsme-requestid: [1f1f603a-f59c-4d86-97cf-48425220493d] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['122'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:18 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testfqdn&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":0,"data":[],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:18 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=ED6277BA16FAEBF1C7181ACFF82BD29C; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [187ffaac-6849-4f51-89bc-dd9a2a1d8ff1] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['121'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000140341325606366700504460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:19 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:19 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=F1C15244BF1DF8E16DEFC564BB815F0A; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [0313db9f-07ce-4620-8c7c-bc6064dc58d6] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['120'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "delete.testfull", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:19 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testfull","value":"\"challengetoken\"","id":10168994,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:19 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168994'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=7D419DCA1767E203B4657870C0F467C4; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [ecb3e74d-215e-40a8-803a-c73b3f94cd91] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['119'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:19 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testfull&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testfull","value":"\"challengetoken\"","id":10168994,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:19 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=CAEB188AC40F72697743C249A9B7478E; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [29e03c9b-1b9e-4f61-a502-8366f11bab83] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['118'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:19 GMT'] method: DELETE uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168994 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:19 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=FDAEF14A1D2643A8A108AD8CD1248B42; Path=/V2.0; HttpOnly] x-dnsme-requestid: [1aad9365-d7a1-4ca6-8b57-54ffb2a31ab0] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['117'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:20 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testfull&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":0,"data":[],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:20 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=D236C75D62D41F2979BEC7BB74A0519F; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [d23e1dcb-d6d9-4191-9709-06435e65f425] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['116'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000140221325606366700462230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:20 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:20 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=38DC9AB428E304F39F49B01A0C215E1B; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [babc2d7b-930a-4c41-b9d9-3a4d74f2b8ff] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['115'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "delete.testid", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:20 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testid","value":"\"challengetoken\"","id":10168995,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:20 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168995'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=B9F18DCF06C71BF9457A2692AC2FD5EF; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [571b4fdd-572e-405f-8505-e385fbfe87c4] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['114'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:20 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testid&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"delete.testid","value":"\"challengetoken\"","id":10168995,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:20 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=EC0207E9BD615BDFA2023C65B07AAE67; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [e29b2843-9c7f-42e9-a7e3-5ab66552778f] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['113'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:21 GMT'] method: DELETE uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168995 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:21 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=DB28761A01E08A068168EBF7FD858576; Path=/V2.0; HttpOnly] x-dnsme-requestid: [1d68bdd4-0da7-49c7-91db-356360f976cd] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['112'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:21 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=delete.testid&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":0,"data":[],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:21 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=4B047C37D498B9A1660D3875BC5ADFDC; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [b39db0c6-7318-4bb2-8805-2173db9acc90] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['111'] status: {code: 200, message: OK} version: 1 e8a0847879dd8421ed04c7ef9b49383bb55d3ccb.paxheader00006660000000000000000000000264132560636670020637xustar00rootroot00000000000000180 path=lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml e8a0847879dd8421ed04c7ef9b49383bb55d3ccb.data000066400000000000000000000177031325606366700175030ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:30:59 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:30:59 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=918037F346109FD5A1BB290079E865BA; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [91eecb51-a6bb-4be7-9273-a22ca999ff81] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['149'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.deleterecordinset", "value": "challengetoken1", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:30:59 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordinset","value":"\"challengetoken1\"","id":10169009,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:30:59 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169009'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=60B57AE0075A095ADC4DDF0761544E30; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [06b3205f-dcf0-4a15-aba7-faefdabe650d] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['148'] status: {code: 201, message: Created} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.deleterecordinset", "value": "challengetoken2", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:31:00 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordinset","value":"\"challengetoken2\"","id":10169010,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:30:59 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169010'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=CF512EF543C00389707F0FAA8B0D88F8; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [7097c11d-4374-4eb1-8d02-532bcaf72129] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['147'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:31:00 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=_acme-challenge.deleterecordinset&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":2,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordinset","value":"\"challengetoken2\"","id":10169010,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordinset","value":"\"challengetoken1\"","id":10169009,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:31:00 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=6B9D9E589646972A16B43AC51A57442D; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [c3f5ceb8-afc8-4949-a728-26b36c6cbd50] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['146'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:31:00 GMT'] method: DELETE uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169009 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:31:00 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=BF354A755556154CA30166EC4906765F; Path=/V2.0; HttpOnly] x-dnsme-requestid: [6bbf9c98-44b7-4e93-81f3-04d3f0f73e9d] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['145'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:31:01 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=_acme-challenge.deleterecordinset&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordinset","value":"\"challengetoken2\"","id":10169010,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:31:00 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=4343524701AD1041AE7A3F54C9260CF1; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [af74e410-9d7c-46b7-88a7-598cd1f3fce2] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['144'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000211051325606366700455070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:23 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:23 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=CB8941137FA16DC17ECD32734C9E5D87; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [20f0f797-f214-485f-8d02-cb4cda1b1ba0] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['103'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.deleterecordset", "value": "challengetoken1", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:24 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordset","value":"\"challengetoken1\"","id":10168998,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:23 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168998'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=641FAF21EDC612730D31B29F4725C060; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [78ab2350-c930-4ed0-a247-b19ddb20c4cc] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['102'] status: {code: 201, message: Created} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.deleterecordset", "value": "challengetoken2", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:24 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordset","value":"\"challengetoken2\"","id":10168999,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:24 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168999'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=5755D871CD235B35C7534E026D2EE3FC; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [209ee702-403d-4798-bc13-e78cf390131c] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['101'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:24 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=_acme-challenge.deleterecordset&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":2,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordset","value":"\"challengetoken1\"","id":10168998,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.deleterecordset","value":"\"challengetoken2\"","id":10168999,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:24 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=774D3F7081DDEE7AA64664EDB097B55B; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [c2a4bd95-3a61-4423-9802-59be866f3e5c] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['100'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:25 GMT'] method: DELETE uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168998 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:24 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=EED7E1C03CDAE8C31656058386A36668; Path=/V2.0; HttpOnly] x-dnsme-requestid: [c7a34eed-3cab-4e93-9a7d-01857770a7a2] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['99'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:25 GMT'] method: DELETE uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10168999 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:24 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=9517E072D85FC7BEA40683DD7C679446; Path=/V2.0; HttpOnly] x-dnsme-requestid: [9b592977-33f4-4d06-a5fb-a2379d0a6dad] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['98'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:25 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=_acme-challenge.deleterecordset&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":0,"data":[],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:25 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=1CD2C81A6FFB2649F9C7BA6A6E9134FA; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [77a1d38a-bd5d-4c36-8bf8-bc15805e61fc] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['97'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000102151325606366700425330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:26 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:25 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=5334F22A40EFAE399CA6AF5186AC78B8; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [c035ba5b-13df-4093-9cf7-7e32971ece87] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['96'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "ttl.fqdn", "value": "ttlshouldbe3600", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['76'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:26 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"ttl.fqdn","value":"\"ttlshouldbe3600\"","id":10169000,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:25 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169000'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=D5CEBF33577AA786770FDD128D70F808; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [fbb94da4-2b7c-48fc-b1c3-2bc5244dc3db] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['95'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:26 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=ttl.fqdn&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"ttl.fqdn","value":"\"ttlshouldbe3600\"","id":10169000,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:25 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=A0C15781E38C4625D1BF8B9144100DA9; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [f06024ca-e829-4a7e-ba3d-b2347c274556] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['94'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000134431325606366700442250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:26 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:26 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=E6C32E37067DF723EC1E8EC522DF4DF7; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [b3f7a6e1-39b0-4539-aedf-270044eefd30] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['93'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.listrecordset", "value": "challengetoken1", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:27 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.listrecordset","value":"\"challengetoken1\"","id":10169001,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:26 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169001'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=E5C95DDA81992C198BCA42B31065257D; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [8574f2e3-13c9-4546-aaaa-b7be3880952e] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['92'] status: {code: 201, message: Created} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.listrecordset", "value": "challengetoken2", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:27 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.listrecordset","value":"\"challengetoken2\"","id":10169002,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:26 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169002'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=8BBD0B923A4C08A12C8C7DAB3BD3EF05; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [8a2987cf-dc33-40de-8c1d-f9ab1d0b2367] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['91'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:27 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=_acme-challenge.listrecordset&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":2,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.listrecordset","value":"\"challengetoken1\"","id":10169001,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.listrecordset","value":"\"challengetoken2\"","id":10169002,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:26 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=537926ACEFD3182C04DEBE854634FB92; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [6fba454b-bd91-43cd-a422-536f3a5a939f] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['90'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000102461325606366700476610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:27 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:28 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=6D8B23BFE5F7CF1BC7B0481E2ECF051E; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [65668db8-2dcb-4f23-89d7-df88e3c6e98f] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['89'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "random.fqdntest", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:28 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.fqdntest","value":"\"challengetoken\"","id":10169003,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:28 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169003'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=DEA64ADA6A95F22F945E479D34CB1BD2; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [9d0b3bb4-3f64-4c03-afff-cd91804e8d26] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['88'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:28 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=random.fqdntest&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.fqdntest","value":"\"challengetoken\"","id":10169003,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:28 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=04EE5E299A0DF1EC7F82BC183E28BA4A; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [6dfdcbfe-b280-41b3-8609-78d24188ec0c] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['87'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000102461325606366700476730ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:28 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:28 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=43B4CA4B394C913D3BF48718EB4CA4AC; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [397cd9f4-a208-4c54-8f09-b91b4aa2b7c4] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['86'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "random.fulltest", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:29 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.fulltest","value":"\"challengetoken\"","id":10169004,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:29 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169004'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=AB72E46375C22E19D258F48AD1578CBD; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [1b8e914d-3db9-4cc7-8552-71b48fd787d5] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['85'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:29 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=random.fulltest&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.fulltest","value":"\"challengetoken\"","id":10169004,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:29 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=DAD1C06CB2502FC2F9C59B6681C75641; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [beb286f1-c617-4fe0-9fac-5dde62919974] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['84'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000052321325606366700473400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:29 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:29 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=A5F0F16CD819E353CFF9EC31928E699F; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [05257940-5c70-4cce-87a1-e0c0943453eb] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['83'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:29 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=filter.thisdoesnotexist&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":0,"data":[],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:29 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=92211D9D0697E44067426BD58FABC6D4; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [ea5e1166-4f4c-4b29-9938-7556c61994fc] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['82'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000102261325606366700466470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:30 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:29 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=CA476F4E928AA698CA0D5201ED7D39D6; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [c2d92158-2067-4cf9-81ee-c356fa0d3c07] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['81'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "random.test", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['78'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:30 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.test","value":"\"challengetoken\"","id":10169005,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:30 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169005'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=3530E345C62012780494BA9354F72FDA; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [61846ddc-c7f9-4529-b03d-5cb0243de38c] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['80'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:30 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=random.test&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.test","value":"\"challengetoken\"","id":10169005,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:30 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=E3E51063D1DF2815B713AEB2B00C67F0; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [bb07ca23-c4cb-4983-8d85-0eadfa79f511] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['79'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000134761325606366700460230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:30 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:30 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=06F8E0ABF7D6F58DE9834ED8283B11EB; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [63cfbc40-841a-46b1-b2fe-7ee4c3616a27] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['78'] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:31 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":14,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.createrecordset","value":"\"challengetoken1\"","id":10168989,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.createrecordset","value":"\"challengetoken2\"","id":10168990,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.fqdn","value":"\"challengetoken\"","id":10168986,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.full","value":"\"challengetoken\"","id":10168987,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.listrecordset","value":"\"challengetoken1\"","id":10169001,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.listrecordset","value":"\"challengetoken2\"","id":10169002,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.noop","value":"\"challengetoken\"","id":10168991,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"_acme-challenge.test","value":"\"challengetoken\"","id":10168988,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"docs","value":"docs.example.com","id":10168985,"type":"CNAME"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"localhost","value":"127.0.0.1","id":10168984,"type":"A"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.fqdntest","value":"\"challengetoken\"","id":10169003,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.fulltest","value":"\"challengetoken\"","id":10169004,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"random.test","value":"\"challengetoken\"","id":10169005,"type":"TXT"},{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"ttl.fqdn","value":"\"ttlshouldbe3600\"","id":10169000,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:30 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=2C2B4132E7348FAAA0ADFAD0897EE1D5; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [c00bdb0a-0152-4b33-bc35-68b722d8fc77] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['77'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000121761325606366700433510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:31 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:30 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=368D40111A3CC15A791B8DE115991CAC; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [aeb749cd-2817-4c46-bb45-53d2618a3feb] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['76'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "orig.test", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['76'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:31 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"orig.test","value":"\"challengetoken\"","id":10169006,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:31 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169006'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=FFD6237BEA3368F4002AAA7F22C62F9A; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [94125e00-3bb6-4995-b382-23415f70de25] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['75'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:31 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=orig.test&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"orig.test","value":"\"challengetoken\"","id":10169006,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:31 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=640676D87A242DBDC94BBE645A820D9C; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [f85639ee-e29a-4f74-8a7b-bc42fd6b7f1a] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['74'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"value": "challengetoken", "type": "TXT", "id": 10169006, "name": "updated.test", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['95'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:31 GMT'] method: PUT uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169006 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:31 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=FCA8AE7ACFE26A144F93A2E4D1C4D417; Path=/V2.0; HttpOnly] x-dnsme-requestid: [4416939e-bfc6-4e2d-a896-8153c572cecd] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['73'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000122221325606366700464040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:32 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:31 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=8CA13F29D9D3389C7B3DA501996EE7E7; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [cd347bc7-f201-44a5-8d37-70d804d0bb91] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['72'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "orig.testfqdn", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:32 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"orig.testfqdn","value":"\"challengetoken\"","id":10169007,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:32 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169007'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=62E11AC4F9CC51E6BB8739468DB54674; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [f4ea0041-f14b-4467-88e4-a77a47be2713] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['71'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:32 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=orig.testfqdn&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"orig.testfqdn","value":"\"challengetoken\"","id":10169007,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:32 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=544153CDC665CFB8754E13C10BC227ED; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [135bcdde-1486-4a06-9b60-5c7c5f7d34f3] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['70'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"value": "challengetoken", "type": "TXT", "id": 10169007, "name": "updated.testfqdn", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:33 GMT'] method: PUT uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169007 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:32 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=10886322CE8AF09001B51843743D7B36; Path=/V2.0; HttpOnly] x-dnsme-requestid: [ea9a25b8-97fb-441a-8640-cde1fb5696a1] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['69'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000122221325606366700464160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnsmadeeasy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:33 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=capsulecd.com response: body: {string: !!python/unicode '{"created":1521590400000,"delegateNameServers":["dawn.ns.cloudflare.com.","owen.ns.cloudflare.com."],"folderId":2052,"gtdEnabled":false,"nameServers":[{"fqdn":"ns1.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.45","ipv6":"2600:1806:511:210:1eaf::45"},{"fqdn":"ns2.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.46","ipv6":"2600:1806:511:210:1eaf::46"},{"fqdn":"ns3.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.47","ipv6":"2600:1806:511:210:1eaf::47"},{"fqdn":"ns4.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.48","ipv6":"2600:1806:511:210:1eaf::48"},{"fqdn":"ns5.sandbox.dnsmadeeasy.com","ipv4":"208.80.120.49","ipv6":"2600:1806:511:210:1eaf::49"}],"pendingActionId":0,"updated":1521609889401,"processMulti":false,"activeThirdParties":[],"name":"capsulecd.com","id":878951}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:32 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=DF631A3CB6F3661996CF080922A48398; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [3017e0c1-2a94-4275-b5db-fdbb4b7e3ecf] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['68'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "orig.testfull", "value": "challengetoken", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:33 GMT'] method: POST uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/ response: body: {string: !!python/unicode '{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"orig.testfull","value":"\"challengetoken\"","id":10169008,"type":"TXT"}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:34 GMT'] location: ['http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169008'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=B441B98C67F2545ECEABCAF5494F7E38; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [06718986-02de-4f94-bf33-3de0b6b040ff] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['67'] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:34 GMT'] method: GET uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records?recordName=orig.testfull&type=TXT response: body: {string: !!python/unicode '{"totalPages":1,"totalRecords":1,"data":[{"failover":false,"monitor":false,"sourceId":878951,"dynamicDns":false,"failed":false,"gtdLocation":"DEFAULT","hardLink":false,"ttl":3600,"source":1,"name":"orig.testfull","value":"\"challengetoken\"","id":10169008,"type":"TXT"}],"page":0}'} headers: content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:34 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=A04D0E60D578CD256E5B9D8D4643ED08; Path=/V2.0; HttpOnly] transfer-encoding: [chunked] x-dnsme-requestid: [be8651a1-383c-4391-a2da-dda8110bd5c6] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['66'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"value": "challengetoken", "type": "TXT", "id": 10169008, "name": "updated.testfull", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] x-dnsme-requestDate: ['Wed, 21 Mar 2018 05:25:34 GMT'] method: PUT uri: http://api.sandbox.dnsmadeeasy.com/V2.0/dns/managed/878951/records/10169008 response: body: {string: !!python/unicode ''} headers: content-length: ['0'] content-type: [application/json] date: ['Wed, 21 Mar 2018 05:25:34 GMT'] server: [Apache-Coyote/1.1] set-cookie: [JSESSIONID=580067082D4EFD4262CA6A1597D88BF2; Path=/V2.0; HttpOnly] x-dnsme-requestid: [85883f0a-469f-40b6-9797-0fa78f4f7278] x-dnsme-requestlimit: ['150'] x-dnsme-requestsremaining: ['65'] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/dnspark/000077500000000000000000000000001325606366700216465ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTests/000077500000000000000000000000001325606366700251545ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000037431325606366700334360ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459313735 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":null,"dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1028'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:12:32 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=5e632871099a3be98040b69ec9dc4a53; expires=Wed, 30-Mar-2016 07:12:32 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000016761325606366700423340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/thisisadomainidonotown.com response: body: {string: !!python/unicode '{"status":404,"message":"No records located."}'} headers: connection: [close] content-length: ['46'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:12:33 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=96c53e20c2d7dc3ee210774f86aa168f; expires=Wed, 30-Mar-2016 07:12:33 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] transfer-encoding: [chunked] vary: [Accept-Encoding] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 404, message: ''} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000063431325606366700451070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459313735 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:19:40 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=d97af0bad2bb2bd2e66387a643e544a9; expires=Wed, 30-Mar-2016 07:19:40 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "localhost", "rdata": "127.0.0.1", "rtype": "A"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['58'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","prio":"0","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"}]}'} headers: connection: [close] content-length: ['299'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:22:28 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=9bdb20ade955fb1196246406d14da282; expires=Wed, 30-Mar-2016 07:22:27 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000063571325606366700455570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459313735 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:19:41 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=d2aa45ff8d9a18560bc83abf27d2de4f; expires=Wed, 30-Mar-2016 07:19:41 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "docs", "rdata": "docs.example.com", "rtype": "CNAME"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['64'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","prio":"0","rdata":"docs.example.com","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"}]}'} headers: connection: [close] content-length: ['305'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:22:29 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=472569c302652f148cfcee016beacc5e; expires=Wed, 30-Mar-2016 07:22:28 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000064071325606366700452400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459313735 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:19:41 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=2c1f12420456011604bd97bc8efb0131; expires=Wed, 30-Mar-2016 07:19:41 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "_acme-challenge.fqdn", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['76'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"}]}'} headers: connection: [close] content-length: ['317'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:22:29 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=fbddefaef835cada12d6db4a7bded7f8; expires=Wed, 30-Mar-2016 07:22:29 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000064071325606366700452520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459313735 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:19:41 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=f56cf3c317638d12f3c3f2f43ce332ba; expires=Wed, 30-Mar-2016 07:19:41 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "_acme-challenge.full", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['76'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}]}'} headers: connection: [close] content-length: ['317'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:22:30 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=277d4f179dc870ffa9efe4a2b5fbbd6e; expires=Wed, 30-Mar-2016 07:22:30 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000064071325606366700454070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459313735 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:19:42 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=5e676752833e4a7e3c212bda1c0950cd; expires=Wed, 30-Mar-2016 07:19:42 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "_acme-challenge.test", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['76'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}]}'} headers: connection: [close] content-length: ['317'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:22:30 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=893639f946d4fa762e9121755590a05a; expires=Wed, 30-Mar-2016 07:22:30 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000257531325606366700445500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318159 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:33 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=5d75a23655266052ffd07db910f5360d; expires=Wed, 30-Mar-2016 08:10:33 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "delete.testfilt", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527816","domain_id":"481510","rname":"delete.testfilt.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:36Z"}]}'} headers: connection: [close] content-length: ['312'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:37 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=e0da87b9296c624f0fc2a8a709a2367a; expires=Wed, 30-Mar-2016 08:10:36 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318238 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527816","domain_id":"481510","rname":"delete.testfilt.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:36Z"},{"record_id":"14527818","domain_id":"481510","rname":"delete.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:37Z"},{"record_id":"14527820","domain_id":"481510","rname":"delete.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527822","domain_id":"481510","rname":"delete.testid.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2633'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:41 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=2fd6925c9043b438c75a75b81d71a5ae; expires=Wed, 30-Mar-2016 08:10:41 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.dnspark.com/v2/dns/14527816 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Delete successful. Removed delete.testfilt.capsulecd.com TXT challengetoken."}'} headers: connection: [close] content-length: ['107'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:44 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=775c4071c748710bf9122fbd1104baf0; expires=Wed, 30-Mar-2016 08:10:44 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318248 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:48Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:50 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=cb516ebb6e16f80bdbc7d9762c13267f; expires=Wed, 30-Mar-2016 08:10:50 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000257531325606366700476130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318159 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:34 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=30a2c2c57968d82fb106a88095df1e89; expires=Wed, 30-Mar-2016 08:10:34 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "delete.testfqdn", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527818","domain_id":"481510","rname":"delete.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:37Z"}]}'} headers: connection: [close] content-length: ['312'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:37 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=47c5097eeab51f3ff0d74702df36192d; expires=Wed, 30-Mar-2016 08:10:37 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318238 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527816","domain_id":"481510","rname":"delete.testfilt.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:36Z"},{"record_id":"14527818","domain_id":"481510","rname":"delete.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:37Z"},{"record_id":"14527820","domain_id":"481510","rname":"delete.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527822","domain_id":"481510","rname":"delete.testid.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2633'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:41 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=ef931a7e8358b52a3811d831fa15bd23; expires=Wed, 30-Mar-2016 08:10:41 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.dnspark.com/v2/dns/14527818 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Delete successful. Removed delete.testfqdn.capsulecd.com TXT challengetoken."}'} headers: connection: [close] content-length: ['107'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:45 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=624c6a65876bd1f37e9b334d046f3d80; expires=Wed, 30-Mar-2016 08:10:45 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318248 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:48Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:51 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=703769b6462c27f7b1e25856057de5ec; expires=Wed, 30-Mar-2016 08:10:50 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000257531325606366700476250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318159 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:34 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=254f36011a104c6ec052c9e1134f25a5; expires=Wed, 30-Mar-2016 08:10:34 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "delete.testfull", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527820","domain_id":"481510","rname":"delete.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"}]}'} headers: connection: [close] content-length: ['312'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:38 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=6c89e69b18bfc46d1306b320dcc3f19d; expires=Wed, 30-Mar-2016 08:10:38 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318238 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527816","domain_id":"481510","rname":"delete.testfilt.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:36Z"},{"record_id":"14527818","domain_id":"481510","rname":"delete.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:37Z"},{"record_id":"14527820","domain_id":"481510","rname":"delete.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527822","domain_id":"481510","rname":"delete.testid.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2633'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:42 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=02ccba61f66a72a34b0dbb7e17ee671d; expires=Wed, 30-Mar-2016 08:10:42 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.dnspark.com/v2/dns/14527820 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Delete successful. Removed delete.testfull.capsulecd.com TXT challengetoken."}'} headers: connection: [close] content-length: ['107'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:48 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=2799ad7509b57098cfba183f4abd21c1; expires=Wed, 30-Mar-2016 08:10:47 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318248 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:48Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:51 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=f2dbc7b47f4d208682474cf143bc49fb; expires=Wed, 30-Mar-2016 08:10:51 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000257451325606366700454060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318159 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:34 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=1e07567b229fd60f8aef09d2dae12cd2; expires=Wed, 30-Mar-2016 08:10:34 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "delete.testid", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['69'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527822","domain_id":"481510","rname":"delete.testid.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"}]}'} headers: connection: [close] content-length: ['310'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:38 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=ad2471613b269aa1dd18f4edc231e307; expires=Wed, 30-Mar-2016 08:10:38 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318238 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527816","domain_id":"481510","rname":"delete.testfilt.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:36Z"},{"record_id":"14527818","domain_id":"481510","rname":"delete.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:37Z"},{"record_id":"14527820","domain_id":"481510","rname":"delete.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527822","domain_id":"481510","rname":"delete.testid.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:10:38Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2633'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:42 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=e9aefeac164a4046bbaf0647cfae4577; expires=Wed, 30-Mar-2016 08:10:42 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: https://api.dnspark.com/v2/dns/14527822 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Delete successful. Removed delete.testid.capsulecd.com TXT challengetoken."}'} headers: connection: [close] content-length: ['105'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:48 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=5bf4dae463357bcdf75e8e7c8b8baf4e; expires=Wed, 30-Mar-2016 08:10:48 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318248 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:10:48Z"},{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"},{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"},{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1719'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:10:51 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=b6c257afcf77b961074e54b4b40683bd; expires=Wed, 30-Mar-2016 08:10:51 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000201241325606366700470220ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315350 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2190'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:45 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=7241b1be76317b54fb0cb0c3b2ffd443; expires=Wed, 30-Mar-2016 07:25:45 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "random.fqdntest", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527792","domain_id":"481510","rname":"random.fqdntest.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:49Z"}]}'} headers: connection: [close] content-length: ['312'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:49 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=261026ab79d8042e43e4c95dc15953b5; expires=Wed, 30-Mar-2016 07:25:49 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315550 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527792","domain_id":"481510","rname":"random.fqdntest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:49Z"},{"record_id":"14527794","domain_id":"481510","rname":"random.fulltest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527796","domain_id":"481510","rname":"random.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2873'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:52 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=0f1e48f1d6310e47159d7ed5555b4961; expires=Wed, 30-Mar-2016 07:25:52 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000201241325606366700470340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315350 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2190'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:45 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=c90930fb52542511bba9680d79a89793; expires=Wed, 30-Mar-2016 07:25:45 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "random.fulltest", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527794","domain_id":"481510","rname":"random.fulltest.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"}]}'} headers: connection: [close] content-length: ['312'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:50 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=0ef0577949526e76ef17f85f4e14c60c; expires=Wed, 30-Mar-2016 07:25:50 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315550 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527792","domain_id":"481510","rname":"random.fqdntest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:49Z"},{"record_id":"14527794","domain_id":"481510","rname":"random.fulltest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527796","domain_id":"481510","rname":"random.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2873'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:53 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=7862ce2db1566957ca85c47fe0231a11; expires=Wed, 30-Mar-2016 07:25:53 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000017631325606366700465120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":false,"error":"Not authorized"}'} headers: connection: [close] content-length: ['41'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:25:59 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=e93b1b5c7216e03930fb809742a32bd0; expires=Tue, 20-Mar-2018 13:25:59 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] transfer-encoding: [chunked] vary: [Accept-Encoding] www-authenticate: [Basic realm="DNS Park API"] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 401, message: ''} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000201141325606366700460110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315350 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2190'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:46 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=11d8040db6fc42349e7a6365c0deb2b0; expires=Wed, 30-Mar-2016 07:25:46 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "random.test", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['67'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527796","domain_id":"481510","rname":"random.test.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"}]}'} headers: connection: [close] content-length: ['308'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:50 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=4900234e804fe6d9d5b028755317e9c5; expires=Wed, 30-Mar-2016 07:25:50 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315550 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527792","domain_id":"481510","rname":"random.fqdntest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:49Z"},{"record_id":"14527794","domain_id":"481510","rname":"random.fulltest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527796","domain_id":"481510","rname":"random.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2873'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:53 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=7530407981d7ec9fe6153f2579e5e70a; expires=Wed, 30-Mar-2016 07:25:53 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000155021325606366700451600ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315350 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2190'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:46 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=d434b11ff2a9bb8bcfaf74a8c88d7f3e; expires=Wed, 30-Mar-2016 07:25:46 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459315550 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527784","domain_id":"481510","rname":"docs.capsulecd.com","ttl":"3600","rtype":"CNAME","rdata":"docs.example.com","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:28Z"},{"record_id":"14527782","domain_id":"481510","rname":"localhost.capsulecd.com","ttl":"3600","rtype":"A","rdata":"127.0.0.1","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:27Z"},{"record_id":"14527792","domain_id":"481510","rname":"random.fqdntest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:49Z"},{"record_id":"14527794","domain_id":"481510","rname":"random.fulltest.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527796","domain_id":"481510","rname":"random.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:25:50Z"},{"record_id":"14527786","domain_id":"481510","rname":"_acme-challenge.fqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:29Z"},{"record_id":"14527788","domain_id":"481510","rname":"_acme-challenge.full.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"},{"record_id":"14527790","domain_id":"481510","rname":"_acme-challenge.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T05:22:30Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459313735","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['2873'] content-type: [application/json] date: ['Wed, 30 Mar 2016 05:25:50 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=954bff8d22657aca1237c655f941d22b; expires=Wed, 30-Mar-2016 07:25:50 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000161371325606366700425170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318138 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:08:58Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:03 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=abb14882b193fa75de9d6566e3a435c7; expires=Wed, 30-Mar-2016 08:09:03 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "orig.test", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['65'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527810","domain_id":"481510","rname":"orig.test.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"}]}'} headers: connection: [close] content-length: ['306'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:07 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=8c4cd9c89151f242e8d4ebee23b9289a; expires=Wed, 30-Mar-2016 08:09:07 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318148 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:09:08Z"},{"record_id":"14527810","domain_id":"481510","rname":"orig.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"},{"record_id":"14527812","domain_id":"481510","rname":"orig.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"},{"record_id":"14527814","domain_id":"481510","rname":"orig.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:08Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1713'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:15 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=af59339f735bd8313d7a91e8ca1f29a4; expires=Wed, 30-Mar-2016 08:09:15 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "updated.test", "rtype": "TXT", "rdata": "challengetoken", "ttl": 300}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: https://api.dnspark.com/v2/dns/14527810 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Update successful.","records":[{"record_id":"14527810","domain_id":"481510","rname":"updated.test.capsulecd.com","ttl":"300","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:18Z"}]}'} headers: connection: [close] content-length: ['311'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:18 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=71fccca2e7e184ad94c09290df7032e9; expires=Wed, 30-Mar-2016 08:09:18 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000161571325606366700455640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318138 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:08:58Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:04 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=764006ddfa1df5503db1f8ce6dcd4748; expires=Wed, 30-Mar-2016 08:09:04 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "orig.testfqdn", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['69'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527812","domain_id":"481510","rname":"orig.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"}]}'} headers: connection: [close] content-length: ['310'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:07 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=63e45f6252a6b1a220c874e36abc2d6e; expires=Wed, 30-Mar-2016 08:09:07 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318148 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:09:08Z"},{"record_id":"14527810","domain_id":"481510","rname":"orig.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"},{"record_id":"14527812","domain_id":"481510","rname":"orig.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"},{"record_id":"14527814","domain_id":"481510","rname":"orig.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:08Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1713'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:15 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=fbeb06d3bfb4775f13a1f1a7c07f5744; expires=Wed, 30-Mar-2016 08:09:15 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "updated.testfqdn", "rtype": "TXT", "rdata": "challengetoken", "ttl": 300}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: https://api.dnspark.com/v2/dns/14527812 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Update successful.","records":[{"record_id":"14527812","domain_id":"481510","rname":"updated.testfqdn.capsulecd.com","ttl":"300","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}]}'} headers: connection: [close] content-length: ['315'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:19 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=d2bd11f1fe4a904bfc8bc1fe96c4d8da; expires=Wed, 30-Mar-2016 08:09:19 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000161571325606366700455760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318138 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:08:58Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1036'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:04 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=8a560859411c8c58f3b2f975f1dc03fd; expires=Wed, 30-Mar-2016 08:09:04 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "orig.testfull", "rdata": "challengetoken", "rtype": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['69'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Record created.","records":[{"record_id":"14527814","domain_id":"481510","rname":"orig.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:08Z"}]}'} headers: connection: [close] content-length: ['310'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:08 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=03ae81d5aaaaa785c0754e808d1c5e96; expires=Wed, 30-Mar-2016 08:09:08 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.dnspark.com/v2/dns/481510 response: body: {string: !!python/unicode '{"status":200,"message":"OK","records":[{"record_id":"14527504","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns1.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527506","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"NS","rdata":"fns2.dnspark.net","readonly":"Y","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T04:55:35Z"},{"record_id":"14527508","domain_id":"481510","rname":"capsulecd.com","ttl":"3600","rtype":"SOA","rdata":"fns1.dnspark.net hostmaster.dnspark.com 1459318148 14400 7200 1209600 3600","readonly":"N","active":"Y","ordername":null,"auth":"1","last_update":"2016-03-30T06:09:08Z"},{"record_id":"14527810","domain_id":"481510","rname":"orig.test.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"},{"record_id":"14527812","domain_id":"481510","rname":"orig.testfqdn.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:07Z"},{"record_id":"14527814","domain_id":"481510","rname":"orig.testfull.capsulecd.com","ttl":"3600","rtype":"TXT","rdata":"challengetoken","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:08Z"}],"additional":{"domain_id":"481510","date_added":"2016-03-30T04:55:35Z","notified_serial":"1459317091","dns_type":"MASTER","tsig_on":"Y","tsig_key_name":"testtesttest-capsulecd.com-dnspark","tsig_key_value":"NEfgx\/WTMyRVUg0\/ROKWZkyoeKdiLXkQGd6FsnnI27Y=","tsig_key_algorithm":"HMAC-MD5"}}'} headers: connection: [close] content-length: ['1713'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:16 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=4a758d360ba81d3d60f21918ea2826e6; expires=Wed, 30-Mar-2016 08:09:16 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} - request: body: '{"rname": "updated.testfull", "rtype": "TXT", "rdata": "challengetoken", "ttl": 300}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: https://api.dnspark.com/v2/dns/14527814 response: body: {string: !!python/unicode '{"status":200,"message":"OK. Update successful.","records":[{"record_id":"14527814","domain_id":"481510","rname":"updated.testfull.capsulecd.com","ttl":"300","rtype":"TXT","prio":"0","rdata":"challengetoken","dynamic":"N","readonly":"N","active":"Y","ordername":"","auth":"0","last_update":"2016-03-30T06:09:19Z"}]}'} headers: connection: [close] content-length: ['315'] content-type: [application/json] date: ['Wed, 30 Mar 2016 06:09:19 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=58c650cd0a7cf7e5de5743c6070043b5; expires=Wed, 30-Mar-2016 08:09:19 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] strict-transport-security: [max-age=63072000] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [DENY] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 200, message: ''} version: 1 test_Provider_when_creating_record_set.yaml000066400000000000000000000017631325606366700357270ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":false,"error":"Not authorized"}'} headers: connection: [close] content-length: ['41'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:26:01 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=50ff6d1911c1b4b3cd85611c22a7e03e; expires=Tue, 20-Mar-2018 13:26:01 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] transfer-encoding: [chunked] vary: [Accept-Encoding] www-authenticate: [Basic realm="DNS Park API"] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 401, message: ''} version: 1 test_Provider_when_deleting_record_in_record_set_by_content_should_leave_others_untouched.yaml000066400000000000000000000017631325606366700503720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":false,"error":"Not authorized"}'} headers: connection: [close] content-length: ['41'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:26:03 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=9c574dc920b17939702664ff545c7ef8; expires=Tue, 20-Mar-2018 13:26:03 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] transfer-encoding: [chunked] vary: [Accept-Encoding] www-authenticate: [Basic realm="DNS Park API"] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 401, message: ''} version: 1 test_Provider_when_deleting_record_set_should_remove_all_matching.yaml000066400000000000000000000017631325606366700433630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":false,"error":"Not authorized"}'} headers: connection: [close] content-length: ['41'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:26:05 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=a4990ec0e311e3c73632bd3a4e65e8ad; expires=Tue, 20-Mar-2018 13:26:05 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] transfer-encoding: [chunked] vary: [Accept-Encoding] www-authenticate: [Basic realm="DNS Park API"] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 401, message: ''} version: 1 test_Provider_when_duplicate_create_record_should_be_noop.yaml000066400000000000000000000017631325606366700416340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":false,"error":"Not authorized"}'} headers: connection: [close] content-length: ['41'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:26:08 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=d92fa728150faaaeab06608819f0f728; expires=Tue, 20-Mar-2018 13:26:08 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] transfer-encoding: [chunked] vary: [Accept-Encoding] www-authenticate: [Basic realm="DNS Park API"] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 401, message: ''} version: 1 test_Provider_when_listing_record_set.yaml000066400000000000000000000017631325606366700356040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspark/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.dnspark.com/v2/dns/capsulecd.com response: body: {string: !!python/unicode '{"status":false,"error":"Not authorized"}'} headers: connection: [close] content-length: ['41'] content-type: [application/json] date: ['Tue, 20 Mar 2018 11:26:10 GMT'] server: [nginx] set-cookie: ['dpapicsrf_cookie=28694c261a9bbed3233114de41ee9aea; expires=Tue, 20-Mar-2018 13:26:10 GMT; Max-Age=7200; path=/; domain=.dnspark.com'] transfer-encoding: [chunked] vary: [Accept-Encoding] www-authenticate: [Basic realm="DNS Park API"] x-powered-by: [PHP/5.5.30-1+deb.sury.org~precise+1] status: {code: 401, message: ''} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/dnspod/000077500000000000000000000000001325606366700214735ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTests/000077500000000000000000000000001325606366700250015ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000032621325606366700332570ustar00rootroot00000000000000interactions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:55:53"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:55:53 GMT'] etag: [W/"d5ec33841b9f61ef05564f5fb1b2b3b0"] expires: ['Tue, 10 May 2016 20:55:53 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=ah9o7o0k2n76dur85ggoph81s0; path=/; secure; HttpOnly, '_xsrf=a840c455fb5ffec2ce2a19c19d846b69%7C1462906553; expires=Tue, 17-May-2016 18:55:53 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000023011325606366700421430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=thisisadomainidonotown.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"13","message":"Domain is not exists","created_at":"2016-05-11 02:55:55"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['92'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:55:55 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=6b5u0in5neufseuifqfklepc84; path=/; secure; HttpOnly, '_xsrf=65e6c6f478896c8f4e474ca5078bc8b2%7C1462906555; expires=Tue, 17-May-2016 18:55:55 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000060071325606366700447310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:56:56"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:56:56 GMT'] etag: [W/"0a8c4c35f8394ba137cc45fddc1fcd66"] expires: ['Tue, 10 May 2016 20:56:56 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=1je3novkv86plsue16e01pe135; path=/; secure; HttpOnly, '_xsrf=ead1694c6e7afa6e1a1fba1d4730ccb4%7C1462906616; expires=Tue, 17-May-2016 18:56:56 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=127.0.0.1&record_type=A&sub_domain=localhost&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['165'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:15"},"record":{"id":"189592919","name":"localhost","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['178'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:15 GMT'] etag: [W/"87e3b1f49d0d2b7f0871dfd5feedf840"] expires: ['Tue, 10 May 2016 20:57:15 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=k63vpugmojpke2mfr1ko4pv083; path=/; secure; HttpOnly, '_xsrf=60942dbea5e21165feae8f105b164ed7%7C1462906635; expires=Tue, 17-May-2016 18:57:15 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000060101325606366700453660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:56:57"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:56:57 GMT'] etag: [W/"61e9e2036d96b458f1f0e094561b34fa"] expires: ['Tue, 10 May 2016 20:56:57 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=vkkep8he3n5q8pud7ijf2hebq6; path=/; secure; HttpOnly, '_xsrf=828cb15bdb9689e5430ac926c2505973%7C1462906617; expires=Tue, 17-May-2016 18:56:57 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=docs.example.com&record_type=CNAME&sub_domain=docs&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['171'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:21"},"record":{"id":"189592932","name":"docs","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['173'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:21 GMT'] etag: [W/"7aeb77c78df9bd1b0bb480acbba1f532"] expires: ['Tue, 10 May 2016 20:57:21 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=kqvg41cigeosbsaaiatrg2qv50; path=/; secure; HttpOnly, '_xsrf=b634a0101b5b626d6da58b473ce8ae3e%7C1462906641; expires=Tue, 17-May-2016 18:57:21 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000060441325606366700450620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:01"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:01 GMT'] etag: [W/"eca2f09fc69f27caafefd65548156669"] expires: ['Tue, 10 May 2016 20:57:01 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=eg07a1r74lbvik1g0tmptdpen2; path=/; secure; HttpOnly, '_xsrf=786ea11e46c66be47f0dad6fca020f1f%7C1462906621; expires=Tue, 17-May-2016 18:57:01 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=_acme-challenge.fqdn&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['183'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:22"},"record":{"id":"189592939","name":"_acme-challenge.fqdn","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['189'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:22 GMT'] etag: [W/"ae21f11b379c5cf840276fc4b46a273b"] expires: ['Tue, 10 May 2016 20:57:22 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=073ve7rhvbhv3is0g5skeh6ku4; path=/; secure; HttpOnly, '_xsrf=021e58e7c35fda3a4b6aee9a9d40ab99%7C1462906642; expires=Tue, 17-May-2016 18:57:22 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000060441325606366700450740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:03"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:03 GMT'] etag: [W/"28c8e085fe9542907818a4e2e500be5c"] expires: ['Tue, 10 May 2016 20:57:03 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=86ldetq8h0av0po3h19c7p3dh0; path=/; secure; HttpOnly, '_xsrf=ae052c94232c037d34de214e8fb1ec77%7C1462906623; expires=Tue, 17-May-2016 18:57:03 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=_acme-challenge.full&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['183'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:23"},"record":{"id":"189592942","name":"_acme-challenge.full","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['189'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:24 GMT'] etag: [W/"f233525200dd7c84022d2dcd2f33e5b1"] expires: ['Tue, 10 May 2016 20:57:24 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=q825mvgq6suu66k1uldmn1hcb4; path=/; secure; HttpOnly, '_xsrf=8d8c091b6b116bc3e39fd09826d000b4%7C1462906643; expires=Tue, 17-May-2016 18:57:23 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000060441325606366700452310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:05"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:05 GMT'] etag: [W/"e3218394613f4b47e51d975dfad0855e"] expires: ['Tue, 10 May 2016 20:57:05 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=1lkehae9j9osrl5gc9t4g9dqg5; path=/; secure; HttpOnly, '_xsrf=4e564384c1c04ff35071fc5e9a68d095%7C1462906625; expires=Tue, 17-May-2016 18:57:05 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=_acme-challenge.test&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['183'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:57:26"},"record":{"id":"189592945","name":"_acme-challenge.test","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['189'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:57:26 GMT'] etag: [W/"5183c1b17d96a46ce69519542fa1775f"] expires: ['Tue, 10 May 2016 20:57:26 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=rt3iptflbt4nkinpe0nfa91ao3; path=/; secure; HttpOnly, '_xsrf=b0829771d11e63a0e1c0eef8171840f3%7C1462906646; expires=Tue, 17-May-2016 18:57:26 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000203571325606366700443700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:12"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:12 GMT'] etag: [W/"0525d02a6e6a817266886ac8945c3526"] expires: ['Tue, 10 May 2016 21:30:12 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=45rp592poeds9844londm2g9o0; path=/; secure; HttpOnly, '_xsrf=532b32b81c0d037052d6c09e1e779321%7C1462908612; expires=Tue, 17-May-2016 19:30:12 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=delete.testfilt&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:19"},"record":{"id":"189596266","name":"delete.testfilt","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['184'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:19 GMT'] etag: [W/"a24f0be2b86161948ddc26f5b38a866c"] expires: ['Tue, 10 May 2016 21:30:19 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=vdjfru32arav95rtfn4bi0hud7; path=/; secure; HttpOnly, '_xsrf=587a19663652193d78df0741b5b26243%7C1462908619; expires=Tue, 17-May-2016 19:30:19 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:22"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"3","record_total":"3"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189596266","name":"delete.testfilt","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:30:19","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['1058'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:22 GMT'] etag: [W/"4932d4589dfaa3abfaceb91257e4098c"] expires: ['Tue, 10 May 2016 21:30:22 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=t5f6m35pcfmtvoa5k3hhljbsh3; path=/; secure; HttpOnly, '_xsrf=f05e68b98cb5b8467d98cb1ea9b91da7%7C1462908622; expires=Tue, 17-May-2016 19:30:22 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_id=189596266&domain_id=38280687&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Remove response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:26"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['98'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:26 GMT'] etag: [W/"ffa0d881fd623df76f0e82cc9b2dcee2"] expires: ['Tue, 10 May 2016 21:30:26 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=c0k055f57e8hscdv2402fd28h6; path=/; secure; HttpOnly, '_xsrf=efc721d8a7e325f4ff55372e49037990%7C1462908626; expires=Tue, 17-May-2016 19:30:26 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:29"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"2","record_total":"2"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['804'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:29 GMT'] etag: [W/"7d6777f3c246d69c5ff6e51274f17079"] expires: ['Tue, 10 May 2016 21:30:29 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=e1qbg0jbemj55j07ih11a2kk94; path=/; secure; HttpOnly, '_xsrf=7d90bb1c55225f94f31ea9922686e8dc%7C1462908629; expires=Tue, 17-May-2016 19:30:29 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000207651325606366700474360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:42"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:42 GMT'] etag: [W/"15d6db9d42e03179b8c6b5c88d612927"] expires: ['Tue, 10 May 2016 21:30:42 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=6mplhtlcfeiffmls5tcdqc6pv4; path=/; secure; HttpOnly, '_xsrf=22d0c06c9694004fb89b537e8c733a9c%7C1462908642; expires=Tue, 17-May-2016 19:30:42 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=delete.testfqdn&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:50"},"record":{"id":"189596336","name":"delete.testfqdn","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['184'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:50 GMT'] etag: [W/"623036b58ba362a6e0b9e57f2775785c"] expires: ['Tue, 10 May 2016 21:30:50 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=umhrnb7sm6f5ihq78682l6jc14; path=/; secure; HttpOnly, '_xsrf=703cc1f8e788bc78410cff01f4ac96eb%7C1462908650; expires=Tue, 17-May-2016 19:30:50 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:31:00"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"4","record_total":"4"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189596336","name":"delete.testfqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:30:50","use_aqb":"no"},{"id":"189596346","name":"delete.testfull","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:30:53","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['1312'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:31:00 GMT'] etag: [W/"d9ab9cdbc516b345399fcecbb4199869"] expires: ['Tue, 10 May 2016 21:31:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=ihvmql3hjuesvmnphhluvv0gd1; path=/; secure; HttpOnly, '_xsrf=ad1b7171c3f0461be33974726cae456f%7C1462908660; expires=Tue, 17-May-2016 19:31:00 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_id=189596336&domain_id=38280687&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Remove response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:31:32"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['98'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:31:32 GMT'] etag: [W/"59aefb2ffb78ca7e7d25739cfb556a87"] expires: ['Tue, 10 May 2016 21:31:32 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=jkjur0oeqccpqg4cn94ghmp1m7; path=/; secure; HttpOnly, '_xsrf=abd64f2bcc940c06c76e4f7e7cbdfe4f%7C1462908692; expires=Tue, 17-May-2016 19:31:32 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:31:38"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"2","record_total":"2"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['804'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:31:38 GMT'] etag: [W/"aa433cd5c822c5fcc282eb5be1704e4a"] expires: ['Tue, 10 May 2016 21:31:38 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=lse69o5q9jflsuu9n6ocp5ijg0; path=/; secure; HttpOnly, '_xsrf=053380826bd29b669b3193153c047da1%7C1462908698; expires=Tue, 17-May-2016 19:31:38 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000207651325606366700474500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:47"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:47 GMT'] etag: [W/"1128f9ce40f379849261919455824f35"] expires: ['Tue, 10 May 2016 21:30:47 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=f1s1obq51s6a3055143pgsl8u0; path=/; secure; HttpOnly, '_xsrf=acdf3049b2ed4116276442017a3ec3e2%7C1462908647; expires=Tue, 17-May-2016 19:30:47 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=delete.testfull&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:30:53"},"record":{"id":"189596346","name":"delete.testfull","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['184'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:30:53 GMT'] etag: [W/"c2cf7f50e43b4276575a31494f88362a"] expires: ['Tue, 10 May 2016 21:30:53 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=u34081st6ff8cpkbf1g0p5sgm4; path=/; secure; HttpOnly, '_xsrf=34db1e074bfa9a4373e69ea7bdc6fdb9%7C1462908653; expires=Tue, 17-May-2016 19:30:53 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:31:12"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"4","record_total":"4"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189596336","name":"delete.testfqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:30:50","use_aqb":"no"},{"id":"189596346","name":"delete.testfull","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:30:53","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['1312'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:31:12 GMT'] etag: [W/"23fa4fb7b9d9c73054b4e9c9bebe1d94"] expires: ['Tue, 10 May 2016 21:31:12 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=krcjknnvuqbdo1sgemss6ice27; path=/; secure; HttpOnly, '_xsrf=90cd343dc9d58a33bbbcecd5d758b5b3%7C1462908672; expires=Tue, 17-May-2016 19:31:12 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_id=189596346&domain_id=38280687&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Remove response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:31:34"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['98'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:31:34 GMT'] etag: [W/"effdb86712190f3e52cb6c19bb781ec6"] expires: ['Tue, 10 May 2016 21:31:34 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=1mv35h5g5bgecqb88oolep2cf3; path=/; secure; HttpOnly, '_xsrf=c3ebaabbea2268e1dc495ca672f1c698%7C1462908694; expires=Tue, 17-May-2016 19:31:34 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:31:39"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"2","record_total":"2"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['804'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:31:39 GMT'] etag: [W/"35d878f02112b9489ed751fa2fb10ae4"] expires: ['Tue, 10 May 2016 21:31:39 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=p7fqghnpdlnfa6lenj4kgrs230; path=/; secure; HttpOnly, '_xsrf=1733c5432484e486a6dc45c604986346%7C1462908699; expires=Tue, 17-May-2016 19:31:39 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000203511325606366700452170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:26:54"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"2","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:26:54 GMT'] etag: [W/"7ce934e7eaef46c5e5cd2e57bc05b816"] expires: ['Tue, 10 May 2016 21:26:54 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=r35rktbpfc6hf6gnghgv0ea3h2; path=/; secure; HttpOnly, '_xsrf=24613fec6513aed49b57162f3ea5623f%7C1462908414; expires=Tue, 17-May-2016 19:26:54 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=delete.testid&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['176'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:27:11"},"record":{"id":"189595901","name":"delete.testid","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['182'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:27:11 GMT'] etag: [W/"2c85edd3a8f30a703ccc76fa32f05111"] expires: ['Tue, 10 May 2016 21:27:11 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=b75i0b7rk4rfbau0clq3n7s5j6; path=/; secure; HttpOnly, '_xsrf=1837b5bf99c74526ce5e4da9cba7a7c7%7C1462908431; expires=Tue, 17-May-2016 19:27:11 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:27:32"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"3","record_total":"3"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189595901","name":"delete.testid","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:27:11","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['1056'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:27:32 GMT'] etag: [W/"822276a17b46f63d3efa1b57b4004a80"] expires: ['Tue, 10 May 2016 21:27:32 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=38hg17ns70t7l993elnbnsu566; path=/; secure; HttpOnly, '_xsrf=e6fd911a5e9ef66e4400c89a656735a3%7C1462908452; expires=Tue, 17-May-2016 19:27:32 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_id=189595901&domain_id=38280687&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Remove response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:28:14"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['98'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:28:14 GMT'] etag: [W/"d5ef23ff7759739fb401b0e3a6d98f46"] expires: ['Tue, 10 May 2016 21:28:14 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=cprppmd5aa2gburovlq2rfaoq3; path=/; secure; HttpOnly, '_xsrf=ad33bb0d1b9e41e1891f8461c9ecae2b%7C1462908494; expires=Tue, 17-May-2016 19:28:14 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:28:47"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"2","record_total":"2"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['804'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:28:47 GMT'] etag: [W/"e787966395c3cea59f360ec79ffcbfa8"] expires: ['Tue, 10 May 2016 21:28:47 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=rko25p8dievmhhepr3b95c2nv2; path=/; secure; HttpOnly, '_xsrf=f27cf1c293db8c11577314d0ba4bc413%7C1462908527; expires=Tue, 17-May-2016 19:28:47 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000157111325606366700466550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:15"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"7","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:15 GMT'] etag: [W/"c61e9b1a297f34cc95b0b810cea5bb73"] expires: ['Tue, 10 May 2016 20:59:15 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=jkasi9gmg5h8a94m29thehgvt4; path=/; secure; HttpOnly, '_xsrf=5e57accef7a41b1f69cf6b54d016125e%7C1462906755; expires=Tue, 17-May-2016 18:59:15 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=random.fqdntest&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:24"},"record":{"id":"189593133","name":"random.fqdntest","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['184'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:24 GMT'] etag: [W/"e8112b682ffb9d72f71954dbe2f7d29b"] expires: ['Tue, 10 May 2016 20:59:24 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=nt8lolnk7gkpie3lfkr635rfi5; path=/; secure; HttpOnly, '_xsrf=d76267cb938074560c7cbc30e97e9e39%7C1462906764; expires=Tue, 17-May-2016 18:59:24 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:32"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"10","record_total":"10"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189592932","name":"docs","line":"\u9ed8\u8ba4","type":"CNAME","ttl":"600","value":"docs.example.com.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:21","use_aqb":"no"},{"id":"189592919","name":"localhost","line":"\u9ed8\u8ba4","type":"A","ttl":"600","value":"127.0.0.1","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:15","use_aqb":"no"},{"id":"189593133","name":"random.fqdntest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:24","use_aqb":"no"},{"id":"189593136","name":"random.fulltest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:26","use_aqb":"no"},{"id":"189593143","name":"random.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:27","use_aqb":"no"},{"id":"189592939","name":"_acme-challenge.fqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:22","use_aqb":"no"},{"id":"189592942","name":"_acme-challenge.full","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:23","use_aqb":"no"},{"id":"189592945","name":"_acme-challenge.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:26","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2830'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:32 GMT'] etag: [W/"39619719ebf02b2aff191222318e4082"] expires: ['Tue, 10 May 2016 20:59:32 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=jo4totuoaml8md03t6qd1jr6b2; path=/; secure; HttpOnly, '_xsrf=60de379dd00e582004defd6cbf88e617%7C1462906772; expires=Tue, 17-May-2016 18:59:32 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000157111325606366700466670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:17"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"7","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:17 GMT'] etag: [W/"f739ee3f19e86090fa0c27c3f89d9397"] expires: ['Tue, 10 May 2016 20:59:17 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=pkuog4vuenveh91sn7idmqdid4; path=/; secure; HttpOnly, '_xsrf=f4ef7b764f2a46d1c19f1b467c6d0261%7C1462906757; expires=Tue, 17-May-2016 18:59:17 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=random.fulltest&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:26"},"record":{"id":"189593136","name":"random.fulltest","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['184'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:26 GMT'] etag: [W/"abe51a1814cb46ddcecfb12d1beeb828"] expires: ['Tue, 10 May 2016 20:59:26 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=2ff7u35v0i6bpi24opdr91pnn7; path=/; secure; HttpOnly, '_xsrf=ae3b03f8a514ba97dc3d65e8782a2e55%7C1462906766; expires=Tue, 17-May-2016 18:59:26 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:33"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"10","record_total":"10"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189592932","name":"docs","line":"\u9ed8\u8ba4","type":"CNAME","ttl":"600","value":"docs.example.com.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:21","use_aqb":"no"},{"id":"189592919","name":"localhost","line":"\u9ed8\u8ba4","type":"A","ttl":"600","value":"127.0.0.1","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:15","use_aqb":"no"},{"id":"189593133","name":"random.fqdntest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:24","use_aqb":"no"},{"id":"189593136","name":"random.fulltest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:26","use_aqb":"no"},{"id":"189593143","name":"random.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:27","use_aqb":"no"},{"id":"189592939","name":"_acme-challenge.fqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:22","use_aqb":"no"},{"id":"189592942","name":"_acme-challenge.full","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:23","use_aqb":"no"},{"id":"189592945","name":"_acme-challenge.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:26","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2830'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:33 GMT'] etag: [W/"33a8f00ab33b34558e9a42227bf98c34"] expires: ['Tue, 10 May 2016 20:59:33 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=qdhq6s4pn7r92epg1oorumsqg1; path=/; secure; HttpOnly, '_xsrf=1f5e24eb9c577e80d7aa9363de27f3c6%7C1462906773; expires=Tue, 17-May-2016 18:59:33 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000023231325606366700463300ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: !!python/unicode domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['95'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"10002","message":"The login token ID is invalid","created_at":"2018-03-20 19:26:13"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['104'] content-type: [text/html;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:26:13 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=fcg4dhirvfrvsl02uld112m072; path=/; secure; HttpOnly, '_xsrf=232c19d3b1839f7323ffe39ad0168bfe%7C1521545173; expires=Tue, 27-Mar-2018 11:26:13 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000157011325606366700456440ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:18"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"7","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:18 GMT'] etag: [W/"0de202cdf6c8a71d4d860c24315ceedd"] expires: ['Tue, 10 May 2016 20:59:18 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=0nb1dafd55801pupgn0mo3drl7; path=/; secure; HttpOnly, '_xsrf=6ad3af0cf77282fbc832e80d7360297a%7C1462906758; expires=Tue, 17-May-2016 18:59:18 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=random.test&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['174'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:27"},"record":{"id":"189593143","name":"random.test","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['180'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:27 GMT'] etag: [W/"1c992f52c77195e266bbaffafeb9571b"] expires: ['Tue, 10 May 2016 20:59:27 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=sha5innjg1nofvqf8njoncgqp1; path=/; secure; HttpOnly, '_xsrf=5b88dd48ced1730575bb8931d6ad5efd%7C1462906767; expires=Tue, 17-May-2016 18:59:27 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:35"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"10","record_total":"10"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189592932","name":"docs","line":"\u9ed8\u8ba4","type":"CNAME","ttl":"600","value":"docs.example.com.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:21","use_aqb":"no"},{"id":"189592919","name":"localhost","line":"\u9ed8\u8ba4","type":"A","ttl":"600","value":"127.0.0.1","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:15","use_aqb":"no"},{"id":"189593133","name":"random.fqdntest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:24","use_aqb":"no"},{"id":"189593136","name":"random.fulltest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:26","use_aqb":"no"},{"id":"189593143","name":"random.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:27","use_aqb":"no"},{"id":"189592939","name":"_acme-challenge.fqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:22","use_aqb":"no"},{"id":"189592942","name":"_acme-challenge.full","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:23","use_aqb":"no"},{"id":"189592945","name":"_acme-challenge.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:26","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2830'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:35 GMT'] etag: [W/"f8ef4b6bc857e95611403c556091c67d"] expires: ['Tue, 10 May 2016 20:59:35 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=kjl35bqcqgvvtkmpl8h0ec4de5; path=/; secure; HttpOnly, '_xsrf=2ee557a17eccd304314c81e84ef08870%7C1462906775; expires=Tue, 17-May-2016 18:59:35 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000131411325606366700450020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:19"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"7","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['542'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:19 GMT'] etag: [W/"7d709ca8ae7804a37388e9b8b8be7cb7"] expires: ['Tue, 10 May 2016 20:59:19 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=e6mha804ju1srql6t448pi0sb4; path=/; secure; HttpOnly, '_xsrf=2db851325b6c3dbed94f6edd5cb2833b%7C1462906759; expires=Tue, 17-May-2016 18:59:19 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 02:59:28"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"10","record_total":"10"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189592932","name":"docs","line":"\u9ed8\u8ba4","type":"CNAME","ttl":"600","value":"docs.example.com.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:21","use_aqb":"no"},{"id":"189592919","name":"localhost","line":"\u9ed8\u8ba4","type":"A","ttl":"600","value":"127.0.0.1","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:15","use_aqb":"no"},{"id":"189593133","name":"random.fqdntest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:24","use_aqb":"no"},{"id":"189593136","name":"random.fulltest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:26","use_aqb":"no"},{"id":"189593143","name":"random.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:27","use_aqb":"no"},{"id":"189592939","name":"_acme-challenge.fqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:22","use_aqb":"no"},{"id":"189592942","name":"_acme-challenge.full","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:23","use_aqb":"no"},{"id":"189592945","name":"_acme-challenge.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:26","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2830'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 18:59:28 GMT'] etag: [W/"5872df6dbdf3103ce29d2afcfee1897c"] expires: ['Tue, 10 May 2016 20:59:28 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=d0rsqns90g5ofe12n3gsveptl1; path=/; secure; HttpOnly, '_xsrf=b3c8e25b856b2a2ec081cc72c262ef29%7C1462906768; expires=Tue, 17-May-2016 18:59:28 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000221221325606366700423330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:00:13"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"10","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['543'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:00:13 GMT'] etag: [W/"987a82c4e8a8e22da8bf98c776120afe"] expires: ['Tue, 10 May 2016 21:00:13 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=ff3ivbmfj1p0o97h3huump4at3; path=/; secure; HttpOnly, '_xsrf=b2f4e385b247ae1876541a9c516dcafc%7C1462906813; expires=Tue, 17-May-2016 19:00:13 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=orig.test&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['172'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:00:30"},"record":{"id":"189593259","name":"orig.test","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['178'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:00:30 GMT'] etag: [W/"e6d0d2cad3b49e14d4639fc584876a40"] expires: ['Tue, 10 May 2016 21:00:30 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=7cirtj1cjvqmr2j9s890m0bkf5; path=/; secure; HttpOnly, '_xsrf=6cc0a87863efd4267e641bd8befa12fb%7C1462906830; expires=Tue, 17-May-2016 19:00:30 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:01:24"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"13","record_total":"13"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189592932","name":"docs","line":"\u9ed8\u8ba4","type":"CNAME","ttl":"600","value":"docs.example.com.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:21","use_aqb":"no"},{"id":"189592919","name":"localhost","line":"\u9ed8\u8ba4","type":"A","ttl":"600","value":"127.0.0.1","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:15","use_aqb":"no"},{"id":"189593259","name":"orig.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:30","use_aqb":"no"},{"id":"189593267","name":"orig.testfqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:33","use_aqb":"no"},{"id":"189593272","name":"orig.testfull","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:37","use_aqb":"no"},{"id":"189593133","name":"random.fqdntest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:24","use_aqb":"no"},{"id":"189593136","name":"random.fulltest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:26","use_aqb":"no"},{"id":"189593143","name":"random.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:27","use_aqb":"no"},{"id":"189592939","name":"_acme-challenge.fqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:22","use_aqb":"no"},{"id":"189592942","name":"_acme-challenge.full","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:23","use_aqb":"no"},{"id":"189592945","name":"_acme-challenge.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:26","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3582'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:01:24 GMT'] etag: [W/"b7b4edf6edbf9a5f66c823851efa2969"] expires: ['Tue, 10 May 2016 21:01:24 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=42jifdt317mk13eqcannfk0h43; path=/; secure; HttpOnly, '_xsrf=76cb1dc82c5a99d7406e84e3a5a0053f%7C1462906884; expires=Tue, 17-May-2016 19:01:24 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=updated.test&record_id=189593259&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['195'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Modify response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:01:42"},"record":{"id":189593259,"name":"updated.test","value":"challengetoken","status":"enable","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['203'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:01:42 GMT'] etag: [W/"1c96e3e66855c5af5090094e62bf6a86"] expires: ['Tue, 10 May 2016 21:01:42 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=3rbov55dcf45iir6u01fmfaj00; path=/; secure; HttpOnly, '_xsrf=4a5b9fc0b408ece863fa34335dd9e422%7C1462906902; expires=Tue, 17-May-2016 19:01:42 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000221421325606366700454000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:00:17"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"10","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['543'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:00:17 GMT'] etag: [W/"882c4373c5151ca79afbf6ee4ec6fcb0"] expires: ['Tue, 10 May 2016 21:00:17 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=uib3b135fgivvfv9mphh8cont2; path=/; secure; HttpOnly, '_xsrf=d2945eb74bbfc1221d624837ae398c04%7C1462906817; expires=Tue, 17-May-2016 19:00:17 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=orig.testfqdn&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['176'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:00:33"},"record":{"id":"189593267","name":"orig.testfqdn","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['182'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:00:34 GMT'] etag: [W/"db108b30ef5008f3e1269628411b02e7"] expires: ['Tue, 10 May 2016 21:00:34 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=l2ot7d2ulcsd3kqk4vniujtcg3; path=/; secure; HttpOnly, '_xsrf=6e2638ab173d2d424426ff72bac7f663%7C1462906833; expires=Tue, 17-May-2016 19:00:33 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:01:34"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"13","record_total":"13"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189592932","name":"docs","line":"\u9ed8\u8ba4","type":"CNAME","ttl":"600","value":"docs.example.com.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:21","use_aqb":"no"},{"id":"189592919","name":"localhost","line":"\u9ed8\u8ba4","type":"A","ttl":"600","value":"127.0.0.1","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:15","use_aqb":"no"},{"id":"189593259","name":"orig.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:30","use_aqb":"no"},{"id":"189593267","name":"orig.testfqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:33","use_aqb":"no"},{"id":"189593272","name":"orig.testfull","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:37","use_aqb":"no"},{"id":"189593133","name":"random.fqdntest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:24","use_aqb":"no"},{"id":"189593136","name":"random.fulltest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:26","use_aqb":"no"},{"id":"189593143","name":"random.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:27","use_aqb":"no"},{"id":"189592939","name":"_acme-challenge.fqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:22","use_aqb":"no"},{"id":"189592942","name":"_acme-challenge.full","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:23","use_aqb":"no"},{"id":"189592945","name":"_acme-challenge.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:26","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3582'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:01:34 GMT'] etag: [W/"f50f078349b09d779178b26e5cf84d49"] expires: ['Tue, 10 May 2016 21:01:34 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=gv58r61dm4k1bchihv1qp88lb6; path=/; secure; HttpOnly, '_xsrf=15fd7415960a6001220e60f1a13fab23%7C1462906894; expires=Tue, 17-May-2016 19:01:34 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=updated.testfqdn&record_id=189593267&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['199'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Modify response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:01:44"},"record":{"id":189593267,"name":"updated.testfqdn","value":"challengetoken","status":"enable","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['207'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:01:44 GMT'] etag: [W/"ea6412eb2d4c4d791609b36dd278353c"] expires: ['Tue, 10 May 2016 21:01:44 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=ddj2jhp564ju6qhdnipiid3tk4; path=/; secure; HttpOnly, '_xsrf=73036891ff00d76540a1c735ea82989e%7C1462906904; expires=Tue, 17-May-2016 19:01:44 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000221421325606366700454120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:00:25"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","grade_title":"\u65b0\u514d\u8d39\u5957\u9910","status":"enable","ext_status":"dnserror","records":"10","group_id":"1","is_mark":"no","remark":false,"is_vip":"no","searchengine_push":"yes","user_id":"1446297","created_on":"2016-05-11 02:35:23","updated_on":"2016-05-11 02:35:23","ttl":"600","cname_speedup":"disable","owner":"lexicon@mailinator.com"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['543'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:00:25 GMT'] etag: [W/"f6660872d9939632f717e36dd9e6ea42"] expires: ['Tue, 10 May 2016 21:00:25 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=8daftmh8rt26p1pkv15alfb8r4; path=/; secure; HttpOnly, '_xsrf=680289cc12c51e6e642462b48490da26%7C1462906825; expires=Tue, 17-May-2016 19:00:25 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=orig.testfull&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['176'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Create response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:00:37"},"record":{"id":"189593272","name":"orig.testfull","status":"enabled","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['182'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:00:37 GMT'] etag: [W/"bf2a2055eacf7b01f5ddf34fbfe31329"] expires: ['Tue, 10 May 2016 21:00:37 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=vqsvb06qu76ne88kujdha27l71; path=/; secure; HttpOnly, '_xsrf=a3c7d27a2348ff88ba93eaadc24226d1%7C1462906837; expires=Tue, 17-May-2016 19:00:37 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.List response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:01:36"},"domain":{"id":"38280687","name":"capsulecd.com","punycode":"capsulecd.com","grade":"DP_Free","owner":"lexicon@mailinator.com"},"info":{"sub_domains":"13","record_total":"13"},"records":[{"id":"189590584","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns1.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189590585","name":"@","line":"\u9ed8\u8ba4","type":"NS","ttl":"86400","value":"f1g1ns2.dnspod.net.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:35:23","use_aqb":"no","hold":"hold"},{"id":"189592932","name":"docs","line":"\u9ed8\u8ba4","type":"CNAME","ttl":"600","value":"docs.example.com.","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:21","use_aqb":"no"},{"id":"189592919","name":"localhost","line":"\u9ed8\u8ba4","type":"A","ttl":"600","value":"127.0.0.1","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:15","use_aqb":"no"},{"id":"189593259","name":"orig.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:30","use_aqb":"no"},{"id":"189593267","name":"orig.testfqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:33","use_aqb":"no"},{"id":"189593272","name":"orig.testfull","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 03:00:37","use_aqb":"no"},{"id":"189593133","name":"random.fqdntest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:24","use_aqb":"no"},{"id":"189593136","name":"random.fulltest","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:26","use_aqb":"no"},{"id":"189593143","name":"random.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:59:27","use_aqb":"no"},{"id":"189592939","name":"_acme-challenge.fqdn","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:22","use_aqb":"no"},{"id":"189592942","name":"_acme-challenge.full","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:23","use_aqb":"no"},{"id":"189592945","name":"_acme-challenge.test","line":"\u9ed8\u8ba4","type":"TXT","ttl":"600","value":"challengetoken","weight":null,"mx":"0","enabled":"1","status":"enabled","monitor_status":"","remark":"","updated_on":"2016-05-11 02:57:26","use_aqb":"no"}]}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3582'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:01:36 GMT'] etag: [W/"ef879f508cbfd19e92db4d8ea5112980"] expires: ['Tue, 10 May 2016 21:01:36 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=6j1frs6h5ffinnsae4r28madp0; path=/; secure; HttpOnly, '_xsrf=fc922379068259d7380d9f72f4bd1c87%7C1462906896; expires=Tue, 17-May-2016 19:01:36 GMT; Max-Age=604800; path=/'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: record_line=%E9%BB%98%E8%AE%A4&format=json&value=challengetoken&record_type=TXT&sub_domain=updated.testfull&record_id=189593272&domain_id=38280687 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['199'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://dnsapi.cn/Record.Modify response: body: {string: !!python/unicode '{"status":{"code":"1","message":"Action completed successful","created_at":"2016-05-11 03:01:48"},"record":{"id":189593272,"name":"updated.testfull","value":"challengetoken","status":"enable","weight":null}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['207'] content-type: [text/html;charset=UTF-8] date: ['Tue, 10 May 2016 19:01:48 GMT'] etag: [W/"acaa10d43fd8bef86347ac0ad4006ec5"] expires: ['Tue, 10 May 2016 21:01:48 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=pqculiri4j43vesf59r224loj4; path=/; secure; HttpOnly, '_xsrf=275e2a90d193b9ff39bbbb9e50c98736%7C1462906908; expires=Tue, 17-May-2016 19:01:48 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_creating_record_set.yaml000066400000000000000000000023231325606366700355450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/dnspod/IntegrationTestsinteractions: - request: body: !!python/unicode domain=capsulecd.com&format=json headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['95'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://dnsapi.cn/Domain.Info response: body: {string: !!python/unicode '{"status":{"code":"10002","message":"The login token ID is invalid","created_at":"2018-03-20 19:26:17"}}'} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['104'] content-type: [text/html;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:26:17 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [DNSPODID=7gq5top5qiunv4n385o70hp217; path=/; secure; HttpOnly, '_xsrf=b376f9327e3167b57fbfdbfb5fd73ef8%7C1521545176; expires=Tue, 27-Mar-2018 11:26:16 GMT; Max-Age=604800; path=/'] transfer-encoding: [chunked] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/easydns/000077500000000000000000000000001325606366700216525ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTests/000077500000000000000000000000001325606366700251605ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000031271325606366700334360ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791538,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:38:58 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=4ksqevd0qqf1f2rt3m5l018mr4; path=/, 'api_token=api_5702a6b22b1029.06483939; expires=Mon, 04-Apr-2016 17:53:58 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000031501325606366700423250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/thisisadomainidonotown.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791538,"data":{"id":"thisisadomainidonotown.com","domain":"thisisadomainidonotown.com","exists":"N","onsystem":"N","expiry":null,"next_due":null,"cloned_to":"NONE","service":null,"sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['235'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:38:58 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=cn24jkbq4nog2ak3t4aa7oahu7; path=/, 'api_token=api_5702a6b2b43d51.12617687; expires=Mon, 04-Apr-2016 17:53:58 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000061741325606366700451150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791710,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:41:50 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=22tfnci7hg9d8iac2qqn25ojk4; path=/, 'api_token=api_5702a75ee5b290.52512396; expires=Mon, 04-Apr-2016 17:56:50 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "localhost", "rdata": "127.0.0.1", "type": "A"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['108'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/A?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:41:56 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=k1vpfliu43k4d9mn9lmdlckto2; path=/, 'api_token=api_5702a7645bb112.12175209; expires=Mon, 04-Apr-2016 17:56:56 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000062061325606366700455540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791711,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:41:51 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=jv325i9hgee2rqc06mb4t4bpp0; path=/, 'api_token=api_5702a75fd79051.10825528; expires=Mon, 04-Apr-2016 17:56:51 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "docs", "rdata": "docs.example.com", "type": "CNAME"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['114'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/CNAME?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:41:56 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=kre18c0udmvdvfr4558jgikma7; path=/, 'api_token=api_5702a764b63ce6.09851327; expires=Mon, 04-Apr-2016 17:56:56 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000062201325606366700452350ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791712,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:41:52 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=pj8qrf7oaotflokrj6mk8gdv13; path=/, 'api_token=api_5702a7607341a7.90076655; expires=Mon, 04-Apr-2016 17:56:52 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "_acme-challenge.fqdn", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['126'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:41:57 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=lqvqik43kqaljljg102ca6mm01; path=/, 'api_token=api_5702a7651fbbe8.07648627; expires=Mon, 04-Apr-2016 17:56:57 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000062201325606366700452470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791713,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:41:53 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=m21ushlgud5u36n0hnh9d0sus7; path=/, 'api_token=api_5702a7611d8d95.83568747; expires=Mon, 04-Apr-2016 17:56:53 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "_acme-challenge.full", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['126'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:41:57 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=13vmhs97vfjedmq3252kelgac4; path=/, 'api_token=api_5702a765795d32.91535657; expires=Mon, 04-Apr-2016 17:56:57 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000062201325606366700454040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791713,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:41:53 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=749s2mkuf9kcfvba2ldf6v3p97; path=/, 'api_token=api_5702a761a88234.52544203; expires=Mon, 04-Apr-2016 17:56:53 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "_acme-challenge.test", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['126'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:41:57 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=t2oui7a4e4432mtjf1re51fmb7; path=/, 'api_token=api_5702a765d851c0.53630643; expires=Mon, 04-Apr-2016 17:56:57 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000326521325606366700445500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459792077,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:57 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=pkok2tv3d6qsicv6796q6anfc0; path=/, 'api_token=api_5702a8cd3ba942.73788542; expires=Mon, 04-Apr-2016 18:02:57 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "delete.testfilt", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:48:01 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=2n2suq9q3aavljjks0e4lgamn5; path=/, 'api_token=api_5702a8d19f7ee9.41844884; expires=Mon, 04-Apr-2016 18:03:01 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792082,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453455","domain":"easydnstemp.com","host":"delete.testfilt","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:01"}],"count":17,"total":17,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['3100'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:02 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=rlnnte5rhd70lqte7444si9ai0; path=/, 'api_token=api_5702a8d209e515.27871516; expires=Mon, 04-Apr-2016 18:03:02 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: http://sandbox.rest.easydns.net/zones/records/easydnstemp.com/28453455?format=json response: body: {string: !!python/unicode ' {"msg":"OK","data":{"domain":"easydnstemp.com","id":"28453455"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['79'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:07 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=4e82co4g9bmepomj1cbf7ok143; path=/, 'api_token=api_5702a8d72c0879.37215579; expires=Mon, 04-Apr-2016 18:03:07 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792091,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2919'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:11 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=dq9ogpomvb6igj1kpi26peah93; path=/, 'api_token=api_5702a8db104665.74823596; expires=Mon, 04-Apr-2016 18:03:11 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000331471325606366700476130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459792077,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:57 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=pvvt6fttj0tvd2jcqqvoii8o63; path=/, 'api_token=api_5702a8cdcb9363.15124817; expires=Mon, 04-Apr-2016 18:02:57 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "delete.testfqdn", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:48:02 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=fv7td9pmaa3t3919br5anmmc63; path=/, 'api_token=api_5702a8d25ea006.72925236; expires=Mon, 04-Apr-2016 18:03:02 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792083,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453455","domain":"easydnstemp.com","host":"delete.testfilt","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453456","domain":"easydnstemp.com","host":"delete.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:02"}],"count":18,"total":18,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['3281'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:03 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=4r5vh156pc409qnnreqgc979f6; path=/, 'api_token=api_5702a8d38ba484.70217362; expires=Mon, 04-Apr-2016 18:03:03 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: http://sandbox.rest.easydns.net/zones/records/easydnstemp.com/28453456?format=json response: body: {string: !!python/unicode ' {"msg":"OK","data":{"domain":"easydnstemp.com","id":"28453456"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['79'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:07 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=8d8e183fk9n0rrsitq80hd11m7; path=/, 'api_token=api_5702a8d785c127.81657235; expires=Mon, 04-Apr-2016 18:03:07 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792091,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2919'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:11 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=sbu48jh4bf0e2cti8lr5rmjj34; path=/, 'api_token=api_5702a8db71b388.06104614; expires=Mon, 04-Apr-2016 18:03:11 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000334441325606366700476250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459792078,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:58 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=6g6eandr73lo8ijhqlmc4crrn6; path=/, 'api_token=api_5702a8ce5ebd71.99172035; expires=Mon, 04-Apr-2016 18:02:58 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "delete.testfull", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:48:03 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=ovj06c1777qsk97sn0bj3boh14; path=/, 'api_token=api_5702a8d3d5ca08.66486248; expires=Mon, 04-Apr-2016 18:03:03 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792084,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453455","domain":"easydnstemp.com","host":"delete.testfilt","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453456","domain":"easydnstemp.com","host":"delete.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"},{"id":"28453457","domain":"easydnstemp.com","host":"delete.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:03"}],"count":19,"total":19,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['3462'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:04 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=hgmrveho4gifhei6p3mbgivi20; path=/, 'api_token=api_5702a8d43a44e1.15009912; expires=Mon, 04-Apr-2016 18:03:04 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: http://sandbox.rest.easydns.net/zones/records/easydnstemp.com/28453457?format=json response: body: {string: !!python/unicode ' {"msg":"OK","data":{"domain":"easydnstemp.com","id":"28453457"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['79'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:07 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=c203mve4nn9rpq10qumgp0c4m7; path=/, 'api_token=api_5702a8d7dc9f06.23929228; expires=Mon, 04-Apr-2016 18:03:07 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792091,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2919'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:11 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=5dhsbr1uodv46gp0nvnctj6cd1; path=/, 'api_token=api_5702a8dbd2a833.42160762; expires=Mon, 04-Apr-2016 18:03:11 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000337351325606366700454100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459792078,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:58 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=bhu0r722l4c1jmhd8e4tb9ol46; path=/, 'api_token=api_5702a8ceee39d0.75695217; expires=Mon, 04-Apr-2016 18:02:58 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "delete.testid", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['119'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:48:04 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=n4gkqhiirijreif00oi3s430h7; path=/, 'api_token=api_5702a8d48e1b37.56507916; expires=Mon, 04-Apr-2016 18:03:04 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792084,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453455","domain":"easydnstemp.com","host":"delete.testfilt","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453456","domain":"easydnstemp.com","host":"delete.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453457","domain":"easydnstemp.com","host":"delete.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453458","domain":"easydnstemp.com","host":"delete.testid","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"}],"count":20,"total":20,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['3641'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:04 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=agqpq05i1qja0het6dulnommu2; path=/, 'api_token=api_5702a8d4e98884.23739673; expires=Mon, 04-Apr-2016 18:03:04 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: DELETE uri: http://sandbox.rest.easydns.net/zones/records/easydnstemp.com/28453458?format=json response: body: {string: !!python/unicode ' {"msg":"OK","data":{"domain":"easydnstemp.com","id":"28453458"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['79'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:08 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=uste8n7grsps0ib5h0p8rgcq93; path=/, 'api_token=api_5702a8d83a9e72.59635620; expires=Mon, 04-Apr-2016 18:03:08 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792092,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:48:04"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2919'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:48:12 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=eeoclfaq1drad05en05ssgvs76; path=/, 'api_token=api_5702a8dc36fdd2.83694016; expires=Mon, 04-Apr-2016 18:03:12 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000177401325606366700417160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1469913500,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN, X-RSP'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:18:20 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=crn2ip8vg9nnga7ndudfdbacf7; path=/, 'api_token=api_579d199c416fa6.90017739; expires=Sat, 30-Jul-2016 21:33:20 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 3600, "host": "ttl.fqdn", "rdata": "ttlshouldbe3600", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1469913523,"data":{"host":"ttl.fqdn","geozone_id":0,"ttl":3600,"prio":0,"rdata":"ttlshouldbe3600","revoked":0,"id":"30108531","new_host":"ttl.fqdn.easydnstemp.com"},"status":201}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN, X-RSP'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['197'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:18:43 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=5va09p3461ti1itm6m1im14v25; path=/, 'api_token=api_579d19b39299a2.96331053; expires=Sat, 30-Jul-2016 21:33:43 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 201, message: Created} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1469913540,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"30108530","domain":"easydnstemp.com","host":"ttlrecord.fqdn","ttl":"500","prio":"0","type":"TXT","rdata":"ttlshouldbe500","geozone_id":"0","last_mod":"2016-07-30 17:18:43"},{"id":"30108531","domain":"easydnstemp.com","host":"ttl.fqdn","ttl":"3600","prio":"0","type":"TXT","rdata":"ttlshouldbe3600","geozone_id":"0","last_mod":"2016-07-30 17:18:43"}],"count":18,"total":18,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN, X-RSP'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['3275'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:19:00 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=2busmdcp11akqbgges9d0ksaq5; path=/, 'api_token=api_579d19c4168ff5.36053273; expires=Sat, 30-Jul-2016 21:34:00 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000150631325606366700470340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791805,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:25 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=6tmdtcumft2k7dilial5vqsat2; path=/, 'api_token=api_5702a7bda74831.10474046; expires=Mon, 04-Apr-2016 17:58:25 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "random.fqdntest", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:43:30 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=f3suvo5f4k5ei9ffrnu1sin5u5; path=/, 'api_token=api_5702a7c21b2199.38687707; expires=Mon, 04-Apr-2016 17:58:30 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459791810,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"}],"count":11,"total":11,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2019'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:30 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=g6r0fk222cuqh2vjrgcujlpuq3; path=/, 'api_token=api_5702a7c273d5c6.88519966; expires=Mon, 04-Apr-2016 17:58:30 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000153601325606366700470460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791806,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:26 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=5fqm5pfholb96ck62pgfvnko46; path=/, 'api_token=api_5702a7be7943a6.28172244; expires=Mon, 04-Apr-2016 17:58:26 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "random.fulltest", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:43:30 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=jrsis0e6mvkl1ha8lb6q6jtm53; path=/, 'api_token=api_5702a7c2bed1c2.85462799; expires=Mon, 04-Apr-2016 17:58:30 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459791811,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:30"}],"count":12,"total":12,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2200'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:31 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=g1kdsdnklhj5pgaae8ofd3kj76; path=/, 'api_token=api_5702a7c3327d07.78098522; expires=Mon, 04-Apr-2016 17:58:31 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000156451325606366700460320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791807,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:27 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=r9s88haqnqlter8hso5l8dpf27; path=/, 'api_token=api_5702a7bf07d476.63611512; expires=Mon, 04-Apr-2016 17:58:27 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "random.test", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['117'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' '} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [close] content-length: ['2'] content-type: [text/html] date: ['Mon, 04 Apr 2016 17:43:31 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=pti4cdsjfst145p8v60r3a76o4; path=/, 'api_token=api_5702a7c377ae21.76630552; expires=Mon, 04-Apr-2016 17:58:31 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 500, message: Internal Server Error} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459791811,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"}],"count":13,"total":13,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2377'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:31 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=3u9gh4fsb73kv3fh65ki73phs3; path=/, 'api_token=api_5702a7c3ea4b64.60934839; expires=Mon, 04-Apr-2016 17:58:31 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000125651325606366700451720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459791807,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:27 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=23r2pudggsl2nsc5ial183mjh1; path=/, 'api_token=api_5702a7bfad42b3.92704766; expires=Mon, 04-Apr-2016 17:58:27 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459791812,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:43:31"}],"count":13,"total":13,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2377'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:43:32 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=daoijnrqup9kal98co262lqcv5; path=/, 'api_token=api_5702a7c440f910.23630123; expires=Mon, 04-Apr-2016 17:58:32 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000221651325606366700425210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459792022,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:02 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=nbh4edjafbp483ad0b5val9f75; path=/, 'api_token=api_5702a896905626.31152804; expires=Mon, 04-Apr-2016 18:02:02 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "orig.test", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' {"error":{"code":409,"message":"Record already exists"}}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['58'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:06 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=qks002gh7at8rne03cq2u3vdp2; path=/, 'api_token=api_5702a89aae9020.17461747; expires=Mon, 04-Apr-2016 18:02:06 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 409, message: Conflict} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792026,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453454","domain":"easydnstemp.com","host":"orig.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453452","domain":"easydnstemp.com","host":"orig.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453453","domain":"easydnstemp.com","host":"orig.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2910'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:06 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=vb72fq8qn22c0lp8n0ogcgbh63; path=/, 'api_token=api_5702a89ae25ad5.30242816; expires=Mon, 04-Apr-2016 18:02:06 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"host": "updated.test", "rdata": "challengetoken", "type": "TXT", "ttl": 300}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['78'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: http://sandbox.rest.easydns.net/zones/records/28453452?format=json response: body: {string: !!python/unicode ' {"msg":"Record updated successfully.","tm":1459792029,"data":{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:47:09"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['254'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:09 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=ipc9hen5lfavk81og0uln3jbe6; path=/, 'api_token=api_5702a89dd62c63.55978405; expires=Mon, 04-Apr-2016 18:02:09 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000222011325606366700455530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459792023,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:03 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=roc52euf4p65t6v7v5n0k127j3; path=/, 'api_token=api_5702a8975ebed3.66192911; expires=Mon, 04-Apr-2016 18:02:03 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "orig.testfqdn", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['119'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' {"error":{"code":409,"message":"Record already exists"}}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['58'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:07 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=8p6bkrdkcbggda0u6fpu4eitr1; path=/, 'api_token=api_5702a89b3dce26.68854908; expires=Mon, 04-Apr-2016 18:02:07 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 409, message: Conflict} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792027,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453454","domain":"easydnstemp.com","host":"orig.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453452","domain":"easydnstemp.com","host":"orig.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453453","domain":"easydnstemp.com","host":"orig.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2910'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:07 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=esgom0nclmgg41aq8mgslu4je3; path=/, 'api_token=api_5702a89b70f2a7.66100066; expires=Mon, 04-Apr-2016 18:02:07 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"host": "updated.testfqdn", "rdata": "challengetoken", "type": "TXT", "ttl": 300}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: http://sandbox.rest.easydns.net/zones/records/28453453?format=json response: body: {string: !!python/unicode ' {"msg":"Record updated successfully.","tm":1459792030,"data":{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:47:10"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['258'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:10 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=iq552rshlbmems09gpd3vj3u97; path=/, 'api_token=api_5702a89e38a066.22050446; expires=Mon, 04-Apr-2016 18:02:10 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000222011325606366700455650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/easydns/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"msg":"OK","tm":1459792023,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['229'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:03 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=vn1phjn3j6nd1k49811hnfst52; path=/, 'api_token=api_5702a897e74956.80342111; expires=Mon, 04-Apr-2016 18:02:03 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "orig.testfull", "rdata": "challengetoken", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['119'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: PUT uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json response: body: {string: !!python/unicode ' {"error":{"code":409,"message":"Record already exists"}}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['58'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:07 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=3cil8ujq83fnpfh5gn2jjan9u5; path=/, 'api_token=api_5702a89bbe0816.59315383; expires=Mon, 04-Apr-2016 18:02:07 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 409, message: Conflict} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json response: body: {string: !!python/unicode ' {"tm":1459792027,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453454","domain":"easydnstemp.com","host":"orig.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453452","domain":"easydnstemp.com","host":"orig.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453453","domain":"easydnstemp.com","host":"orig.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04 13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com. zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04 11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:44:03"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['2910'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:07 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=perr9v0pt5pkl8fruo2otmfbg5; path=/, 'api_token=api_5702a89bf19ef6.35829126; expires=Mon, 04-Apr-2016 18:02:07 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} - request: body: '{"host": "updated.testfull", "rdata": "challengetoken", "type": "TXT", "ttl": 300}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['82'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: http://sandbox.rest.easydns.net/zones/records/28453454?format=json response: body: {string: !!python/unicode ' {"msg":"Record updated successfully.","tm":1459792030,"data":{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04 13:47:10"},"status":200}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization, accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED, X-AUTHTOKEN'] access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT'] access-control-allow-origin: ['"*"'] cache-control: ['no-cache, must-revalidate'] connection: [close] content-length: ['258'] content-type: [application/json] date: ['Mon, 04 Apr 2016 17:47:10 GMT'] expires: ['0'] pragma: [no-cache] server: [Apache/2.2.16 (Debian)] set-cookie: [easyAPI=oph38j515inpvld86c7r766147; path=/, 'api_token=api_5702a89e8b15d3.20957757; expires=Mon, 04-Apr-2016 18:02:10 GMT; path=/; domain=sandbox.rest.easydns.net'] vary: [Accept-Encoding] x-powered-by: [PHP/5.3.3-7+squeeze28] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/gandi/000077500000000000000000000000001325606366700212665ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTests/000077500000000000000000000000001325606366700245745ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000153341325606366700330550ustar00rootroot00000000000000interactions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:11 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000025321325606366700417440ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN thisisadomainidonotown.com ' headers: Accept-Encoding: [gzip] Content-Length: ['255'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' faultCode 510042 faultString Error on object : OBJECT_DOMAIN (CAUSE_NOTFOUND) [Domain ''thisisadomainidonotown.com'' doesn''t exist.] '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:12 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['361'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000255611325606366700445320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:12 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 2 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:12 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 2 type A name localhost value 127.0.0.1 ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['634'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name localhost type A id 1911386733 value 127.0.0.1 ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:13 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['496'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 2 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:13 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000255751325606366700452020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:13 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 3 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:14 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 3 type CNAME name docs value docs.example.com ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['640'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name docs type CNAME id 1911386781 value docs.example.com ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:14 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['502'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 3 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:14 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000256271325606366700446650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:15 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 4 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:15 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 4 type TXT name _acme-challenge.fqdn value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['652'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name _acme-challenge.fqdn type TXT id 1911386829 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:15 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['516'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 4 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:16 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000256271325606366700446770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:16 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 5 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:17 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 5 type TXT name _acme-challenge.full value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['652'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name _acme-challenge.full type TXT id 1911386898 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:17 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['516'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 5 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:18 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000256271325606366700450340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:18 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 6 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:18 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 6 type TXT name _acme-challenge.test value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['652'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name _acme-challenge.test type TXT id 1911386946 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:19 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['516'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 6 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:19 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000437211325606366700441630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:20 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 7 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:20 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 7 type TXT name delete.testfilt value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['647'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testfilt type TXT id 1911387042 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:20 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['511'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 7 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:21 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testfilt value "challengetoken" ' headers: Accept-Encoding: [gzip] Content-Length: ['583'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testfilt type TXT id 1911387042 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:21 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['556'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 8 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:21 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.delete GANDI-TOKEN 2752905 8 name delete.testfilt type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['652'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:22 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 8 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:22 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testfilt ' headers: Accept-Encoding: [gzip] Content-Length: ['496'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:23 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['138'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000437241325606366700472310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:23 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 9 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:23 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 9 type TXT name delete.testfqdn value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['647'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testfqdn type TXT id 1911387234 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:24 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['511'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 9 ' headers: Accept-Encoding: [gzip] Content-Length: ['287'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:24 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testfqdn value "challengetoken" ' headers: Accept-Encoding: [gzip] Content-Length: ['583'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testfqdn type TXT id 1911387234 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:24 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['556'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 10 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:25 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.delete GANDI-TOKEN 2752905 10 name delete.testfqdn type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['653'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:25 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 10 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:26 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testfqdn ' headers: Accept-Encoding: [gzip] Content-Length: ['496'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:26 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['138'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000437271325606366700472460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:27 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 11 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:27 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 11 type TXT name delete.testfull value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['648'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testfull type TXT id 1911387423 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:27 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['511'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 11 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:28 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testfull value "challengetoken" ' headers: Accept-Encoding: [gzip] Content-Length: ['583'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testfull type TXT id 1911387423 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:28 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['556'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 12 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:28 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.delete GANDI-TOKEN 2752905 12 name delete.testfull type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['653'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:29 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 12 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:29 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testfull ' headers: Accept-Encoding: [gzip] Content-Length: ['496'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:30 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['138'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000473071325606366700450240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:30 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 13 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:30 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 13 type TXT name delete.testid value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['646'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testid type TXT id 1911387612 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['509'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 13 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testid ' headers: Accept-Encoding: [gzip] Content-Length: ['494'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testid type TXT id 1911387612 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 id 1911387612 ' headers: Accept-Encoding: [gzip] Content-Length: ['410'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name delete.testid type TXT id 1911387612 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 14 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:32 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.delete GANDI-TOKEN 2752905 14 name delete.testid type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['651'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:32 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['121'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 14 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name delete.testid ' headers: Accept-Encoding: [gzip] Content-Length: ['494'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['138'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000315631325606366700464530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 15 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 15 type TXT name random.fqdntest value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['648'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name random.fqdntest type TXT id 1911387801 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:34 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['511'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 15 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:34 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name random.fqdntest ' headers: Accept-Encoding: [gzip] Content-Length: ['496'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name random.fqdntest type TXT id 1911387801 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:35 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['556'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000315631325606366700464650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:35 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 16 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:35 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 16 type TXT name random.fulltest value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['648'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name random.fulltest type TXT id 1911387897 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:36 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['511'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 16 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:36 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name random.fulltest ' headers: Accept-Encoding: [gzip] Content-Length: ['496'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name random.fulltest type TXT id 1911387897 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:37 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['556'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000315431325606366700454410ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:37 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 17 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:37 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 17 type TXT name random.test value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['644'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name random.test type TXT id 1911387993 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:38 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['507'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 17 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:38 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name random.test ' headers: Accept-Encoding: [gzip] Content-Length: ['492'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name random.test type TXT id 1911387993 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:39 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['552'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000452421325606366700446040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:39 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 ' headers: Accept-Encoding: [gzip] Content-Length: ['338'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name @ type A id 1911387918 value 217.70.184.38 ttl 10800 name localhost type A id 1911387933 value 127.0.0.1 ttl 3600 name blog type CNAME id 1911387903 value blogs.vip.gandi.net. ttl 10800 name docs type CNAME id 1911387936 value docs.example.com ttl 3600 name imap type CNAME id 1911387912 value access.mail.gandi.net. ttl 10800 name pop type CNAME id 1911387900 value access.mail.gandi.net. ttl 10800 name smtp type CNAME id 1911387909 value relay.mail.gandi.net. ttl 10800 name webmail type CNAME id 1911387906 value agent.mail.gandi.net. ttl 10800 name www type CNAME id 1911387915 value webredir.vip.gandi.net. ttl 10800 name @ type MX id 1911387924 value 50 fb.mail.gandi.net. ttl 10800 name @ type MX id 1911387921 value 10 spool.mail.gandi.net. ttl 10800 name @ type TXT id 1911387930 value "v=spf1 include:_mailcust.gandi.net ?all" ttl 10800 name random.fqdntest type TXT id 1911387948 value "challengetoken" ttl 3600 name random.fulltest type TXT id 1911387951 value "challengetoken" ttl 3600 name random.test type TXT id 1911387993 value "challengetoken" ttl 3600 name _acme-challenge.fqdn type TXT id 1911387939 value "challengetoken" ttl 3600 name _acme-challenge.full type TXT id 1911387942 value "challengetoken" ttl 3600 name _acme-challenge.test type TXT id 1911387945 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:39 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['7614'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000524251325606366700421370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:40 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 18 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:40 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 18 type TXT name orig.test value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['642'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.test type TXT id 1911388089 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:40 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['505'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 18 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:41 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name orig.test ' headers: Accept-Encoding: [gzip] Content-Length: ['490'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.test type TXT id 1911388089 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:41 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['550'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 id 1911388089 ' headers: Accept-Encoding: [gzip] Content-Length: ['410'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.test type TXT id 1911388089 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:41 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['550'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 19 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:42 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 19 name orig.test type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['645'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.test type TXT id 1911388149 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:42 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['550'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.update GANDI-TOKEN 2752905 19 id 1911388149 name updated.test type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['773'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name updated.test type TXT id 1911388149 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:42 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['553'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 19 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:43 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000525221325606366700451500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:43 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 20 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:44 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 20 type TXT name orig.nameonly.test value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['651'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.nameonly.test type TXT id 1911388278 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:44 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['514'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 20 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:45 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name orig.nameonly.test ' headers: Accept-Encoding: [gzip] Content-Length: ['499'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.nameonly.test type TXT id 1911388278 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:45 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['559'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 id 1911388278 ' headers: Accept-Encoding: [gzip] Content-Length: ['410'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.nameonly.test type TXT id 1911388278 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:45 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['559'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 21 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:46 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 21 name orig.nameonly.test type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['654'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.nameonly.test type TXT id 1911388341 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:46 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['559'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.update GANDI-TOKEN 2752905 21 id 1911388341 name orig.nameonly.test type TXT value "updated" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['772'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.nameonly.test type TXT id 1911388341 value "updated" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:46 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['552'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 21 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:47 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000524711325606366700452030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:47 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 22 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:48 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 22 type TXT name orig.testfqdn value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['646'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfqdn type TXT id 1911388467 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:48 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['509'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 22 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:49 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name orig.testfqdn ' headers: Accept-Encoding: [gzip] Content-Length: ['494'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfqdn type TXT id 1911388467 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:49 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 id 1911388467 ' headers: Accept-Encoding: [gzip] Content-Length: ['410'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfqdn type TXT id 1911388467 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:50 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 23 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:50 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 23 name orig.testfqdn type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['649'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfqdn type TXT id 1911388533 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:50 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.update GANDI-TOKEN 2752905 23 id 1911388533 name updated.testfqdn type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['777'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name updated.testfqdn type TXT id 1911388533 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:51 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['557'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 23 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:51 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000524711325606366700452150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gandi/IntegrationTestsinteractions: - request: body: ' domain.info GANDI-TOKEN reachlike.ca ' headers: Accept-Encoding: [gzip] Content-Length: ['241'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' entity_id date_updated 20170614T21:19:49 date_delete 20180820T01:41:46 can_tld_lock 1 is_premium 0 date_hold_begin 20180706T11:41:46 date_registry_end 20180706T11:41:46 authinfo_expiration_date 20180605T10:49:25 contacts owner handle GANDI-USER id 1508037 admin handle GANDI-USER id 1508037 bill handle GANDI-USER id 1508037 tech handle GANDI-USER id 1508037 reseller nameservers a.dns.gandi.net b.dns.gandi.net c.dns.gandi.net date_restore_end 20180919T11:41:46 id 3084498 authinfo oee3Jaicaf status serverTransferProhibited clientTransferProhibited tags date_hold_end 20180820T11:41:46 services gandidns date_pending_delete_end 20180919T11:41:46 zone_id 2752905 date_renew_begin 20120101T00:00:00 fqdn reachlike.ca autorenew product_id 3084498 duration 1 contact GANDI-USER active 1 id 288232 product_type_id 1 date_registry_creation 20120706T11:41:46 tld ca date_created 20120706T13:41:47 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:51 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['4245'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 24 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:52 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.add GANDI-TOKEN 2752905 24 type TXT name orig.testfull value challengetoken ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['646'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfull type TXT id 1911388656 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:52 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['509'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 24 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:52 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 type TXT name orig.testfull ' headers: Accept-Encoding: [gzip] Content-Length: ['494'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfull type TXT id 1911388656 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:53 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 0 id 1911388656 ' headers: Accept-Encoding: [gzip] Content-Length: ['410'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfull type TXT id 1911388656 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:53 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.new GANDI-TOKEN 2752905 ' headers: Accept-Encoding: [gzip] Content-Length: ['242'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 25 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:53 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['122'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.list GANDI-TOKEN 2752905 25 name orig.testfull type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['649'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name orig.testfull type TXT id 1911388725 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:54 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['554'] status: {code: 200, message: OK} - request: body: ' domain.zone.record.update GANDI-TOKEN 2752905 25 id 1911388725 name updated.testfull type TXT value "challengetoken" ttl 3600 ' headers: Accept-Encoding: [gzip] Content-Length: ['777'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' name updated.testfull type TXT id 1911388725 value "challengetoken" ttl 3600 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:54 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['557'] status: {code: 200, message: OK} - request: body: ' domain.zone.version.set GANDI-TOKEN 2752905 25 ' headers: Accept-Encoding: [gzip] Content-Length: ['288'] Content-Type: [text/xml] User-Agent: [Python-xmlrpc/3.6] method: POST uri: https://rpc.gandi.net/xmlrpc/ response: body: {string: ' 1 '} headers: Connection: [close] Content-Type: [text/xml; charset=utf-8] Date: ['Wed, 14 Jun 2017 19:20:54 GMT'] Server: [Apache] Vary: [Accept-Encoding] content-length: ['129'] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/gehirn/000077500000000000000000000000001325606366700214605ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTests/000077500000000000000000000000001325606366700247665ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000024131325606366700332410ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:10Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:18 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000024131325606366700421340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:10Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:19 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000076001325606366700447160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:10Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:19 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\",\n\ \ \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['411'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:19 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{"type": "A", "name": "localhost.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"address": "127.0.0.1"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['132'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\",\n \"type\"\ : \"A\",\n \"name\": \"localhost.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"address\": \"\ 127.0.0.1\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['212'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:20 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000102721325606366700453600ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:20Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:21 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\",\n\ \ \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['649'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:21 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{"type": "CNAME", "name": "docs.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"cname": "docs.example.com"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['136'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n \"type\"\ : \"CNAME\",\n \"name\": \"docs.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"cname\": \"docs.example.com.example.com.\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['239'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:22 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000110071325606366700450420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:22Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:22 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['914'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:23 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.fqdn.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['147'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\"\ : \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \ \ \"data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['227'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:23 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000116101325606366700450540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:23Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:24 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:24 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1167'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.full.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['147'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\"\ : \"TXT\",\n \"name\": \"_acme-challenge.full.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \ \ \"data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['227'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:25 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000123051325606366700452130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:25Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:25 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:26 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1420'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "_acme-challenge.test.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['147'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\"\ : \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \ \ \"data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['227'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:26 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000315541325606366700443560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:26Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:27 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:27 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testfilt.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['142'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"068fb752-deea-4372-8948-ac7979f3486b\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testfilt.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:28 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"068fb752-deea-4372-8948-ac7979f3486b\",\n\ \ \"type\": \"TXT\",\n \"name\": \"delete.testfilt.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n \"type\": \"CNAME\"\ ,\n \"name\": \"docs.example.com.\",\n \"enable_alias\": false,\n\ \ \"ttl\": 3600,\n \"records\": [\n {\n \"cname\": \"docs.example.com.example.com.\"\ \n }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:28 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1921'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/068fb752-deea-4372-8948-ac7979f3486b response: body: {string: "{\n \"id\": \"068fb752-deea-4372-8948-ac7979f3486b\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testfilt.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:29 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:29 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000315541325606366700474210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:28Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:30 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:30 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testfqdn.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['142'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"a7ae4302-5c75-4b7a-b8df-57565d03aa11\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testfqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:31 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"a7ae4302-5c75-4b7a-b8df-57565d03aa11\",\n\ \ \"type\": \"TXT\",\n \"name\": \"delete.testfqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n \"type\": \"CNAME\"\ ,\n \"name\": \"docs.example.com.\",\n \"enable_alias\": false,\n\ \ \"ttl\": 3600,\n \"records\": [\n {\n \"cname\": \"docs.example.com.example.com.\"\ \n }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:31 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1921'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/a7ae4302-5c75-4b7a-b8df-57565d03aa11 response: body: {string: "{\n \"id\": \"a7ae4302-5c75-4b7a-b8df-57565d03aa11\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testfqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:32 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:32 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000315541325606366700474330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:31Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:33 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:34 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testfull.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['142'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"c75413d2-4feb-494d-846a-53a280a2cf10\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testfull.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:34 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"c75413d2-4feb-494d-846a-53a280a2cf10\",\n\ \ \"type\": \"TXT\",\n \"name\": \"delete.testfull.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n \"type\": \"CNAME\"\ ,\n \"name\": \"docs.example.com.\",\n \"enable_alias\": false,\n\ \ \"ttl\": 3600,\n \"records\": [\n {\n \"cname\": \"docs.example.com.example.com.\"\ \n }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:34 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1921'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/c75413d2-4feb-494d-846a-53a280a2cf10 response: body: {string: "{\n \"id\": \"c75413d2-4feb-494d-846a-53a280a2cf10\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testfull.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:35 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:36 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000401421325606366700452040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:34Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:36 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:37 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "delete.testid.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"ed7a79e7-9fba-4638-8c7d-9e9931c11fb5\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testid.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['220'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:37 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"ed7a79e7-9fba-4638-8c7d-9e9931c11fb5\",\n\ \ \"type\": \"TXT\",\n \"name\": \"delete.testid.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n \"type\": \"CNAME\"\ ,\n \"name\": \"docs.example.com.\",\n \"enable_alias\": false,\n\ \ \"ttl\": 3600,\n \"records\": [\n {\n \"cname\": \"docs.example.com.example.com.\"\ \n }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:38 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1919'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"ed7a79e7-9fba-4638-8c7d-9e9931c11fb5\",\n\ \ \"type\": \"TXT\",\n \"name\": \"delete.testid.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n \"type\": \"CNAME\"\ ,\n \"name\": \"docs.example.com.\",\n \"enable_alias\": false,\n\ \ \"ttl\": 3600,\n \"records\": [\n {\n \"cname\": \"docs.example.com.example.com.\"\ \n }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:38 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1919'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/ed7a79e7-9fba-4638-8c7d-9e9931c11fb5 response: body: {string: "{\n \"id\": \"ed7a79e7-9fba-4638-8c7d-9e9931c11fb5\",\n \"type\"\ : \"TXT\",\n \"name\": \"delete.testid.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['220'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:39 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:39 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000213461325606366700415210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:37Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:40 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:40 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1673'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "ttl.fqdn.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "ttlshouldbe3600"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['136'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\"\ : \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"ttlshouldbe3600\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['216'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:41 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:41 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1915'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000225241325606366700466420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:41Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:42 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:42 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['1915'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "random.fqdntest.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['142'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\"\ : \"TXT\",\n \"name\": \"random.fqdntest.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:42 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:43 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2163'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000236741325606366700466630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:42Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:44 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:44 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2163'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "random.fulltest.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['142'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\"\ : \"TXT\",\n \"name\": \"random.fulltest.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['222'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:45 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:45 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2411'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000250301325606366700456250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:45Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:45 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:46 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2411'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "random.test.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['138'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\"\ : \"TXT\",\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['218'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:47 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:47 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2655'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000126431325606366700447750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:46Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:47 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:48 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2655'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000651211325606366700423260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:46Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:48 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:49 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2655'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.test.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['136'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"ba7d1757-dab0-48fe-bdb0-cb4d6220e56d\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['216'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:49 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"ba7d1757-dab0-48fe-bdb0-cb4d6220e56d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:50 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2897'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"ba7d1757-dab0-48fe-bdb0-cb4d6220e56d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:50 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2897'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"ba7d1757-dab0-48fe-bdb0-cb4d6220e56d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:51 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2897'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/ba7d1757-dab0-48fe-bdb0-cb4d6220e56d response: body: {string: "{\n \"id\": \"ba7d1757-dab0-48fe-bdb0-cb4d6220e56d\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['216'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:52 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:52 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2655'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "updated.test.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['139'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\"\ : \"TXT\",\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['219'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:52 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000321151325606366700453360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:52Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:53 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:54 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['2900'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.nameonly.test.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['145'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.nameonly.test.example.com.\",\n \ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \ \ \"data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['225'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:54 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:55 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3151'] status: {code: 200, message: OK} - request: body: '{"id": "e063ab4f-fb1a-41fe-a926-c42556b0d6a4", "type": "TXT", "name": "orig.nameonly.test.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "updated"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['184'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/e063ab4f-fb1a-41fe-a926-c42556b0d6a4 response: body: {string: "{\n \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.nameonly.test.example.com.\",\n \ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \ \ \"data\": \"updated\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['218'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:56 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000731261325606366700453750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:40:56Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:56 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:57 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3144'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.testfqdn.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"baa92612-2bce-465e-9a38-723caf45701c\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.testfqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['220'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:58 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"baa92612-2bce-465e-9a38-723caf45701c\"\ ,\n \"type\": \"TXT\",\n \"name\": \"orig.testfqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:58 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3390'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"baa92612-2bce-465e-9a38-723caf45701c\"\ ,\n \"type\": \"TXT\",\n \"name\": \"orig.testfqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:58 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3390'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"baa92612-2bce-465e-9a38-723caf45701c\"\ ,\n \"type\": \"TXT\",\n \"name\": \"orig.testfqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:59 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3390'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/baa92612-2bce-465e-9a38-723caf45701c response: body: {string: "{\n \"id\": \"baa92612-2bce-465e-9a38-723caf45701c\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.testfqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['220'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:40:59 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:00 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3144'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "updated.testfqdn.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['143'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"7ee28c9d-34cd-4b3e-996a-bb7e164d3647\",\n \"type\"\ : \"TXT\",\n \"name\": \"updated.testfqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['223'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:00 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000761321325606366700454070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/gehirn/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones response: body: {string: "[\n {\n \"id\": \"4c6409ac-b37f-4ca4-87ea-7915f44a84eb\",\n\ \ \"current_version\": {\n \"id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"created_at\": \"2018-03-06T07:40:10Z\",\n \"editable\": true,\n\ \ \"last_modified_at\": \"2018-03-06T07:41:00Z\",\n \"name\": \"\ test05\"\n },\n \"current_version_id\": \"be70daaf-0f51-459b-881e-07dc82a4b092\"\ ,\n \"name\": \"example.com\"\n }\n]"} headers: Connection: [keep-alive] Content-Length: ['388'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:01 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"7ee28c9d-34cd-4b3e-996a-bb7e164d3647\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.testfqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:02 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3393'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "orig.testfull.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"a14387be-f133-411f-b878-72b39ff86bc5\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.testfull.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['220'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:02 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"a14387be-f133-411f-b878-72b39ff86bc5\"\ ,\n \"type\": \"TXT\",\n \"name\": \"orig.testfull.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"7ee28c9d-34cd-4b3e-996a-bb7e164d3647\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.testfqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:03 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3639'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"a14387be-f133-411f-b878-72b39ff86bc5\"\ ,\n \"type\": \"TXT\",\n \"name\": \"orig.testfull.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"7ee28c9d-34cd-4b3e-996a-bb7e164d3647\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.testfqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:03 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3639'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"a14387be-f133-411f-b878-72b39ff86bc5\"\ ,\n \"type\": \"TXT\",\n \"name\": \"orig.testfull.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fqdntest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fulltest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\"\ ,\n \"type\": \"TXT\",\n \"name\": \"ttl.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"ttlshouldbe3600\"\n }\n ]\n },\n {\n\ \ \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"7ee28c9d-34cd-4b3e-996a-bb7e164d3647\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.testfqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.fqdn.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.full.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:04 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3639'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records/a14387be-f133-411f-b878-72b39ff86bc5 response: body: {string: "{\n \"id\": \"a14387be-f133-411f-b878-72b39ff86bc5\",\n \"type\"\ : \"TXT\",\n \"name\": \"orig.testfull.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\": \"challengetoken\"\ \n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['220'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:04 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "[\n {\n \"id\": \"1627d630-f6c3-47bc-ab93-f092b84b8bd7\",\n\ \ \"type\": \"CNAME\",\n \"name\": \"docs.example.com.\",\n\ \ \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n \ \ {\n \"cname\": \"docs.example.com.example.com.\"\n \ \ }\n ]\n },\n {\n \"id\": \"e693bb87-8d5f-436d-99cf-19db1028b428\"\ ,\n \"type\": \"NS\",\n \"name\": \"example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 86400,\n \"records\": [\n {\n\ \ \"nsdname\": \"ns2.gehirndns.com.\"\n },\n {\n \"\ nsdname\": \"ns2.gehirndns.net.\"\n },\n {\n \"nsdname\"\ : \"ns2.gehirndns.jp.\"\n },\n {\n \"nsdname\": \"ns2.gehirndns.org.\"\ \n }\n ]\n },\n {\n \"id\": \"bb624c31-4dbc-41e9-aa83-af3090496cff\"\ ,\n \"type\": \"A\",\n \"name\": \"localhost.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"address\": \"127.0.0.1\"\n }\n ]\n },\n {\n\ \ \"id\": \"e063ab4f-fb1a-41fe-a926-c42556b0d6a4\",\n \"type\": \"TXT\"\ ,\n \"name\": \"orig.nameonly.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"updated\"\n }\n ]\n },\n {\n \"id\": \"d3e9c27a-1140-4d71-830f-5785b185eb11\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.fqdntest.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"6ffae3ad-7fef-4b58-9d15-99077f3b656a\",\n \"type\": \"TXT\"\ ,\n \"name\": \"random.fulltest.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"0375a31e-ce4a-4ae8-9018-2e4fb840ca5d\"\ ,\n \"type\": \"TXT\",\n \"name\": \"random.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"69adfaf2-37a1-4ef9-b5f0-fed5b75ee27b\",\n \"type\": \"TXT\"\ ,\n \"name\": \"ttl.fqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"ttlshouldbe3600\"\n }\n ]\n },\n {\n \"id\": \"4f22b5ee-8c46-4477-ada9-c34dd8cf1e16\"\ ,\n \"type\": \"TXT\",\n \"name\": \"updated.test.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"7ee28c9d-34cd-4b3e-996a-bb7e164d3647\",\n \"type\": \"TXT\"\ ,\n \"name\": \"updated.testfqdn.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n },\n {\n \"id\": \"76740f4a-9111-44a6-b609-a410c8d22e55\"\ ,\n \"type\": \"TXT\",\n \"name\": \"_acme-challenge.fqdn.example.com.\"\ ,\n \"enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n\ \ {\n \"data\": \"challengetoken\"\n }\n ]\n },\n {\n\ \ \"id\": \"c23f027c-6583-4ee6-9558-eddb5a6a9ebf\",\n \"type\": \"TXT\"\ ,\n \"name\": \"_acme-challenge.full.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n\ \ \"data\": \"challengetoken\"\n }\n ]\n },\n {\n \"id\"\ : \"d846b5a9-b773-49bb-b263-8a8d7e612ad8\",\n \"type\": \"TXT\",\n \"\ name\": \"_acme-challenge.test.example.com.\",\n \"enable_alias\"\ : false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"data\"\ : \"challengetoken\"\n }\n ]\n }\n]"} headers: Connection: [keep-alive] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:05 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] content-length: ['3393'] status: {code: 200, message: OK} - request: body: '{"type": "TXT", "name": "updated.testfull.example.com.", "enable_alias": false, "ttl": 3600, "records": [{"data": "challengetoken"}]}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['143'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.gis.gehirn.jp/dns/v1/zones/4c6409ac-b37f-4ca4-87ea-7915f44a84eb/versions/be70daaf-0f51-459b-881e-07dc82a4b092/records response: body: {string: "{\n \"id\": \"57f3e013-cef0-4c1b-9453-5ad8b80f91d7\",\n \"type\"\ : \"TXT\",\n \"name\": \"updated.testfull.example.com.\",\n \"\ enable_alias\": false,\n \"ttl\": 3600,\n \"records\": [\n {\n \"\ data\": \"challengetoken\"\n }\n ]\n}"} headers: Connection: [keep-alive] Content-Length: ['223'] Content-Security-Policy: [default-src 'none'] Content-Type: [application/json] Date: ['Tue, 06 Mar 2018 07:41:06 GMT'] Server: [nginx] Strict-Transport-Security: [max-age=31536000] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] X-XSS-Protection: [1; mode=block] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/glesys/000077500000000000000000000000001325606366700215125ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTests/000077500000000000000000000000001325606366700250205ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000021331325606366700332720ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:07+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":4,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000021331325606366700421650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:07+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":4,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000072411325606366700447510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:07+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":4,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:07+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['600'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "127.0.0.1", "host": "localhost.capsulecd.com", "type": "A", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['88'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:07+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600},"debug":{"input":{"data":"127.0.0.1","host":"localhost.capsulecd.com","type":"A","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['341'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000074571325606366700454250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:07+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":5,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:07+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['712'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "docs.example.com", "host": "docs.capsulecd.com", "type": "CNAME", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['94'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:08+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},"debug":{"input":{"data":"docs.example.com","host":"docs.capsulecd.com","type":"CNAME","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['353'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000077261325606366700451110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:08+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":6,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:08 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:08+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['830'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:08 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "_acme-challenge.fqdn.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['106'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:08+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['377'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:08 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000101441325606366700451070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:08+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":7,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:08 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:08+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['960'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:08 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "_acme-challenge.full.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['106'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:08+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"_acme-challenge.full.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['377'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:08 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000103631325606366700452470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:09+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":8,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:09+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1090'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "_acme-challenge.test.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['106'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:09+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"_acme-challenge.test.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['377'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000227721325606366700444120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:09+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":9,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:09+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "delete.testfilt.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:09+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045780,"domainname":"capsulecd.com","host":"delete.testfilt.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"delete.testfilt.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['367'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:09+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045780,"domainname":"capsulecd.com","host":"delete.testfilt.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1345'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"recordid": 1045780}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['21'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/deleterecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:10+02:00","text":"Record removed.","transactionid":null},"debug":{"input":{"recordid":"1045780"}}}}'} headers: connection: [Keep-Alive] content-length: ['163'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:10+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000227721325606366700474550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:10+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":9,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:10+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "delete.testfqdn.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:10+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045781,"domainname":"capsulecd.com","host":"delete.testfqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"delete.testfqdn.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['367'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:10+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045781,"domainname":"capsulecd.com","host":"delete.testfqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1345'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"recordid": 1045781}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['21'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/deleterecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:10+02:00","text":"Record removed.","transactionid":null},"debug":{"input":{"recordid":"1045781"}}}}'} headers: connection: [Keep-Alive] content-length: ['163'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:11+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:11 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000227721325606366700474670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:11+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":9,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:11 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:11+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:11 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "delete.testfull.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:11+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045782,"domainname":"capsulecd.com","host":"delete.testfull.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"delete.testfull.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['367'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:11 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:11+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045782,"domainname":"capsulecd.com","host":"delete.testfull.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1345'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:11 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"recordid": 1045782}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['21'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/deleterecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:11+02:00","text":"Record removed.","transactionid":null},"debug":{"input":{"recordid":"1045782"}}}}'} headers: connection: [Keep-Alive] content-length: ['163'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:11 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:11+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:11 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000227611325606366700452450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:12+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":9,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:12+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "delete.testid.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:12+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045783,"domainname":"capsulecd.com","host":"delete.testid.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"delete.testid.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['363'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:12+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045783,"domainname":"capsulecd.com","host":"delete.testid.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1343'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"recordid": 1045783}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['21'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/deleterecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:12+02:00","text":"Record removed.","transactionid":null},"debug":{"input":{"recordid":"1045783"}}}}'} headers: connection: [Keep-Alive] content-length: ['163'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:12+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000150511325606366700415470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:12+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":9,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['349'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1220'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "ttlshouldbe3600", "host": "ttl.fqdn.capsulecd.com", "ttl": 3600, "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['108'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},"debug":{"input":{"data":"ttlshouldbe3600","host":"ttl.fqdn.capsulecd.com","ttl":"3600","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['368'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1339'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000154561325606366700467020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":10,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['350'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1339'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "random.fqdntest.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"random.fqdntest.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['367'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1464'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000161001325606366700466770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:13+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":11,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['350'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1464'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "random.fulltest.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"random.fulltest.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['367'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1589'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000165011325606366700456620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":12,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['350'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1589'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "random.test.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"random.test.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['359'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1710'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000072421325606366700450260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:14+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":13,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['350'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:15+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1710'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000213551325606366700423610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:15+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":13,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['350'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:15+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1710'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "orig.test.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['95'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:15+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045788,"domainname":"capsulecd.com","host":"orig.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"orig.test.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['355'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:15+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045788,"domainname":"capsulecd.com","host":"orig.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1829'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"recordid": 1045788, "data": "challengetoken", "host": "updated.test", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/updaterecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:15+02:00","text":"Record updated.","transactionid":null},"record":{"recordid":1045788,"domainname":"capsulecd.com","host":"updated.test","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"recordid":"1045788","data":"challengetoken","host":"updated.test","type":"TXT"}}}}'} headers: connection: [Keep-Alive] content-length: ['345'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000220461325606366700454220ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:15+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":14,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['350'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:16+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045788,"domainname":"capsulecd.com","host":"updated.test","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1824'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "orig.testfqdn.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:16+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045789,"domainname":"capsulecd.com","host":"orig.testfqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"orig.testfqdn.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['363'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:16+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045789,"domainname":"capsulecd.com","host":"orig.testfqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045788,"domainname":"capsulecd.com","host":"updated.test","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1947'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"recordid": 1045789, "data": "challengetoken", "host": "updated.testfqdn.capsulecd.com.", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/updaterecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:16+02:00","text":"Record updated.","transactionid":null},"record":{"recordid":1045789,"domainname":"capsulecd.com","host":"updated.testfqdn.capsulecd.com.","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"recordid":"1045789","data":"challengetoken","host":"updated.testfqdn.capsulecd.com.","type":"TXT"}}}}'} headers: connection: [Keep-Alive] content-length: ['371'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000224711325606366700454360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/glesys/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://api.glesys.com/domain/list?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:16+02:00","text":"OK","transactionid":null},"domains":[{"domainname":"capsulecd.com","createtime":"2016-07-27T14:57:07+02:00","recordcount":15,"registrarinfo":{"state":"OK","statedescription":"","expire":"2017-07-27","autorenew":"yes","tld":"se","invoicenumber":null}}],"debug":{"input":{}}}}'} headers: connection: [Keep-Alive] content-length: ['350'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:16+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045789,"domainname":"capsulecd.com","host":"updated.testfqdn.capsulecd.com.","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045788,"domainname":"capsulecd.com","host":"updated.test","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['1951'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "host": "orig.testfull.capsulecd.com", "type": "TXT", "domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/addrecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:16+02:00","text":"Record added.","transactionid":null},"record":{"recordid":1045790,"domainname":"capsulecd.com","host":"orig.testfull.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"data":"challengetoken","host":"orig.testfull.capsulecd.com","type":"TXT","domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['363'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"domainname": "capsulecd.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/listrecords?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:17+02:00","text":"OK","transactionid":null},"records":[{"recordid":909871,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns1.namesystem.se.","ttl":3600},{"recordid":909872,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns2.namesystem.se.","ttl":3600},{"recordid":909873,"domainname":"capsulecd.com","host":"@","type":"NS","data":"ns3.namesystem.se.","ttl":3600},{"recordid":909876,"domainname":"capsulecd.com","host":"@","type":"TXT","data":"v=spf1 include:spf.glesys.se -all","ttl":3600},{"recordid":1045790,"domainname":"capsulecd.com","host":"orig.testfull.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045789,"domainname":"capsulecd.com","host":"updated.testfqdn.capsulecd.com.","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045776,"domainname":"capsulecd.com","host":"docs.capsulecd.com","type":"CNAME","data":"docs.example.com","ttl":3600},{"recordid":1045777,"domainname":"capsulecd.com","host":"_acme-challenge.fqdn.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045779,"domainname":"capsulecd.com","host":"_acme-challenge.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045778,"domainname":"capsulecd.com","host":"_acme-challenge.full.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045784,"domainname":"capsulecd.com","host":"ttl.fqdn.capsulecd.com","type":"TXT","data":"ttlshouldbe3600","ttl":3600},{"recordid":1045785,"domainname":"capsulecd.com","host":"random.fqdntest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045786,"domainname":"capsulecd.com","host":"random.fulltest.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045787,"domainname":"capsulecd.com","host":"random.test.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045788,"domainname":"capsulecd.com","host":"updated.test","type":"TXT","data":"challengetoken","ttl":3600},{"recordid":1045775,"domainname":"capsulecd.com","host":"localhost.capsulecd.com","type":"A","data":"127.0.0.1","ttl":3600}],"debug":{"input":{"domainname":"capsulecd.com"}}}}'} headers: connection: [Keep-Alive] content-length: ['2074'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} - request: body: !!python/unicode '{"recordid": 1045790, "data": "challengetoken", "host": "updated.testfull.capsulecd.com", "type": "TXT"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: POST uri: https://api.glesys.com/domain/updaterecord?format=json response: body: {string: !!python/unicode '{"response":{"status":{"code":200,"timestamp":"2017-03-30T15:44:17+02:00","text":"Record updated.","transactionid":null},"record":{"recordid":1045790,"domainname":"capsulecd.com","host":"updated.testfull.capsulecd.com","type":"TXT","data":"challengetoken","ttl":3600},"debug":{"input":{"recordid":"1045790","data":"challengetoken","host":"updated.testfull.capsulecd.com","type":"TXT"}}}}'} headers: connection: [Keep-Alive] content-length: ['369'] content-type: [application/json] date: ['Thu, 30 Mar 2017 13:44:17 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.2.22 (Debian)] status: ['200'] x-powered-by: [PHP/5.4.35-0+deb7u2] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/godaddy/000077500000000000000000000000001325606366700216175ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTests/000077500000000000000000000000001325606366700251255ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000032421325606366700334010ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:12 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBEsLUwhZAVJSAQ9NRFAKChJIQ1MFA1JVAQYPV1BWAFYCUhpOXllYQVY4] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000027601325606366700423000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/thisisadomainidonotown.com response: body: {string: !!python/unicode '{"code":"NOT_FOUND","message":"Domain thisisadomainidonotown.com not found for shopper","name":"ApiError"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['106'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:13 GMT'] etag: [W/"6a-hmteov0EBQpvLV5wjJuGbVJ3arg"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeA0sJVwZUBFdcBAZRVlMIAwBUUE4VAAdQRh0UAldeBwNSBgFQCF4GBwRVG01XAF8RAWs=] x-powered-by: [Express] status: {code: 404, message: Not Found} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000060671325606366700450630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:20 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBUsIUQdZAFZRBAdRVlMIAwBRTUAEAw5ESBMCBgRQVQYHUg0GDAoBAhFJXwBdElY/] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "127.0.0.1", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['36'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/A/localhost response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:23 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4FHwNQUgcCC1BeVk4SUBpOGgkABlVXDVRTUgRQAgRRUURPXlJcFwQ/] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000060651325606366700455240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:29 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksLUgBUAldTBw5NRFAKChJIQ1sFBFEHVwMOB1AFBwcIQBQEWVRHV24=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "docs.example.com", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['43'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/CNAME/docs response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:31 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHw5WUAYDC1BfT0ACQBRAClpQU1UGWlYIBQtWB1cVTQACVEBVOQ==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000061111325606366700452010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:37 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksIUAdRBFFXAgFYX1oBCglRTUAEAw5ESBNXA1QEUAAFV11VAV5QAhFJXwBdElY/] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/_acme-challenge.fqdn response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:40 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4FHwdSXQIOAFZTWk4SUBpOGgkAAANTAVcEUVADVQRRUURPXlJcFwQ/] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000061011325606366700452120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:46 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksKWQJQAlFdBQ9NRFAKChJIQ1MGAgNeUQhXAFFWVlMCUhpOXllYQVY4] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/_acme-challenge.full response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:48 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHw5eVgYFBFFeW04SUBpOGgsGBAUAWFlUBwNbBVIVTQACVEBVOQ==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000061151325606366700453540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:54 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeB0sPUAVVBVNUAQJYX1oBCglSTUAEAw5ESBMHAVADUlVSVQ5SClwGVgNHFQdQDUAHOQ==] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/_acme-challenge.test response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:56 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwBTVAgGBlNSVU4SUBpOGgkGBAQGDVEGAlcHXVJVUURPXlJcFwQ/] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000256311325606366700445140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:08:02 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeB0sBWQJYB1tWAAJNRFAKChJIQ1MCBFRRVQIPBgFfUlRTUhpOXllYQVY4] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/delete.testfilt response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:08:03 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwZSUQICAlteUk4SUBpOGl1VAVJWWFMCVVJbXVIHQ0oFWV9DATw=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records response: body: {string: !!python/unicode '[{"type":"A","name":"@","data":"1.2.3.5","ttl":3600},{"type":"A","name":"localhost","data":"127.0.0.1","ttl":3600},{"type":"CNAME","name":"docs","data":"docs.example.com","ttl":3600},{"type":"CNAME","name":"domain-service-it","data":"mail","ttl":1000},{"type":"CNAME","name":"imap","data":"mail","ttl":1002},{"type":"CNAME","name":"pop","data":"mail","ttl":1003},{"type":"CNAME","name":"smtp","data":"mail","ttl":1004},{"type":"CNAME","name":"test2","data":"test","ttl":3600},{"type":"MX","name":"@","data":"mail.000.biz","priority":0,"ttl":3600},{"type":"TXT","name":"delete.testfilt","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.nameonly.test","data":"updated","ttl":3600},{"type":"TXT","name":"orig.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fqdntest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fulltest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"ttl.fqdn","data":"ttlshouldbe3600","ttl":3600},{"type":"TXT","name":"updated.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","ttl":3600},{"type":"NS","name":"@","data":"ns01.ote.domaincontrol.com","ttl":3600},{"type":"NS","name":"@","data":"ns02.ote.domaincontrol.com","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['1806'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:08:04 GMT'] etag: [W/"70e-6OZcRW8wS48ZC9QXezYzNpUL8QM"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwYHBVtUUFQDThpTAAgCEB9HWFMEUwFaBg4OVwNVDREcAgAORFRq] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "1.2.3.5", "type": "A", "name": "@", "ttl": 3600}, {"data": "127.0.0.1", "type": "A", "name": "localhost", "ttl": 3600}, {"data": "docs.example.com", "type": "CNAME", "name": "docs", "ttl": 3600}, {"data": "mail", "type": "CNAME", "name": "domain-service-it", "ttl": 1000}, {"data": "mail", "type": "CNAME", "name": "imap", "ttl": 1002}, {"data": "mail", "type": "CNAME", "name": "pop", "ttl": 1003}, {"data": "mail", "type": "CNAME", "name": "smtp", "ttl": 1004}, {"data": "test", "type": "CNAME", "name": "test2", "ttl": 3600}, {"priority": 0, "data": "mail.000.biz", "type": "MX", "name": "@", "ttl": 3600}, {"data": "updated", "type": "TXT", "name": "orig.nameonly.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.testfqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.testfull", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.fqdntest", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.fulltest", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.test", "ttl": 3600}, {"data": "ttlshouldbe3600", "type": "TXT", "name": "ttl.fqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.testfqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.testfull", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.fqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.full", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.test", "ttl": 3600}, {"data": "ns01.ote.domaincontrol.com", "type": "NS", "name": "@", "ttl": 3600}, {"data": "ns02.ote.domaincontrol.com", "type": "NS", "name": "@", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1932'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['121'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:09 GMT'] etag: [W/"79-DSgzB+j1FNeoO72UsWN6P7TAtpw"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEhNNA05SBRlUUVANCwlSVVAbEwZUVRMaEVRSWlICW1wAXgkGUFZdG01XAF8RAWs=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/delete.testfilt response: body: {string: !!python/unicode '[]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['74'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:10 GMT'] etag: [W/"4a-zgPi4dQGKV+JKL3hO49d0lx6Nd0"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwYPAlJSU1YCThpVDBoYEAZRAFlQVgNUVVJVAwdBFFVRCBIHag==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000261011325606366700475500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:14 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeB0sAUghRBVtdAwVNRFAKChJIQ1MFBAAEUQdSV1QCVQcFUhpOXllYQVY4] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/delete.testfqdn response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:16 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwZeUgcCAlBWUE4SUBpOGgkHUwsAW1JUUAdaVQBWQ0oFWV9DATw=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records response: body: {string: !!python/unicode '[{"type":"A","name":"@","data":"1.2.3.5","ttl":3600},{"type":"A","name":"localhost","data":"127.0.0.1","ttl":3600},{"type":"CNAME","name":"docs","data":"docs.example.com","ttl":3600},{"type":"CNAME","name":"domain-service-it","data":"mail","ttl":1000},{"type":"CNAME","name":"imap","data":"mail","ttl":1002},{"type":"CNAME","name":"pop","data":"mail","ttl":1003},{"type":"CNAME","name":"smtp","data":"mail","ttl":1004},{"type":"CNAME","name":"test2","data":"test","ttl":3600},{"type":"MX","name":"@","data":"mail.000.biz","priority":0,"ttl":3600},{"type":"TXT","name":"delete.testfilt","data":"challengetoken","ttl":3600},{"type":"TXT","name":"delete.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.nameonly.test","data":"updated","ttl":3600},{"type":"TXT","name":"orig.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fqdntest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fulltest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"ttl.fqdn","data":"ttlshouldbe3600","ttl":3600},{"type":"TXT","name":"updated.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","ttl":3600},{"type":"NS","name":"@","data":"ns01.ote.domaincontrol.com","ttl":3600},{"type":"NS","name":"@","data":"ns02.ote.domaincontrol.com","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['1881'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:17 GMT'] etag: [W/"759-aodQhs8yQfudkRu1bN4abGbNX4I"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIUAcCClVXU1ABThpTAAAFEB9HCFEFUQNUAlAOB1BSClIARk0EVl1EAzk=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "1.2.3.5", "type": "A", "name": "@", "ttl": 3600}, {"data": "127.0.0.1", "type": "A", "name": "localhost", "ttl": 3600}, {"data": "docs.example.com", "type": "CNAME", "name": "docs", "ttl": 3600}, {"data": "mail", "type": "CNAME", "name": "domain-service-it", "ttl": 1000}, {"data": "mail", "type": "CNAME", "name": "imap", "ttl": 1002}, {"data": "mail", "type": "CNAME", "name": "pop", "ttl": 1003}, {"data": "mail", "type": "CNAME", "name": "smtp", "ttl": 1004}, {"data": "test", "type": "CNAME", "name": "test2", "ttl": 3600}, {"priority": 0, "data": "mail.000.biz", "type": "MX", "name": "@", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "delete.testfilt", "ttl": 3600}, {"data": "updated", "type": "TXT", "name": "orig.nameonly.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.testfqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.testfull", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.fqdntest", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.fulltest", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.test", "ttl": 3600}, {"data": "ttlshouldbe3600", "type": "TXT", "name": "ttl.fqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.testfqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.testfull", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.fqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.full", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.test", "ttl": 3600}, {"data": "ns01.ote.domaincontrol.com", "type": "NS", "name": "@", "ttl": 3600}, {"data": "ns02.ote.domaincontrol.com", "type": "NS", "name": "@", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2015'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['121'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:27 GMT'] etag: [W/"79-DSgzB+j1FNeoO72UsWN6P7TAtpw"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEhNNA05dGAFSVlQAAgVRVk4VAAVXRh0UAlMCAgMBBF1aAQpXBQpVG01XAF8RAWs=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/delete.testfqdn response: body: {string: !!python/unicode '[]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['74'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:07:41 GMT'] etag: [W/"4a-zgPi4dQGKV+JKL3hO49d0lx6Nd0"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwYPAlJSU1YCThpVDBoYEAZRAFlQVgNUVVJVAwdBFFVRCBIHag==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000263551325606366700475750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:34 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksBWAlXBlJXAQBNRFAKChJIQ1dTVA5fAQAOVQNWBgEAQBQEWVRHV24=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/delete.testfull response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:36 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwRWUAcGA1BfUE4SUBpOGltWB1ZWDQAFVQpaAA4PQ0oFWV9DATw=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records response: body: {string: !!python/unicode '[{"type":"A","name":"@","data":"1.2.3.5","ttl":3600},{"type":"A","name":"localhost","data":"127.0.0.1","ttl":3600},{"type":"CNAME","name":"docs","data":"docs.example.com","ttl":3600},{"type":"CNAME","name":"domain-service-it","data":"mail","ttl":1000},{"type":"CNAME","name":"imap","data":"mail","ttl":1002},{"type":"CNAME","name":"pop","data":"mail","ttl":1003},{"type":"CNAME","name":"smtp","data":"mail","ttl":1004},{"type":"CNAME","name":"test2","data":"test","ttl":3600},{"type":"MX","name":"@","data":"mail.000.biz","priority":0,"ttl":3600},{"type":"TXT","name":"delete.testfilt","data":"challengetoken","ttl":3600},{"type":"TXT","name":"delete.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"delete.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.nameonly.test","data":"updated","ttl":3600},{"type":"TXT","name":"orig.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fqdntest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fulltest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"ttl.fqdn","data":"ttlshouldbe3600","ttl":3600},{"type":"TXT","name":"updated.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","ttl":3600},{"type":"NS","name":"@","data":"ns01.ote.domaincontrol.com","ttl":3600},{"type":"NS","name":"@","data":"ns02.ote.domaincontrol.com","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['1956'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:37 GMT'] etag: [W/"7a4-yf2MjU589PgIPHsmLrPRiG29hOE"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwkFBFtXU1MAUghSCAgEAgdJG1AIVAVASBQAWQRaCgYJU1lQAgRSUkYdUFIOFQY/] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "1.2.3.5", "type": "A", "name": "@", "ttl": 3600}, {"data": "127.0.0.1", "type": "A", "name": "localhost", "ttl": 3600}, {"data": "docs.example.com", "type": "CNAME", "name": "docs", "ttl": 3600}, {"data": "mail", "type": "CNAME", "name": "domain-service-it", "ttl": 1000}, {"data": "mail", "type": "CNAME", "name": "imap", "ttl": 1002}, {"data": "mail", "type": "CNAME", "name": "pop", "ttl": 1003}, {"data": "mail", "type": "CNAME", "name": "smtp", "ttl": 1004}, {"data": "test", "type": "CNAME", "name": "test2", "ttl": 3600}, {"priority": 0, "data": "mail.000.biz", "type": "MX", "name": "@", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "delete.testfilt", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "delete.testfqdn", "ttl": 3600}, {"data": "updated", "type": "TXT", "name": "orig.nameonly.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.testfqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "orig.testfull", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.fqdntest", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.fulltest", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "random.test", "ttl": 3600}, {"data": "ttlshouldbe3600", "type": "TXT", "name": "ttl.fqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.test", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.testfqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "updated.testfull", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.fqdn", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.full", "ttl": 3600}, {"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.test", "ttl": 3600}, {"data": "ns01.ote.domaincontrol.com", "type": "NS", "name": "@", "ttl": 3600}, {"data": "ns02.ote.domaincontrol.com", "type": "NS", "name": "@", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2098'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['121'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:39 GMT'] etag: [W/"79-DSgzB+j1FNeoO72UsWN6P7TAtpw"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEhNNA05VGAVSVFoKBAVTV04VAAVXRh0UAlJUAVZVAVtQXFoBAQBVG01XAF8RAWs=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/delete.testfull response: body: {string: !!python/unicode '[]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['74'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:40 GMT'] etag: [W/"4a-zgPi4dQGKV+JKL3hO49d0lx6Nd0"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwYPAlJSU1YCThpVDBoYEAZRAFlQVgNUVVJVAwdBFFVRCBIHag==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000107631325606366700416610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:45 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeB0sAVwJZB1FRAAVNRFAKChJIQ1BSAwACXAYAAlFXAFYIQBQEWVRHV24=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "ttlshouldbe3600", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['42'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/ttl.fqdn response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:47 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4FHwdVVgAGAVBVUFIAUghSCAsYEAFHFUMGBwNQUFBTVVdbXAMHUENOUVBbFQFs] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/ttl.fqdn response: body: {string: !!python/unicode '[{"type":"TXT","name":"ttl.fqdn","data":"ttlshouldbe3600","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['70'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:48 GMT'] etag: [W/"46-nfJWTFHoivj+iFksPvSU0FGYqdQ"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIUAEGBVRSUlEDThpVCBoYEAJSC1gBVgtXVlQCVFAHGh9WBQ0RUmw=] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000107721325606366700470030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:54 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksIWAVUAFFRAhtDVVEBERxGUgMBUlNTBQkCBFFWW0AcBFkOS11p] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/random.fqdntest response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:57 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4FHwFWVQUFAlVUW04SUBpOGllXUQcEWlEFBFVaAgEPQ0oFWV9DATw=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/random.fqdntest response: body: {string: !!python/unicode '[{"type":"TXT","name":"random.fqdntest","data":"challengetoken","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['76'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:09:58 GMT'] etag: [W/"4c-Y7BwCOBW3jJ9fgv6D2tOjk+y9zM"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwcPA1pVUVMGThpVDhoYEAJRC1ADA1UGXQMHBAAGCBEcAgAORFRq] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000110121325606366700470010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:05 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksPUwVRAVBdDgBNRFAKChJIQ1UBBlUCVwIOAVFWUAQEQBQEWVRHV24=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/random.fulltest response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:08 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4FHwJXUgEGC1RQUk4SUBpOGl5XAQYGAAAAWQFXXQIPQ0oFWV9DATw=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/random.fulltest response: body: {string: !!python/unicode '[{"type":"TXT","name":"random.fulltest","data":"challengetoken","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['76'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:09 GMT'] etag: [W/"4c-N9ZZAA6DnNYikJsokCU5XoHx5GQ"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIUAEOB1NRU1cIWwFbAQENCwRJG1YHQx9ABlcOVFBRDwVUB1RRAwkVSgJQWkAHOw==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000107621325606366700457720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:14 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeB0sBUQBRAFJVBQVNRFAKChJIQ1cAB1VeVFNTAlZUAlEEQBQEWVRHV24=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/random.test response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:17 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4FHwZeUQMOA1NVWk4SUBpOGgkAA1dUD1YEBAdbBQBWUURPXlJcFwQ/] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/random.test response: body: {string: !!python/unicode '[{"type":"TXT","name":"random.test","data":"challengetoken","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['72'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:18 GMT'] etag: [W/"48-vYgBdIR1057rCCS1vfL/E2nZcbA"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwkEBFFXW1MIThpVChoYEAJWX1VUBVEGVVIBU15bGh9WBQ0RUmw=] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000116571325606366700451400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:23 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeB0sNUwdUBFtdAQRNRFAKChJIQ1oGAgNXUVADClFTWlcIQBQEWVRHV24=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records response: body: {string: !!python/unicode '[{"type":"A","name":"@","data":"1.2.3.5","ttl":3600},{"type":"A","name":"localhost","data":"127.0.0.1","ttl":3600},{"type":"CNAME","name":"docs","data":"docs.example.com","ttl":3600},{"type":"CNAME","name":"domain-service-it","data":"mail","ttl":1000},{"type":"CNAME","name":"imap","data":"mail","ttl":1002},{"type":"CNAME","name":"pop","data":"mail","ttl":1003},{"type":"CNAME","name":"smtp","data":"mail","ttl":1004},{"type":"CNAME","name":"test2","data":"test","ttl":3600},{"type":"MX","name":"@","data":"mail.000.biz","priority":0,"ttl":3600},{"type":"TXT","name":"delete.testfilt","data":"challengetoken","ttl":3600},{"type":"TXT","name":"delete.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"delete.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.nameonly.test","data":"updated","ttl":3600},{"type":"TXT","name":"orig.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"orig.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fqdntest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.fulltest","data":"challengetoken","ttl":3600},{"type":"TXT","name":"random.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"ttl.fqdn","data":"ttlshouldbe3600","ttl":3600},{"type":"TXT","name":"updated.test","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"updated.testfull","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","ttl":3600},{"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","ttl":3600},{"type":"NS","name":"@","data":"ns01.ote.domaincontrol.com","ttl":3600},{"type":"NS","name":"@","data":"ns02.ote.domaincontrol.com","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['1956'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:24 GMT'] etag: [W/"7a4-yf2MjU589PgIPHsmLrPRiG29hOE"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwQHAVBUUlYcQAlbDQ4WHhFUDQJSAgMDXQMDAldWDAMSSAcDW0JSOw==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000136131325606366700424640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:28 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeAEsNUAJUBFJcAgJNRFAKChJIQ1MHAgUAUwcECldeAlVRUhpOXllYQVY4] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.test response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:31 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHw9QVgEPAFNXVlIAUghSCAoYEAFHFUMFUgtQUAUOVlAADQoAVENOUVBbFQFs] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.test response: body: {string: !!python/unicode '[{"type":"TXT","name":"orig.test","data":"challengetoken","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['70'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:32 GMT'] etag: [W/"46-65VQFKTsv2zzWQrOkPzrUPCuVic"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwgHAlBSUlUJThpVCBoYEAJTC1gJA1EDXQEFUl5QCBEcAgAORFRq] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/updated.test response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:35 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4FHwRfUAcHB1BXVU4SUBpOGllRC1cAD1BXBAdaUAUHQ0oFWV9DATw=] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000107251325606366700455000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:41 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksNVARZBlJTBw9NRFAKChJIQ1YPBVFVAAADVQFVBQQIQBQEWVRHV24=] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.nameonly.test response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:43 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwBXUgkGB1tTWk4SUBpOGgkAAQddCQVTUlUHAAQCUURPXlJcFwQ/] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "updated", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['34'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.nameonly.test response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:46 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwFRVggDClBSWk4SUBpOGgkEBQUHWlhUWApVBlcHUURPXlJcFwQ/] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000136231325606366700455300ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:52 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBksKVgZUC1NVDwZNRFAKChJIQ1MEVwJSXAcOVgYDU1IIUhpOXllYQVY4] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.testfqdn response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:54 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHw5RVAIBBlJTV04SUBpOGgkAAAtWClYFWAoAUAMPUURPXlJcFwQ/] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.testfqdn response: body: {string: !!python/unicode '[{"type":"TXT","name":"orig.testfqdn","data":"challengetoken","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['74'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:55 GMT'] etag: [W/"4a-aW/SVtCSAfRVB6zpFIu/v44tnzo"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwYPC1BUV1oFThpVDBoYEAJXXVlVWFFVVQEOUQUBCBEcAgAORFRq] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/updated.testfqdn response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:10:58 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwFVUwcCBlNQVU4SUBpOGgBXAwtTC1BSBQdbVAQPQ0oFWV9DATw=] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000136471325606366700455500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/godaddy/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz response: body: {string: !!python/unicode '{"domainId":1002111,"domain":"000.biz","status":"TRANSFERRED_OUT","expires":"2016-06-14T23:59:59Z","expirationProtected":false,"holdRegistrar":false,"locked":true,"privacy":false,"renewAuto":true,"renewable":false,"transferProtected":false,"createdAt":"2015-06-15T13:10:43Z","authCode":"C36C3C6M26XE4DB5","subaccountId":"857256"}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['329'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:11:05 GMT'] etag: [W/"149-Wv5RnvoMk5suL5kc+t99b36u7fY"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwaFAQeBUsBVwZVBFtcDgRNRFAKChJIQ1MFUAcCUVdQBVdSUAMGUhpOXllYQVY4] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.testfull response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:11:08 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHw9WUgcEBVpUVlIAUghSCAoYEAFHFUMJB1VQV1UOB18HXVAJXENOUVBbFQFs] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: GET uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/orig.testfull response: body: {string: !!python/unicode '[{"type":"TXT","name":"orig.testfull","data":"challengetoken","ttl":3600}]'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['74'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:11:09 GMT'] etag: [W/"4a-zgPi4dQGKV+JKL3hO49d0lx6Nd0"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJJH1nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUwhOXA1ZXlVbQ04HHQdIVwYPAlJSU1YCThpVDBoYEAZRAFlQVgNUVVJVAwdBFFVRCBIHag==] x-powered-by: [Express] status: {code: 200, message: OK} - request: body: !!python/unicode '[{"data": "challengetoken", "ttl": 3600}]' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['41'] Content-Type: [application/json] User-Agent: [python-requests/2.11.1] method: PUT uri: https://api.ote-godaddy.com/v1/domains/000.biz/records/TXT/updated.testfull response: body: {string: !!python/unicode '{}'} headers: access-control-allow-credentials: ['true'] access-control-allow-headers: ['Authorization,Content-Type,Cookie,X-Currency-Id,X-Delegate-Id,X-Market-Id,X-Private-Label-Id,X-Request-Id,X-Shopper-Id'] access-control-allow-origin: ['*'] connection: [Keep-Alive] content-length: ['2'] content-type: [application/json; charset=utf-8] date: ['Sat, 17 Jun 2017 10:11:11 GMT'] etag: [W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"] keep-alive: ['timeout=15, max=100'] server: [Apache/2.4.6 (CentOS)] transfer-encoding: [chunked] vary: ['Origin,Accept-Encoding'] via: [1.1 domain.api.int.ote-godaddy.com, 1.1 api.ote-godaddy.com] x-newrelic-app-data: [PxQPUVdRCwcTVlRUBwEFV1wTGhE1AwE2QgNWEVlbQFtcCxYkSRFBBxdFXRJJM21nH0sXUxhVWAsFWFhATVwHDV0DUQwXSlFRXBddEh5bRxsUUxhbCAJVVhJIUU4GHwBQVwQBBFJTUFsJWwFbAQAYEAFHFUMAUQIDAQIHUwBRXAIIXVFAG1dWChdUaw==] x-powered-by: [Express] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/linode/000077500000000000000000000000001325606366700214565ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTests/000077500000000000000000000000001325606366700247645ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000021141325606366700332350ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:41 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000021141325606366700421300ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:42 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000055311325606366700447150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:44 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:46 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=localhost&TTL_sec=0&Target=127.0.0.1&Type=A&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154867},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:49 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000060011325606366700453510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:51 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:53 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=docs&TTL_sec=0&Target=docs.example.com&Type=CNAME&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154868},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:55 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000062661325606366700450530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:57 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:52:59 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.fqdn&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154869},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:02 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000065531325606366700450640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:04 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:06 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.full&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154870},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:08 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000070401325606366700452110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:11 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:14 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.test&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154871},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:15 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000217051325606366700462500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:34 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:36 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.createrecordset&TTL_sec=0&Target=challengetoken1&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154883},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:39 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:41 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.createrecordset&TTL_sec=0&Target=challengetoken2&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154884},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:43 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000313731325606366700457110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:23 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:26 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.noop&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154889},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:28 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154889,"TYPE":"TXT","NAME":"_acme-challenge.noop"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:30 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154889,"TYPE":"TXT","NAME":"_acme-challenge.noop"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:32 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000202451325606366700443470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:22 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:24 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=delete.testfilt&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154872},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:26 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154872,"TYPE":"TXT","NAME":"delete.testfilt"},{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:28 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&ResourceID=9154872&api_action=domain.resource.delete&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.delete","DATA":{"ResourceID":9154872},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:30 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:33 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000202451325606366700474120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:35 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:37 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=delete.testfqdn&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154873},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:38 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154873,"TYPE":"TXT","NAME":"delete.testfqdn"},{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:40 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&ResourceID=9154873&api_action=domain.resource.delete&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.delete","DATA":{"ResourceID":9154873},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:42 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:44 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000202451325606366700474240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:46 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:48 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=delete.testfull&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154874},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:50 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154874,"TYPE":"TXT","NAME":"delete.testfull"},{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:52 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&ResourceID=9154874&api_action=domain.resource.delete&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.delete","DATA":{"ResourceID":9154874},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:54 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:56 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000202411325606366700452000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:53:58 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:00 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=delete.testid&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154875},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:02 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154875,"TYPE":"TXT","NAME":"delete.testid"},{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:04 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&ResourceID=9154875&api_action=domain.resource.delete&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.delete","DATA":{"ResourceID":9154875},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:05 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:07 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 8d760abeef5bb072e92a387ea65383d3a7541f0f.paxheader00006660000000000000000000000257132560636670020621xustar00rootroot00000000000000175 path=lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 8d760abeef5bb072e92a387ea65383d3a7541f0f.data000066400000000000000000000433171325606366700174630ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:46 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:48 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.deleterecordinset&TTL_sec=0&Target=challengetoken1&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154885},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:50 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154885,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:52 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.deleterecordinset&TTL_sec=0&Target=challengetoken2&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154886},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:54 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154885,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:56 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&ResourceID=9154885&api_action=domain.resource.delete&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.delete","DATA":{"ResourceID":9154885},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:58 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:01 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000462331325606366700444750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:03 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:05 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.deleterecordset&TTL_sec=0&Target=challengetoken1&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154887},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:07 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154887,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:10 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.deleterecordset&TTL_sec=0&Target=challengetoken2&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154888},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:12 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154887,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154888,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:14 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&ResourceID=9154887&api_action=domain.resource.delete&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.delete","DATA":{"ResourceID":9154887},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:16 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&ResourceID=9154888&api_action=domain.resource.delete&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.delete","DATA":{"ResourceID":9154888},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:19 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:21 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000346761325606366700432150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:35 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154889,"TYPE":"TXT","NAME":"_acme-challenge.noop"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:37 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.listrecordset&TTL_sec=0&Target=challengetoken1&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154890},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:40 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154890,"TYPE":"TXT","NAME":"_acme-challenge.listrecordset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154889,"TYPE":"TXT","NAME":"_acme-challenge.noop"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:42 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=_acme-challenge.listrecordset&TTL_sec=0&Target=challengetoken2&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154891},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:44 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"updated.testfull"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154883,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154884,"TYPE":"TXT","NAME":"_acme-challenge.createrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154886,"TYPE":"TXT","NAME":"_acme-challenge.deleterecordinset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154890,"TYPE":"TXT","NAME":"_acme-challenge.listrecordset"},{"TARGET":"challengetoken2","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154891,"TYPE":"TXT","NAME":"_acme-challenge.listrecordset"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154889,"TYPE":"TXT","NAME":"_acme-challenge.noop"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:56:47 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000131141325606366700466330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:09 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:12 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=random.fqdntest&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154876},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:15 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:17 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000136541325606366700466560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:19 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:21 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=random.fulltest&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154877},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:23 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:26 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000061701325606366700463170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:28 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:29 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000144041325606366700456260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:32 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:34 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=random.test&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154878},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:37 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:39 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000064441325606366700447750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:42 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:43 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000170261325606366700423250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:45 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:48 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=orig.test&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154879},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:51 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"orig.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:53 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=updated.test&ResourceID=9154879&Target=challengetoken&Type=TXT&api_action=domain.resource.update&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.update","DATA":{"ResourceID":9154879},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:56 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000176011325606366700453370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:54:58 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:00 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=orig.nameonly.test&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154880},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:03 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:06 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=orig.nameonly.test&ResourceID=9154880&Target=updated&Type=TXT&api_action=domain.resource.update&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.update","DATA":{"ResourceID":9154880},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:08 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000203241325606366700453630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:10 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:12 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=orig.testfqdn&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154881},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:14 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"orig.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:17 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=updated.testfqdn&ResourceID=9154881&Target=challengetoken&Type=TXT&api_action=domain.resource.update&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.update","DATA":{"ResourceID":9154881},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:21 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000210661325606366700454010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/linode/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?api_action=domain.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.list","DATA":[{"DOMAIN":"lexicon-example.com","AXFR_IPS":"none","TTL_SEC":0,"DOMAINID":1047330,"SOA_EMAIL":"trinopoty@hotmail.com","EXPIRE_SEC":0,"RETRY_SEC":0,"STATUS":1,"DESCRIPTION":"","LPM_DISPLAYGROUP":"","REFRESH_SEC":0,"MASTER_IPS":"","TYPE":"master"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:22 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:25 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=orig.testfull&TTL_sec=0&Target=challengetoken&Type=TXT&api_action=domain.resource.create&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.create","DATA":{"ResourceID":9154882},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:27 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&api_action=domain.resource.list&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.list","DATA":[{"TARGET":"docs.example.com","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154868,"TYPE":"CNAME","NAME":"docs"},{"TARGET":"127.0.0.1","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154867,"TYPE":"A","NAME":"localhost"},{"TARGET":"updated","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154880,"TYPE":"TXT","NAME":"orig.nameonly.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154882,"TYPE":"TXT","NAME":"orig.testfull"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154876,"TYPE":"TXT","NAME":"random.fqdntest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154877,"TYPE":"TXT","NAME":"random.fulltest"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154878,"TYPE":"TXT","NAME":"random.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154879,"TYPE":"TXT","NAME":"updated.test"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154881,"TYPE":"TXT","NAME":"updated.testfqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154869,"TYPE":"TXT","NAME":"_acme-challenge.fqdn"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154870,"TYPE":"TXT","NAME":"_acme-challenge.full"},{"TARGET":"challengetoken","TTL_SEC":0,"PORT":80,"DOMAINID":1047330,"PROTOCOL":"","PRIORITY":10,"TAG":"","WEIGHT":5,"RESOURCEID":9154871,"TYPE":"TXT","NAME":"_acme-challenge.test"}],"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:29 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.linode.com/api/?DomainID=1047330&Name=updated.testfull&ResourceID=9154882&Target=challengetoken&Type=TXT&api_action=domain.resource.update&resultFormat=JSON response: body: {string: !!python/unicode '{"ACTION":"domain.resource.update","DATA":{"ResourceID":9154882},"ERRORARRAY":[]}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-type: [application/json;charset=UTF-8] date: ['Tue, 20 Mar 2018 11:55:31 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-powered-by: [Tiger Blood] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/luadns/000077500000000000000000000000001325606366700214725ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTests/000077500000000000000000000000001325606366700250005ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000016701325606366700332570ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":6,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:06 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000016701325606366700421520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":6,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:07 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000102011325606366700447170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":6,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:07 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521529623 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['1327'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:07 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "127.0.0.1", "type": "A", "name": "localhost.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068353602Z","updated_at":"2018-03-20T07:18:08.068355682Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['220'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:08 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000105741325606366700450640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":7,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:08 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530288 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['1541'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:08 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.fqdn.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['104'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352472Z","updated_at":"2018-03-20T07:18:09.105354358Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['238'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:09 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000111441325606366700450700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":8,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:09 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530289 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['1773'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:09 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.full.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['104'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.105099755Z","updated_at":"2018-03-20T07:18:10.105101656Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['238'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:10 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000115121325606366700452240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":9,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:10 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530290 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2003'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:10 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.test.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['104'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634136Z","updated_at":"2018-03-20T07:18:11.252636028Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['238'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:11 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000310451325606366700462620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":17,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:32 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530312 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3813'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:33 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.createrecordset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697456Z","updated_at":"2018-03-20T07:18:33.498699301Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['250'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:33 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530313 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4057'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:33 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.createrecordset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158780694Z","updated_at":"2018-03-20T07:18:34.158782603Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['250'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:34 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000444751325606366700457340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":20,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:40 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530319 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4547'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:40 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.noop.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['104'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753636,"name":"_acme-challenge.noop.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:41.181252027Z","updated_at":"2018-03-20T07:18:41.181254037Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['238'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:41 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753636,"name":"_acme-challenge.noop.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:41.181252Z","updated_at":"2018-03-20T07:18:41.181254Z"},{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530321 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4779'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:41 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753636,"name":"_acme-challenge.noop.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:41.181252Z","updated_at":"2018-03-20T07:18:41.181254Z"},{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530321 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4779'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:41 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000304501325606366700443620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":10,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:11 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530291 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:11 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "delete.testfilt.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753615,"name":"delete.testfilt.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:12.285252279Z","updated_at":"2018-03-20T07:18:12.285254176Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['233'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:12 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753615,"name":"delete.testfilt.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:12.285252Z","updated_at":"2018-03-20T07:18:12.285254Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530292 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2462'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:12 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.luadns.com/v1/zones/39105/records/40753615 response: body: {string: !!python/unicode '{"id":40753615,"name":"delete.testfilt.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:12.285252Z","updated_at":"2018-03-20T07:18:12.285254Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['227'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:12 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530292 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:13 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000304501325606366700474250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":10,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:13 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530292 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:14 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "delete.testfqdn.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753616,"name":"delete.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:14.349695733Z","updated_at":"2018-03-20T07:18:14.349697739Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['233'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:14 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753616,"name":"delete.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:14.349696Z","updated_at":"2018-03-20T07:18:14.349698Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530294 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2462'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:14 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.luadns.com/v1/zones/39105/records/40753616 response: body: {string: !!python/unicode '{"id":40753616,"name":"delete.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:14.349696Z","updated_at":"2018-03-20T07:18:14.349698Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['227'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:15 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530294 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:15 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000304501325606366700474370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":10,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:16 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530294 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:16 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "delete.testfull.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753617,"name":"delete.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:16.657211924Z","updated_at":"2018-03-20T07:18:16.657213918Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['233'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:16 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753617,"name":"delete.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:16.657212Z","updated_at":"2018-03-20T07:18:16.657214Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530297 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2462'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:17 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.luadns.com/v1/zones/39105/records/40753617 response: body: {string: !!python/unicode '{"id":40753617,"name":"delete.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:16.657212Z","updated_at":"2018-03-20T07:18:16.657214Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['227'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:17 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530297 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:17 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000304401325606366700452160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":10,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:18 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530297 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:18 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "delete.testid.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753622,"name":"delete.testid.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:19.018058714Z","updated_at":"2018-03-20T07:18:19.018060681Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['231'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:19 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753622,"name":"delete.testid.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:19.018059Z","updated_at":"2018-03-20T07:18:19.018061Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530299 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2460'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:19 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.luadns.com/v1/zones/39105/records/40753622 response: body: {string: !!python/unicode '{"id":40753622,"name":"delete.testid.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:19.018059Z","updated_at":"2018-03-20T07:18:19.018061Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['225'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:19 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530299 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:20 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 56707978439675091c928745e79052790415a24c.paxheader00006660000000000000000000000257132560636670017557xustar00rootroot00000000000000175 path=lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 56707978439675091c928745e79052790415a24c.data000066400000000000000000000624641325606366700164250ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":19,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:34 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530314 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4301'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:34 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.deleterecordinset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['118'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753632,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.162145389Z","updated_at":"2018-03-20T07:18:35.16214745Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['251'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:35 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753632,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.162145Z","updated_at":"2018-03-20T07:18:35.162147Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530315 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4547'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:35 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.deleterecordinset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['118'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417155Z","updated_at":"2018-03-20T07:18:35.814419106Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['252'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:35 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753632,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.162145Z","updated_at":"2018-03-20T07:18:35.162147Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530316 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4793'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:36 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.luadns.com/v1/zones/39105/records/40753632 response: body: {string: !!python/unicode '{"id":40753632,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.162145Z","updated_at":"2018-03-20T07:18:35.162147Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['246'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:36 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530316 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4547'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:36 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000660211325606366700445060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":20,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:37 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530316 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4547'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:37 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.deleterecordset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753634,"name":"_acme-challenge.deleterecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:37.876035012Z","updated_at":"2018-03-20T07:18:37.876036989Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['250'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:37 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753634,"name":"_acme-challenge.deleterecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:37.876035Z","updated_at":"2018-03-20T07:18:37.876037Z"},{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530318 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4791'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:38 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.deleterecordset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753635,"name":"_acme-challenge.deleterecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:38.542814503Z","updated_at":"2018-03-20T07:18:38.5428165Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['248'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:38 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753635,"name":"_acme-challenge.deleterecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:38.542815Z","updated_at":"2018-03-20T07:18:38.542816Z"},{"id":40753634,"name":"_acme-challenge.deleterecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:37.876035Z","updated_at":"2018-03-20T07:18:37.876037Z"},{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530319 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['5035'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:38 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.luadns.com/v1/zones/39105/records/40753635 response: body: {string: !!python/unicode '{"id":40753635,"name":"_acme-challenge.deleterecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:38.542815Z","updated_at":"2018-03-20T07:18:38.542816Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['244'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:39 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.luadns.com/v1/zones/39105/records/40753634 response: body: {string: !!python/unicode '{"id":40753634,"name":"_acme-challenge.deleterecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:37.876035Z","updated_at":"2018-03-20T07:18:37.876037Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['244'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:39 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530319 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4547'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:40 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000204121325606366700415240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":10,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:20 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530299 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2235'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:20 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "ttlshouldbe3600", "type": "TXT", "name": "ttl.fqdn.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079965743Z","updated_at":"2018-03-20T07:18:21.079967669Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['227'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:21 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530301 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2456'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:21 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000506121325606366700432150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":21,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:42 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753636,"name":"_acme-challenge.noop.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:41.181252Z","updated_at":"2018-03-20T07:18:41.181254Z"},{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530321 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['4779'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:42 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken1", "type": "TXT", "name": "_acme-challenge.listrecordset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['114'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753637,"name":"_acme-challenge.listrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:42.911828154Z","updated_at":"2018-03-20T07:18:42.911830061Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['248'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:42 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753637,"name":"_acme-challenge.listrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:42.911828Z","updated_at":"2018-03-20T07:18:42.91183Z"},{"id":40753636,"name":"_acme-challenge.noop.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:41.181252Z","updated_at":"2018-03-20T07:18:41.181254Z"},{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530323 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['5020'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:43 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken2", "type": "TXT", "name": "_acme-challenge.listrecordset.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['114'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753638,"name":"_acme-challenge.listrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:43.599496336Z","updated_at":"2018-03-20T07:18:43.599498234Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['248'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:43 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753638,"name":"_acme-challenge.listrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:43.599496Z","updated_at":"2018-03-20T07:18:43.599498Z"},{"id":40753637,"name":"_acme-challenge.listrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:42.911828Z","updated_at":"2018-03-20T07:18:42.91183Z"},{"id":40753636,"name":"_acme-challenge.noop.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:41.181252Z","updated_at":"2018-03-20T07:18:41.181254Z"},{"id":40753633,"name":"_acme-challenge.deleterecordinset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:35.814417Z","updated_at":"2018-03-20T07:18:35.814419Z"},{"id":40753631,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken2","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:34.158781Z","updated_at":"2018-03-20T07:18:34.158783Z"},{"id":40753630,"name":"_acme-challenge.createrecordset.capsulecd.com.","type":"TXT","content":"challengetoken1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:33.498697Z","updated_at":"2018-03-20T07:18:33.498699Z"},{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117453Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530324 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['5262'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:43 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000213261325606366700466530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":11,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:21 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530301 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2456'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:22 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "random.fqdntest.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326334Z","updated_at":"2018-03-20T07:18:22.447328272Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['233'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:22 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530302 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2683'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:22 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000222341325606366700466640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":12,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:23 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530302 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2683'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:23 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "random.fulltest.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['99'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841170787Z","updated_at":"2018-03-20T07:18:23.841172857Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['233'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:23 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530304 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2910'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:24 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000111551325606366700463320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":13,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:24 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530304 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2910'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:24 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000231261325606366700456430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":13,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:25 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530304 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['2910'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:25 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "random.test.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['95'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875182Z","updated_at":"2018-03-20T07:18:25.890877182Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['229'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:25 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530306 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3133'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:26 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000115141325606366700450030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":14,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:26 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530306 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3133'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:26 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000261531325606366700423420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":14,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:27 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530306 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3133'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:27 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "orig.test.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753627,"name":"orig.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293189Z","updated_at":"2018-03-20T07:18:27.947295209Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['227'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:27 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753627,"name":"orig.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:27.947295Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530308 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3354'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:28 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "updated.test.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['96'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.luadns.com/v1/zones/39105/records/40753627 response: body: {string: !!python/unicode '{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610405931Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['227'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:28 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000271001325606366700453760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":15,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:29 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530309 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3357'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:29 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "orig.testfqdn.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753628,"name":"orig.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647868681Z","updated_at":"2018-03-20T07:18:29.647870776Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['231'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:29 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753628,"name":"orig.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:29.647871Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530310 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3582'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:29 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "updated.testfqdn.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['100'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.luadns.com/v1/zones/39105/records/40753628 response: body: {string: !!python/unicode '{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305971946Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['231'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:30 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000300101325606366700454020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/luadns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones response: body: {string: !!python/unicode '[{"id":39105,"name":"capsulecd.com","template_id":0,"synced":true,"queries_count":0,"records_count":16,"aliases_count":0,"redirects_count":0,"forwards_count":0}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:30 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530310 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3585'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:31 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "orig.testfull.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '{"id":40753629,"name":"orig.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373002678Z","updated_at":"2018-03-20T07:18:31.373004662Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['231'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:31 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.luadns.com/v1/zones/39105/records response: body: {string: !!python/unicode '[{"id":40753629,"name":"orig.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:31.373005Z"},{"id":40753628,"name":"updated.testfqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:29.647869Z","updated_at":"2018-03-20T07:18:30.305972Z"},{"id":40753627,"name":"updated.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:27.947293Z","updated_at":"2018-03-20T07:18:28.610406Z"},{"id":40753626,"name":"random.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:25.890875Z","updated_at":"2018-03-20T07:18:25.890877Z"},{"id":40753625,"name":"random.fulltest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:23.841171Z","updated_at":"2018-03-20T07:18:23.841173Z"},{"id":40753624,"name":"random.fqdntest.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:22.447326Z","updated_at":"2018-03-20T07:18:22.447328Z"},{"id":40753623,"name":"ttl.fqdn.capsulecd.com.","type":"TXT","content":"ttlshouldbe3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:21.079966Z","updated_at":"2018-03-20T07:18:21.079968Z"},{"id":40753614,"name":"_acme-challenge.test.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:11.252634Z","updated_at":"2018-03-20T07:18:11.252636Z"},{"id":40753613,"name":"_acme-challenge.full.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:10.1051Z","updated_at":"2018-03-20T07:18:10.105102Z"},{"id":40753612,"name":"_acme-challenge.fqdn.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:09.105352Z","updated_at":"2018-03-20T07:18:09.105354Z"},{"id":40753611,"name":"localhost.capsulecd.com.","type":"A","content":"127.0.0.1","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:08.068354Z","updated_at":"2018-03-20T07:18:08.068356Z"},{"id":23373137,"name":"capsulecd.com.","type":"NS","content":"ns5.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463466Z","updated_at":"2016-07-30T19:13:48.463467Z"},{"id":23373136,"name":"capsulecd.com.","type":"NS","content":"ns4.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463465Z","updated_at":"2016-07-30T19:13:48.463465Z"},{"id":23373135,"name":"capsulecd.com.","type":"NS","content":"ns3.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463463Z","updated_at":"2016-07-30T19:13:48.463464Z"},{"id":23373134,"name":"capsulecd.com.","type":"NS","content":"ns2.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463462Z","updated_at":"2016-07-30T19:13:48.463462Z"},{"id":23373133,"name":"capsulecd.com.","type":"NS","content":"ns1.luadns.net.","ttl":86400,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.46346Z","updated_at":"2016-07-30T19:13:48.46346Z"},{"id":23373132,"name":"capsulecd.com.","type":"SOA","content":"ns1.luadns.net. hostmaster.luadns.com. 1521530311 1200 120 604800 3600","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2016-07-30T19:13:48.463456Z","updated_at":"2016-07-30T19:13:48.463456Z"}] '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['3810'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:31 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] transfer-encoding: [chunked] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "updated.testfull.capsulecd.com.", "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['100'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.luadns.com/v1/zones/39105/records/40753629 response: body: {string: !!python/unicode '{"id":40753629,"name":"updated.testfull.capsulecd.com.","type":"TXT","content":"challengetoken","ttl":3600,"zone_id":39105,"generated":false,"created_at":"2018-03-20T07:18:31.373003Z","updated_at":"2018-03-20T07:18:32.117452712Z"} '} headers: cache-control: ['no-cache, private, max-age=0'] connection: [keep-alive] content-length: ['231'] content-type: [application/json] date: ['Tue, 20 Mar 2018 07:18:32 GMT'] expires: ['Thu, 01 Jan 1970 02:00:00 EET'] keep-alive: [timeout=10] pragma: [no-cache] server: [nginx] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/memset/000077500000000000000000000000001325606366700214765ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTests/000077500000000000000000000000001325606366700250045ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000013101325606366700332520ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:30 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000013721325606366700421550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=thisisadomainidonotown.com response: body: {string: "{\n \"error_type\": \"ApiErrorDoesNotExist\", \n \"error_code\": 3, \n \"error\": \"Zone domain not found\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:30 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 404, message: NOT FOUND} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000067301325606366700447370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:30 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:30 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=A&record=localhost&address=127.0.0.1&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:30 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"b1ffa4997958bcde03fc138fac326f18\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:30 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000042131325606366700453740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000074551325606366700450740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.fqdn&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"c884e123886dfbfdfbccd289c6c1ec17\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000101471325606366700450760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.full&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"88e055fbb2996058801aa1f9beeb77c9\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000106521325606366700452340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.test&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"01c0b320d672799a03120003f4401073\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000221771325606366700462740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.createrecordset&address=challengetoken1&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"2183331de85430903d5dbc98bbf486ac\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:31 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.createrecordset&address=challengetoken2&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"d8b6725749555a26bd0e85b64e0abec2\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000300351325606366700457230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.noop&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"7dc42656c19524eb5c3dbc5f07d6e835\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000343171325606366700443740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=delete.testfilt&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfilt\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"3398c519ea00e00cc5d853cfa9128a5c\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"1d4f8fed0057b65d657c859465d2f88a\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfilt\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"3398c519ea00e00cc5d853cfa9128a5c\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_delete?id=3398c519ea00e00cc5d853cfa9128a5c response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfilt\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"3398c519ea00e00cc5d853cfa9128a5c\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"7cb8bb60f6c1e6d199ff92f98430d7e2\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000343171325606366700474370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=delete.testfqdn&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"e6b54c870caa956f4025e3f20ad6cacb\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:32 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"86d96c16e143fe7396030ff6f5561268\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"e6b54c870caa956f4025e3f20ad6cacb\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_delete?id=e6b54c870caa956f4025e3f20ad6cacb response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"e6b54c870caa956f4025e3f20ad6cacb\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"e45d6c76dfe201ecb94de45a3c26d68c\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000343171325606366700474510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=delete.testfull&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfull\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"337ed31c5d8c1aa7635729aa4c5fb646\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"017ed6eae0b65981d6e14eee2f197881\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfull\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"337ed31c5d8c1aa7635729aa4c5fb646\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_delete?id=337ed31c5d8c1aa7635729aa4c5fb646 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testfull\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"337ed31c5d8c1aa7635729aa4c5fb646\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"d7eff6eeaae377ee64265a52be6c5589\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000343071325606366700452300ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=delete.testid&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testid\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"d63e575083edfe4ff5da94c9b9564332\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"131aa8f24d72b78dfeb928246d22d853\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testid\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"d63e575083edfe4ff5da94c9b9564332\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_delete?id=d63e575083edfe4ff5da94c9b9564332 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"delete.testid\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"d63e575083edfe4ff5da94c9b9564332\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:33 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"db27f399298b032e375391a969f08e2e\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 ae55c713e02269e47a03ea6b516e68d993b80373.paxheader00006660000000000000000000000257132560636670020323xustar00rootroot00000000000000175 path=lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml ae55c713e02269e47a03ea6b516e68d993b80373.data000066400000000000000000000504331325606366700171620ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.deleterecordinset&address=challengetoken1&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f26251959cfd5fde5db6e1db2c77283b\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"c861a27e530ac46a9abce1a373f65c23\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f26251959cfd5fde5db6e1db2c77283b\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.deleterecordinset&address=challengetoken2&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"999881aab1b1497ea0c29d7d786ef087\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f26251959cfd5fde5db6e1db2c77283b\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_delete?id=f26251959cfd5fde5db6e1db2c77283b response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f26251959cfd5fde5db6e1db2c77283b\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"9f675c145b94a3fe380ed24a7c571a9e\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000542021325606366700445100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.deleterecordset&address=challengetoken1&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f846cb89cd5e1f3bd2579d6c5347e0ff\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"87716dac2c0bbd56ba583ff79b7951de\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f846cb89cd5e1f3bd2579d6c5347e0ff\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:34 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.deleterecordset&address=challengetoken2&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"fd05a789e3669aadc8e1142b76651e18\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"40792c91fdaa022e4ee4a4bbfa192a7b\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f846cb89cd5e1f3bd2579d6c5347e0ff\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"fd05a789e3669aadc8e1142b76651e18\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_delete?id=f846cb89cd5e1f3bd2579d6c5347e0ff response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"f846cb89cd5e1f3bd2579d6c5347e0ff\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_delete?id=fd05a789e3669aadc8e1142b76651e18 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"fd05a789e3669aadc8e1142b76651e18\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"72e04a61faa013548ec710b967fe3cf3\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000236601325606366700415400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=ttl.fqdn&address=ttlshouldbe3600&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"f78454b14a54c640b788746d743fd1c1\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000415601325606366700432230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.listrecordset&address=challengetoken1&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"45c92e0e0153b2d9e4c917a14ebd46ab\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=_acme-challenge.listrecordset&address=challengetoken2&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"19230220d866c2d1453f3b20e5973844\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:35 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000275131325606366700466630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=random.fqdntest&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"10d380a76d500cdc4911a473d41c9ae6\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000306761325606366700467010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=random.fulltest&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"723ef594d6eb8e6c4567f374b00ac6b5\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000136261325606366700463430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000320451325606366700456470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=random.test&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"5746e37b3926aaaaf6f0bdf58421d173\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000143171325606366700450130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:36 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000364701325606366700423510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=orig.test&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"orig.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"31a50a37a2429d216d4bef0636ee637f\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"73aa3879b36829ded1a8d8f24e5ec938\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"orig.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"31a50a37a2429d216d4bef0636ee637f\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_update?type=TXT&record=updated.test&address=challengetoken&ttl=3600&id=31a50a37a2429d216d4bef0636ee637f&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"31a50a37a2429d216d4bef0636ee637f\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"11d7fbbeb2e9cab09969c470287c563d\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000377021325606366700454130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"31a50a37a2429d216d4bef0636ee637f\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=orig.testfqdn&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"orig.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"57310aa4ef03453e5bf2eddc86f06cc4\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"c28dc4acf2a5b84ec8c814c5083814c4\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"orig.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"57310aa4ef03453e5bf2eddc86f06cc4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"31a50a37a2429d216d4bef0636ee637f\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n \ }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_update?type=TXT&record=updated.testfqdn&address=challengetoken&ttl=3600&id=57310aa4ef03453e5bf2eddc86f06cc4&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"57310aa4ef03453e5bf2eddc86f06cc4\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"0dc2b820bcd385bf8eb04350617c9641\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000410561325606366700454220ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/memset/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_domain_info?domain=testzone.com response: body: {string: "{\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"31a50a37a2429d216d4bef0636ee637f\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"57310aa4ef03453e5bf2eddc86f06cc4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_create?type=TXT&record=orig.testfull&address=challengetoken&ttl=3600&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"orig.testfull\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"2a045cbb5f5267a7a34e0900dd4cdb3f\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"bb83437a9937baf77e8c97021976020b\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_info?id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"domains\": [\n {\n \"domain\": \"testzone.com\", \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\"\n }\n ], \n \"records\": [\n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"docs.example.com\", \n \"relative\": false, \n \"record\": \"docs\", \n \"ttl\": 3600, \n \"type\": \"CNAME\", \n \"id\": \"e6a328a3d04b4fd86fac7112b1f3c225\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"127.0.0.1\", \n \"relative\": false, \n \"record\": \"localhost\", \n \"ttl\": 3600, \n \"type\": \"A\", \n \"id\": \"26f9fb49fd75c14850c3d491bda525f4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"orig.testfull\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"2a045cbb5f5267a7a34e0900dd4cdb3f\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fqdntest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"332f1a91940322cee135c0dec3a077a4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.fulltest\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5fe4f2718b6d15d3aad661131f4b97ec\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"random.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"22955e3060d3073b55284a88309824cd\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"ttlshouldbe3600\", \n \"relative\": false, \n \"record\": \"ttl.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"64024fa720bab0ba7c71bd99323fadfc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"31a50a37a2429d216d4bef0636ee637f\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.testfqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"57310aa4ef03453e5bf2eddc86f06cc4\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"75857b3cd509647031dd00ac10ec2e14\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.createrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"408fd57462f28db82e63b049da242ced\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.deleterecordinset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ce3349ff704c2648b7b8338caaf53e76\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.fqdn\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"c19b198802ea2828f406903fbe636afc\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.full\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"5574c18d3d7d6148839e276961e55797\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken1\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"590de71fb24103dc8e273106654fd545\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken2\", \n \"relative\": false, \n \"record\": \"_acme-challenge.listrecordset\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"acb14029aef3c34bf6b18353bc24af37\"\n }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.noop\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"ca375b8e13269d85b0b2f556242ce6d9\"\n \ }, \n {\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"_acme-challenge.test\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"764f77fa8f23afd6fe98b4217be7caaa\"\n }\n ], \n \"nickname\": \"testzone.com\", \n \"id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"ttl\": 0\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:37 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.zone_record_update?type=TXT&record=updated.testfull&address=challengetoken&ttl=3600&id=2a045cbb5f5267a7a34e0900dd4cdb3f&zone_id=cbceea86fe9c099f019e386488ead6d8 response: body: {string: "{\n \"priority\": 0, \n \"zone_id\": \"cbceea86fe9c099f019e386488ead6d8\", \n \"address\": \"challengetoken\", \n \"relative\": false, \n \"record\": \"updated.testfull\", \n \"ttl\": 3600, \n \"type\": \"TXT\", \n \"id\": \"2a045cbb5f5267a7a34e0900dd4cdb3f\"\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:38 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.memset.com/v1/json/dns.reload response: body: {string: "{\n \"status\": \"NEW\", \n \"finished\": false, \n \"type\": \"dns\", \n \"id\": \"a9e3a1438b740026334e49228971d75e\", \n \"error\": false\n}"} headers: Connection: [keep-alive] Content-Type: [application/json] Date: ['Thu, 22 Mar 2018 16:34:38 GMT'] Server: [nginx] Transfer-Encoding: [chunked] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/namecheap/000077500000000000000000000000001325606366700221255ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTests/000077500000000000000000000000001325606366700254335ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000065731325606366700337210ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.135\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:17 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.036\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:17 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000065731325606366700426140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.016\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:19 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.019\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:19 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000162051325606366700453640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.02\r\n"} headers: cache-control: [private] content-length: ['1052'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:20 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.016\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:20 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 1.021\r\n"} headers: cache-control: [private] content-length: ['966'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:22 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'TTL1=1800&HostName1=www&HostName2=%40&HostName3=localhost&IsActive2=true&HostId2=505697&Address1=parkingpage.namecheap.com.&TTL2=1800&Address3=127.0.0.1&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&FriendlyName1=CName+Record&FriendlyName2=URL+Record&AssociatedAppTitle2=&AssociatedAppTitle1=&TLD=com&SLD=lexicontest&HostId1=506041&IsActive1=true&RecordType2=URL&RecordType3=A&RecordType1=CNAME&Address2=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['470'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.092\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:23 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000170211325606366700460240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.071\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:23 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.098\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:23 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.886\r\n"} headers: cache-control: [private] content-length: ['1143'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:25 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'Address3=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref3=10&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=www&HostName3=%40&HostName4=docs&IsActive2=true&HostId2=506041&Address4=docs.example.com&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&SLD=lexicontest&FriendlyName1=&FriendlyName3=URL+Record&FriendlyName2=CName+Record&AssociatedAppTitle2=&AssociatedAppTitle3=&AssociatedAppTitle1=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=505697&RecordType4=CNAME&RecordType2=CNAME&RecordType3=URL&RecordType1=A&Address2=parkingpage.namecheap.com.' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['637'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.051\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:27 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000176521325606366700455230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.017\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:27 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.014\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:29 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 1.003\r\n"} headers: cache-control: [private] content-length: ['1327'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:31 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'Address3=parkingpage.namecheap.com.&MXPref3=10&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=%40&HostName5=_acme-challenge.fqdn&IsActive2=true&HostId2=506043&FriendlyName4=URL+Record&Address4=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&FriendlyName1=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&AssociatedAppTitle1=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=505697&IsActive4=true&TTL4=1800&RecordType4=URL&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['817'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.967\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:32 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000205251325606366700455260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.093\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:32 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.021\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:32 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.887\r\n"} headers: cache-control: [private] content-length: ['1522'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:34 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=%40&HostName6=_acme-challenge.full&IsActive2=true&FriendlyName5=URL+Record&HostId2=506043&FriendlyName4=&Address4=challengetoken&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&SLD=lexicontest&Address5=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&IsDDNSEnabled4=false&MXPref5=10&FriendlyName1=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&AssociatedAppTitle1=&AssociatedAppTitle5=&Address6=challengetoken&IsDDNSEnabled5=false&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=505697&IsActive5=true&IsActive4=true&TTL4=1800&RecordType6=TXT&RecordType4=TXT&RecordType5=URL&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['996'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.851\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:35 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000213771325606366700456710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.088\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:35 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.013\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:37 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.959\r\n"} headers: cache-control: [private] content-length: ['1717'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:39 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=_acme-challenge.test&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=%40&IsActive2=true&FriendlyName5=&Address7=challengetoken&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&MXPref5=10&FriendlyName1=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&AssociatedAppTitle1=&MXPref6=10&AssociatedAppTitle5=&Address6=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&IsDDNSEnabled5=false&FriendlyName6=URL+Record&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&HostId6=505697&RecordType6=URL&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1175'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.023\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:40 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000527041325606366700450230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.028\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:40 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.014\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:40 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.833\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:42 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&HostName8=delete.testfilt&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&RecordType8=TXT&HostId6=506046&Address8=challengetoken&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1349'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.975\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:43 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.91\r\n"} headers: cache-control: [private] content-length: ['2101'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:45 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.792\r\n"} headers: cache-control: [private] content-length: ['2102'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:46 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&HostId6=506046&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1283'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.906\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:48 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.706\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:49 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000527041325606366700500660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.111\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:49 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.018\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:49 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.914\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:50 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&HostName8=delete.testfqdn&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&RecordType8=TXT&HostId6=506046&Address8=challengetoken&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1349'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.024\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:53 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.85\r\n"} headers: cache-control: [private] content-length: ['2101'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:54 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.738\r\n"} headers: cache-control: [private] content-length: ['2102'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:55 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&HostId6=506046&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1283'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.827\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:56 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.883\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:58 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000527031325606366700500770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.083\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:58 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.013\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:03:59 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.883\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:00 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&HostName8=delete.testfull&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&RecordType8=TXT&HostId6=506046&Address8=challengetoken&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1349'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.13\r\ \n"} headers: cache-control: [private] content-length: ['555'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:01 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 1.122\r\n"} headers: cache-control: [private] content-length: ['2102'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:02 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.841\r\n"} headers: cache-control: [private] content-length: ['2102'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:04 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&HostId6=506046&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1283'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.81\r\ \n"} headers: cache-control: [private] content-length: ['555'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:06 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.954\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:07 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000613271325606366700456610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.028\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:07 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.014\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:07 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.79\r\n"} headers: cache-control: [private] content-length: ['1911'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:09 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&HostName8=delete.testid&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&RecordType8=TXT&HostId6=506046&Address8=challengetoken&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1347'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.005\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:11 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.933\r\n"} headers: cache-control: [private] content-length: ['2100'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:12 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.753\r\n"} headers: cache-control: [private] content-length: ['2100'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:14 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.821\r\n"} headers: cache-control: [private] content-length: ['2100'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:15 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&HostId6=506046&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1283'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.944\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:17 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.893\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:18 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000307011325606366700473030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.079\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:18 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.016\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:18 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.789\r\n"} headers: cache-control: [private] content-length: ['1912'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:19 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&HostName8=random.fqdntest&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&RecordType8=TXT&HostId6=506046&Address8=challengetoken&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1349'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.858\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:21 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.899\r\n"} headers: cache-control: [private] content-length: ['2102'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:23 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000321131325606366700473140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.021\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:23 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.014\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:24 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.814\r\n"} headers: cache-control: [private] content-length: ['2102'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:25 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&AssociatedAppTitle8=&TTL5=1800&MXPref3=10&HostName7=random.fqdntest&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName9=random.fulltest&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&HostName8=%40&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&Address9=challengetoken&TTL6=1800&IsDDNSEnabled8=false&MXPref8=10&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=challengetoken&MXPref5=10&IsActive8=true&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=&AssociatedAppTitle1=&MXPref6=10&FriendlyName8=URL+Record&HostId7=506051&AssociatedAppTitle5=&HostId8=505697&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL8=1800&TTL4=1800&RecordType8=URL&HostId6=506046&Address8=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType9=TXT&Address2=docs.example.com.&MXPref4=10&IsActive6=true' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1523'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.929\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:27 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.778\r\n"} headers: cache-control: [private] content-length: ['2292'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:28 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000333261325606366700463010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.016\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:28 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.214\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:29 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.789\r\n"} headers: cache-control: [private] content-length: ['2292'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:31 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'RecordType10=TXT&HostId8=506052&HostId9=505697&FriendlyName6=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506051&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=URL&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&AssociatedAppTitle2=&AssociatedAppTitle3=&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=challengetoken&Address9=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName10=random.test&Address1=127.0.0.1&MXPref5=10&TTL3=1800&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TLD=com&Address2=docs.example.com.&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=random.fqdntest&HostName8=random.fulltest&HostName9=%40&Address10=challengetoken&MXPref6=10&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=URL+Record&FriendlyName8=&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1696'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.851\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:32 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 1\r\n"} headers: cache-control: [private] content-length: ['2474'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:33 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000161701325606366700454410ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.016\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:35 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.014\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:36 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.843\r\n"} headers: cache-control: [private] content-length: ['2478'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:37 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000633401325606366700427740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.021\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:37 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.014\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:37 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.969\r\n"} headers: cache-control: [private] content-length: ['2478'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:39 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&IsDDNSEnabled10=false&RecordType10=URL&RecordType11=TXT&HostId8=506052&HostId9=506053&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506051&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&AssociatedAppTitle2=&AssociatedAppTitle3=&HostId10=505697&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=challengetoken&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName10=%40&HostName11=orig.test&Address1=127.0.0.1&MXPref5=10&TTL3=1800&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TLD=com&FriendlyName10=URL+Record&Address2=docs.example.com.&MXPref10=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=random.fqdntest&HostName8=random.fulltest&HostName9=random.test&Address10=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&Address11=challengetoken&MXPref6=10&TTL10=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1874'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.055\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:40 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.922\r\n"} headers: cache-control: [private] content-length: ['2662'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:41 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.795\r\n"} headers: cache-control: [private] content-length: ['2662'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:43 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.883\r\n"} headers: cache-control: [private] content-length: ['2662'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:44 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled10=false&IsDDNSEnabled11=false&RecordType10=TXT&RecordType11=URL&RecordType12=TXT&HostId8=506051&HostId9=506052&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506054&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=URL+Record&AssociatedAppTitle2=&AssociatedAppTitle3=&HostId10=506053&HostId11=505697&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=challengetoken&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=updated.test&HostName10=random.test&HostName11=%40&Address1=127.0.0.1&MXPref5=10&IsActive11=true&TTL3=1800&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=challengetoken&MXPref11=10&MXPref10=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.test&HostName8=random.fqdntest&HostName9=random.fulltest&Address10=challengetoken&Address11=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref6=10&TTL10=1800&TTL11=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2055'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.952\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:47 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000575621325606366700460200ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.015\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:47 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.016\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:47 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.873\r\n"} headers: cache-control: [private] content-length: ['2849'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:49 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&RecordType10=TXT&RecordType11=TXT&RecordType12=URL&RecordType13=TXT&HostId8=506051&HostId9=506052&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506054&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName12=URL+Record&AssociatedAppTitle3=&HostId12=505697&HostId10=506053&HostId11=506055&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=challengetoken&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=%40&HostName13=orig.nameonly.test&HostName10=random.test&HostName11=updated.test&Address1=127.0.0.1&MXPref5=10&IsActive12=true&IsActive11=true&TTL3=1800&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&AssociatedAppTitle12=&Address13=challengetoken&MXPref12=10&MXPref11=10&MXPref10=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.test&HostName8=random.fqdntest&HostName9=random.fulltest&Address10=challengetoken&Address11=challengetoken&MXPref6=10&TTL12=1800&TTL10=1800&TTL11=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2242'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.028\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:50 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\ \n \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.854\r\ \n"} headers: cache-control: [private] content-length: ['3042'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:51 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\ \n \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.718\r\ \n"} headers: cache-control: [private] content-length: ['3042'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:53 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&IsDDNSEnabled13=false&AssociatedAppTitle13=&RecordType10=TXT&RecordType11=TXT&RecordType12=TXT&RecordType13=URL&RecordType14=TXT&HostId8=506054&HostId9=506051&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506056&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName13=URL+Record&FriendlyName12=&AssociatedAppTitle3=&HostId12=506055&HostId13=505697&HostId10=506052&HostId11=506053&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=challengetoken&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=updated.test&HostName13=%40&HostName10=random.fulltest&HostName11=random.test&HostName14=orig.nameonly.test&Address1=127.0.0.1&MXPref5=10&IsActive13=true&IsActive12=true&IsActive11=true&TTL3=1800&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&Address13=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=challengetoken&AssociatedAppTitle12=&MXPref13=10&MXPref12=10&MXPref11=10&MXPref10=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.nameonly.test&HostName8=orig.test&HostName9=random.fqdntest&Address10=challengetoken&Address11=challengetoken&MXPref6=10&Address14=updated&TTL12=1800&TTL13=1800&TTL10=1800&TTL11=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2422'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.953\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:55 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000755761325606366700460550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.017\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:55 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.089\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:55 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.821\r\n"} headers: cache-control: [private] content-length: ['3228'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:57 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled14=false&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&IsDDNSEnabled13=false&AssociatedAppTitle13=&AssociatedAppTitle14=&RecordType10=TXT&RecordType11=TXT&RecordType12=TXT&RecordType13=TXT&RecordType14=URL&RecordType15=TXT&HostId8=506057&HostId9=506054&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506056&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName13=&FriendlyName12=&FriendlyName14=URL+Record&AssociatedAppTitle3=&HostId12=506053&HostId13=506055&HostId10=506051&HostId11=506052&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=updated&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=random.test&HostName13=updated.test&HostName10=random.fqdntest&HostName11=random.fulltest&HostName14=%40&Address1=127.0.0.1&MXPref5=10&IsActive13=true&IsActive12=true&IsActive11=true&TTL3=1800&IsActive14=true&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TTL14=1800&Address13=challengetoken&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=challengetoken&AssociatedAppTitle12=&MXPref13=10&MXPref12=10&MXPref11=10&MXPref10=10&MXPref14=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.nameonly.test&HostName8=orig.nameonly.test&HostName9=orig.test&Address10=challengetoken&Address11=challengetoken&MXPref6=10&Address14=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&Address15=challengetoken&TTL12=1800&TTL13=1800&TTL10=1800&TTL11=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&HostName15=orig.testfqdn&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10&HostId14=505697' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2604'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.036\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:58 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 1.106\r\n"} headers: cache-control: [private] content-length: ['3416'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:04:59 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.888\r\n"} headers: cache-control: [private] content-length: ['3416'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:01 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.977\r\n"} headers: cache-control: [private] content-length: ['3416'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:02 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled14=false&IsDDNSEnabled15=false&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&IsDDNSEnabled13=false&AssociatedAppTitle13=&AssociatedAppTitle14=&AssociatedAppTitle15=&RecordType10=TXT&RecordType11=TXT&RecordType12=TXT&RecordType13=TXT&RecordType14=TXT&RecordType15=URL&RecordType16=TXT&HostId8=506057&HostId9=506054&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506056&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName13=&FriendlyName12=&FriendlyName15=URL+Record&FriendlyName14=&AssociatedAppTitle3=&HostId12=506052&HostId13=506053&HostId10=506058&HostId11=506051&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=updated&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=random.fulltest&HostName13=random.test&HostName10=orig.testfqdn&HostName11=random.fqdntest&HostName16=updated.testfqdn&HostName14=updated.test&Address1=127.0.0.1&MXPref5=10&IsActive13=true&IsActive12=true&IsActive11=true&TTL3=1800&IsActive15=true&IsActive14=true&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TTL14=1800&Address13=challengetoken&TTL15=1800&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=challengetoken&AssociatedAppTitle12=&MXPref13=10&MXPref12=10&MXPref11=10&MXPref10=10&MXPref15=10&MXPref14=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.nameonly.test&HostName8=orig.nameonly.test&HostName9=orig.test&Address10=challengetoken&Address11=challengetoken&Address16=challengetoken&MXPref6=10&Address14=challengetoken&Address15=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&TTL12=1800&TTL13=1800&TTL10=1800&TTL11=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&HostName15=%40&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10&HostId14=506055&HostId15=505697' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2789'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.588\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:05 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000001027211325606366700460460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namecheap/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\ \n \r\n \r\n \r\n \r\ \n 2\r\n 1\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.029\r\n"} headers: cache-control: [private] content-length: ['1053'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:05 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2 response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.getlist\r\ \n \r\n \r\n \r\n 2\r\n 2\r\ \n 20\r\n \r\n \r\ \n PHX01SBAPI02\r\n --8:00\r\ \n 0.015\r\n"} headers: cache-control: [private] content-length: ['580'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:06 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\ \n \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.079\r\ \n"} headers: cache-control: [private] content-length: ['3607'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:07 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled14=false&IsDDNSEnabled15=false&IsDDNSEnabled16=false&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&IsDDNSEnabled13=false&AssociatedAppTitle13=&AssociatedAppTitle14=&AssociatedAppTitle15=&AssociatedAppTitle16=&RecordType10=TXT&RecordType11=TXT&RecordType12=TXT&RecordType13=TXT&RecordType14=TXT&RecordType15=TXT&RecordType16=URL&RecordType17=TXT&HostId8=506057&HostId9=506054&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506056&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName13=&FriendlyName12=&FriendlyName15=&FriendlyName14=&AssociatedAppTitle3=&HostId12=506052&HostId13=506053&HostId10=506058&HostId11=506051&HostId16=505697&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=updated&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=random.fulltest&HostName13=random.test&HostName10=orig.testfqdn&HostName11=random.fqdntest&HostName16=%40&HostName17=orig.testfull&HostName14=updated.test&Address1=127.0.0.1&MXPref5=10&IsActive13=true&IsActive12=true&IsActive11=true&TTL3=1800&IsActive16=true&IsActive15=true&IsActive14=true&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TTL14=1800&Address13=challengetoken&TTL15=1800&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=challengetoken&AssociatedAppTitle12=&MXPref13=10&MXPref12=10&MXPref11=10&MXPref10=10&MXPref16=10&MXPref15=10&MXPref14=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.nameonly.test&HostName8=orig.nameonly.test&HostName9=orig.test&Address10=challengetoken&Address11=challengetoken&Address16=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref6=10&Address14=challengetoken&Address15=challengetoken&TTL12=1800&TTL13=1800&TTL10=1800&Address17=challengetoken&TTL11=1800&Address5=challengetoken&TTL16=1800&FriendlyName16=URL+Record&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&HostName15=updated.testfqdn&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10&HostId14=506055&HostId15=506059' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2971'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 1.211\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:09 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.978\r\n"} headers: cache-control: [private] content-length: ['3795'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:10 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.987\r\n"} headers: cache-control: [private] content-length: ['3795'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:12 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.gethosts\r\ \n \r\n \r\n\ \ \r\n \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\n \r\n \ \ \r\n \r\ \n \r\n PHX01SBAPI02\r\n --8:00\r\ \n 0.868\r\n"} headers: cache-control: [private] content-length: ['3795'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:13 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled14=false&IsDDNSEnabled15=false&IsDDNSEnabled16=false&IsDDNSEnabled17=false&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&IsDDNSEnabled13=false&AssociatedAppTitle13=&AssociatedAppTitle14=&AssociatedAppTitle15=&AssociatedAppTitle16=&AssociatedAppTitle17=&RecordType18=TXT&RecordType10=TXT&RecordType11=TXT&RecordType12=TXT&RecordType13=TXT&RecordType14=TXT&RecordType15=TXT&RecordType16=TXT&RecordType17=URL&HostId8=506057&HostId9=506054&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506056&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName13=&FriendlyName12=&FriendlyName15=&FriendlyName14=&FriendlyName17=URL+Record&AssociatedAppTitle3=&HostId12=506051&HostId13=506052&HostId10=506058&HostId11=506060&HostId16=506059&HostId17=505697&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=updated&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=random.fqdntest&HostName13=random.fulltest&HostName10=orig.testfqdn&HostName11=orig.testfull&HostName16=updated.testfqdn&HostName17=%40&HostName14=random.test&Address1=127.0.0.1&HostName18=updated.testfull&MXPref5=10&IsActive13=true&IsActive12=true&IsActive11=true&TTL3=1800&IsActive17=true&IsActive16=true&IsActive15=true&IsActive14=true&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TTL14=1800&Address13=challengetoken&TTL15=1800&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=challengetoken&Address18=challengetoken&AssociatedAppTitle12=&MXPref13=10&MXPref12=10&MXPref11=10&MXPref10=10&MXPref17=10&MXPref16=10&MXPref15=10&MXPref14=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.nameonly.test&HostName8=orig.nameonly.test&HostName9=orig.test&Address10=challengetoken&Address11=challengetoken&Address16=challengetoken&MXPref6=10&Address14=challengetoken&Address15=challengetoken&TTL12=1800&TTL13=1800&TTL10=1800&Address17=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&TTL11=1800&Address5=challengetoken&TTL16=1800&FriendlyName16=&TTL17=1800&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&HostName15=updated.test&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10&HostId14=506053&HostId15=506055' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['3156'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts response: body: {string: !!python/unicode "\r\n\ \r\n \r\n \r\n namecheap.domains.dns.sethosts\r\ \n \r\n \r\n \r\n\ \ \r\n \r\n PHX01SBAPI02\r\ \n --8:00\r\n 0.939\r\ \n"} headers: cache-control: [private] content-length: ['556'] content-type: [text/xml; charset=utf-8] date: ['Wed, 17 Jan 2018 19:05:15 GMT'] server: [Microsoft-IIS/8.5] vary: [Accept-Encoding] x-aspnet-version: [4.0.30319] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/namesilo/000077500000000000000000000000001325606366700220135ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTests/000077500000000000000000000000001325606366700253215ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000031711325606366700335760ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&version=1&type=xml response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:35:27 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=28e8686ba8abbccb0f9a652331a76c21; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000022421325606366700424670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=thisisadomainidonotown.com&version=1&type=xml response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184200Domain is not active, or does not belong to this user '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['223'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:35:28 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=65e1ce568b1e4c4f96e2f90a519edc49; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000054141325606366700452520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:47:33 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=cac2fe2a37a859758021618cfad01f10; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=localhost&rrtype=A&rrvalue=127.0.0.1&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300successb318260397dd3e024bedb73f3eeee938 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:55:42 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=2990773d9b81a0f1f543b7e0dfeaca0d; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000054221325606366700457140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:47:33 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=bf2cf2bceaa9b7dee5ac5e981b7b6a44; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=docs&rrtype=CNAME&rrvalue=docs.example.com&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300successf8bcfa159c3386ea456bb083036a10f5 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:55:43 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=198c99d7f61eaf7dc854e175521c5c12; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000054361325606366700454060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:47:33 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=7c93d8fb87ea19f1d7b02cf812849be2; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.fqdn&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success8bc1c2ab7721caa67c40464bc715dfd9 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:55:43 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=a560d05e186348a17321564a7505f2d5; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000054361325606366700454200ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:47:33 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=d4d890bcfb8261d3d12e8d2028b89447; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.full&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success74618129e89eaf753d104e49b2f2f55b '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:55:43 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=a291cc07924ca0dc99f35d3cd05325ea; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000054361325606366700455550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:47:33 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=05ec38f053198ab134628bef47331b0f; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.test&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success7ebc06ef3977aef104d2c4133b597bf4 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 02:55:43 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=aaf447d797db4c66ef26e1d8ced259a5; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000101651325606366700466030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo136.24.36.67300success2016-04-022018-04-02ActiveYesYesYesParkedNoN/AN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['788'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=f8cj51fk3t2lpsmjcv0cnvu7q7t9vv3h; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.createrecordset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken1&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300success9769d6359fa90a13fc320442f0534a70 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=90btplk3jrl207o4for1pnv89h0he8ia; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.createrecordset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken2&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300success24050ef6ede7eb1667a9f324827b51cf '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=f6tplvc3e0s29b1t9d40kk1vh4629i8c; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000243441325606366700462460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo136.24.36.67300success2016-04-022018-04-02ActiveYesYesYesParkedNoN/AN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['788'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:10 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=omjfigg4862oibesnmrh6ecitj2cr55d; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.noop&rrttl=3600&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300success3d2a12ca742c3eefd718f3bd7ee4cbde '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:10 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=37phvn8bn5hoe5t1clfrflg4ssai3iqb; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.noop&rrttl=3600&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67280could not add resource record to domain since it already exists (duplicate) '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['242'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:10 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=fdqkocqemleaoa8m4gs4ie0golspvflk; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords136.24.36.67300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.20417281604e63e5777da5f7b93903999e653a9b64Acapsulecdfake.com192.161.187.20017281600e3ce692491d7b7d55648c5772bfa873Acapsulecdfake.com209.141.38.711728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720009769d6359fa90a13fc320442f0534a70TXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken13600024050ef6ede7eb1667a9f324827b51cfTXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken236000dbef1345e1a40f91af74cd05839c6a8bTXT_acme-challenge.deleterecordinset.capsulecdfake.comchallengetoken236000c14f740fb36bd86b8ddf34d935ac56ffTXT_acme-challenge.donothing.capsulecdfake.comchallengetoken360008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken7200016b50133918bb1bf3567e2051e8be680TXT_acme-challenge.listrecordset.capsulecdfake.comchallengetoken1360002248a03095c8e65ca7da57f8dc18d8f0TXT_acme-challenge.listrecordset.capsulecdfake.comchallengetoken2360003d2a12ca742c3eefd718f3bd7ee4cbdeTXT_acme-challenge.noop.capsulecdfake.comchallengetoken360007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['5439'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:35:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=2m0h26iurf71m9iflj2jg6mt5lo2duaf; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000324021325606366700447020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:19:57 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=f4622029fda5231b01f9e5dc1be1e3e1; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=delete.testfilt&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300successb48a994b80808409870e4f59f8d13da5 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:00 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=f596a0b9146d66e447c1a299b5e2c13f; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030b48a994b80808409870e4f59f8d13da5TXTdelete.testfilt.capsulecdfake.comchallengetoken72000124ea51452da45ab885bcab73c362085TXTdelete.testfqdn.capsulecdfake.comchallengetoken720004942dabe6e3b3bb21dfa9eec1f385903TXTdelete.testfull.capsulecdfake.comchallengetoken720004ab729da9e890a370e38949a61685d02TXTdelete.testid.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4251'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:02 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=11d3cd2a09a4bafddcb7c4357ca3e8e2; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsDeleteRecord?domain=capsulecdfake.com&rrid=b48a994b80808409870e4f59f8d13da5&type=xml&version=1 response: body: {string: !!python/unicode ' dnsDeleteRecord208.72.142.184300success '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['179'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:13 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=e39ea00362d8599fb713caabe337b759; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com360304ab729da9e890a370e38949a61685d02TXTdelete.testid.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3597'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:15 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=3c5d7d89060491da69273168d5c2cbcd; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000324021325606366700477450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:19:57 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=0ba69061ab2f2d12ad9b40543e8a4af4; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=delete.testfqdn&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success124ea51452da45ab885bcab73c362085 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:00 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=de0c37fd3829ec01be0641ae27744356; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030b48a994b80808409870e4f59f8d13da5TXTdelete.testfilt.capsulecdfake.comchallengetoken72000124ea51452da45ab885bcab73c362085TXTdelete.testfqdn.capsulecdfake.comchallengetoken720004942dabe6e3b3bb21dfa9eec1f385903TXTdelete.testfull.capsulecdfake.comchallengetoken720004ab729da9e890a370e38949a61685d02TXTdelete.testid.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4251'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:02 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=402525225a1cf5c0c1ac10b1e3a64b9b; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsDeleteRecord?domain=capsulecdfake.com&rrid=124ea51452da45ab885bcab73c362085&type=xml&version=1 response: body: {string: !!python/unicode ' dnsDeleteRecord208.72.142.184300success '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['179'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:13 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=b7b8a486178d5a881fa5891068c46b9c; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com360304ab729da9e890a370e38949a61685d02TXTdelete.testid.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3597'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:15 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=33f9a9ea20997fb10a3cfee407f0b89f; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000324021325606366700477570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:19:57 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=a3d528ceae929be4dfd75f222c160880; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=delete.testfull&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success4942dabe6e3b3bb21dfa9eec1f385903 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:00 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=40cb5b22f4075008ad80ecbe08055e5c; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030b48a994b80808409870e4f59f8d13da5TXTdelete.testfilt.capsulecdfake.comchallengetoken72000124ea51452da45ab885bcab73c362085TXTdelete.testfqdn.capsulecdfake.comchallengetoken720004942dabe6e3b3bb21dfa9eec1f385903TXTdelete.testfull.capsulecdfake.comchallengetoken720004ab729da9e890a370e38949a61685d02TXTdelete.testid.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4251'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:02 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=d5020d646805d116afef1966453dd623; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsDeleteRecord?domain=capsulecdfake.com&rrid=4942dabe6e3b3bb21dfa9eec1f385903&type=xml&version=1 response: body: {string: !!python/unicode ' dnsDeleteRecord208.72.142.184300success '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['179'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:13 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=3cc741b567ff71995de92b862dd7d399; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com360304ab729da9e890a370e38949a61685d02TXTdelete.testid.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3597'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:16 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=7ca310d793720d8724eb674405805255; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000320501325606366700455360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:19:58 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=a437066ef6b01f84948436bfebd6f48f; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=delete.testid&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success4ab729da9e890a370e38949a61685d02 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:00 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=b9bcc1087adbe6f278109a482cc04716; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030b48a994b80808409870e4f59f8d13da5TXTdelete.testfilt.capsulecdfake.comchallengetoken72000124ea51452da45ab885bcab73c362085TXTdelete.testfqdn.capsulecdfake.comchallengetoken720004942dabe6e3b3bb21dfa9eec1f385903TXTdelete.testfull.capsulecdfake.comchallengetoken720004ab729da9e890a370e38949a61685d02TXTdelete.testid.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4251'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:20:03 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=329ff2c053343da7e5f19747e472c698; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsDeleteRecord?domain=capsulecdfake.com&rrid=4ab729da9e890a370e38949a61685d02&type=xml&version=1 response: body: {string: !!python/unicode ' dnsDeleteRecord208.72.142.184300success '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['179'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:26:28 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=90115705d65e920aeca56bbcc367087e; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken7200017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3381'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:26:31 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=7a915a1b39fdf854b8bb02bbb83fc5fe; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 9181bec6058d8999c4f7e0279fec5ba3449562ad.paxheader00006660000000000000000000000261132560636670020505xustar00rootroot00000000000000177 path=lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 9181bec6058d8999c4f7e0279fec5ba3449562ad.data000066400000000000000000000410551325606366700173510ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo136.24.36.67300success2016-04-022018-04-02ActiveYesYesYesParkedNoN/AN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['788'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=363363aj91cn116c228v004bcha69mfe; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.deleterecordinset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken1&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300successf11e9f259e6693c778036893bfae4104 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=60997ot213apl1iotohu9fou4f29kto9; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.deleterecordinset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken2&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300successdbef1345e1a40f91af74cd05839c6a8b '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=655630jhelvmd9v27c3j8o28itqlqvep; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords136.24.36.67300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.20417281604e63e5777da5f7b93903999e653a9b64Acapsulecdfake.com192.161.187.20017281600e3ce692491d7b7d55648c5772bfa873Acapsulecdfake.com209.141.38.711728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720009769d6359fa90a13fc320442f0534a70TXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken13600024050ef6ede7eb1667a9f324827b51cfTXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken236000f11e9f259e6693c778036893bfae4104TXT_acme-challenge.deleterecordinset.capsulecdfake.comchallengetoken136000dbef1345e1a40f91af74cd05839c6a8bTXT_acme-challenge.deleterecordinset.capsulecdfake.comchallengetoken236000c14f740fb36bd86b8ddf34d935ac56ffTXT_acme-challenge.donothing.capsulecdfake.comchallengetoken360008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4987'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=ihsqunav7g737m80e0m0bj6g0pvh1trg; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsDeleteRecord?domain=capsulecdfake.com&rrid=f11e9f259e6693c778036893bfae4104&type=xml&version=1 response: body: {string: !!python/unicode ' dnsDeleteRecord136.24.36.67300success '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['177'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:08 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=pv6u6im17cmi63bdhqcriu3b8r4ts6g7; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords136.24.36.67300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.20417281604e63e5777da5f7b93903999e653a9b64Acapsulecdfake.com192.161.187.20017281600e3ce692491d7b7d55648c5772bfa873Acapsulecdfake.com209.141.38.711728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720009769d6359fa90a13fc320442f0534a70TXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken13600024050ef6ede7eb1667a9f324827b51cfTXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken236000dbef1345e1a40f91af74cd05839c6a8bTXT_acme-challenge.deleterecordinset.capsulecdfake.comchallengetoken236000c14f740fb36bd86b8ddf34d935ac56ffTXT_acme-challenge.donothing.capsulecdfake.comchallengetoken360008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4750'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=mkg0gnkvu5r8judd3esd2aa3gd08dkqb; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000436051325606366700450320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo136.24.36.67300success2016-04-022018-04-02ActiveYesYesYesParkedNoN/AN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['788'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=8rvplkpnbs6u57d5teu0i9iki36gfnk7; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.deleterecordset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken1&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300success1093363422701083c2e8bb6833663178 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=gndttfcu7ss5i87662vubhumf0kvnb0n; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.deleterecordset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken2&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300successbe5b71c36699624b76e12671a90d70b2 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=fd1n0pbecsp33tom96o75repfs1gl4cs; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords136.24.36.67300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.20417281604e63e5777da5f7b93903999e653a9b64Acapsulecdfake.com192.161.187.20017281600e3ce692491d7b7d55648c5772bfa873Acapsulecdfake.com209.141.38.711728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720009769d6359fa90a13fc320442f0534a70TXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken13600024050ef6ede7eb1667a9f324827b51cfTXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken236000dbef1345e1a40f91af74cd05839c6a8bTXT_acme-challenge.deleterecordinset.capsulecdfake.comchallengetoken2360001093363422701083c2e8bb6833663178TXT_acme-challenge.deleterecordset.capsulecdfake.comchallengetoken136000be5b71c36699624b76e12671a90d70b2TXT_acme-challenge.deleterecordset.capsulecdfake.comchallengetoken236000c14f740fb36bd86b8ddf34d935ac56ffTXT_acme-challenge.donothing.capsulecdfake.comchallengetoken360008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['5220'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=30lo3rav8oa486j40u641f60gvjvpjr8; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsDeleteRecord?domain=capsulecdfake.com&rrid=1093363422701083c2e8bb6833663178&type=xml&version=1 response: body: {string: !!python/unicode ' dnsDeleteRecord136.24.36.67300success '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['177'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=72pt1n99i61d1r0q19tb9cps9b110plk; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsDeleteRecord?domain=capsulecdfake.com&rrid=be5b71c36699624b76e12671a90d70b2&type=xml&version=1 response: body: {string: !!python/unicode ' dnsDeleteRecord136.24.36.67300success '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['177'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=epcuhg1i3pi3pl8241qk7m7i5ivtkki2; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords136.24.36.67300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.20417281604e63e5777da5f7b93903999e653a9b64Acapsulecdfake.com192.161.187.20017281600e3ce692491d7b7d55648c5772bfa873Acapsulecdfake.com209.141.38.711728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720009769d6359fa90a13fc320442f0534a70TXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken13600024050ef6ede7eb1667a9f324827b51cfTXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken236000dbef1345e1a40f91af74cd05839c6a8bTXT_acme-challenge.deleterecordinset.capsulecdfake.comchallengetoken236000c14f740fb36bd86b8ddf34d935ac56ffTXT_acme-challenge.donothing.capsulecdfake.comchallengetoken360008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4750'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:09 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=6a9kuj1pcgaibfk3p418ij4chf3dqiq4; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000165571325606366700420640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02YesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['697'] content-type: [text/xml] date: ['Sat, 30 Jul 2016 21:18:25 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=e8cf685910ae02021c385a2745168050; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=ttl.fqdn&rrttl=3600&rrtype=TXT&rrvalue=ttlshouldbe3600&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300successfbdb16fc843289c9fb95191c45d5c418 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sat, 30 Jul 2016 21:18:46 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=4239b39f04384c456b18f08a3cbcbffc; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.2041728160e41467dcfde58d9f2574f09bcd4ffd3eAcapsulecdfake.com164.132.212.721728160ab6da0965e2d0e0129dda0b5bcd2359aAcapsulecdfake.com167.114.213.1991728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3818'] content-type: [text/xml] date: ['Sat, 30 Jul 2016 21:19:02 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=74fc784842f94e5bc96b0396949c9bcc; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000245141325606366700435400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo136.24.36.67300success2016-04-022018-04-02ActiveYesYesYesParkedNoN/AN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['788'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:10 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=2f1frrr54573u9dntq718hc7n4hnt63k; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.listrecordset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken1&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300success16b50133918bb1bf3567e2051e8be680 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:10 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=tl0kn3hat0qpieaafj5bs71gu6rrtt6n; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=_acme-challenge.listrecordset&rrttl=3600&rrtype=TXT&rrvalue=challengetoken2&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord136.24.36.67300success2248a03095c8e65ca7da57f8dc18d8f0 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['229'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:10 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=0082l53nqkasjr9p5t659nt172s8csng; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords136.24.36.67300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.20417281604e63e5777da5f7b93903999e653a9b64Acapsulecdfake.com192.161.187.20017281600e3ce692491d7b7d55648c5772bfa873Acapsulecdfake.com209.141.38.711728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken720009769d6359fa90a13fc320442f0534a70TXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken13600024050ef6ede7eb1667a9f324827b51cfTXT_acme-challenge.createrecordset.capsulecdfake.comchallengetoken236000dbef1345e1a40f91af74cd05839c6a8bTXT_acme-challenge.deleterecordinset.capsulecdfake.comchallengetoken236000c14f740fb36bd86b8ddf34d935ac56ffTXT_acme-challenge.donothing.capsulecdfake.comchallengetoken360008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken7200016b50133918bb1bf3567e2051e8be680TXT_acme-challenge.listrecordset.capsulecdfake.comchallengetoken1360002248a03095c8e65ca7da57f8dc18d8f0TXT_acme-challenge.listrecordset.capsulecdfake.comchallengetoken2360003d2a12ca742c3eefd718f3bd7ee4cbdeTXT_acme-challenge.noop.capsulecdfake.comchallengetoken360007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['5439'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:10 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=agvp9tva36it22df9mneisofrlnq6igb; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000144711325606366700471770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:02 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=70d86a6717e19bc669505737f2ee44f4; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=random.fqdntest&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300successfa0e471f4fa90492c408e48622472ea0 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:05 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=0f68237b23a1e91b247b0f9a3ff5ca6a; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2728'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:07 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=8057b15a0379e84d0faf2c305550f325; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000144711325606366700472110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:03 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=5378c87ff02f411645fc9974ea78dc17; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=random.fulltest&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success8262ed73b91378ddb4619b4bfa8cf0e9 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:05 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=29019f050bce13a8702599581c950186; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2728'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:07 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=7701eeda5e98b36c9608dad4fa7e76fb; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000150661325606366700466600ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo136.24.36.67300success2016-04-022018-04-02ActiveYesYesYesParkedNoN/AN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['788'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:07 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=s7vk5v34i3fs1l60c6b96rq13l2jcvuq; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords136.24.36.67300success94e84ad42c54cbdcb04b8fd687b018abAcapsulecdfake.com107.161.23.20417281604e63e5777da5f7b93903999e653a9b64Acapsulecdfake.com192.161.187.20017281600e3ce692491d7b7d55648c5772bfa873Acapsulecdfake.com209.141.38.711728160b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000127343b7a5dbf264063e8a811f81f671CNAMEwww.capsulecdfake.comparking.namesilo.com1728160fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken72000fbdb16fc843289c9fb95191c45d5c418TXTttl.fqdn.capsulecdfake.comttlshouldbe360036000cb67f7f2f3ca6c75e8da9e4635646ff3TXTttlrecord.fqdn.capsulecdfake.comttlshouldbe5003600017d0324d66c9429946eb51b6b5d47c15TXTupdated.test.capsulecdfake.comchallengetoken720008d3545eb96823643a10ff7e52a1b7e00TXTupdated.testfqdn.capsulecdfake.comchallengetoken72000ea749f964ed0c55c0b7186c197811135TXTupdated.testfull.capsulecdfake.comchallengetoken72000c14f740fb36bd86b8ddf34d935ac56ffTXT_acme-challenge.donothing.capsulecdfake.comchallengetoken360008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['4043'] content-type: [text/xml] date: ['Tue, 20 Mar 2018 07:23:07 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=nhosi2rv0pcg0dg1bb4g3a17rb2pva2c; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000144651325606366700461720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:03 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=9f270134877c2f94943a282e96fd3343; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=random.test&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success0be072e325c133a6404b50d4db16d4eb '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:05 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=07d8a9c6557881097c753c815c37ee9c; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2728'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:07 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=02c542c789cfb21127c2daca8722b00c; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000122311325606366700453210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&version=1&type=xml response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:03 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=fe179de4c878acfd5d600d02231141ae; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&version=1&type=xml response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['2728'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:09:05 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=91b4e7294591c76dd8a9bf2715407e56; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000201651325606366700426600ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:40 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=de1165bd5ecad0eff4ab04d982840065; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=orig.test&rrttl=3600&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300successbced899e905a49bbab479f7827683dca '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:42 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=c5502673c8856348115a61fb94cd2700; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030bced899e905a49bbab479f7827683dcaTXTorig.test.capsulecdfake.comchallengetoken72000423d488cc8d1007f5e7285bd825c35cbTXTorig.testfqdn.capsulecdfake.comchallengetoken7200031605c1f92d7d9bb45bf3d81858e6048TXTorig.testfull.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3372'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:44 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=9d800110d9c23296d34f559990061701; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsUpdateRecord?domain=capsulecdfake.com&rrhost=updated.test&rrid=bced899e905a49bbab479f7827683dca&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsUpdateRecord208.72.142.184300success17d0324d66c9429946eb51b6b5d47c15 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['234'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:46 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=5833af9a49a6ff464b1aa2df2fc79edd; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000201751325606366700457240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:40 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=5cb68b76546f4bf78335c9c54216cedb; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=orig.testfqdn&rrttl=3600&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success423d488cc8d1007f5e7285bd825c35cb '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:42 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=532b667e1e40358588eab24f2f8681e6; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030bced899e905a49bbab479f7827683dcaTXTorig.test.capsulecdfake.comchallengetoken72000423d488cc8d1007f5e7285bd825c35cbTXTorig.testfqdn.capsulecdfake.comchallengetoken7200031605c1f92d7d9bb45bf3d81858e6048TXTorig.testfull.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3372'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:44 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=47f81d16abc9a7dd0d23e293d9cf5d91; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsUpdateRecord?domain=capsulecdfake.com&rrhost=updated.testfqdn&rrid=423d488cc8d1007f5e7285bd825c35cb&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsUpdateRecord208.72.142.184300success8d3545eb96823643a10ff7e52a1b7e00 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['234'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:46 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=e6618cd50f0afb1528a5563b2b7c05d3; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000201751325606366700457360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/namesilo/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/getDomainInfo?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' getDomainInfo208.72.142.184300success2016-04-022018-04-02ActiveYesYesYesParkedN/AN/ANS1.NAMESILO.COMNS2.NAMESILO.COM1321132113211321 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['703'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:41 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=df8bde029af689a43eff852a9ab33d98; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsAddRecord?domain=capsulecdfake.com&rrhost=orig.testfull&rrttl=3600&rrtype=TXT&rrvalue=challengetoken&type=xml&version=1 response: body: {string: !!python/unicode ' dnsAddRecord208.72.142.184300success31605c1f92d7d9bb45bf3d81858e6048 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['231'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:43 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=f9e08eb09e8acf9d38db937250ff5faa; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsListRecords?domain=capsulecdfake.com&type=xml&version=1 response: body: {string: !!python/unicode ' dnsListRecords208.72.142.184300successcf0f5addd6803a7700dbfc60ff8b7675Acapsulecdfake.com107.161.23.20436030189b6a5b36251145c060d453f771fb13Acapsulecdfake.com164.132.212.7236030df9ad7186be382e37997e8de575cd5a4Acapsulecdfake.com167.114.213.19936030b318260397dd3e024bedb73f3eeee938Alocalhost.capsulecdfake.com127.0.0.172000f8bcfa159c3386ea456bb083036a10f5CNAMEdocs.capsulecdfake.comdocs.example.com72000b0e7247ef85971ed89284471126b9d5eCNAMEwww.capsulecdfake.comparking.namesilo.com36030bced899e905a49bbab479f7827683dcaTXTorig.test.capsulecdfake.comchallengetoken72000423d488cc8d1007f5e7285bd825c35cbTXTorig.testfqdn.capsulecdfake.comchallengetoken7200031605c1f92d7d9bb45bf3d81858e6048TXTorig.testfull.capsulecdfake.comchallengetoken72000fa0e471f4fa90492c408e48622472ea0TXTrandom.fqdntest.capsulecdfake.comchallengetoken720008262ed73b91378ddb4619b4bfa8cf0e9TXTrandom.fulltest.capsulecdfake.comchallengetoken720000be072e325c133a6404b50d4db16d4ebTXTrandom.test.capsulecdfake.comchallengetoken720008bc1c2ab7721caa67c40464bc715dfd9TXT_acme-challenge.fqdn.capsulecdfake.comchallengetoken7200074618129e89eaf753d104e49b2f2f55bTXT_acme-challenge.full.capsulecdfake.comchallengetoken720007ebc06ef3977aef104d2c4133b597bf4TXT_acme-challenge.test.capsulecdfake.comchallengetoken72000 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['3372'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:45 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=af729ba048986f7f25a9e64223d5577b; path=/; domain=dev.namesilo.com] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: http://sandbox.namesilo.com/api/dnsUpdateRecord?domain=capsulecdfake.com&rrhost=updated.testfull&rrid=31605c1f92d7d9bb45bf3d81858e6048&rrvalue=challengetoken&type=xml&version=1&rrttl=3600 response: body: {string: !!python/unicode ' dnsUpdateRecord208.72.142.184300successea749f964ed0c55c0b7186c197811135 '} headers: cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0'] connection: [keep-alive] content-length: ['234'] content-type: [text/xml] date: ['Sun, 03 Apr 2016 03:12:47 GMT'] expires: ['Thu, 19 Nov 1981 08:52:00 GMT'] pragma: [no-cache] server: [nginx] set-cookie: [PHPSESSID=f9976ebeeac686f4aee9d7d74b70759f; path=/; domain=dev.namesilo.com] transfer-encoding: [chunked] vary: [Accept-Encoding] x-proxy-cache: [MISS] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/nsone/000077500000000000000000000000001325606366700213265ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTests/000077500000000000000000000000001325606366700246345ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000036211325606366700331110ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[],"meta":{},"link":null,"serial":1521989346,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f3c5f742dc7-BOM] connection: [keep-alive] content-length: ['437'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:31 GMT'] etag: [W/"35545e35b95512f7aca06101b41d1129c95f97e7"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d61adab568e9f8125830df3617609d6c01521989370; expires=Mon, 25-Mar-19 14:49:30 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000022721325606366700420050ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/thisisadomainidonotown.com response: body: {string: !!python/unicode '{"message":"zone not found"} '} headers: cache-control: [no-cache] cf-ray: [40122f47dfa22dbb-BOM] connection: [keep-alive] content-length: ['29'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:33 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d866fd48b607e8b8181947ba74d9776341521989372; expires=Mon, 25-Mar-19 14:49:32 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000116351325606366700445670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[],"meta":{},"link":null,"serial":1521989346,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f53fb192db5-BOM] connection: [keep-alive] content-length: ['437'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:35 GMT'] etag: [W/"35545e35b95512f7aca06101b41d1129c95f97e7"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d1ce4471d0a16b9d9c5a223148e90a7d81521989374; expires=Mon, 25-Mar-19 14:49:34 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/localhost.lexicon-example.com/A response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40122f5d6c9e2dd3-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:36 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d1fb252ddcd56da0c0e3d83b3beb0d0ca1521989375; expires=Mon, 25-Mar-19 14:49:35 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "localhost.lexicon-example.com", "type": "A", "answers": [{"answer": ["127.0.0.1"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['127'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/localhost.lexicon-example.com/A response: body: {string: !!python/unicode '{"domain":"localhost.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["127.0.0.1"],"id":"5ab7b702a632f60001b0b498"}],"id":"5ab7b702a632f60001b0b499","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"A","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f666cf52deb-BOM] connection: [keep-alive] content-length: ['292'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:38 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dc58440e695c561d07bc2d38863e3bd5e1521989377; expires=Mon, 25-Mar-19 14:49:37 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000120721325606366700452260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989378,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f707c7d88a2-BOM] connection: [keep-alive] content-length: ['584'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:38 GMT'] etag: [W/"5a28d770885332d8761b65a8ff54195aa5bc1a01"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d97ce7934798d70c619ec004b3049910f1521989378; expires=Mon, 25-Mar-19 14:49:38 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/docs.lexicon-example.com/CNAME response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40122f747f042df1-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:39 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d458ea196579cf3f3dc3f13709def04311521989379; expires=Mon, 25-Mar-19 14:49:39 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "docs.lexicon-example.com", "type": "CNAME", "answers": [{"answer": ["docs.example.com"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['133'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/docs.lexicon-example.com/CNAME response: body: {string: !!python/unicode '{"domain":"docs.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["docs.example.com"],"id":"5ab7b7050c13a400014ee10b"}],"id":"5ab7b7050c13a400014ee10c","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"CNAME","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f7848532dbb-BOM] connection: [keep-alive] content-length: ['298'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:41 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d71993393ffa9747455f55622a70448971521989379; expires=Mon, 25-Mar-19 14:49:39 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000124101325606366700447070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989381,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f828ceb2dc1-BOM] connection: [keep-alive] content-length: ['738'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:42 GMT'] etag: [W/"83f56876e7bccefe9a09d732a2e11fc985007543"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d348ad1e35f34bf8091a22ef9f49ed46f1521989381; expires=Mon, 25-Mar-19 14:49:41 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.fqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40122f8b8cff2db5-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:44 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dfc0167315d08c6fdfc5e20a07b2ff3be1521989382; expires=Mon, 25-Mar-19 14:49:42 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.fqdn.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['145'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.fqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.fqdn.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b709a632f60001419f0d"}],"id":"5ab7b709a632f60001419f0e","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f948c8f88a2-BOM] connection: [keep-alive] content-length: ['310'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:45 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=ddf78b22557d24cc5b1b23904670e943a1521989384; expires=Mon, 25-Mar-19 14:49:44 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000126561325606366700447350ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989385,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122f9ecf59886c-BOM] connection: [keep-alive] content-length: ['904'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:47 GMT'] etag: [W/"61a968b85fe290f7402cebdbb7f1e291a4b285fa"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d7dbcf8c608f7a615e05740ee1437691d1521989386; expires=Mon, 25-Mar-19 14:49:46 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.full.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40122fa7cbe888a2-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:47 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d81b724efc2a9ca4a162e01a51d85fddf1521989387; expires=Mon, 25-Mar-19 14:49:47 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.full.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['145'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.full.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.full.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b70cc94a900001c1dff9"}],"id":"5ab7b70cc94a900001c1dffa","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fab98df2daf-BOM] connection: [keep-alive] content-length: ['310'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:48 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=de674966155ea3ffeedc47b099e5687cd1521989388; expires=Mon, 25-Mar-19 14:49:48 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000131251325606366700450620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989388,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fb0ed8d2deb-BOM] connection: [keep-alive] content-length: ['1070'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:50 GMT'] etag: [W/"4bfc085eecbed2136cbbfe3678925ef1a2a9f85b"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d8d179dce2c36df67b4564407588b17831521989388; expires=Mon, 25-Mar-19 14:49:48 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40122fb9caf82dc7-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:51 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d9bcc9027f000a765e9b4248b9416b62e1521989390; expires=Mon, 25-Mar-19 14:49:50 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.test.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['145'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.test.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b70fa632f60001b0b4a5"}],"id":"5ab7b70fa632f60001b0b4a6","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fc25ed52dd3-BOM] connection: [keep-alive] content-length: ['310'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:52 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d4eac87f4cb763cc18d733985e4e01ef11521989391; expires=Mon, 25-Mar-19 14:49:51 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000232001325606366700461100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989391,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fc6bddf2de5-BOM] connection: [keep-alive] content-length: ['1236'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:52 GMT'] etag: [W/"1e6c20b7f77c8a22a80f288a8699ec165ab3d730"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d88c94826d76415b306ea668672d618f81521989392; expires=Mon, 25-Mar-19 14:49:52 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40122fcafa602db5-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:53 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dc74bda300dc72ca58606a4e37afe67f61521989393; expires=Mon, 25-Mar-19 14:49:53 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.createrecordset.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken1"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['157'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.createrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b712c9c79d0001ad45e5"}],"id":"5ab7b712c9c79d0001ad45e6","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fcf7bee886c-BOM] connection: [keep-alive] content-length: ['322'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:54 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=de5847b7d8c86bc9b9b63d546f36c3a901521989393; expires=Mon, 25-Mar-19 14:49:53 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.createrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b712c9c79d0001ad45e5"}],"id":"5ab7b712c9c79d0001ad45e6","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fd67ecd2daf-BOM] connection: [keep-alive] content-length: ['322'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:55 GMT'] etag: [W/"9ea1447e5ae2907fc1597d42df6115b2c43488e3"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d5652c3b4d55d97ce7c4ed214bdab77be1521989394; expires=Mon, 25-Mar-19 14:49:54 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.createrecordset.lexicon-example.com", "answers": [{"answer": ["challengetoken1"], "id": "5ab7b712c9c79d0001ad45e5"}, {"answer": ["challengetoken2"]}], "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['204'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.createrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b712c9c79d0001ad45e5"},{"answer":["challengetoken2"],"id":"5ab7b714bbccf90001006bd4"}],"id":"5ab7b712c9c79d0001ad45e6","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fda68122daf-BOM] connection: [keep-alive] content-length: ['385'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:56 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d874b30f12f2450daa38e3232b84ab5bb1521989395; expires=Mon, 25-Mar-19 14:49:55 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['300'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['299'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000253471325606366700455650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989396,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122fe2dd31886c-BOM] connection: [keep-alive] content-length: ['1432'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:57 GMT'] etag: [W/"ffdca480d93f48adc44f8bbcf09593fb50cb1efd"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dbaaf8f618715dc1cc4e02916903c1e5a1521989396; expires=Mon, 25-Mar-19 14:49:56 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.noop.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40122fe74f89886c-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:57 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dab5e17cfd4fb7ec7ffb35a3f7dddd2211521989397; expires=Mon, 25-Mar-19 14:49:57 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.noop.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['145'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.noop.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.noop.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7170c13a400014ee123"}],"id":"5ab7b7170c13a400014ee124","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122feb985f889c-BOM] connection: [keep-alive] content-length: ['310'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:49:59 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d231eabaa84aa9e93ffa3f12af3474a6e1521989398; expires=Mon, 25-Mar-19 14:49:58 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.noop.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.noop.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7170c13a400014ee123"}],"id":"5ab7b7170c13a400014ee124","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122ff52a182dc1-BOM] connection: [keep-alive] content-length: ['310'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:00 GMT'] etag: [W/"33cc5468a9dcb928695a496559689db77af1e040"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d36ceabca241e9d61eeae4b79db2b28031521989399; expires=Mon, 25-Mar-19 14:49:59 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989399,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122ff91f7b2ddf-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:00 GMT'] etag: [W/"43759620917024c71f4065664a30ca17ab5a203d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d69d50071921a2e2df59b1740ab6b05a51521989400; expires=Mon, 25-Mar-19 14:50:00 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000303771325606366700442260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989399,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40122ffd9ffc88a2-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:01 GMT'] etag: [W/"43759620917024c71f4065664a30ca17ab5a203d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d01e366c0d96fab06fb0fb4fad96cef7f1521989401; expires=Mon, 25-Mar-19 14:50:01 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfilt.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [401230013d872dd3-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:02 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d192feb7a078e902f175d9116d6a8abd41521989401; expires=Mon, 25-Mar-19 14:50:01 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "delete.testfilt.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfilt.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"delete.testfilt.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b71ba632f60001419f30"}],"id":"5ab7b71ba632f60001419f31","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230055d862deb-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:03 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=db396dc0b74d798cd98c73c1dacd0acbe1521989402; expires=Mon, 25-Mar-19 14:50:02 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfilt.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"delete.testfilt.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b71ba632f60001419f30"}],"id":"5ab7b71ba632f60001419f31","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012300ed8902dbb-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:04 GMT'] etag: [W/"957980102f23ef48523d67007b8b185fcf17ada5"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d07d0a4e3ad6081e8bd35445b2c28a5e51521989403; expires=Mon, 25-Mar-19 14:50:03 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfilt.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012301369b488a2-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:05 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d9b4ae5fe2352475fc6a33bb44165e0371521989404; expires=Mon, 25-Mar-19 14:50:04 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989405,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012301d9d372da9-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:07 GMT'] etag: [W/"da44c712acc43c0895bbb50effd982e3cfc6156a"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=df5db820e18c6f0e9a70c001e90c4a92a1521989406; expires=Mon, 25-Mar-19 14:50:06 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000303771325606366700472710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989405,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230289c792df1-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:08 GMT'] etag: [W/"da44c712acc43c0895bbb50effd982e3cfc6156a"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d85efb3d77feefe9524587fc127afc8251521989408; expires=Mon, 25-Mar-19 14:50:08 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [4012302dbe122dd3-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:09 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d44e564178e7156bed9245faf87c1fceb1521989408; expires=Mon, 25-Mar-19 14:50:08 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "delete.testfqdn.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"delete.testfqdn.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b722bbccf90001006bf8"}],"id":"5ab7b722bbccf90001006bf9","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123033e8902df1-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:10 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d9bafe8fe4071efb5ce50537a4b8fb4b01521989409; expires=Mon, 25-Mar-19 14:50:09 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"delete.testfqdn.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b722bbccf90001006bf8"}],"id":"5ab7b722bbccf90001006bf9","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012303f9aa12dc7-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:12 GMT'] etag: [W/"49660319a47a071bc5702fb203aa5a32c9c2c629"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=ddc4ae544ef856e9d4eabffb43e89724e1521989411; expires=Mon, 25-Mar-19 14:50:11 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230446ab82deb-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:13 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dae5411a671d1532fb92994605cc68c131521989412; expires=Mon, 25-Mar-19 14:50:12 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989412,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123049c81d2de5-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:13 GMT'] etag: [W/"4b599340cc5941855aa7271841ba8e8e1996881d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=da5bbe354b3a675552e3a2f260114a39c1521989413; expires=Mon, 25-Mar-19 14:50:13 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000303771325606366700473030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989412,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012304eedbc2deb-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:14 GMT'] etag: [W/"4b599340cc5941855aa7271841ba8e8e1996881d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dc6e61857f942293eb3a11772465a3d7c1521989414; expires=Mon, 25-Mar-19 14:50:14 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [401230526ec82deb-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:15 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dc6e61857f942293eb3a11772465a3d7c1521989414; expires=Mon, 25-Mar-19 14:50:14 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "delete.testfull.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"delete.testfull.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7270c13a4000159ede1"}],"id":"5ab7b7270c13a4000159ede2","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123056a8092deb-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:16 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d7df1754b9f39a07b28f0fed2253894341521989415; expires=Mon, 25-Mar-19 14:50:15 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"delete.testfull.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7270c13a4000159ede1"}],"id":"5ab7b7270c13a4000159ede2","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012305c5f6d88a2-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:16 GMT'] etag: [W/"355fc97ed00554bcc44b34a62d4f296e133b48d1"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d213b72f48293a4a0394d08b0fe1f4c031521989416; expires=Mon, 25-Mar-19 14:50:16 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230600d892da9-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:17 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d1e0c23d38a2401eaf9955f266674b0061521989416; expires=Mon, 25-Mar-19 14:50:16 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989417,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123063fa232dbb-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:18 GMT'] etag: [W/"73d6278f2fe164b634f1e58e514f67b5273309bf"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d2a2909e166e375fb3196175ed159ad511521989417; expires=Mon, 25-Mar-19 14:50:17 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000331721325606366700450570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989417,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012306cecbb2de5-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:19 GMT'] etag: [W/"73d6278f2fe164b634f1e58e514f67b5273309bf"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d6b8e4476d4a5d7d43feb6501742ec6091521989419; expires=Mon, 25-Mar-19 14:50:19 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testid.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40123070d9be2daf-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:19 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d101f733460a427c15ff8b3722005186a1521989419; expires=Mon, 25-Mar-19 14:50:19 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "delete.testid.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['138'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testid.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"delete.testid.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b72cc9c79d0001a8a80f"}],"id":"5ab7b72cc9c79d0001a8a810","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230748c482da9-BOM] connection: [keep-alive] content-length: ['303'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:20 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dc4f5232adfc2ba73de81c60206b12b721521989420; expires=Mon, 25-Mar-19 14:50:20 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"delete.testid.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b72cc9c79d0001a8a810"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989420,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123079ba782de5-BOM] connection: [keep-alive] content-length: ['1757'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:21 GMT'] etag: [W/"15675c94eb980521d36c00e7d78c7b7d3a35052e"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dcfdc562faead34adf7ea53e1b23343e21521989421; expires=Mon, 25-Mar-19 14:50:21 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/delete.testid.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012307d88fe2dc1-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:21 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dbf79a284f74253dde4890dbe405cff621521989421; expires=Mon, 25-Mar-19 14:50:21 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989421,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123081ea922dc1-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:22 GMT'] etag: [W/"3d9cf673bd2dd09dcb5bc9a273ba9e524237b9d2"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d0dda6a54b4a856a70418fb1488c7e3551521989422; expires=Mon, 25-Mar-19 14:50:22 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 3066487f04994cb71cedb881cfec121ef3f36a85.paxheader00006660000000000000000000000256132560636670020551xustar00rootroot00000000000000174 path=lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 3066487f04994cb71cedb881cfec121ef3f36a85.data000066400000000000000000000417621325606366700174160ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989421,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230861f472dcd-BOM] connection: [keep-alive] content-length: ['1598'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:25 GMT'] etag: [W/"3d9cf673bd2dd09dcb5bc9a273ba9e524237b9d2"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d8329ba817c44d1ab8fcba42f7b61c4751521989423; expires=Mon, 25-Mar-19 14:50:23 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordinset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40123095dd712dd9-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:25 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d3a16eddc5361b276327b283a127dc5281521989425; expires=Mon, 25-Mar-19 14:50:25 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.deleterecordinset.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken1"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['159'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordinset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b7320c13a400014ee148"}],"id":"5ab7b7320c13a400014ee149","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012309a6ca62de5-BOM] connection: [keep-alive] content-length: ['324'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:26 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dbad8490a91b334ea4efb572e53c7b0771521989426; expires=Mon, 25-Mar-19 14:50:26 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordinset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b7320c13a400014ee148"}],"id":"5ab7b7320c13a400014ee149","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012309e297b2ddf-BOM] connection: [keep-alive] content-length: ['324'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:27 GMT'] etag: [W/"1400e766e2d975f3f58350c3aabb275ab2c5ef47"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d07a5128d36f7236b8dd225226192b6911521989426; expires=Mon, 25-Mar-19 14:50:26 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.deleterecordinset.lexicon-example.com", "answers": [{"answer": ["challengetoken1"], "id": "5ab7b7320c13a400014ee148"}, {"answer": ["challengetoken2"]}], "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['206'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordinset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b7320c13a400014ee148"},{"answer":["challengetoken2"],"id":"5ab7b733a632f60001419f40"}],"id":"5ab7b7320c13a400014ee149","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230a1dc742da9-BOM] connection: [keep-alive] content-length: ['387'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:27 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dfd44775926ea61bcd39a6c0c49cf627b1521989427; expires=Mon, 25-Mar-19 14:50:27 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['300'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['299'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordinset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b7320c13a400014ee148"},{"answer":["challengetoken2"],"id":"5ab7b733a632f60001419f40"}],"id":"5ab7b7320c13a400014ee149","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230a67f482dc7-BOM] connection: [keep-alive] content-length: ['387'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:28 GMT'] etag: [W/"240df554b81af5b78e6db2ed6a062c3f30ded5fc"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=da7e3e2da1c78d7af86ac4e6aff5d34fd1521989428; expires=Mon, 25-Mar-19 14:50:28 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.deleterecordinset.lexicon-example.com", "answers": [{"answer": ["challengetoken2"], "id": "5ab7b733a632f60001419f40"}], "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['173'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordinset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken2"],"id":"5ab7b733a632f60001419f40"}],"id":"5ab7b7320c13a400014ee149","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230ab0e5288a2-BOM] connection: [keep-alive] content-length: ['324'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:29 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d37f0ca5640b8fed9fbf3acc201b790531521989428; expires=Mon, 25-Mar-19 14:50:28 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['300'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['299'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989429,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230b33d182de5-BOM] connection: [keep-alive] content-length: ['1778'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:30 GMT'] etag: [W/"efe16db11551a6991fbb7b1cc94eb6907fe8269b"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dbf85d6656ba2451ad816c2a1dbb666781521989430; expires=Mon, 25-Mar-19 14:50:30 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000411601325606366700443370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989429,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230b86a9c2ddf-BOM] connection: [keep-alive] content-length: ['1778'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:31 GMT'] etag: [W/"efe16db11551a6991fbb7b1cc94eb6907fe8269b"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d7a4e15b42a21055ed38d71d98a9bb10c1521989431; expires=Mon, 25-Mar-19 14:50:31 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [401230bcbbf92ddf-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:32 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d7a4e15b42a21055ed38d71d98a9bb10c1521989431; expires=Mon, 25-Mar-19 14:50:31 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.deleterecordset.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken1"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['157'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b738bbccf90001006c0a"}],"id":"5ab7b738bbccf90001006c0b","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230c08def2df1-BOM] connection: [keep-alive] content-length: ['322'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:32 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d7908b2f0d8ad7e3af88fe43e875dcf9c1521989432; expires=Mon, 25-Mar-19 14:50:32 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b738bbccf90001006c0a"}],"id":"5ab7b738bbccf90001006c0b","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230c46fdb2df1-BOM] connection: [keep-alive] content-length: ['322'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:33 GMT'] etag: [W/"c946414dd525faa30303ed2c73f0483702c80166"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d5c288c9f6d492a7975d01ed4291dd1601521989433; expires=Mon, 25-Mar-19 14:50:33 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.deleterecordset.lexicon-example.com", "answers": [{"answer": ["challengetoken1"], "id": "5ab7b738bbccf90001006c0a"}, {"answer": ["challengetoken2"]}], "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['204'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b738bbccf90001006c0a"},{"answer":["challengetoken2"],"id":"5ab7b739c9c79d0001ad4606"}],"id":"5ab7b738bbccf90001006c0b","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230c87de42dc1-BOM] connection: [keep-alive] content-length: ['385'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:33 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dc7d043443231f607904865112a175f931521989433; expires=Mon, 25-Mar-19 14:50:33 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['300'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['299'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.deleterecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b738bbccf90001006c0a"},{"answer":["challengetoken2"],"id":"5ab7b739c9c79d0001ad4606"}],"id":"5ab7b738bbccf90001006c0b","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230cceb59886c-BOM] connection: [keep-alive] content-length: ['385'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:34 GMT'] etag: [W/"3f54faa9cc2fef83d7441067b01e8064e014bc0c"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dacebb7df9fa6d0fdbc4e64d4ee3245a01521989434; expires=Mon, 25-Mar-19 14:50:34 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.deleterecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230d17d7c886c-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:35 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d160e72e46ee1612ecb5aac502e0b4be91521989435; expires=Mon, 25-Mar-19 14:50:35 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989435,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230d5dec9889c-BOM] connection: [keep-alive] content-length: ['1778'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:36 GMT'] etag: [W/"8b5ce6e63dabdb342714c22d8c23f857e10e8657"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d342e6185a373161e859e6a71484b47271521989435; expires=Mon, 25-Mar-19 14:50:35 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000330041325606366700430450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989435,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230d9dc4c2ddf-BOM] connection: [keep-alive] content-length: ['1778'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:36 GMT'] etag: [W/"8b5ce6e63dabdb342714c22d8c23f857e10e8657"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=df078344274cedb0059fed6b92ccd76051521989436; expires=Mon, 25-Mar-19 14:50:36 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.listrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [401230df9d142de5-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:37 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d0b44a856931b3033cfe84a45394b09af1521989437; expires=Mon, 25-Mar-19 14:50:37 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "_acme-challenge.listrecordset.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken1"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['155'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.listrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.listrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b73ea632f60001419f46"}],"id":"5ab7b73ea632f60001419f47","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230e3ece1889c-BOM] connection: [keep-alive] content-length: ['320'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:38 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d5798acc37136af211c3b57dbd8b2162b1521989438; expires=Mon, 25-Mar-19 14:50:38 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.listrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.listrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b73ea632f60001419f46"}],"id":"5ab7b73ea632f60001419f47","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230e7c85a2daf-BOM] connection: [keep-alive] content-length: ['320'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:38 GMT'] etag: [W/"5343439dfc25ba2a7e2e52d8d47c9faea37af832"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dcbeb4af032870a14f524e108d578f8801521989438; expires=Mon, 25-Mar-19 14:50:38 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.listrecordset.lexicon-example.com", "answers": [{"answer": ["challengetoken1"], "id": "5ab7b73ea632f60001419f46"}, {"answer": ["challengetoken2"]}], "ttl": 3600}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['202'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.listrecordset.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"_acme-challenge.listrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b73ea632f60001419f46"},{"answer":["challengetoken2"],"id":"5ab7b73fc94a900001c1e02c"}],"id":"5ab7b73ea632f60001419f47","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230eb6dc72dc7-BOM] connection: [keep-alive] content-length: ['383'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:39 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dbae9b75b59db5bd903d3db0a61c266121521989439; expires=Mon, 25-Mar-19 14:50:39 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['300'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['299'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989439,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230ef39802df1-BOM] connection: [keep-alive] content-length: ['1972'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:40 GMT'] etag: [W/"c5ede1b9cfe79a4820f7a069088770dc4f927519"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d87ee906013aa00726edf298a7f7f74301521989439; expires=Mon, 25-Mar-19 14:50:39 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000237401325606366700465110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989439,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230f41d122daf-BOM] connection: [keep-alive] content-length: ['1972'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:40 GMT'] etag: [W/"c5ede1b9cfe79a4820f7a069088770dc4f927519"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dafacfebdd15e3d40c16011fe506ffa491521989440; expires=Mon, 25-Mar-19 14:50:40 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/random.fqdntest.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [401230f87c432deb-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:41 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dbd72f962c64eb1f00b1470d9fc66088a1521989441; expires=Mon, 25-Mar-19 14:50:41 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "random.fqdntest.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/random.fqdntest.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"random.fqdntest.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7420c13a4000159edec"}],"id":"5ab7b7420c13a4000159eded","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230fc5c802dd9-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:42 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dd20cb083d89061eee369a892b658d5cc1521989441; expires=Mon, 25-Mar-19 14:50:41 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"}],"meta":{},"link":null,"serial":1521989442,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401230fff8a3889c-BOM] connection: [keep-alive] content-length: ['2133'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:42 GMT'] etag: [W/"f979f412090954ee43218ef52d6746987990fe2e"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=de483305ab054f0bc162bcd0fb829cbe31521989442; expires=Mon, 25-Mar-19 14:50:42 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000244421325606366700465230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"}],"meta":{},"link":null,"serial":1521989442,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123103eba22db5-BOM] connection: [keep-alive] content-length: ['2133'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:43 GMT'] etag: [W/"f979f412090954ee43218ef52d6746987990fe2e"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d2cda25b5ac9c63267fa5ea3d6af2166b1521989443; expires=Mon, 25-Mar-19 14:50:43 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/random.fulltest.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40123107bb252dbb-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:44 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dd9c74efb5415c4f2894fef3f34ab088d1521989443; expires=Mon, 25-Mar-19 14:50:43 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "random.fulltest.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/random.fulltest.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"random.fulltest.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b744a632f60001419f4d"}],"id":"5ab7b744a632f60001419f4e","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012310bad072daf-BOM] connection: [keep-alive] content-length: ['305'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:44 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d334b38965975e134167462b9b21e36f31521989444; expires=Mon, 25-Mar-19 14:50:44 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"}],"meta":{},"link":null,"serial":1521989444,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012310f8c572deb-BOM] connection: [keep-alive] content-length: ['2294'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:45 GMT'] etag: [W/"a8c0e5820ef498c2e623ef866cf409e818a252af"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d9fea1b30177657406f943fc6a8c254271521989445; expires=Mon, 25-Mar-19 14:50:45 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000166151325606366700461740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"}],"meta":{},"link":null,"serial":1521989444,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401231135f4a2daf-BOM] connection: [keep-alive] content-length: ['2294'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:45 GMT'] etag: [W/"a8c0e5820ef498c2e623ef866cf409e818a252af"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d2e371964b6112ee578aaa474a3687e831521989445; expires=Mon, 25-Mar-19 14:50:45 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"}],"meta":{},"link":null,"serial":1521989444,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401231171f6f2de5-BOM] connection: [keep-alive] content-length: ['2294'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:46 GMT'] etag: [W/"a8c0e5820ef498c2e623ef866cf409e818a252af"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d1b80b7817ee7ad587642e7690374bf701521989446; expires=Mon, 25-Mar-19 14:50:46 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000251201325606366700454730ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"}],"meta":{},"link":null,"serial":1521989444,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012311afb272db5-BOM] connection: [keep-alive] content-length: ['2294'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:47 GMT'] etag: [W/"a8c0e5820ef498c2e623ef866cf409e818a252af"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d8c62402e0d9fc2dad72585b2ac8ea39e1521989446; expires=Mon, 25-Mar-19 14:50:46 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/random.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [4012311edb662dbb-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:47 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=df88db69d02ed51b5ff3659152802e8c01521989447; expires=Mon, 25-Mar-19 14:50:47 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "random.test.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['136'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/random.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"random.test.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7480c13a400014ee155"}],"id":"5ab7b7480c13a400014ee156","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123123bbe42dc7-BOM] connection: [keep-alive] content-length: ['301'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:48 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d5693bf453094369188abb9f7bfd5e5c01521989448; expires=Mon, 25-Mar-19 14:50:48 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"}],"meta":{},"link":null,"serial":1521989448,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401231292d992daf-BOM] connection: [keep-alive] content-length: ['2451'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:49 GMT'] etag: [W/"d4fdbc39092d3e3965775e365b1c85950dd262c8"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d668c7fc6b51ca1535b1b557b81cdc6821521989449; expires=Mon, 25-Mar-19 14:50:49 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000173071325606366700446450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"}],"meta":{},"link":null,"serial":1521989448,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012312daf5a2de5-BOM] connection: [keep-alive] content-length: ['2451'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:50 GMT'] etag: [W/"d4fdbc39092d3e3965775e365b1c85950dd262c8"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d4ce3ef61a72588089c74a381b6eac6671521989449; expires=Mon, 25-Mar-19 14:50:49 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"}],"meta":{},"link":null,"serial":1521989448,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401231321fc32deb-BOM] connection: [keep-alive] content-length: ['2451'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:50 GMT'] etag: [W/"d4fdbc39092d3e3965775e365b1c85950dd262c8"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dafd2fe20e56272f6739c54b4ecc892791521989450; expires=Mon, 25-Mar-19 14:50:50 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000421041325606366700421700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"}],"meta":{},"link":null,"serial":1521989448,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123135dd742ddf-BOM] connection: [keep-alive] content-length: ['2451'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:51 GMT'] etag: [W/"d4fdbc39092d3e3965775e365b1c85950dd262c8"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d1b9899b915b89f4352e3fadc35798b981521989451; expires=Mon, 25-Mar-19 14:50:51 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40123139aa522dd9-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:52 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dd45c45905ac2ab4a4f440b75dc82deaf1521989451; expires=Mon, 25-Mar-19 14:50:51 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "orig.test.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['134'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"orig.test.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b74cc9c79d0001a8a827"}],"id":"5ab7b74cc9c79d0001a8a828","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012313d7f7e2dc1-BOM] connection: [keep-alive] content-length: ['299'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:52 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d5f0889fd245270535a7b790e450e17841521989452; expires=Mon, 25-Mar-19 14:50:52 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"orig.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b74cc9c79d0001a8a828"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"}],"meta":{},"link":null,"serial":1521989452,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012314168832dc1-BOM] connection: [keep-alive] content-length: ['2606'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:53 GMT'] etag: [W/"c26280c3c324ef48aa111b41fc826da3d09ee08e"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d6882223e989bc2cc5eff4c37dc8360301521989453; expires=Mon, 25-Mar-19 14:50:53 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"orig.test.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b74cc9c79d0001a8a827"}],"id":"5ab7b74cc9c79d0001a8a828","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012314549f22dc7-BOM] connection: [keep-alive] content-length: ['299'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:53 GMT'] etag: [W/"c3bb789f41869a007047db92c5e49338765a1670"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d81a1431407eec8c1f9776f33133cf6601521989453; expires=Mon, 25-Mar-19 14:50:53 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/updated.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40123148fb5b2dc1-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:54 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d7680dda99ae34f121a2e361920e5378e1521989454; expires=Mon, 25-Mar-19 14:50:54 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "updated.test.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['137'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/updated.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"updated.test.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b74fbbccf900012fe098"}],"id":"5ab7b74fbbccf900012fe099","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012314d9b2e889c-BOM] connection: [keep-alive] content-length: ['302'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:56 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d68613ff3a5c086974a069c2fa3eb26e61521989454; expires=Mon, 25-Mar-19 14:50:54 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.test.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401231567b372dd9-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:56 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d65481457e28bb4d498a12c7320dfb9301521989456; expires=Mon, 25-Mar-19 14:50:56 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000426601325606366700452420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"},{"domain":"updated.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b74fbbccf900012fe099"}],"meta":{},"link":null,"serial":1521989456,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012315a7902886c-BOM] connection: [keep-alive] content-length: ['2609'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:57 GMT'] etag: [W/"064bb3dde025c2689c8652d1c89d59944be7d850"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d4bee50979dd5c91b093174c55ec77bbc1521989457; expires=Mon, 25-Mar-19 14:50:57 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [4012315ecb482dc1-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:57 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d75b338b504c41311c161c2819587ee551521989457; expires=Mon, 25-Mar-19 14:50:57 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "orig.testfqdn.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['138'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"orig.testfqdn.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b752c94a900001d34256"}],"id":"5ab7b752c94a900001d34257","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123162ace4889c-BOM] connection: [keep-alive] content-length: ['303'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:58 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d9bff9b80fffc5d9f50a95d9dba3a4bdc1521989458; expires=Mon, 25-Mar-19 14:50:58 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"orig.testfqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b752c94a900001d34257"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"},{"domain":"updated.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b74fbbccf900012fe099"}],"meta":{},"link":null,"serial":1521989458,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401231685a252daf-BOM] connection: [keep-alive] content-length: ['2768'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:50:59 GMT'] etag: [W/"6eadde2751d090d84b8149add36b981d9cefc264"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d6325dcb3c46ab5578ed6a2f825b35e2d1521989459; expires=Mon, 25-Mar-19 14:50:59 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"orig.testfqdn.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b752c94a900001d34256"}],"id":"5ab7b752c94a900001d34257","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012316c8f322dcd-BOM] connection: [keep-alive] content-length: ['303'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:01 GMT'] etag: [W/"e3ef42839135cd719e283b0e8090ecc3a120531d"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=da2e1435fc922ab6a71fd64259d39cf4f1521989459; expires=Mon, 25-Mar-19 14:50:59 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/updated.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [40123175ec692ddf-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:01 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dc5a37dcc4834f36f619a49829a3696ce1521989461; expires=Mon, 25-Mar-19 14:51:01 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "updated.testfqdn.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['141'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/updated.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"updated.testfqdn.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b756bbccf900012fe0a9"}],"id":"5ab7b756bbccf900012fe0aa","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123179cfc62deb-BOM] connection: [keep-alive] content-length: ['306'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:02 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d90d1a276cee7d1b5e6a1631d858481d61521989462; expires=Mon, 25-Mar-19 14:51:02 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfqdn.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012317e0fb72ddf-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:02 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dab0313019873160ebb918e5a2fac0bb41521989462; expires=Mon, 25-Mar-19 14:51:02 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000433641325606366700452560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/nsone/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"},{"domain":"updated.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b74fbbccf900012fe099"},{"domain":"updated.testfqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b756bbccf900012fe0aa"}],"meta":{},"link":null,"serial":1521989462,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012318229f0889c-BOM] connection: [keep-alive] content-length: ['2771'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:03 GMT'] etag: [W/"df9605556d2a475a8eacf7fe5545b4f11ed6af60"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d1b9df01474f0bf052890ca2346918a201521989463; expires=Mon, 25-Mar-19 14:51:03 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [401231866e822da9-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:04 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dd08e607338b81e9cad32cd91f298029c1521989464; expires=Mon, 25-Mar-19 14:51:04 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "orig.testfull.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['138'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"orig.testfull.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7580c13a4000159ee13"}],"id":"5ab7b7580c13a4000159ee14","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012318a3b482dc1-BOM] connection: [keep-alive] content-length: ['303'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:04 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dd466aacc607310d4a2391260524834031521989464; expires=Mon, 25-Mar-19 14:51:04 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com response: body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.createrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b712c9c79d0001ad45e6"},{"domain":"_acme-challenge.deleterecordinset.lexicon-example.com","short_answers":["challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7320c13a400014ee149"},{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.listrecordset.lexicon-example.com","short_answers":["challengetoken1","challengetoken2"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b73ea632f60001419f47"},{"domain":"_acme-challenge.noop.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7170c13a400014ee124"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"},{"domain":"orig.testfull.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7580c13a4000159ee14"},{"domain":"random.fqdntest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7420c13a4000159eded"},{"domain":"random.fulltest.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b744a632f60001419f4e"},{"domain":"random.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b7480c13a400014ee156"},{"domain":"updated.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b74fbbccf900012fe099"},{"domain":"updated.testfqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b756bbccf900012fe0aa"}],"meta":{},"link":null,"serial":1521989464,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012318df9d12dd3-BOM] connection: [keep-alive] content-length: ['2930'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:05 GMT'] etag: [W/"c97369925f2bd659ab2361ae34e995dcae888f34"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d7b91dcb1c9e442591ac3262e94ea98bd1521989465; expires=Mon, 25-Mar-19 14:51:05 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"orig.testfull.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b7580c13a4000159ee13"}],"id":"5ab7b7580c13a4000159ee14","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [40123191f8262ddf-BOM] connection: [keep-alive] content-length: ['303'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:06 GMT'] etag: [W/"1116ceac92d0f676e2429a4b583fbb63d2730d25"] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d18a88bf7a1bdc636976b34a7ffcd40761521989465; expires=Mon, 25-Mar-19 14:51:05 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://api.nsone.net/v1/zones/lexicon-example.com/updated.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"message":"record not found"} '} headers: cache-control: [no-cache] cf-ray: [4012319668bc2deb-BOM] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:06 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=d31c5a27068e53f166eb5dc35c62527e01521989466; expires=Mon, 25-Mar-19 14:51:06 GMT; path=/; domain=.nsone.net; HttpOnly'] x-ratelimit-by: [customer] x-ratelimit-limit: ['900'] x-ratelimit-period: ['300'] x-ratelimit-remaining: ['899'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"domain": "updated.testfull.lexicon-example.com", "type": "TXT", "answers": [{"answer": ["challengetoken"]}], "zone": "lexicon-example.com"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['141'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://api.nsone.net/v1/zones/lexicon-example.com/updated.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{"domain":"updated.testfull.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken"],"id":"5ab7b75c0c13a4000159ee17"}],"id":"5ab7b75c0c13a4000159ee18","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [4012319a698888a2-BOM] connection: [keep-alive] content-length: ['306'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:08 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=db2add12542a291316180ca401f8d45c31521989467; expires=Mon, 25-Mar-19 14:51:07 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://api.nsone.net/v1/zones/lexicon-example.com/orig.testfull.lexicon-example.com/TXT response: body: {string: !!python/unicode '{} '} headers: cache-control: [no-cache, 'private, max-age=0, no-cache, no-store'] cf-ray: [401231a32fa22ddf-BOM] connection: [keep-alive] content-length: ['3'] content-type: [application/json] date: ['Sun, 25 Mar 2018 14:51:08 GMT'] expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'] expires: ['0'] pragma: [no-cache] server: [cloudflare] set-cookie: ['__cfduid=dfb8386b901856568409357a282e0126b1521989468; expires=Mon, 25-Mar-19 14:51:08 GMT; path=/; domain=.nsone.net; HttpOnly'] strict-transport-security: [max-age=63072000; includeSubdomains; preload] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-ratelimit-by: [customer] x-ratelimit-limit: ['100'] x-ratelimit-period: ['200'] x-ratelimit-remaining: ['99'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/onapp/000077500000000000000000000000001325606366700213215ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTests/000077500000000000000000000000001325606366700246275ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000025311325606366700331030ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:02 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=f3b82a500066e11f6af3b59d32482b81; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [7e86c26ede6e0f20925af7d0f1f9da08] X-Runtime: ['0.135693'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000025311325606366700417760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:03 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=af803a6f1a50128b9a6b245958fe5bfd; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [2cef7b0e2dd779b05a6e77e9e8665f4a] X-Runtime: ['0.140098'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000052401325606366700445550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:03 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=0acf20bac42092c295267e652a00fd09; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [ba50e1be863ecbe4c2bb8306b3c528cb] X-Runtime: ['0.303532'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "localhost", "type": "A", "ip": "127.0.0.1", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] Cookie: [_session_id=0acf20bac42092c295267e652a00fd09] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":"3600","type":"A"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:04 GMT'] ETag: ['"350b2e798d97641b4fde2d9a11291166"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=7db991b3ea9b4fe5dab78f91fe9013d8; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [cca7d60f3b6e5e05f66476b6454c7187] X-Runtime: ['3.770022'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000052701325606366700452230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:08 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=75b1e20daf21633b2831bac46e0ff80d; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [19ef40d825144f4f4235b3a880bd528d] X-Runtime: ['2.184610'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "docs", "type": "CNAME", "hostname": "docs.example.com", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['96'] Content-Type: [application/json] Cookie: [_session_id=75b1e20daf21633b2831bac46e0ff80d] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":"3600","type":"CNAME"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:10 GMT'] ETag: ['"c74749340969e118a52a2e11b9e44a09"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=fc6470f54d6dd890b808fdf420f693be; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [2e8e1b75324eee588d7eea275acfa5e1] X-Runtime: ['4.356426'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000053071325606366700447110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:15 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=4e480d8b4cbdfff81e2026e9991503c5; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [95f539137234c8e73caddcb54d191d62] X-Runtime: ['0.284388'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.fqdn", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] Cookie: [_session_id=4e480d8b4cbdfff81e2026e9991503c5] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:15 GMT'] ETag: ['"52a48f61b7d32760524e0dc0e6dbcd5d"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=c55d8f170796825d4d7090c834a9146f; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [649224bb8c47417cac43494133d2e8af] X-Runtime: ['6.843244'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000053071325606366700447230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:22 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=5e7aac684af328498b7b0432d3554c04; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [abd8f18c637ed2fc9dde3a99ff6456fe] X-Runtime: ['1.961586'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.full", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] Cookie: [_session_id=5e7aac684af328498b7b0432d3554c04] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:25 GMT'] ETag: ['"a901398c9fbc684a58be1d397a1643a5"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=a889096134cb8381b38704f481604224; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [6bb1005831b93539ed270dcc4c1079d0] X-Runtime: ['3.703930'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000053071325606366700450600ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:29 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=54ebb8604c5e80b2819fd14e9e84a0c5; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [9bfe77124f5ffe8a9fdcec60972288f9] X-Runtime: ['2.013029'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.test", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] Cookie: [_session_id=54ebb8604c5e80b2819fd14e9e84a0c5] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:31 GMT'] ETag: ['"ff8f8b671c23e05b5461489c206c8ebc"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=a165bc5f47ec202fe2e95ec0b845d46b; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [1af5cd7998de4e6aaf6ddc351d55e2d6] X-Runtime: ['3.618539'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000101451325606366700461070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:35 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=36c856a77c5f1392aca3c1f59ce1d61d; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [95a0e0fa9b21fd0bb5976955646eb71a] X-Runtime: ['0.237195'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.createrecordset", "type": "TXT", "txt": "challengetoken1", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] Cookie: [_session_id=36c856a77c5f1392aca3c1f59ce1d61d] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":"3600","txt":"challengetoken1","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:36 GMT'] ETag: ['"7be5495cc06c04039599ae1e2eb25aa8"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=3bf6d3c9f6509af2ffb9d4973218846c; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [14b3008effac370f149574a2ff911c70] X-Runtime: ['6.240992'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: '{"dns_record": {"name": "_acme-challenge.createrecordset", "type": "TXT", "txt": "challengetoken2", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] Cookie: [_session_id=3bf6d3c9f6509af2ffb9d4973218846c] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":"3600","txt":"challengetoken2","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:42 GMT'] ETag: ['"f4ae008c53d390737fa6acc9f07e4a4f"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=e155108b13e891b6c5eefe92a565f4c5; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [1b9542c4675067cf3a168f70eb9e2cf7] X-Runtime: ['3.806195'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000152371325606366700455550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:46 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=9c313b618ffbf549c8f6c8ce840faf9c; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [dd683f82decb4a90dafdc4f094d6946b] X-Runtime: ['0.134729'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.noop", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] Cookie: [_session_id=9c313b618ffbf549c8f6c8ce840faf9c] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:47 GMT'] ETag: ['"f9b1e0f7463775ab736f461a1635cef3"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=1def6bb7006830f47c47ff9e22ad0d13; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [891048dd931066c803bb98b8ed615b09] X-Runtime: ['3.561811'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: '{"dns_record": {"name": "_acme-challenge.noop", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] Cookie: [_session_id=1def6bb7006830f47c47ff9e22ad0d13] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:51 GMT'] ETag: ['"f9b1e0f7463775ab736f461a1635cef3"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=20a604856a859fa7b9f6ee60b83e01ac; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [e5de1f0242b4f47aa6d0ff442a6c85e2] X-Runtime: ['2.878468'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=20a604856a859fa7b9f6ee60b83e01ac] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":32,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:54 GMT'] ETag: ['"bec9b0fd29b35dad252ff080f30df660"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [affcee381a03ebc754cfa9733772774f] X-Runtime: ['2.981655'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000220251325606366700442100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:57 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=34f620029341ea44dbcdb88089d2f1a8; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [b4917f781dd0d8847a332c3d44fa18e5] X-Runtime: ['0.134156'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "delete.testfilt", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-Type: [application/json] Cookie: [_session_id=34f620029341ea44dbcdb88089d2f1a8] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797641,"name":"delete.testfilt","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:45:58 GMT'] ETag: ['"fd3e43dd2d644e04af85bcbe7cb67fee"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=08cfb76228ae392d8dd1a18298e74192; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [892ef4d872272b35fb4ff74710feb750] X-Runtime: ['3.327195'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=08cfb76228ae392d8dd1a18298e74192] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":33,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797641,"name":"delete.testfilt","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:02 GMT'] ETag: ['"d536af576cbe07cb2302c871bc32adb6"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [4b11b2be5d1d78747ade4217156f6c4d] X-Runtime: ['3.432779'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json] Cookie: [_session_id=08cfb76228ae392d8dd1a18298e74192] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797641.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:46:05 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=7406970a1c4dde6c8f258bcc57c79a2b; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [c085273400e3eb50546531fb13174b6c] X-Runtime: ['6.766071'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=7406970a1c4dde6c8f258bcc57c79a2b] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":34,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:12 GMT'] ETag: ['"b6269dc90e8c02a6584b13c13f041f09"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [b76138115bb3acf9517d604f94f42a09] X-Runtime: ['7.443734'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000220251325606366700472530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:20 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=ed8674f99b85a5810264515bb30166a3; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [3cf175b829b73d1cab6d2b28ea2fa83a] X-Runtime: ['0.248070'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "delete.testfqdn", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-Type: [application/json] Cookie: [_session_id=ed8674f99b85a5810264515bb30166a3] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797642,"name":"delete.testfqdn","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:21 GMT'] ETag: ['"29d4667dc85df47f6a78692dd8d33124"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=bf77e3f7fe9fb777265cb7de9e44dda9; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [25042b2c2796e58552d17b5ef921a9b8] X-Runtime: ['3.335748'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=bf77e3f7fe9fb777265cb7de9e44dda9] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":35,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797642,"name":"delete.testfqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:24 GMT'] ETag: ['"a46202743aa5a81f246064617fa2dd64"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [2f4afbdbe2b355d09058a0d7b4d7519a] X-Runtime: ['3.137580'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json] Cookie: [_session_id=bf77e3f7fe9fb777265cb7de9e44dda9] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797642.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:46:28 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=50808a82e0b00b9160875249610346eb; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [d189cfd73e023c288f0c70eee29773f2] X-Runtime: ['6.548086'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=50808a82e0b00b9160875249610346eb] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":36,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:35 GMT'] ETag: ['"00a75114ad67ec7b355aaaffb28ea21f"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [77b55e12d7ef0f89dc1ee216f5f21996] X-Runtime: ['3.510870'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000220251325606366700472650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:38 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=0cb6a03a3efcf09c681d3f3bf927069a; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [12942d2c811e4af8f3caaa8c4af06f14] X-Runtime: ['0.281510'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "delete.testfull", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-Type: [application/json] Cookie: [_session_id=0cb6a03a3efcf09c681d3f3bf927069a] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797643,"name":"delete.testfull","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:39 GMT'] ETag: ['"3fa59c31a18d6ec7d37d9ecf72a9c771"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=28ba5fc67ebecd0f46124da1db872d4d; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [c82ffb4c19ac640e285f231655bbf75a] X-Runtime: ['2.963824'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=28ba5fc67ebecd0f46124da1db872d4d] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":37,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797643,"name":"delete.testfull","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:42 GMT'] ETag: ['"a11b80aaf1d7311fe2e0eca1c4ee0229"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [3de14928da5ef683e1504c0f4b9b0042] X-Runtime: ['3.291464'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json] Cookie: [_session_id=28ba5fc67ebecd0f46124da1db872d4d] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797643.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:46:46 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=98d29a2a0cfdeb7cbd786feb72b32720; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [20069325d486714166d35a9a04f6b29f] X-Runtime: ['6.242202'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=98d29a2a0cfdeb7cbd786feb72b32720] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":38,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:52 GMT'] ETag: ['"6c0feea43a61c141ae14210018ebec48"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [8a13ead52e837c8dd80edb7a9f511d50] X-Runtime: ['3.295861'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000220171325606366700450460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:56 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=b6bdc137576de54d1d0631a1e42b284c; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [6853ec3134198813ce5a769a45eeffc6] X-Runtime: ['0.134973'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "delete.testid", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['96'] Content-Type: [application/json] Cookie: [_session_id=b6bdc137576de54d1d0631a1e42b284c] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797644,"name":"delete.testid","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:46:56 GMT'] ETag: ['"c70ba206e983f6a3d62af65173ddf743"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=c9334f04d04983686986e7fe6359e6fe; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [83c0aa66ed9f5ecc100a29bd039c4825] X-Runtime: ['3.416039'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=c9334f04d04983686986e7fe6359e6fe] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":39,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797644,"name":"delete.testid","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:00 GMT'] ETag: ['"daf9b0e79a13997c0370320f720e071c"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [6b928e802d566984f83cea2ac706ee3b] X-Runtime: ['3.359749'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json] Cookie: [_session_id=c9334f04d04983686986e7fe6359e6fe] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797644.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:47:04 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=884eb765772bec966712c67a1a5fcfb4; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [79efb96fbd071b78e4c6d606e401a531] X-Runtime: ['7.103826'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=884eb765772bec966712c67a1a5fcfb4] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":40,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:11 GMT'] ETag: ['"8c5925c58830a1008f939097dc93836a"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [c24cc44b08df02ace3b0bf7616b17272] X-Runtime: ['3.343596'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 af5bed40bdd38309509dd2f3a7100dbeae178757.paxheader00006660000000000000000000000256132560636670020665xustar00rootroot00000000000000174 path=lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml af5bed40bdd38309509dd2f3a7100dbeae178757.data000066400000000000000000000253131325606366700175240ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:15 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=88ff88a3af9ada04b7379ea97c48de2f; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [3288db072c5880931928b3c4ff61f654] X-Runtime: ['0.132279'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.deleterecordinset", "type": "TXT", "txt": "challengetoken1", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['117'] Content-Type: [application/json] Cookie: [_session_id=88ff88a3af9ada04b7379ea97c48de2f] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797645,"name":"_acme-challenge.deleterecordinset","ttl":"3600","txt":"challengetoken1","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:15 GMT'] ETag: ['"418be6773bb00b7bbf42aff2b2359af8"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=e24104b45b0ed2b21990ddecca0d5d8e; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [01511b825332f99ef6c8b5df94bd4fb6] X-Runtime: ['3.378796'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: '{"dns_record": {"name": "_acme-challenge.deleterecordinset", "type": "TXT", "txt": "challengetoken2", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['117'] Content-Type: [application/json] Cookie: [_session_id=e24104b45b0ed2b21990ddecca0d5d8e] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":"3600","txt":"challengetoken2","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:19 GMT'] ETag: ['"d0604646309ecd16e3e931e10809f089"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=148863e5bf638871bb8fb4c49c90f4e6; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [84aa9154facdea473e49cb70733769fb] X-Runtime: ['3.373220'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=148863e5bf638871bb8fb4c49c90f4e6] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":42,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797645,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:22 GMT'] ETag: ['"0a6922e3810c10736041bda65055a3a7"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [bed3e96dd9d5d35438fd16a158c9d360] X-Runtime: ['3.130371'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json] Cookie: [_session_id=148863e5bf638871bb8fb4c49c90f4e6] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797645.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:47:26 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=0b64f534b26e848a7b27da1d40d03126; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [c7b9e60177ac56170fffa79cd3d147f5] X-Runtime: ['6.255563'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=0b64f534b26e848a7b27da1d40d03126] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":43,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:32 GMT'] ETag: ['"6b98bcd59979fe2dc9413a279120c718"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [28a1090f4d17161b3dfd32ecc1372a23] X-Runtime: ['2.954363'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000275271325606366700443450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:36 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=ce8547d4cd1d197c0c623131e2c2fb55; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [c1f24181d5ea9a644f492262f807fb42] X-Runtime: ['0.143849'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.deleterecordset", "type": "TXT", "txt": "challengetoken1", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] Cookie: [_session_id=ce8547d4cd1d197c0c623131e2c2fb55] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797647,"name":"_acme-challenge.deleterecordset","ttl":"3600","txt":"challengetoken1","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:36 GMT'] ETag: ['"d94be873371d6114037aac191a158a0e"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=fae31e2cc47b4741d3b18aca69c03349; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [286f5492a6f9b2cdad552fc74cff833e] X-Runtime: ['3.343510'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: '{"dns_record": {"name": "_acme-challenge.deleterecordset", "type": "TXT", "txt": "challengetoken2", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] Cookie: [_session_id=fae31e2cc47b4741d3b18aca69c03349] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797648,"name":"_acme-challenge.deleterecordset","ttl":"3600","txt":"challengetoken2","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:40 GMT'] ETag: ['"dafcc6485efb29f5666f9a462b07e055"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=e70fb54c82d7eaab673d117a23f0410c; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [dc540bb83a5ea90fc087a20ac38da253] X-Runtime: ['3.345330'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=e70fb54c82d7eaab673d117a23f0410c] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":45,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797647,"name":"_acme-challenge.deleterecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797648,"name":"_acme-challenge.deleterecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:47:43 GMT'] ETag: ['"73fb1fd7a8dc3391520fea91e309cd12"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [24ad51518d55c3f24cdb1a15406f76e1] X-Runtime: ['3.234789'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json] Cookie: [_session_id=e70fb54c82d7eaab673d117a23f0410c] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797647.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:47:47 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=a0b3086c2ebc20aa89219ac29cbca93d; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [c6fac00f050f07b5b80dac1dc7b14176] X-Runtime: ['6.441477'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json] Cookie: [_session_id=a0b3086c2ebc20aa89219ac29cbca93d] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797648.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:47:54 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=51d7c6e48f6b9fe98f1bb7fce5689f4b; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [4852edf435a43991046a4044a8ee6fba] X-Runtime: ['6.344697'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=51d7c6e48f6b9fe98f1bb7fce5689f4b] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":47,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:00 GMT'] ETag: ['"f12fcd1452cff37618d751cf9864461f"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [25549238de30bda6e69c0a5d310c7ee6] X-Runtime: ['3.596274'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000127631325606366700413650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:04 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=1edd8ac39970b809a8f45713b4bac4c3; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [86c68c91412527d2c86c2fb3615bd00d] X-Runtime: ['0.132880'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "ttl.fqdn", "type": "TXT", "txt": "ttlshouldbe3600", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] Cookie: [_session_id=1edd8ac39970b809a8f45713b4bac4c3] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":"3600","txt":"ttlshouldbe3600","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:04 GMT'] ETag: ['"652ecf02061ab7d5a117aec936f4e748"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=f4d29358f87c9caf935e65d768805f5d; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [50e5b141b4a2ddfb2acbc95c1bf03ddf] X-Runtime: ['3.089213'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=f4d29358f87c9caf935e65d768805f5d] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":48,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:08 GMT'] ETag: ['"bc153dacae26d1908cf68da82f2f869e"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [56cc29c7856c365377f98bf3367e79e1] X-Runtime: ['3.231129'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000162121325606366700430420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:11 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=0341ad428e59faf99def182c3c57193f; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [63edf688ecd7cabae6678053c605acf2] X-Runtime: ['0.136996'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "_acme-challenge.listrecordset", "type": "TXT", "txt": "challengetoken1", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['113'] Content-Type: [application/json] Cookie: [_session_id=0341ad428e59faf99def182c3c57193f] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":"3600","txt":"challengetoken1","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:12 GMT'] ETag: ['"41d9e7472183e4ccdcf984d2ef17567a"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=aa5fa3484171bc27ca24944f3a8c7611; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [e28937eaf284ae4a86d7fbdb8d549a8c] X-Runtime: ['3.128682'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: '{"dns_record": {"name": "_acme-challenge.listrecordset", "type": "TXT", "txt": "challengetoken2", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['113'] Content-Type: [application/json] Cookie: [_session_id=aa5fa3484171bc27ca24944f3a8c7611] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":"3600","txt":"challengetoken2","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:15 GMT'] ETag: ['"ecd105f5acd4c342a37786a2df1ca758"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=84045f4971bca41f991d759c37446a94; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [eae12ed3016955439e9c3d986e689088] X-Runtime: ['3.248329'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=84045f4971bca41f991d759c37446a94] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":50,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:19 GMT'] ETag: ['"d21dc9e1367ba309acfc296f539e30d4"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [9415920fbac69b01851f635c778e1b3c] X-Runtime: ['3.620265'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000135171325606366700465050ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:23 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=57f4a1e3b2f5dbcd7fda14d6f7982a43; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [0e9b719fa40f93a98517e969fbd0ed62] X-Runtime: ['0.135622'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "random.fqdntest", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-Type: [application/json] Cookie: [_session_id=57f4a1e3b2f5dbcd7fda14d6f7982a43] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:23 GMT'] ETag: ['"72cf71d5e36af62d51b04a42c69652c9"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=6822434a4f102d65b5c62e1442cff1d1; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [7a8c1025e32baaf423d0da8a19369933] X-Runtime: ['3.769716'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=6822434a4f102d65b5c62e1442cff1d1] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":51,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:27 GMT'] ETag: ['"ee6d75db00b049968fc3a3d679ff8cd5"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [79f521ab20186c0dd1a1a21a1e4f71b4] X-Runtime: ['3.039848'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000136651325606366700465230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:30 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=4e33c016856ff5a84c05e6eac4119ddc; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [c536c5fdaac3011fdd99008166a206d1] X-Runtime: ['0.138715'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "random.fulltest", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-Type: [application/json] Cookie: [_session_id=4e33c016856ff5a84c05e6eac4119ddc] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:31 GMT'] ETag: ['"3970a6dedc94a8b651b7f8e4cc27f5fd"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=f6544ff08697689208359681e2f014c7; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [2942253cfa3905af26d993a34c16c0af] X-Runtime: ['3.742521'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=f6544ff08697689208359681e2f014c7] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":52,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:35 GMT'] ETag: ['"ed25a669866c30dadef9bf34be32cb8f"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [8f1b261828f6a0dea17dd7d420703dc0] X-Runtime: ['3.006312'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000111221325606366700461530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:38 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=606884b9b3d07111503d18e0a292e604; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [0c021992e970ff111da0e9e0e4aa9ff5] X-Runtime: ['0.130678'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=606884b9b3d07111503d18e0a292e604] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":52,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:39 GMT'] ETag: ['"ed25a669866c30dadef9bf34be32cb8f"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [ca85bc79324b9b1a72312705a3d96c9c] X-Runtime: ['3.358370'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000140171325606366700454710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:42 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=e7d65d4110b9e3ccd53e688364808bd4; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [ec37e102ae4f63460f1c71980e0a9d07] X-Runtime: ['0.132245'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "random.test", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['94'] Content-Type: [application/json] Cookie: [_session_id=e7d65d4110b9e3ccd53e688364808bd4] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797654,"name":"random.test","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:43 GMT'] ETag: ['"b42fef51b0e5e3fc1a23057ab60478f1"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=4a9351d1d7081999e4beed5fd24934ad; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [0e7bfad37722009bed5f8655f7c894a2] X-Runtime: ['2.975417'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=4a9351d1d7081999e4beed5fd24934ad] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":53,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797654,"name":"random.test","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:46 GMT'] ETag: ['"9b980448926d7ba1464e349c11508199"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [6c0813325e6a7e08de8dea6398595bd3] X-Runtime: ['2.855515'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000112641325606366700446340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:49 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=53db89263cefa35fa30fc402666b55c1; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [e9349760b3ee19f526946d642d8c265e] X-Runtime: ['0.131324'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=53db89263cefa35fa30fc402666b55c1] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":53,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797654,"name":"random.test","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:49 GMT'] ETag: ['"9b980448926d7ba1464e349c11508199"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [b6b6b49a87d459f78374efc459804417] X-Runtime: ['2.978022'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000163261325606366700421720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:53 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=24bb1b74a3e0fcb704968e8ca02fa23f; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [29083bb9f5992d5ed60dcb1a270406e7] X-Runtime: ['0.132700'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "orig.test", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] Cookie: [_session_id=24bb1b74a3e0fcb704968e8ca02fa23f] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797655,"name":"orig.test","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:53 GMT'] ETag: ['"07e046c0f564f3fec6ccb50ab42f3833"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=bb9af6ef09221043018663977dbb7329; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [43f5461a1769923009cbf54ec871a8ed] X-Runtime: ['3.032119'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=bb9af6ef09221043018663977dbb7329] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":54,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797654,"name":"random.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797655,"name":"orig.test","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:48:56 GMT'] ETag: ['"1b80a732ec2197ed8d8e6e7cd9423555"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [c59a45f2e890ffa0896dc0ebbbe60582] X-Runtime: ['3.249245'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "updated.test", "ttl": "3600", "txt": "challengetoken"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-Type: [application/json] Cookie: [_session_id=bb9af6ef09221043018663977dbb7329] User-Agent: [python-requests/2.18.4] method: PUT uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797655.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:49:00 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=a6168e3ba70efad25ee7b2fc4120f0a1; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [5fe8278e769c4360275a80cb632a627a] X-Runtime: ['6.957590'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000165241325606366700452050ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:07 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=53cf9b0ca324907fbad8cef8c059a364; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [e749fc9a3541c2dfe909449cca0230d1] X-Runtime: ['0.134541'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "orig.nameonly.test", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['101'] Content-Type: [application/json] Cookie: [_session_id=53cf9b0ca324907fbad8cef8c059a364] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797656,"name":"orig.nameonly.test","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:07 GMT'] ETag: ['"d9d9b503cf381b56e983cb3a1d668755"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=f6c14560e69c1274533a2dee6da01d5f; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [939038ac64a8614ce7ada538a27d798f] X-Runtime: ['4.963143'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=f6c14560e69c1274533a2dee6da01d5f] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":56,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797654,"name":"random.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797655,"name":"updated.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797656,"name":"orig.nameonly.test","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:13 GMT'] ETag: ['"eba85422a5a94410cba685990dc960da"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [edd5eff15b2e878229e6a1c2fc34eb0f] X-Runtime: ['3.112147'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "orig.nameonly.test", "ttl": "3600", "txt": "updated"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['79'] Content-Type: [application/json] Cookie: [_session_id=f6c14560e69c1274533a2dee6da01d5f] User-Agent: [python-requests/2.18.4] method: PUT uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797656.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:49:16 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=bcd3646c2fd9d95d3c4e77db69c44618; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [2dcc337786d4ae06d557090fb348ea50] X-Runtime: ['6.600210'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000166531325606366700452400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:23 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=2c94ea920b630c6038150359a1c632f2; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [517dc4f78ac620aea45570df1e0a19ae] X-Runtime: ['0.133928'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "orig.testfqdn", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['96'] Content-Type: [application/json] Cookie: [_session_id=2c94ea920b630c6038150359a1c632f2] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797657,"name":"orig.testfqdn","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:23 GMT'] ETag: ['"3d551c7f83fa24bb53c54ab3e37abd65"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=1d3abeff379203d5b0da56fdfb373860; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [c0d5a71580563c299154c3e8a141aec7] X-Runtime: ['3.369636'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=1d3abeff379203d5b0da56fdfb373860] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":58,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797654,"name":"random.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797655,"name":"updated.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797656,"name":"orig.nameonly.test","ttl":3600,"txt":"updated","type":"TXT"}},{"dns_record":{"id":2797657,"name":"orig.testfqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:27 GMT'] ETag: ['"c9423a96f552b4714fe45db3df7069a1"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [0547ebdfe3aee9dce8681bf965d053cd] X-Runtime: ['2.857957'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "updated.testfqdn", "ttl": "3600", "txt": "challengetoken"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] Cookie: [_session_id=1d3abeff379203d5b0da56fdfb373860] User-Agent: [python-requests/2.18.4] method: PUT uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797657.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:49:30 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=c53785132333597f4cb14c5bb9ec82f0; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [54e01b35f1263cd8bdb5614487e450d6] X-Runtime: ['6.086419'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000170221325606366700452410ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/onapp/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones.json response: body: {string: '[{"dns_zone":{"created_at":"2018-01-23T13:10:10+11:00","id":643,"name":"zzzzzz.invalid","updated_at":"2018-01-23T13:10:10+11:00","user_id":348,"cdn_reference":172619460}},{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"cdn_reference":624791005}}]'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:37 GMT'] ETag: ['"9882521221fa754b650a3428de7112cb"'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=57ed535b485f486418973badd15a9b48; path=/; HttpOnly] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [336406e551a40ac388c749a913b89f06] X-Runtime: ['0.133201'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "orig.testfull", "type": "TXT", "txt": "challengetoken", "ttl": "3600"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['96'] Content-Type: [application/json] Cookie: [_session_id=57ed535b485f486418973badd15a9b48] User-Agent: [python-requests/2.18.4] method: POST uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_record":{"id":2797658,"name":"orig.testfull","ttl":"3600","txt":"challengetoken","type":"TXT"}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:37 GMT'] ETag: ['"5de4abc59aacf0677cfb804498663875"'] Location: [/dns_zones/653/records] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=443ad233c79fe5a97b41c764f1a2e289; path=/; HttpOnly] Status: [201 Created] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [44da11709252b75f0376e8944e34f997] X-Runtime: ['3.200012'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 201, message: Created} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] Cookie: [_session_id=443ad233c79fe5a97b41c764f1a2e289] User-Agent: [python-requests/2.18.4] method: GET uri: https://dashboard.dynomesh.com.au/dns_zones/653/records.json response: body: {string: '{"dns_zone":{"created_at":"2018-03-26T13:44:43+11:00","id":653,"name":"my-test.org","updated_at":"2018-03-26T13:44:43+11:00","user_id":348,"records":{"SOA":[{"dns_record":{"expire":1209600,"hostmaster":"support@fleetssl.com","id":2797632,"minimum":1200,"name":"@","primaryNs":"ns1.dynomesh.net.au","refresh":1200,"retry":180,"serial":60,"ttl":86400,"type":"SOA"}}],"NS":[{"dns_record":{"hostname":"ns1.dynomesh.net.au","id":2797628,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns2.dynomesh.net.au","id":2797629,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns3.dynomesh.net.au","id":2797630,"name":"@","ttl":86400,"type":"NS"}},{"dns_record":{"hostname":"ns4.dynomesh.net.au","id":2797631,"name":"@","ttl":86400,"type":"NS"}}],"A":[{"dns_record":{"id":2797633,"ip":"127.0.0.1","name":"localhost","ttl":3600,"type":"A"}}],"CNAME":[{"dns_record":{"hostname":"docs.example.com","id":2797634,"name":"docs","ttl":3600,"type":"CNAME"}}],"TXT":[{"dns_record":{"id":2797635,"name":"_acme-challenge.fqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797636,"name":"_acme-challenge.full","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797637,"name":"_acme-challenge.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797638,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797639,"name":"_acme-challenge.createrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797640,"name":"_acme-challenge.noop","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797646,"name":"_acme-challenge.deleterecordinset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797649,"name":"ttl.fqdn","ttl":3600,"txt":"ttlshouldbe3600","type":"TXT"}},{"dns_record":{"id":2797650,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken1","type":"TXT"}},{"dns_record":{"id":2797651,"name":"_acme-challenge.listrecordset","ttl":3600,"txt":"challengetoken2","type":"TXT"}},{"dns_record":{"id":2797652,"name":"random.fqdntest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797653,"name":"random.fulltest","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797654,"name":"random.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797655,"name":"updated.test","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797656,"name":"orig.nameonly.test","ttl":3600,"txt":"updated","type":"TXT"}},{"dns_record":{"id":2797657,"name":"updated.testfqdn","ttl":3600,"txt":"challengetoken","type":"TXT"}},{"dns_record":{"id":2797658,"name":"orig.testfull","ttl":3600,"txt":"challengetoken","type":"TXT"}}]},"cdn_reference":624791005}}'} headers: Cache-Control: ['must-revalidate, private, max-age=0'] Connection: [close] Content-Type: [application/json; charset=utf-8] Date: ['Mon, 26 Mar 2018 02:49:40 GMT'] ETag: ['"2ad7cf3e8b6852d4edf0b19a6c154534"'] Server: [Apache/2.2.15 (CentOS)] Status: [200 OK] Transfer-Encoding: [chunked] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: [miss] X-Request-Id: [8db349d255260ce0e312cc35fffd165e] X-Runtime: ['3.644231'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 200, message: OK} - request: body: '{"dns_record": {"name": "updated.testfull", "ttl": "3600", "txt": "challengetoken"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['84'] Content-Type: [application/json] Cookie: [_session_id=443ad233c79fe5a97b41c764f1a2e289] User-Agent: [python-requests/2.18.4] method: PUT uri: https://dashboard.dynomesh.com.au/dns_zones/653/records/2797658.json response: body: {string: ''} headers: Cache-Control: [no-cache] Connection: [close] Content-Length: ['0'] Content-Type: [text/plain; charset=UTF-8] Date: ['Mon, 26 Mar 2018 02:49:45 GMT'] Server: [Apache/2.2.15 (CentOS)] Set-Cookie: [_session_id=81800743f9212a9aef85e875d8be0d0e; path=/; HttpOnly] Status: [204 No Content] X-Powered-By: [Phusion Passenger 4.0.35] X-Rack-Cache: ['invalidate, pass'] X-Request-Id: [e4742be685c974726a8d9875d272ec9c] X-Runtime: ['6.454598'] X-UA-Compatible: ['IE=Edge,chrome=1'] status: {code: 204, message: No Content} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/ovh/000077500000000000000000000000001325606366700210005ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTests/000077500000000000000000000000001325606366700243065ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000055351325606366700325710ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441446'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14816.8918] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14816.0209] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14783.1981] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000033711325606366700414600ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441446'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a6.12749.1281] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a6.17637.3521] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000123541325606366700442400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441446'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14816.4620] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14816.6575] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14816.6281] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "A", "subDomain": "localhost", "target": "127.0.0.1", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['80'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"127.0.0.1","ttl":3600,"zone":"elogium.net","fieldType":"A","id":1466302808,"subDomain":"localhost"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.32155.3626] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.32155.0535] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000123701325606366700447010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441446'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14792.2318] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.31162.5576] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:26 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a6.14816.4383] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "CNAME", "subDomain": "docs", "target": "docs.example.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441446'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"docs.example.com","ttl":3600,"zone":"elogium.net","fieldType":"CNAME","id":1466302810,"subDomain":"docs"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a7.14783.0764] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a7.14783.8192] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000124161325606366700443670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441447'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-5.594124a7.29339.9898] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-5.594124a7.22338.3768] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-5.594124a7.5640.4267] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "_acme-challenge.fqdn", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302811,"subDomain":"_acme-challenge.fqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-5.594124a7.4980.1231] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-5.594124a7.15321.6194] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000124201325606366700443740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441447'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a7.28624.3815] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a7.28624.1715] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a7.21928.0985] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "_acme-challenge.full", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302814,"subDomain":"_acme-challenge.full"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a7.21928.6024] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a7.17637.2636] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000124131325606366700445330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441447'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:27 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-8.594124a7.14175.4385] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-8.594124a8.916.2575] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-8.594124a8.916.6145] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "_acme-challenge.test", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['98'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302815,"subDomain":"_acme-challenge.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-8.594124a8.19040.9077] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441447'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-8.594124a8.7130.8760] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000254661325606366700437030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441448'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.17637.0461] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.12749.0604] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.28214.4260] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "delete.testfilt", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302816,"subDomain":"delete.testfilt"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.17637.0209] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.28624.8041] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testfilt response: body: {string: '[1466302816]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.7811.6101] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302816 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302816,"subDomain":"delete.testfilt"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.7811.8307] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: DELETE uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302816 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.23809.9805] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441448'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:28 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a8.21928.1915] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testfilt response: body: {string: '[]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=91'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124a9.7811.1344] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000254711325606366700467420ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441449'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.10614.2868] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.25664.5360] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.25664.3453] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "delete.testfqdn", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302818,"subDomain":"delete.testfqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.19485.1484] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.19485.0326] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testfqdn response: body: {string: '[1466302818]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.19485.3432] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302818 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302818,"subDomain":"delete.testfqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.19485.1081] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: DELETE uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302818 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.31162.6799] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.25664.6888] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testfqdn response: body: {string: '[]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=91'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124a9.14747.7012] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000254711325606366700467540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441449'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124a9.32233.7992] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:29 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124a9.26239.1867] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441449'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.26239.2384] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "delete.testfull", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302819,"subDomain":"delete.testfull"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.32233.3506] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.32233.5147] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testfull response: body: {string: '[1466302819]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.32233.1331] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302819 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302819,"subDomain":"delete.testfull"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.26222.9844] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: DELETE uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302819 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.26239.3542] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.26222.2871] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testfull response: body: {string: '[]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=91'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-6.594124aa.32233.0008] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000254571325606366700445400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441450'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124aa.32032.5492] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124aa.32032.4407] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124aa.31416.8114] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "delete.testid", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['91'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302820,"subDomain":"delete.testid"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:30 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124aa.31428.5587] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441450'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124aa.31488.2544] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testid response: body: {string: '[1466302820]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ab.31428.7045] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302820 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302820,"subDomain":"delete.testid"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ab.32032.6948] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: DELETE uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302820 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ab.31465.5683] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ab.31465.8509] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=delete.testid response: body: {string: '[]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=91'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ab.31465.2888] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000170151325606366700410370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441451'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-2.594124ab.15621.7686] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-2.594124ab.30832.3643] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-2.594124ab.21326.1104] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "ttl.fqdn", "target": "ttlshouldbe3600", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"ttlshouldbe3600","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302821,"subDomain":"ttl.fqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-2.594124ab.27541.9876] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-2.594124ab.27541.8802] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=ttl.fqdn response: body: {string: '[1466302821]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-2.594124ab.27541.9911] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441451'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302821 response: body: {string: '{"target":"ttlshouldbe3600","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302821,"subDomain":"ttl.fqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:31 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-2.594124ab.17112.2478] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000170461325606366700461650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441452'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ac.24047.1140] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ac.31488.5386] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ac.31416.5915] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "random.fqdntest", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302822,"subDomain":"random.fqdntest"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ac.31416.4976] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ac.19219.4977] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=random.fqdntest response: body: {string: '[1466302822]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ac.31416.0668] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302822 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302822,"subDomain":"random.fqdntest"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ac.22036.1493] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000170461325606366700461770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441452'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124ac.26204.6056] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124ac.26204.8277] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124ac.12749.1620] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "random.fulltest", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302823,"subDomain":"random.fulltest"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124ac.28624.2219] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124ac.17637.4296] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=random.fulltest response: body: {string: '[1466302823]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124ac.21928.6881] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441452'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302823 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302823,"subDomain":"random.fulltest"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:32 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124ac.23809.0321] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000170201325606366700451450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441453'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124ad.14783.1178] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124ad.14783.3436] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Length: ['49'] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] X-OVH-QUERYID: [FR.ws-1.594124ad.14783.4943] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "random.test", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302824,"subDomain":"random.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124ad.19485.0263] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124ad.14783.5587] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=random.test response: body: {string: '[1466302824]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124ad.14783.3306] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302824 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302824,"subDomain":"random.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-1.594124ad.14783.5564] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000001234431325606366700443160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441453'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ad.24047.0397] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ad.19219.5087] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ad.24047.4915] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '[1466302778,1466302779,1466302780,1466302795,1466302789,1466302799,1466302791,1466302781,1466302786,1466302808,1466302790,1466302796,1466302792,1466302784,1466302787,1466302810,1466302788,1466302785,1466302793,1466302777,1466302794,1466302782,1466302783,1466302822,1466302823,1466302824,1466302821,1466302798,1466302797,1466302811,1466302814,1466302815]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ad.24047.2230] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302778 response: body: {string: '{"target":"dns17.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"NS","id":1466302778,"subDomain":""}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ad.19219.3930] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302779 response: body: {string: '{"target":"ns17.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"NS","id":1466302779,"subDomain":""}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ad.32032.0930] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302780 response: body: {string: '{"target":"1 redirect.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"MX","id":1466302780,"subDomain":""}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:33 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ad.32032.4010] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441453'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302795 response: body: {string: '{"target":"1 redirect.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"MX","id":1466302795,"subDomain":"www"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.31416.6820] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302789 response: body: {string: '{"target":"0 0 443 mailconfig.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"SRV","id":1466302789,"subDomain":"_autodiscover._tcp"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.31416.4342] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302799 response: body: {string: '{"target":"0 0 993 ssl0.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"SRV","id":1466302799,"subDomain":"_imaps._tcp"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=91'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.24047.5396] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302791 response: body: {string: '{"target":"0 0 465 ssl0.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"SRV","id":1466302791,"subDomain":"_submission._tcp"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=90'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.24047.9225] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302781 response: body: {string: '{"target":"46.105.127.67","ttl":0,"zone":"elogium.net","fieldType":"A","id":1466302781,"subDomain":""}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=89'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.32032.7172] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302786 response: body: {string: '{"target":"86.245.226.1","ttl":0,"zone":"elogium.net","fieldType":"A","id":1466302786,"subDomain":"domus"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=88'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.31465.7379] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302808 response: body: {string: '{"target":"127.0.0.1","ttl":3600,"zone":"elogium.net","fieldType":"A","id":1466302808,"subDomain":"localhost"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=87'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.31488.7440] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302790 response: body: {string: '{"target":"46.105.127.67","ttl":0,"zone":"elogium.net","fieldType":"A","id":1466302790,"subDomain":"ordonator"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=86'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.24047.7606] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302796 response: body: {string: '{"target":"46.105.127.67","ttl":0,"zone":"elogium.net","fieldType":"A","id":1466302796,"subDomain":"www"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=85'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.24047.0262] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302792 response: body: {string: '{"target":"mailconfig.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302792,"subDomain":"autoconfig"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=84'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.31478.0197] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302784 response: body: {string: '{"target":"mailconfig.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302784,"subDomain":"autodiscover"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=83'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.32032.4906] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302787 response: body: {string: '{"target":"ordonator.elogium.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302787,"subDomain":"backuppc"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=82'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.31475.1963] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302810 response: body: {string: '{"target":"docs.example.com","ttl":3600,"zone":"elogium.net","fieldType":"CNAME","id":1466302810,"subDomain":"docs"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=81'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.32032.0615] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302788 response: body: {string: '{"target":"elogium.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302788,"subDomain":"ftp"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=80'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.24047.1828] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302785 response: body: {string: '{"target":"ssl0.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302785,"subDomain":"imap"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:34 GMT'] Keep-Alive: ['timeout=15, max=79'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124ae.24047.1807] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441454'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302793 response: body: {string: '{"target":"ssl0.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302793,"subDomain":"mail"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=78'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.24047.4140] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302777 response: body: {string: '{"target":"ssl0.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302777,"subDomain":"pop3"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=77'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.32032.3956] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302794 response: body: {string: '{"target":"ssl0.ovh.net.","ttl":0,"zone":"elogium.net","fieldType":"CNAME","id":1466302794,"subDomain":"smtp"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=76'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.22036.8470] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302782 response: body: {string: '{"target":"\"1|www.elogium.net\"","ttl":600,"zone":"elogium.net","fieldType":"TXT","id":1466302782,"subDomain":""}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=75'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.31488.5878] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302783 response: body: {string: '{"target":"\"v=spf1 include:mx.ovh.com ~all\"","ttl":600,"zone":"elogium.net","fieldType":"TXT","id":1466302783,"subDomain":""}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=74'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.22036.2065] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302822 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302822,"subDomain":"random.fqdntest"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=73'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.24047.5416] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302823 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302823,"subDomain":"random.fulltest"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=72'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.31488.4808] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302824 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302824,"subDomain":"random.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=71'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.22036.4541] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302821 response: body: {string: '{"target":"ttlshouldbe3600","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302821,"subDomain":"ttl.fqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=70'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.22036.8113] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302798 response: body: {string: '{"target":"\"3|welcome\"","ttl":0,"zone":"elogium.net","fieldType":"TXT","id":1466302798,"subDomain":"www"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=69'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.31475.9228] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302797 response: body: {string: '{"target":"\"l|fr\"","ttl":0,"zone":"elogium.net","fieldType":"TXT","id":1466302797,"subDomain":"www"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=68'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.31475.7231] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302811 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302811,"subDomain":"_acme-challenge.fqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=67'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.31428.3798] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302814 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302814,"subDomain":"_acme-challenge.full"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=66'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.31475.4416] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441455'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302815 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302815,"subDomain":"_acme-challenge.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:35 GMT'] Keep-Alive: ['timeout=15, max=65'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124af.32032.3735] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000234401325606366700416440ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441456'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.32032.3335] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.32032.9998] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.31475.9722] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "orig.test", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302826,"subDomain":"orig.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.31428.8442] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.22036.9951] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=orig.test response: body: {string: '[1466302826]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.32032.8228] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302826 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302826,"subDomain":"orig.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.24047.7927] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"subDomain": "updated.test", "target": "challengetoken"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['57'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: PUT uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302826 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.22036.8014] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.22036.7402] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000235031325606366700446570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441456'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.22036.2103] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.22036.2571] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.24047.0170] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "orig.nameonly.test", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['96'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302827,"subDomain":"orig.nameonly.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:36 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b0.24047.8143] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441456'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b1.24047.7469] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=orig.nameonly.test response: body: {string: '[1466302827]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b1.22036.7451] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302827 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302827,"subDomain":"orig.nameonly.test"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b1.32032.7033] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"subDomain": "orig.nameonly.test", "target": "updated"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['56'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: PUT uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302827 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b1.31488.8575] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-7.594124b1.31428.3952] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000234631325606366700447140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441457'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.12749.6305] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.21083.8428] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.12749.3378] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "orig.testfqdn", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['91'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302828,"subDomain":"orig.testfqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.21928.1255] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.28624.2747] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=orig.testfqdn response: body: {string: '[1466302828]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.12749.7979] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302828 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302828,"subDomain":"orig.testfqdn"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.28624.1912] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"subDomain": "updated.testfqdn", "target": "challengetoken"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['61'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: PUT uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302828 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:37 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b1.28624.7663] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441457'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.7811.6438] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000234641325606366700447270ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/ovh/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] method: GET uri: https://eu.api.ovh.com/1.0/auth/time response: body: {string: '1497441458'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=100'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.21928.0565] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/ response: body: {string: '["elogium.net"]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=99'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.21083.1885] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/status response: body: {string: '{"warnings":null,"errors":null,"isDeployed":true}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=98'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.21928.7822] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"fieldType": "TXT", "subDomain": "orig.testfull", "target": "challengetoken", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['91'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302830,"subDomain":"orig.testfull"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=97'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.28624.7299] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=96'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.12749.5367] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record?fieldType=TXT&subDomain=orig.testfull response: body: {string: '[1466302830]'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=95'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.21928.5300] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: GET uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302830 response: body: {string: '{"target":"challengetoken","ttl":3600,"zone":"elogium.net","fieldType":"TXT","id":1466302830,"subDomain":"orig.testfull"}'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=94'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.23809.1062] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: '{"subDomain": "updated.testfull", "target": "challengetoken"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['61'] Content-type: [application/json] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: PUT uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/record/1466302830 response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=93'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.23809.7299] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] User-Agent: [python-requests/2.17.3] X-Ovh-Timestamp: ['1497441458'] method: POST uri: https://eu.api.ovh.com/1.0/domain/zone/elogium.net/refresh response: body: {string: 'null'} headers: Access-Control-Allow-Origin: ['*'] Cache-Control: [no-cache] Connection: [Keep-Alive] Content-Type: [application/json; charset=utf-8] Date: ['Wed, 14 Jun 2017 11:57:38 GMT'] Keep-Alive: ['timeout=15, max=92'] Server: [Apache] Transfer-Encoding: [chunked] X-OVH-QUERYID: [FR.ws-3.594124b2.23809.9837] X-RECRUITMENT: ['You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs'] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/pointhq/000077500000000000000000000000001325606366700216665ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTests/000077500000000000000000000000001325606366700251745ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000026421325606366700334530ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:06 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [e88d7b02bcae05de20c415200533cf3a] x-runtime: ['0.105145'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000021451325606366700423440ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/thisisadomainidonotown.com response: body: {string: !!python/unicode '{"status":"Error","message":"Not found"}'} headers: cache-control: ['no-cache, private', no-cache="set-cookie"] connection: [keep-alive] content-length: ['40'] date: ['Fri, 23 Mar 2018 06:28:06 GMT'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [404 Not Found] x-rack-cache: [miss] x-request-id: [a07374c6ad7f6a4820fb214015a04a1b] x-runtime: ['0.093733'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 404, message: Not Found} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000103771325606366700451310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:07 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1912600398; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [27aee8b0db02bd74937a47f6a7b2bb73] x-runtime: ['0.109367'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=A&name=localhost response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:08 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [29aa4c9d038102cc1df53ca938e12804] x-runtime: ['0.102019'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "A", "data": "127.0.0.1", "name": "localhost"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['79'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"localhost.capsulecd.com.","data":"127.0.0.1","id":1678593517,"aux":null,"record_type":"A","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['143'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:09 GMT'] etag: ['"b9ed6e10c11d467d901d55c49af60501"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [2b5308ff89818c9bf72cf0f474c4cf08] x-runtime: ['0.162336'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000104141325606366700455640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:10 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [d9f6f83505caad123cb1c89af796fb6f] x-runtime: ['0.216989'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=CNAME&name=docs response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:10 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [4ac00b7c958d3ab50537761b09df25d8] x-runtime: ['0.099677'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "CNAME", "data": "docs.example.com", "name": "docs"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"docs.capsulecd.com.","data":"docs.example.com.","id":1678593996,"aux":null,"record_type":"CNAME","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['150'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:11 GMT'] etag: ['"810667e9c95728a0d284d9d6a46d5f1d"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [d61dc9fa7f3ab6c363692dca7cbfac97] x-runtime: ['0.170074'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000104651325606366700452570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:12 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [e0f3b72ded138435a18669ab017755f2] x-runtime: ['0.099060'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.fqdn response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:13 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=100862563; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [d4d923361a24b8b4d84e8f88f37a9f7b] x-runtime: ['0.203834'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "_acme-challenge.fqdn"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.fqdn.capsulecd.com.","data":"\"challengetoken\"","id":1678594507,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['165'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:14 GMT'] etag: ['"2baa880357300b1473db3caa3cab6892"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [f7845862e9acb0aa2d512f2155d3f6ee] x-runtime: ['0.197808'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000104641325606366700452700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:14 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [d042dea4e4d39c0081e5ee6f76734912] x-runtime: ['0.116243'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.full response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:15 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [0724e55302b7e4a58f9e77d5296d507c] x-runtime: ['0.150756'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "_acme-challenge.full"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.full.capsulecd.com.","data":"\"challengetoken\"","id":1678594901,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['165'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:16 GMT'] etag: ['"2833c31f1eded268396e44191c02a5ae"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [effffa711b7217b8aae86bb74c5d5a3d] x-runtime: ['0.103659'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000104641325606366700454250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:17 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [e6e7033dcfab1f7e90d5b3e69dfcd239] x-runtime: ['0.075797'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.test response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:17 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [0c476a50d069bcd694f573bd833a6021] x-runtime: ['0.080808'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "_acme-challenge.test"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.test.capsulecd.com.","data":"\"challengetoken\"","id":1678594934,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['165'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:18 GMT'] etag: ['"2dc75cd645e2e51ed3af43806234e75d"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [ecef9adee6e1fd5cfe2449b0e563728e] x-runtime: ['0.117370'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000167031325606366700464620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:19 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [ba2e94b41f6e05769e1270ea19c8782d] x-runtime: ['0.070221'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.createrecordset response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:20 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [442a4d65d9383601d5c14a9b7aae0c17] x-runtime: ['0.071631'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken1", "name": "_acme-challenge.createrecordset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['109'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.createrecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678594975,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['177'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:20 GMT'] etag: ['"e060056203be579623a59ae8c4d1de2a"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [f59f0f6b13c75fe2f09328b171e9abb6] x-runtime: ['0.114751'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.createrecordset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.createrecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678594975,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['179'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:21 GMT'] etag: ['"acd86b6db5a0dc0b8e893833d7d01fd0"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [691366e73b66e20ac9208e5fea0bd0de] x-runtime: ['0.066837'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken2", "name": "_acme-challenge.createrecordset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['109'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.createrecordset.capsulecd.com.","data":"\"challengetoken2\"","id":1678595008,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['177'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:28:22 GMT'] etag: ['"58bc661036aca27d53ceeca1ad25886f"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [0b78b622aaf8a92c7809af9328fa57a7] x-runtime: ['0.105774'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000164351325606366700461230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:28 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [7ffc63f5688515dcad94058e65fd73c9] x-runtime: ['0.069229'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.noop response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:28 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [f4a686969b0f1e7c62e15190517e8066] x-runtime: ['0.049324'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "_acme-challenge.noop"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.noop.capsulecd.com.","data":"\"challengetoken\"","id":1678605748,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['165'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:29 GMT'] etag: ['"dea273c01e8f9ff3abfd0fb3f630a08d"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [43be27d842d2e447420e4042f624f44d] x-runtime: ['0.087162'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.noop response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.noop.capsulecd.com.","data":"\"challengetoken\"","id":1678605748,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['167'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:30 GMT'] etag: ['"3717f84695b67629c5ced74acf46fb4f"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [21d1d404eaedeb87786edf89629e280f] x-runtime: ['0.070162'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.noop response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.noop.capsulecd.com.","data":"\"challengetoken\"","id":1678605748,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['167'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:30 GMT'] etag: ['"3717f84695b67629c5ced74acf46fb4f"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [b1ba945d5d9c87dd0fcb537037104fa0] x-runtime: ['0.049634'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000203031325606366700445520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:31 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [2b3d2b066b457f04fe9b85df5ab1d8e1] x-runtime: ['0.053017'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfilt response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:32 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [6e7997319238f693bfa86eaeae04e50f] x-runtime: ['0.069413'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "delete.testfilt"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"delete.testfilt.capsulecd.com.","data":"\"challengetoken\"","id":1678605749,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:33 GMT'] etag: ['"f49a24c1f485dbfe8717a7727ea680d9"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [2bb47a5939b578068662fd1b720b0c35] x-runtime: ['0.076854'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfilt response: body: {string: !!python/unicode '[{"zone_record":{"name":"delete.testfilt.capsulecd.com.","data":"\"challengetoken\"","id":1678605749,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:33 GMT'] etag: ['"2399be4675c65a9d720a3fb1392adf33"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [36e9b4ec5ab6825fba8b1e8752c26d6c] x-runtime: ['0.051499'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://pointhq.com/zones/170389/records/1678605749 response: body: {string: !!python/unicode '{"zone_record":{"status":"OK"}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:34 GMT'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [77351cc2cd9e454b3aa797f38e21b8b1] x-runtime: ['0.095923'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfilt response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:35 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [5e2909feb96084d4215b71961811973e] x-runtime: ['0.049170'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000203111325606366700476140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:36 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [b50c359cba37d3a492e238989dc39a62] x-runtime: ['0.059518'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfqdn response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:36 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [ca198b9e6d161c66c7b4b1c19b752a0f] x-runtime: ['0.050940'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "delete.testfqdn"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"delete.testfqdn.capsulecd.com.","data":"\"challengetoken\"","id":1678605750,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:37 GMT'] etag: ['"907faf19f15792464c3869a31be2fc3f"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [981ce73e8c02de7bbfaa51eeab46d825] x-runtime: ['0.085359'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfqdn response: body: {string: !!python/unicode '[{"zone_record":{"name":"delete.testfqdn.capsulecd.com.","data":"\"challengetoken\"","id":1678605750,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:38 GMT'] etag: ['"a6ee370ea1cee55c6ef2f24ef6d5dcca"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [19d7be3191e0975450efdb0ad6cafb84] x-runtime: ['0.051802'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://pointhq.com/zones/170389/records/1678605750 response: body: {string: !!python/unicode '{"zone_record":{"status":"OK"}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:38 GMT'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [f0ff3a160fb30805664a8d948053f831] x-runtime: ['0.078767'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfqdn response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:39 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [d3920236a4dcf3e0c7e6048b15d77908] x-runtime: ['0.069972'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000203031325606366700476270ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:40 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [b2478a0860c1412f956616752153f624] x-runtime: ['0.052910'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfull response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:41 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [6fe1c3bbdfae9bae2fa27cce87fe9869] x-runtime: ['0.055869'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "delete.testfull"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"delete.testfull.capsulecd.com.","data":"\"challengetoken\"","id":1678605751,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:41 GMT'] etag: ['"eeb628dd8eef5ca0c21525cb929a48a0"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [19720996be391097545524906f69ceb0] x-runtime: ['0.113936'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfull response: body: {string: !!python/unicode '[{"zone_record":{"name":"delete.testfull.capsulecd.com.","data":"\"challengetoken\"","id":1678605751,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:42 GMT'] etag: ['"bbfb852e3854b6e7dd737ab0af579328"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [f89ebb7b09146c3d2a12bbb580bd2aef] x-runtime: ['0.053349'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://pointhq.com/zones/170389/records/1678605751 response: body: {string: !!python/unicode '{"zone_record":{"status":"OK"}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:43 GMT'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [fe8c377e0b50c3b32e9e0d6693d3e627] x-runtime: ['0.067733'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testfull response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:43 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [691e9596a0923f9b920dce7a370c130b] x-runtime: ['0.073629'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000202711325606366700454130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:44 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [40348ee5bad9dd4e5cc19ba757ac4d0a] x-runtime: ['0.049923'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testid response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:45 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [c5b4377b247db9bde5d53bb51b1fd36c] x-runtime: ['0.048351'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "delete.testid"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"delete.testid.capsulecd.com.","data":"\"challengetoken\"","id":1678605752,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['158'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:46 GMT'] etag: ['"577142f6bf679f56fb8e62ba042e627b"'] server: [nginx] set-cookie: [_passenger_route=1912600398; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [3440393e69ea87b10832ada0e483d57e] x-runtime: ['0.118035'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testid response: body: {string: !!python/unicode '[{"zone_record":{"name":"delete.testid.capsulecd.com.","data":"\"challengetoken\"","id":1678605752,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:46 GMT'] etag: ['"6c4ad431925289eb10888cd0d6b59a86"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [92bcf2a10acdbda2add1a93cac1674f2] x-runtime: ['0.053058'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://pointhq.com/zones/170389/records/1678605752 response: body: {string: !!python/unicode '{"zone_record":{"status":"OK"}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:47 GMT'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [fa6016a88ef390f6b01faa75c278c2fb] x-runtime: ['0.077316'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=delete.testid response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:48 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [450fe29d563279ae86be179aabbea356] x-runtime: ['0.048256'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 8b854a25c424848b3d6ca1a39750493745ddc774.paxheader00006660000000000000000000000260132560636670020244xustar00rootroot00000000000000176 path=lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 8b854a25c424848b3d6ca1a39750493745ddc774.data000066400000000000000000000274151325606366700171150ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:48 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [49080f92b23c8349af08646078d80ac3] x-runtime: ['0.053305'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:49 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [a41257b824f3f108e231968e663492c9] x-runtime: ['0.051099'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken1", "name": "_acme-challenge.deleterecordinset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['111'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.deleterecordinset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605753,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['179'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:50 GMT'] etag: ['"a6eeeb1b0f3d285124e16acdf12b1d8a"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [75c650ddaed7d5fb389c8f12a60b95f1] x-runtime: ['0.076907'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.deleterecordinset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605753,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['181'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:51 GMT'] etag: ['"45e173fb85e9c4283f05c2bc9ba78c7b"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [6ecab608247b3f599d8154672ac05cb6] x-runtime: ['0.051345'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken2", "name": "_acme-challenge.deleterecordinset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['111'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.deleterecordinset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605754,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['179'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:51 GMT'] etag: ['"2a8484c06396f1719d709af76477a839"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [a7543f3ebe379c046ac9fc36031ed0a0] x-runtime: ['0.093226'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.deleterecordinset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605753,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"_acme-challenge.deleterecordinset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605754,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['361'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:52 GMT'] etag: ['"2bc9ca5c0500cab388b69de07f663252"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [d913cde86722ea7e0573051119c6d97d] x-runtime: ['0.068919'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://pointhq.com/zones/170389/records/1678605753 response: body: {string: !!python/unicode '{"zone_record":{"status":"OK"}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:53 GMT'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [423fcbef4234b3afebe5524a1b27d2ac] x-runtime: ['0.076543'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordinset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.deleterecordinset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605754,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['181'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:53 GMT'] etag: ['"35f18ab38a45cdc66b5c447308ca98f5"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [77ff4dc93201b2195c428f6b02c8fc9f] x-runtime: ['0.051874'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000312601325606366700446770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:54 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [f7ae071a3c387e179022038e8a9e74cf] x-runtime: ['0.049993'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:55 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [7a3ae40177b03dbb31954fa0dbeca7c4] x-runtime: ['0.051291'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken1", "name": "_acme-challenge.deleterecordset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['109'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.deleterecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605755,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['177'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:56 GMT'] etag: ['"53585b16c080fd19502270a4b96cd120"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [1009c03dfc4e52aaf2e321340a6dcc3c] x-runtime: ['0.090044'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.deleterecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605755,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['179'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:56 GMT'] etag: ['"bd126f28c02025a7c8fe38fa0ad65f0d"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [c78372fb08833e1f3543bfc3eb9ff16b] x-runtime: ['0.049118'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken2", "name": "_acme-challenge.deleterecordset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['109'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.deleterecordset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605756,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['177'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:57 GMT'] etag: ['"d815668544701502f9f6c9f5913bbe2e"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [ce801f52660df1bb7ab576b9987ca041] x-runtime: ['0.087362'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.deleterecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605755,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"_acme-challenge.deleterecordset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605756,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['357'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:58 GMT'] etag: ['"0abb4fc170a72826fa5c8d0a7cf69cac"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [8e4fffcabd24bb9c71f099592377b0f6] x-runtime: ['0.056872'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://pointhq.com/zones/170389/records/1678605755 response: body: {string: !!python/unicode '{"zone_record":{"status":"OK"}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:58 GMT'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [3217f1f367dd1aaf411f0370be544db0] x-runtime: ['0.068516'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: DELETE uri: https://pointhq.com/zones/170389/records/1678605756 response: body: {string: !!python/unicode '{"zone_record":{"status":"OK"}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['31'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:35:59 GMT'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [1315a6b33471158d1d05b2759901404b] x-runtime: ['0.075689'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.deleterecordset response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:00 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [a1208135104a41257cc37a5a1d8e6039] x-runtime: ['0.055507'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000221521325606366700434070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:01 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [bf97786e31a46333bb7d5a83b38c69e0] x-runtime: ['0.050564'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.listrecordset response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:01 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [2cd824c1048f3fa77c6d17a2d3f36ee0] x-runtime: ['0.052209'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken1", "name": "_acme-challenge.listrecordset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['107'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.listrecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605757,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['175'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:02 GMT'] etag: ['"eaa7b724a8d3bc5ba49be5738e382b8a"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [5ffc57a472ccc8d7273600f5cfdd9e30] x-runtime: ['0.093227'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.listrecordset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.listrecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605757,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['177'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:03 GMT'] etag: ['"45a8f40da24adb29d2d9a758d66bd0e3"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [40a9c2c3c34235cbd8095e37d7206cc1] x-runtime: ['0.048974'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken2", "name": "_acme-challenge.listrecordset"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['107'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"_acme-challenge.listrecordset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605758,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['175'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:03 GMT'] etag: ['"7227a644a85fbe35160a89b57fc079f2"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [4a8ddbaac8b394a0780539da4d1c4d88] x-runtime: ['0.092026'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=_acme-challenge.listrecordset response: body: {string: !!python/unicode '[{"zone_record":{"name":"_acme-challenge.listrecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605757,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"_acme-challenge.listrecordset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605758,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['353'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:04 GMT'] etag: ['"b4105fe4cc9023b87e3a2f82a29b2e15"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [99b09edd3b159b1b67c1e69329110d91] x-runtime: ['0.055384'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000134171325606366700470510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:05 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [0ac2ac92c5d4d1b193b572f07df3f0ff] x-runtime: ['0.060416'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=random.fqdntest response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:06 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [cbc4dce777c28babbf8007e804d889c5] x-runtime: ['0.054399'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "random.fqdntest"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"random.fqdntest.capsulecd.com.","data":"\"challengetoken\"","id":1678605759,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:06 GMT'] etag: ['"9c2bb0244eddf067dc96afbe3e2de2e8"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [4118b4881eab7d1f744c7d17d285f582] x-runtime: ['0.077511'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=random.fqdntest response: body: {string: !!python/unicode '[{"zone_record":{"name":"random.fqdntest.capsulecd.com.","data":"\"challengetoken\"","id":1678605759,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:07 GMT'] etag: ['"44ba190b7ddafb505679ada9931d9bcb"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [9cf6922334f6b92751c86ea2dbf0e7bc] x-runtime: ['0.048999'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000134201325606366700470550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:08 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [34a994dd7fda246da5b40bf79afa61f6] x-runtime: ['0.051285'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=random.fulltest response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:08 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [8f4009243606107fd96e4206e0a2d8b6] x-runtime: ['0.076033'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "random.fulltest"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"random.fulltest.capsulecd.com.","data":"\"challengetoken\"","id":1678605790,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:09 GMT'] etag: ['"c3ed4b02bff1c68918d34eaeaba65d68"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [5c0fdc466b2e83d3169edc9a99625d21] x-runtime: ['0.130368'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=random.fulltest response: body: {string: !!python/unicode '[{"zone_record":{"name":"random.fulltest.capsulecd.com.","data":"\"challengetoken\"","id":1678605790,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['162'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:10 GMT'] etag: ['"9ec76250de3d4d1916c11be2491cd397"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [8c5595db6fc273aeb3eda4f1e6f32f20] x-runtime: ['0.091215'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000053611325606366700465300ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:11 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [7eea6dcdad5f2e010939d239087c9247] x-runtime: ['0.366407'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=filter.thisdoesnotexist response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:12 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [e0332eb23793ece2bfc3e126f2435f68] x-runtime: ['0.079946'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000133741325606366700460430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:13 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [1069bc57cd17ca479652e09319fbcb64] x-runtime: ['0.130166'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=random.test response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:13 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [6f3506bf01be3e469546ced3dfc6a893] x-runtime: ['0.076080'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "random.test"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['88'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"random.test.capsulecd.com.","data":"\"challengetoken\"","id":1678606746,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['156'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:14 GMT'] etag: ['"938d34cfcf2300df0855d0328beb5451"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [8dac2e4310744963fbe2aa67fde8876b] x-runtime: ['0.121623'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=random.test response: body: {string: !!python/unicode '[{"zone_record":{"name":"random.test.capsulecd.com.","data":"\"challengetoken\"","id":1678606746,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['158'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:15 GMT'] etag: ['"2278e1c867308c49ceca46d9822410c0"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [342667f30f1e39d870c95fcb5c2d5722] x-runtime: ['0.086746'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000101751325606366700452010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:16 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [a115889e1b35a1ae8d93c4f20bdb1daf] x-runtime: ['0.098223'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '[{"zone_record":{"name":"capsulecd.com.","data":"dns6.pointhq.com.","id":104410840,"aux":null,"record_type":"NS","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"capsulecd.com.","data":"dns11.pointhq.com.","id":104410845,"aux":null,"record_type":"NS","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"_acme-challenge.noop.capsulecd.com.","data":"\"challengetoken\"","id":1678605748,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"_acme-challenge.deleterecordinset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605754,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"_acme-challenge.listrecordset.capsulecd.com.","data":"\"challengetoken1\"","id":1678605757,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"_acme-challenge.listrecordset.capsulecd.com.","data":"\"challengetoken2\"","id":1678605758,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"random.fqdntest.capsulecd.com.","data":"\"challengetoken\"","id":1678605759,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"random.fulltest.capsulecd.com.","data":"\"challengetoken\"","id":1678605790,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}},{"zone_record":{"name":"random.test.capsulecd.com.","data":"\"challengetoken\"","id":1678606746,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['1463'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:36:16 GMT'] etag: ['"ea17b4ab7647213b74f9dd214f577209"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [d5c487c4a8ac43d364df9a9e47dfddcd] x-runtime: ['0.130575'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000160701325606366700425330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:36 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [4502f517260e40193848d325494390d1] x-runtime: ['0.053235'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=orig.test response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:37 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [640b9c13e947ca1291922416acf2f088] x-runtime: ['0.049219'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "orig.test"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['86'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"orig.test.capsulecd.com.","data":"\"challengetoken\"","id":1678610389,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['154'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:38 GMT'] etag: ['"3844456ba0b60500f481aea5779429c4"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [cbbcb55fe1648ac30153911b0b5b9565] x-runtime: ['0.089433'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=orig.test response: body: {string: !!python/unicode '[{"zone_record":{"name":"orig.test.capsulecd.com.","data":"\"challengetoken\"","id":1678610389,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['156'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:38 GMT'] etag: ['"b4e85446c58d57400f031f07eb065f04"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [fe99fe3ce298208c5551608915c4f6cc] x-runtime: ['0.051294'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "updated.test"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://pointhq.com/zones/170389/records/1678610389 response: body: {string: !!python/unicode '{"zone_record":{"name":"updated.test.capsulecd.com.","data":"\"challengetoken\"","id":1678610389,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['157'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:39 GMT'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [ccfe565e1c7c05591a7f023d576e1a4f] x-runtime: ['0.068881'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000161231325606366700455750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:40 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [99adc73eea3fc14f2c33fac3729fa52d] x-runtime: ['0.053011'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=orig.testfqdn response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:40 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [6da112f586c6b0fc179836bf5f1f25b4] x-runtime: ['0.051250'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "orig.testfqdn"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"orig.testfqdn.capsulecd.com.","data":"\"challengetoken\"","id":1678610390,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['158'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:41 GMT'] etag: ['"89d37ef3768fa4cf933491d949dfa335"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [4cce8ef54da32737a83937a0aa1a596b] x-runtime: ['0.079174'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=orig.testfqdn response: body: {string: !!python/unicode '[{"zone_record":{"name":"orig.testfqdn.capsulecd.com.","data":"\"challengetoken\"","id":1678610390,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:42 GMT'] etag: ['"8ed80a9a4f761b320524070da85528ec"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [ea4d2e19943fa371ae4a781d8da38722] x-runtime: ['0.051406'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "updated.testfqdn"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://pointhq.com/zones/170389/records/1678610390 response: body: {string: !!python/unicode '{"zone_record":{"name":"updated.testfqdn.capsulecd.com.","data":"\"challengetoken\"","id":1678610390,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:43 GMT'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [e6ec1447f40fdc85a8a97efd4bc3568d] x-runtime: ['0.086861'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000161251325606366700456110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/pointhq/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/capsulecd.com response: body: {string: !!python/unicode '{"zone":{"id":170389,"name":"capsulecd.com","group":"Default Group","user-id":26963,"ttl":3600}}'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['96'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:43 GMT'] etag: ['"64759825f5fbcfb9ee3f1ac1c0819f88"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [ca50bc450306d80464249877efbbb844] x-runtime: ['0.050495'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=orig.testfull response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['2'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:44 GMT'] etag: ['"d751713988987e9331980363e24189ce"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [6eca8fdbe93232e2197fac141aacb918] x-runtime: ['0.051179'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "orig.testfull"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pointhq.com/zones/170389/records response: body: {string: !!python/unicode '{"zone_record":{"name":"orig.testfull.capsulecd.com.","data":"\"challengetoken\"","id":1678610391,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: access-control-allow-origin: ['*'] cache-control: ['max-age=0, private, must-revalidate', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['158'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:45 GMT'] etag: ['"ba78188c69750b08ce38edbfa8f744c3"'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [201 Created] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: ['invalidate, pass'] x-request-id: [3ba2bf7c36f5b5106491dd4905ffb687] x-runtime: ['0.128458'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 201, message: Created} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pointhq.com/zones/170389/records?record_type=TXT&name=orig.testfull response: body: {string: !!python/unicode '[{"zone_record":{"name":"orig.testfull.capsulecd.com.","data":"\"challengetoken\"","id":1678610391,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}]'} headers: access-control-allow-origin: ['*'] cache-control: ['must-revalidate, private, max-age=0', max-age=3600, no-cache="set-cookie"] connection: [keep-alive] content-length: ['160'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:45 GMT'] etag: ['"a7d8dcba89f56b80ee204dd8aa5eb501"'] server: [nginx] set-cookie: [_passenger_route=940398241; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1793130BF4EE137586FA70779F8E6C66D9B25AC5E01283C6B73F262A3C4C24ADD;PATH=/;MAX-AGE=3600] status: [200 OK] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] x-rack-cache: [miss] x-request-id: [bfa4431f0ac27161078444a539e9ea3e] x-runtime: ['0.051842'] x-ua-compatible: ['IE=Edge,chrome=1'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"zone_record": {"record_type": "TXT", "data": "challengetoken", "name": "updated.testfull"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://pointhq.com/zones/170389/records/1678610391 response: body: {string: !!python/unicode '{"zone_record":{"name":"updated.testfull.capsulecd.com.","data":"\"challengetoken\"","id":1678610391,"aux":null,"record_type":"TXT","ttl":3600,"zone_id":170389}}'} headers: cache-control: [no-cache, no-cache="set-cookie"] connection: [keep-alive] content-length: ['161'] content-type: [application/json] date: ['Fri, 23 Mar 2018 06:37:46 GMT'] server: [nginx] set-cookie: [_passenger_route=1697826421; Path=/, AWSELB=7F9BF9B5028D24F72AB6FC4853D7E89FEFE964A037995DE72D38766FB5F397275FDAFAA7D1FB632A2DAFA326A2C02407F68C0AEFEF9286542B7B5AB062DDE4DBB44D319B80;PATH=/;MAX-AGE=3600] status: [202 Accepted] x-rack-cache: ['invalidate, pass'] x-request-id: [9a02d2bbe9bbfb607d1ff1ba7a390a59] x-runtime: ['0.068239'] x-ua-compatible: ['IE=Edge,chrome=1'] status: {code: 202, message: Accepted} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/powerdns/000077500000000000000000000000001325606366700220455ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTests/000077500000000000000000000000001325606366700253535ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000032711325606366700336310ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['466'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000020021325606366700425130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/thisisadomainidonotown.com response: body: {string: !!python/unicode '{"error": "Could not find domain ''thisisadomainidonotown.com.''"}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['64'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] x-content-type-options: [nosniff] x-frame-options: [deny] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block] status: {code: 422, message: Unknown Status} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000056471325606366700453140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['466'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "127.0.0.1", "disabled": false}], "changetype": "REPLACE", "type": "A", "name": "localhost.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['156'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000061051325606366700457450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['601'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "docs.example.com.", "disabled": false}], "changetype": "REPLACE", "type": "CNAME", "name": "docs.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['163'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000063621325606366700454370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['743'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "_acme-challenge.fqdn.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000066371325606366700454560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['900'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:39 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "_acme-challenge.full.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000071151325606366700456030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1057'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "_acme-challenge.test.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['178'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000240341325606366700447360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "delete.testfilt.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['173'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "delete.testfilt.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1366'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"name": "delete.testfilt.example.com.", "changetype": "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000240341325606366700500010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "delete.testfqdn.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['173'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "delete.testfqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1366'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"name": "delete.testfqdn.example.com.", "changetype": "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000240341325606366700500130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "delete.testfull.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['173'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "delete.testfull.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1366'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"name": "delete.testfull.example.com.", "changetype": "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['121'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:40 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000240261325606366700455740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "delete.testid.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['171'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "delete.testid.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1364'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"name": "delete.testid.example.com.", "changetype": "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['119'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000145601325606366700421060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1214'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "ttl.fqdn.example.com.", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['168'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1361'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000153001325606366700472210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1361'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "random.fqdntest.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['173'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1513'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000160201325606366700472330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1513'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "random.fulltest.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['173'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1665'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000165201325606366700462160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1665'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "random.test.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['169'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1813'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000062051325606366700453570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1813'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:41 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000322631325606366700427140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1813'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "orig.test.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['167'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "orig.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1959'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"name": "orig.test.example.com.", "changetype": "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1813'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "updated.test.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['170'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000332621325606366700457570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "updated.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1962'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "orig.testfqdn.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['171'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "updated.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "orig.testfqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['2112'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"name": "orig.testfqdn.example.com.", "changetype": "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['119'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "updated.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['1962'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "updated.testfqdn.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['174'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000342551325606366700457740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/powerdns/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "updated.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "updated.testfqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['2115'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:42 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "orig.testfull.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['171'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:43 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "updated.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "updated.testfqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "orig.testfull.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['2265'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:43 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"name": "orig.testfull.example.com.", "changetype": "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['119'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:43 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: GET uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.", "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.", "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.", "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type": "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "updated.test.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "updated.testfqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "ttl.fqdn.example.com.", "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl": 3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['2115'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] content-type: [application/json] date: ['Fri, 31 Mar 2017 22:36:43 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"", "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "updated.testfull.example.com.", "ttl": 600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['174'] Content-Type: [application/json] User-Agent: [python-requests/2.13.0] method: PATCH uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com response: body: {string: !!python/unicode ''} headers: access-control-allow-origin: ['*'] connection: [keep-alive] content-length: ['0'] content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline'] content-security-policy-report-only: [default-src 'self'; script-src 'self' 'unsafe-inline'] date: ['Fri, 31 Mar 2017 22:36:43 GMT'] server: [nginx] strict-transport-security: [max-age=15768000; includeSubDomains] x-content-type-options: [nosniff, nosniff] x-frame-options: [deny, SAMEORIGIN] x-permitted-cross-domain-policies: [none] x-xss-protection: [1; mode=block, 1; mode=block] status: {code: 204, message: No Content} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/rackspace/000077500000000000000000000000001325606366700221405ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTests/000077500000000000000000000000001325606366700254465ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000045411325606366700337250ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T14:52:55.203Z","RAX-AUTH:issued":"2018-01-31T15:02:24.203Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:24 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-03] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiJmMGE5ZjBlOC04YjU4LTRiNTUtODc0YS0yNTkyODY0MjdmMjgiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:08.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:24 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000043101325606366700426120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:13:03.818Z","RAX-AUTH:issued":"2018-01-31T15:02:24.818Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:24 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-03] x-tenant-id: [placeholder_auth_account] x-trans-id: [eyJyZXF1ZXN0SWQiOiJmNzMyNTQ2Yi05MGVlLTQzMjktYjY3Mi0wMjlmY2E2M2Y3NzMiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=thisisadomainidonotown.com response: body: {string: !!python/unicode '{"domains":[],"totalEntries":0}'} headers: content-length: ['31'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:25 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000120001325606366700453640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:09:55.334Z","RAX-AUTH:issued":"2018-01-31T15:02:25.334Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:25 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-03] x-tenant-id: [placeholder_auth_account] x-trans-id: [eyJyZXF1ZXN0SWQiOiI0NWY4ODEzYi1lZmQ5LTQxMzAtODYwYy04MDNkNGMwZjgxNzYiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:08.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:25 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "127.0.0.1", "type": "A", "name": "localhost.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['109'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"127.0.0.1\", \"type\": \"A\", \"name\": \"localhost.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"765bbc9d-b65f-46af-802b-6ecd6229fd75","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/765bbc9d-b65f-46af-802b-6ecd6229fd75","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['412'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:25 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/765bbc9d-b65f-46af-802b-6ecd6229fd75?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"127.0.0.1\", \"type\": \"A\", \"name\": \"localhost.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"localhost.capsulecd.com","id":"A-23093932","type":"A","data":"127.0.0.1","ttl":3600,"updated":"2018-01-31T15:02:26.000+0000","created":"2018-01-31T15:02:26.000+0000"}]},"verb":"POST","jobId":"765bbc9d-b65f-46af-802b-6ecd6229fd75","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/765bbc9d-b65f-46af-802b-6ecd6229fd75","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['627'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:27 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000120341325606366700460360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T14:54:49.315Z","RAX-AUTH:issued":"2018-01-31T15:02:27.315Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:27 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-02] x-tenant-id: [placeholder_auth_account] x-trans-id: [eyJyZXF1ZXN0SWQiOiJlNmY1NTdkNS01MDYxLTRiYTAtYmZlYS1lMTk2YTAwNWQxZjIiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:26.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:27 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "docs.example.com", "type": "CNAME", "name": "docs.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['115'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"docs.example.com\", \"type\": \"CNAME\", \"name\": \"docs.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"8312b7cd-d483-4a8b-953c-32a7d1d5b2fe","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/8312b7cd-d483-4a8b-953c-32a7d1d5b2fe","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['418'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:27 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/8312b7cd-d483-4a8b-953c-32a7d1d5b2fe?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"docs.example.com\", \"type\": \"CNAME\", \"name\": \"docs.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"docs.capsulecd.com","id":"CNAME-16373758","type":"CNAME","data":"docs.example.com","ttl":3600,"updated":"2018-01-31T15:02:28.000+0000","created":"2018-01-31T15:02:28.000+0000"}]},"verb":"POST","jobId":"8312b7cd-d483-4a8b-953c-32a7d1d5b2fe","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/8312b7cd-d483-4a8b-953c-32a7d1d5b2fe","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['643'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:29 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000121311325606366700455210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:06:42.350Z","RAX-AUTH:issued":"2018-01-31T15:02:29.350Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:29 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-01] x-tenant-id: [placeholder_auth_account] x-trans-id: [eyJyZXF1ZXN0SWQiOiIxZWNlYWJiOC1lYzE5LTQzOTEtOTQxMi1kNjNiMzJlMGVkMWUiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:28.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:29 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.fqdn.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['127'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"_acme-challenge.fqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"5f82fdfa-5942-47bc-8264-8f25371a5b95","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/5f82fdfa-5942-47bc-8264-8f25371a5b95","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['430'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:29 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/5f82fdfa-5942-47bc-8264-8f25371a5b95?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"_acme-challenge.fqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"_acme-challenge.fqdn.capsulecd.com","id":"TXT-1614040","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:30.000+0000","created":"2018-01-31T15:02:30.000+0000"}]},"verb":"POST","jobId":"5f82fdfa-5942-47bc-8264-8f25371a5b95","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/5f82fdfa-5942-47bc-8264-8f25371a5b95","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['664'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:31 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000121311325606366700455330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:11:54.388Z","RAX-AUTH:issued":"2018-01-31T15:02:31.388Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:31 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-01] x-tenant-id: [placeholder_auth_account] x-trans-id: [eyJyZXF1ZXN0SWQiOiIxNGMwZWE4Yi0zMTBmLTRhODgtYWEzNy05OTk2OGFkYmMzM2UiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:30.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:31 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.full.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['127'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"_acme-challenge.full.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"32c28ba5-91e0-4d2e-a166-32ba88e0d7ba","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/32c28ba5-91e0-4d2e-a166-32ba88e0d7ba","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['430'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:32 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/32c28ba5-91e0-4d2e-a166-32ba88e0d7ba?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"_acme-challenge.full.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"_acme-challenge.full.capsulecd.com","id":"TXT-1614043","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:32.000+0000","created":"2018-01-31T15:02:32.000+0000"}]},"verb":"POST","jobId":"32c28ba5-91e0-4d2e-a166-32ba88e0d7ba","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/32c28ba5-91e0-4d2e-a166-32ba88e0d7ba","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['664'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:33 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000121311325606366700456700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:05:18.395Z","RAX-AUTH:issued":"2018-01-31T15:02:33.395Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:33 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-03] x-tenant-id: [placeholder_auth_account] x-trans-id: [eyJyZXF1ZXN0SWQiOiJlNWUzMDE5OC1hZDVlLTRlOTYtOTNlNS1jZjU1YmJiNmJjMzAiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:32.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:33 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "_acme-challenge.test.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['127'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"_acme-challenge.test.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"aadd2fc8-ea51-4b3b-a82c-2e85f32c7985","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/aadd2fc8-ea51-4b3b-a82c-2e85f32c7985","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['430'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:34 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/aadd2fc8-ea51-4b3b-a82c-2e85f32c7985?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"_acme-challenge.test.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"_acme-challenge.test.capsulecd.com","id":"TXT-1614046","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:34.000+0000","created":"2018-01-31T15:02:34.000+0000"}]},"verb":"POST","jobId":"aadd2fc8-ea51-4b3b-a82c-2e85f32c7985","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/aadd2fc8-ea51-4b3b-a82c-2e85f32c7985","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['664'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:35 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000355511325606366700450370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T14:48:55.411Z","RAX-AUTH:issued":"2018-01-31T15:02:35.411Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:35 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-02] x-tenant-id: [placeholder_auth_account] x-trans-id: [eyJyZXF1ZXN0SWQiOiI1MjViMTcxNy1hZmU0LTQ4MDYtYjU5ZC02YWJjYThmODUxOWYiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:34.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:35 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "delete.testfilt.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['122'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfilt.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"e00ef6eb-4780-4135-9de1-4f9cf556fa90","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e00ef6eb-4780-4135-9de1-4f9cf556fa90","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:36 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e00ef6eb-4780-4135-9de1-4f9cf556fa90?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfilt.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"delete.testfilt.capsulecd.com","id":"TXT-1614049","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:36.000+0000","created":"2018-01-31T15:02:36.000+0000"}]},"verb":"POST","jobId":"e00ef6eb-4780-4135-9de1-4f9cf556fa90","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e00ef6eb-4780-4135-9de1-4f9cf556fa90","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['654'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:37 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?content=challengetoken&per_page=100&type=TXT&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"delete.testfilt.capsulecd.com","id":"TXT-1614049","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:36.000+0000","created":"2018-01-31T15:02:36.000+0000"}]}'} headers: content-length: ['215'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:37 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: DELETE uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614049 response: body: {string: !!python/unicode '{"request":"{}","status":"RUNNING","verb":"DELETE","jobId":"bd0a592a-ebbc-4704-b80d-90b32106c0e5","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/bd0a592a-ebbc-4704-b80d-90b32106c0e5","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614049"}'} headers: content-length: ['303'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:37 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/bd0a592a-ebbc-4704-b80d-90b32106c0e5?showDetails=true response: body: {string: !!python/unicode '{"request":"{}","status":"COMPLETED","verb":"DELETE","jobId":"bd0a592a-ebbc-4704-b80d-90b32106c0e5","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/bd0a592a-ebbc-4704-b80d-90b32106c0e5","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614049"}'} headers: content-length: ['305'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:38 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '{"records":[]}'} headers: content-length: ['14'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:39 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/123456/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:03:18.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:21:30 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "delete.testfilt.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['122'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/123456/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfilt.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"2bf6124a-61ef-40dd-a9d0-d0c472372b6f","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/status/2bf6124a-61ef-40dd-a9d0-d0c472372b6f","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:21:31 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/123456/status/2bf6124a-61ef-40dd-a9d0-d0c472372b6f?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfilt.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"2bf6124a-61ef-40dd-a9d0-d0c472372b6f","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/status/2bf6124a-61ef-40dd-a9d0-d0c472372b6f","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:21:31 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/123456/status/2bf6124a-61ef-40dd-a9d0-d0c472372b6f?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfilt.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"2bf6124a-61ef-40dd-a9d0-d0c472372b6f","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/status/2bf6124a-61ef-40dd-a9d0-d0c472372b6f","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:21:31 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/123456/status/2bf6124a-61ef-40dd-a9d0-d0c472372b6f?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfilt.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"delete.testfilt.capsulecd.com","id":"TXT-1614115","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:21:31.000+0000","created":"2018-01-31T15:21:31.000+0000"}]},"verb":"POST","jobId":"2bf6124a-61ef-40dd-a9d0-d0c472372b6f","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/status/2bf6124a-61ef-40dd-a9d0-d0c472372b6f","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/123456/domains/1234567/records"}'} headers: content-length: ['654'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:21:31 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000221101325606366700500650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:11:11.590Z","RAX-AUTH:issued":"2018-01-31T15:02:39.590Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:39 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-02] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiIyZDVlNjJmOC00YWZlLTRkZmItYjI0NS00NGY4YTQ5NjVjM2QiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:37.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:39 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "delete.testfqdn.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['122'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"f0cc7afb-33fa-4e80-a7d6-36a6477173ff","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/f0cc7afb-33fa-4e80-a7d6-36a6477173ff","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:40 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/f0cc7afb-33fa-4e80-a7d6-36a6477173ff?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"delete.testfqdn.capsulecd.com","id":"TXT-1614052","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:40.000+0000","created":"2018-01-31T15:02:40.000+0000"}]},"verb":"POST","jobId":"f0cc7afb-33fa-4e80-a7d6-36a6477173ff","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/f0cc7afb-33fa-4e80-a7d6-36a6477173ff","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['654'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:41 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?content=challengetoken&per_page=100&type=TXT&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"delete.testfqdn.capsulecd.com","id":"TXT-1614052","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:40.000+0000","created":"2018-01-31T15:02:40.000+0000"}]}'} headers: content-length: ['215'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:41 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: DELETE uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614052 response: body: {string: !!python/unicode '{"request":"{}","status":"RUNNING","verb":"DELETE","jobId":"6ef280b4-5382-4e73-b40a-8d318f045b6b","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/6ef280b4-5382-4e73-b40a-8d318f045b6b","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614052"}'} headers: content-length: ['303'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:41 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/6ef280b4-5382-4e73-b40a-8d318f045b6b?showDetails=true response: body: {string: !!python/unicode '{"request":"{}","status":"COMPLETED","verb":"DELETE","jobId":"6ef280b4-5382-4e73-b40a-8d318f045b6b","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/6ef280b4-5382-4e73-b40a-8d318f045b6b","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614052"}'} headers: content-length: ['305'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:43 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"records":[]}'} headers: content-length: ['14'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:43 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000221101325606366700500770ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T14:50:35.638Z","RAX-AUTH:issued":"2018-01-31T15:02:43.638Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:43 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-06] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiI2OWVkNTE3Zi1jOTZiLTRlMGItYjcyMC01MzEzNjU2NzliYWYiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:42.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:44 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "delete.testfull.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['122'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfull.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"bedfcdb4-d035-4d90-97f5-325b558e60a0","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/bedfcdb4-d035-4d90-97f5-325b558e60a0","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:44 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/bedfcdb4-d035-4d90-97f5-325b558e60a0?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testfull.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"delete.testfull.capsulecd.com","id":"TXT-1614055","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:44.000+0000","created":"2018-01-31T15:02:44.000+0000"}]},"verb":"POST","jobId":"bedfcdb4-d035-4d90-97f5-325b558e60a0","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/bedfcdb4-d035-4d90-97f5-325b558e60a0","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['654'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:45 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?content=challengetoken&per_page=100&type=TXT&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"delete.testfull.capsulecd.com","id":"TXT-1614055","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:44.000+0000","created":"2018-01-31T15:02:44.000+0000"}]}'} headers: content-length: ['215'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:45 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: DELETE uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614055 response: body: {string: !!python/unicode '{"request":"{}","status":"RUNNING","verb":"DELETE","jobId":"b47dc6da-e433-497a-b2be-555e9f8f6e1e","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/b47dc6da-e433-497a-b2be-555e9f8f6e1e","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614055"}'} headers: content-length: ['303'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:45 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/b47dc6da-e433-497a-b2be-555e9f8f6e1e?showDetails=true response: body: {string: !!python/unicode '{"request":"{}","status":"COMPLETED","verb":"DELETE","jobId":"b47dc6da-e433-497a-b2be-555e9f8f6e1e","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/b47dc6da-e433-497a-b2be-555e9f8f6e1e","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614055"}'} headers: content-length: ['305'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:47 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '{"records":[]}'} headers: content-length: ['14'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:47 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000243401325606366700456660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:04:36.705Z","RAX-AUTH:issued":"2018-01-31T15:02:47.705Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:47 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-01] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiIzOWIwMjgzMi1lYWYyLTQ1MDMtYWFjYy1mZGE5MzQ2N2JlMjciLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:46.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:48 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "delete.testid.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['120'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testid.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"632a15cb-0e48-4ca7-8a1f-544cc9106bc5","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/632a15cb-0e48-4ca7-8a1f-544cc9106bc5","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['423'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:48 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/632a15cb-0e48-4ca7-8a1f-544cc9106bc5?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testid.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"632a15cb-0e48-4ca7-8a1f-544cc9106bc5","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/632a15cb-0e48-4ca7-8a1f-544cc9106bc5","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['423'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:49 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/632a15cb-0e48-4ca7-8a1f-544cc9106bc5?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"delete.testid.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"delete.testid.capsulecd.com","id":"TXT-1614058","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:50.000+0000","created":"2018-01-31T15:02:50.000+0000"}]},"verb":"POST","jobId":"632a15cb-0e48-4ca7-8a1f-544cc9106bc5","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/632a15cb-0e48-4ca7-8a1f-544cc9106bc5","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['650'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:50 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"delete.testid.capsulecd.com","id":"TXT-1614058","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:50.000+0000","created":"2018-01-31T15:02:50.000+0000"}]}'} headers: content-length: ['213'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:51 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: DELETE uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614058 response: body: {string: !!python/unicode '{"request":"{}","status":"RUNNING","verb":"DELETE","jobId":"01d57365-0eeb-49bb-9a14-df2195b12089","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/01d57365-0eeb-49bb-9a14-df2195b12089","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614058"}'} headers: content-length: ['303'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:51 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/01d57365-0eeb-49bb-9a14-df2195b12089?showDetails=true response: body: {string: !!python/unicode '{"request":"{}","status":"COMPLETED","verb":"DELETE","jobId":"01d57365-0eeb-49bb-9a14-df2195b12089","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/01d57365-0eeb-49bb-9a14-df2195b12089","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614058"}'} headers: content-length: ['305'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:52 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '{"records":[]}'} headers: content-length: ['14'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:52 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000140301325606366700421710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T14:53:51.980Z","RAX-AUTH:issued":"2018-01-31T15:02:52.980Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:53 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-03] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiI3NjlhODc0MS01YmE4LTRiMzUtODU1MC05ODU5MGY1MjkyZjgiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:51.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:53 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "ttlshouldbe3600", "type": "TXT", "name": "ttl.fqdn.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"ttlshouldbe3600\", \"type\": \"TXT\", \"name\": \"ttl.fqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"9d7d7d8a-0a60-4d8f-94e4-d63482231197","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/9d7d7d8a-0a60-4d8f-94e4-d63482231197","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['419'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:53 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/9d7d7d8a-0a60-4d8f-94e4-d63482231197?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"ttlshouldbe3600\", \"type\": \"TXT\", \"name\": \"ttl.fqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"ttl.fqdn.capsulecd.com","id":"TXT-1614061","type":"TXT","data":"ttlshouldbe3600","ttl":3600,"updated":"2018-01-31T15:02:54.000+0000","created":"2018-01-31T15:02:54.000+0000"}]},"verb":"POST","jobId":"9d7d7d8a-0a60-4d8f-94e4-d63482231197","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/9d7d7d8a-0a60-4d8f-94e4-d63482231197","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['642'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:54 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=ttl.fqdn.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"ttl.fqdn.capsulecd.com","id":"TXT-1614061","type":"TXT","data":"ttlshouldbe3600","ttl":3600,"updated":"2018-01-31T15:02:54.000+0000","created":"2018-01-31T15:02:54.000+0000"}]}'} headers: content-length: ['209'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:55 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000140751325606366700473240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:03:15.271Z","RAX-AUTH:issued":"2018-01-31T15:02:55.271Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:55 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-04] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiIxYjQ4ZTFjMi04OGI1LTRhZjgtOTM2OS1hNGExZDYwNzk1OTMiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:54.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:55 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "random.fqdntest.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['122'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"random.fqdntest.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"f4552878-a21c-4c37-9d6d-c195fc0a2a5e","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/f4552878-a21c-4c37-9d6d-c195fc0a2a5e","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:55 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/f4552878-a21c-4c37-9d6d-c195fc0a2a5e?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"random.fqdntest.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"random.fqdntest.capsulecd.com","id":"TXT-1614064","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:56.000+0000","created":"2018-01-31T15:02:56.000+0000"}]},"verb":"POST","jobId":"f4552878-a21c-4c37-9d6d-c195fc0a2a5e","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/f4552878-a21c-4c37-9d6d-c195fc0a2a5e","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['654'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:57 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=random.fqdntest.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"random.fqdntest.capsulecd.com","id":"TXT-1614064","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:56.000+0000","created":"2018-01-31T15:02:56.000+0000"}]}'} headers: content-length: ['215'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:57 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000140751325606366700473360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:04:55.705Z","RAX-AUTH:issued":"2018-01-31T15:02:57.705Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:57 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-03] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiI1MmM2ZWNiMS03MjYwLTQ0YTAtOTVhMC0yODUyZjIwOGFlMjkiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:56.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:58 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "random.fulltest.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['122'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"random.fulltest.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"e4664eed-5c59-4aa1-aa5b-c3d504baf17b","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e4664eed-5c59-4aa1-aa5b-c3d504baf17b","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['425'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:58 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e4664eed-5c59-4aa1-aa5b-c3d504baf17b?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"random.fulltest.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"random.fulltest.capsulecd.com","id":"TXT-1614067","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:58.000+0000","created":"2018-01-31T15:02:58.000+0000"}]},"verb":"POST","jobId":"e4664eed-5c59-4aa1-aa5b-c3d504baf17b","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e4664eed-5c59-4aa1-aa5b-c3d504baf17b","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['654'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:59 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=random.fulltest.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"random.fulltest.capsulecd.com","id":"TXT-1614067","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:58.000+0000","created":"2018-01-31T15:02:58.000+0000"}]}'} headers: content-length: ['215'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:02:59 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000140401325606366700463040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:14:57.079Z","RAX-AUTH:issued":"2018-01-31T15:03:00.079Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:00 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-06] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiI0Mjk2ODNhOC1iNTQ5LTRlMmQtOWVkNC01NDJlZGY4MTY2MDAiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:02:58.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:00 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "random.test.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['118'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"random.test.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"c05ab745-a06d-4d17-b26f-37d2f7f122a9","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/c05ab745-a06d-4d17-b26f-37d2f7f122a9","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['421'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:00 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/c05ab745-a06d-4d17-b26f-37d2f7f122a9?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"random.test.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"random.test.capsulecd.com","id":"TXT-1614070","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:01.000+0000","created":"2018-01-31T15:03:01.000+0000"}]},"verb":"POST","jobId":"c05ab745-a06d-4d17-b26f-37d2f7f122a9","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/c05ab745-a06d-4d17-b26f-37d2f7f122a9","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['646'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:01 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=random.test.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"random.test.capsulecd.com","id":"TXT-1614070","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:01.000+0000","created":"2018-01-31T15:03:01.000+0000"}]}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:02 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000157731325606366700454640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T14:55:10.439Z","RAX-AUTH:issued":"2018-01-31T15:03:02.440Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:02 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-01] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiI4YzY5Mjg1OC03YTk2LTQ3MWMtOWQ0ZC0xMTQxYWU1MjI1ZDgiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:03:01.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:02 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100 response: body: {string: !!python/unicode '{"records":[{"name":"capsulecd.com","id":"A-21464626","type":"A","data":"192.168.1.1","ttl":300,"updated":"2017-09-22T20:19:19.000+0000","created":"2017-09-22T20:19:19.000+0000"},{"name":"localhost.capsulecd.com","id":"A-23093932","type":"A","data":"127.0.0.1","ttl":3600,"updated":"2018-01-31T15:02:26.000+0000","created":"2018-01-31T15:02:26.000+0000"},{"name":"capsulecd.com","id":"NS-13393507","type":"NS","data":"dns1.stabletransit.com","ttl":300,"updated":"2017-09-21T21:02:56.000+0000","created":"2017-09-21T21:02:56.000+0000"},{"name":"capsulecd.com","id":"NS-13393510","type":"NS","data":"dns2.stabletransit.com","ttl":300,"updated":"2017-09-21T21:02:56.000+0000","created":"2017-09-21T21:02:56.000+0000"},{"name":"capsulecd.com","id":"MX-6687355","priority":1,"type":"MX","data":"ASPMX.L.GOOGLE.COM","ttl":300,"updated":"2017-09-21T21:33:33.000+0000","created":"2017-09-21T21:33:33.000+0000"},{"name":"capsulecd.com","id":"MX-6687358","priority":5,"type":"MX","data":"ALT1.ASPMX.L.GOOGLE.COM","ttl":300,"updated":"2017-09-21T21:33:52.000+0000","created":"2017-09-21T21:33:52.000+0000"},{"name":"capsulecd.com","id":"MX-6687361","priority":5,"type":"MX","data":"ALT2.ASPMX.L.GOOGLE.COM","ttl":300,"updated":"2017-09-21T21:34:10.000+0000","created":"2017-09-21T21:34:10.000+0000"},{"name":"capsulecd.com","id":"MX-6687364","priority":10,"type":"MX","data":"ASPMX2.GOOGLEMAIL.COM","ttl":300,"updated":"2017-09-21T21:34:28.000+0000","created":"2017-09-21T21:34:28.000+0000"},{"name":"capsulecd.com","id":"MX-6687367","priority":10,"type":"MX","data":"ASPMX3.GOOGLEMAIL.COM","ttl":300,"updated":"2017-09-21T21:34:45.000+0000","created":"2017-09-21T21:34:45.000+0000"},{"name":"capsulecd.com","id":"TXT-1492876","type":"TXT","data":"google-site-verification=placeholder_google_site_key","ttl":300,"updated":"2017-09-21T21:21:01.000+0000","created":"2017-09-21T21:21:01.000+0000"},{"name":"capsulecd.com","id":"TXT-1492933","type":"TXT","data":"v=spf1 include:_spf.google.com","ttl":300,"updated":"2017-09-22T04:32:25.000+0000","created":"2017-09-21T21:38:04.000+0000"},{"name":"_acme-challenge.fqdn.capsulecd.com","id":"TXT-1614040","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:30.000+0000","created":"2018-01-31T15:02:30.000+0000"},{"name":"_acme-challenge.full.capsulecd.com","id":"TXT-1614043","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:32.000+0000","created":"2018-01-31T15:02:32.000+0000"},{"name":"_acme-challenge.test.capsulecd.com","id":"TXT-1614046","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:34.000+0000","created":"2018-01-31T15:02:34.000+0000"},{"name":"ttl.fqdn.capsulecd.com","id":"TXT-1614061","type":"TXT","data":"ttlshouldbe3600","ttl":3600,"updated":"2018-01-31T15:02:54.000+0000","created":"2018-01-31T15:02:54.000+0000"},{"name":"random.fqdntest.capsulecd.com","id":"TXT-1614064","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:56.000+0000","created":"2018-01-31T15:02:56.000+0000"},{"name":"random.fulltest.capsulecd.com","id":"TXT-1614067","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:02:58.000+0000","created":"2018-01-31T15:02:58.000+0000"},{"name":"random.test.capsulecd.com","id":"TXT-1614070","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:01.000+0000","created":"2018-01-31T15:03:01.000+0000"},{"name":"www.capsulecd.com","id":"CNAME-16055497","type":"CNAME","data":"capsulecd.com","ttl":300,"updated":"2017-09-22T20:20:01.000+0000","created":"2017-09-22T20:20:01.000+0000"},{"name":"dev.capsulecd.com","id":"CNAME-16055719","type":"CNAME","data":"capsulecd.com","ttl":300,"updated":"2017-09-22T21:31:04.000+0000","created":"2017-09-22T21:31:04.000+0000"},{"name":"docs.capsulecd.com","id":"CNAME-16373758","type":"CNAME","data":"docs.example.com","ttl":3600,"updated":"2018-01-31T15:02:28.000+0000","created":"2018-01-31T15:02:28.000+0000"}],"totalEntries":21}'} headers: content-length: ['4344'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:03 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000210021325606366700427740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:08:18.436Z","RAX-AUTH:issued":"2018-01-31T15:03:03.436Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:03 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-01] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiJiZDIxYjMwYy1mNDUzLTQ5NTQtOWZhYy1iMjA0MzZjOGU3ZjIiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:03:01.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:03 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "orig.test.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.test.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"5cd8f483-4418-463c-9a2a-0ae2d1cb828d","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/5cd8f483-4418-463c-9a2a-0ae2d1cb828d","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['419'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:04 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/5cd8f483-4418-463c-9a2a-0ae2d1cb828d?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.test.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"orig.test.capsulecd.com","id":"TXT-1614073","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:04.000+0000","created":"2018-01-31T15:03:04.000+0000"}]},"verb":"POST","jobId":"5cd8f483-4418-463c-9a2a-0ae2d1cb828d","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/5cd8f483-4418-463c-9a2a-0ae2d1cb828d","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['642'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:05 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=orig.test.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"orig.test.capsulecd.com","id":"TXT-1614073","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:04.000+0000","created":"2018-01-31T15:03:04.000+0000"}]}'} headers: content-length: ['209'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:05 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "updated.test.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['104'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: PUT uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614073 response: body: {string: !!python/unicode '{"request":"{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"updated.test.capsulecd.com\", \"ttl\": 3600}","status":"RUNNING","verb":"PUT","jobId":"e0f35acf-5ee9-4e53-a08e-c708fbb469ab","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e0f35acf-5ee9-4e53-a08e-c708fbb469ab","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614073"}'} headers: content-length: ['416'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:05 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e0f35acf-5ee9-4e53-a08e-c708fbb469ab?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"updated.test.capsulecd.com\", \"ttl\": 3600}","status":"COMPLETED","verb":"PUT","jobId":"e0f35acf-5ee9-4e53-a08e-c708fbb469ab","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/e0f35acf-5ee9-4e53-a08e-c708fbb469ab","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614073"}'} headers: content-length: ['418'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:07 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000211251325606366700460150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:10:28.376Z","RAX-AUTH:issued":"2018-01-31T15:03:07.376Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:07 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-05] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiJhOGQ4YWQ4MS0xMWY4LTRiYmItOWEzYS1mNjM2OTdiZWMxZGIiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:03:06.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:07 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "orig.nameonly.test.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['125'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.nameonly.test.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"27efbaf5-36ab-4948-bbae-eb59365c2725","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/27efbaf5-36ab-4948-bbae-eb59365c2725","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['428'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:08 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/27efbaf5-36ab-4948-bbae-eb59365c2725?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.nameonly.test.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"orig.nameonly.test.capsulecd.com","id":"TXT-1614076","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:08.000+0000","created":"2018-01-31T15:03:08.000+0000"}]},"verb":"POST","jobId":"27efbaf5-36ab-4948-bbae-eb59365c2725","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/27efbaf5-36ab-4948-bbae-eb59365c2725","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['660'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:09 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?content=updated&per_page=100&type=TXT&name=orig.nameonly.test.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"orig.nameonly.test.capsulecd.com","id":"TXT-1614076","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:08.000+0000","created":"2018-01-31T15:03:08.000+0000"}]}'} headers: content-length: ['218'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:09 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "updated", "type": "TXT", "name": "orig.nameonly.test.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: PUT uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614076 response: body: {string: !!python/unicode '{"request":"{\"data\": \"updated\", \"type\": \"TXT\", \"name\": \"orig.nameonly.test.capsulecd.com\", \"ttl\": 3600}","status":"RUNNING","verb":"PUT","jobId":"6fe88212-747d-430a-acea-e98a1c126dc2","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/6fe88212-747d-430a-acea-e98a1c126dc2","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614076"}'} headers: content-length: ['415'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:09 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/6fe88212-747d-430a-acea-e98a1c126dc2?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"data\": \"updated\", \"type\": \"TXT\", \"name\": \"orig.nameonly.test.capsulecd.com\", \"ttl\": 3600}","status":"COMPLETED","verb":"PUT","jobId":"6fe88212-747d-430a-acea-e98a1c126dc2","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/6fe88212-747d-430a-acea-e98a1c126dc2","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614076"}'} headers: content-length: ['417'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:11 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000210461325606366700460470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:02:37.299Z","RAX-AUTH:issued":"2018-01-31T15:03:11.300Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:11 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-03] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiI3YWExZDU5NS02MTVmLTRhOGYtYjdkZi0zYWFjM2JiYjQwMTgiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:03:10.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:11 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "orig.testfqdn.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['120'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.testfqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"2824d6d7-1510-49c9-92ac-b37345a01852","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/2824d6d7-1510-49c9-92ac-b37345a01852","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['423'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:11 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/2824d6d7-1510-49c9-92ac-b37345a01852?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.testfqdn.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"orig.testfqdn.capsulecd.com","id":"TXT-1614079","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:12.000+0000","created":"2018-01-31T15:03:12.000+0000"}]},"verb":"POST","jobId":"2824d6d7-1510-49c9-92ac-b37345a01852","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/2824d6d7-1510-49c9-92ac-b37345a01852","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['650'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:13 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=orig.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"orig.testfqdn.capsulecd.com","id":"TXT-1614079","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:12.000+0000","created":"2018-01-31T15:03:12.000+0000"}]}'} headers: content-length: ['213'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:13 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "updated.testfqdn.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['108'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: PUT uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614079 response: body: {string: !!python/unicode '{"request":"{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"updated.testfqdn.capsulecd.com\", \"ttl\": 3600}","status":"RUNNING","verb":"PUT","jobId":"94e957ae-68be-4799-bad4-ac04e406447f","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/94e957ae-68be-4799-bad4-ac04e406447f","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614079"}'} headers: content-length: ['420'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:13 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/94e957ae-68be-4799-bad4-ac04e406447f?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"updated.testfqdn.capsulecd.com\", \"ttl\": 3600}","status":"COMPLETED","verb":"PUT","jobId":"94e957ae-68be-4799-bad4-ac04e406447f","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/94e957ae-68be-4799-bad4-ac04e406447f","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614079"}'} headers: content-length: ['422'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:15 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000210461325606366700460610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rackspace/IntegrationTestsinteractions: - request: body: !!python/unicode '{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "foo", "apiKey": "bar"}}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['116'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://identity.api.rackspacecloud.com/v2.0/tokens response: body: {string: !!python/unicode '{"access":{"token":{"expires":"2018-02-01T15:05:19.244Z","RAX-AUTH:issued":"2018-01-31T15:03:15.244Z","RAX-AUTH:authenticatedBy":["APIKEY"],"id":"placeholder_auth_token","tenant":{"name":"placeholder_auth_account","id":"placeholder_auth_account"}}}}'} headers: connection: [keep-alive] content-length: ['14511'] content-security-policy: [default-src 'self'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:15 GMT'] server: [nginx] strict-transport-security: [max-age=15552000; includeSubDomains] vary: ['Accept, Accept-Encoding, X-Auth-Token'] x-content-type-options: [nosniff] x-frame-options: [DENY] x-node-id: [ord-01] x-tenant-id: ['placeholder_auth_account'] x-trans-id: [eyJyZXF1ZXN0SWQiOiI3MWExMDg4OS00NGE0LTQ4ZDAtOGJjMS02MjVmNjcyZTRkYjYiLCJvcmlnaW4iOm51bGx9] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains?name=capsulecd.com response: body: {string: !!python/unicode '{"domains":[{"name":"capsulecd.com","id":1234567,"emailAddress":"hostmaster@capsulecd.com","updated":"2018-01-31T15:03:14.000+0000","created":"2017-09-21T21:02:56.000+0000"}],"totalEntries":1}'} headers: content-length: ['211'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:15 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"records": [{"data": "challengetoken", "type": "TXT", "name": "orig.testfull.capsulecd.com", "ttl": 3600}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['120'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: POST uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.testfull.capsulecd.com\", \"ttl\": 3600}]}","status":"RUNNING","verb":"POST","jobId":"24963341-2a1d-47a9-a323-a028c0f3701c","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/24963341-2a1d-47a9-a323-a028c0f3701c","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['423'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:15 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/24963341-2a1d-47a9-a323-a028c0f3701c?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"records\": [{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"orig.testfull.capsulecd.com\", \"ttl\": 3600}]}","status":"COMPLETED","response":{"records":[{"name":"orig.testfull.capsulecd.com","id":"TXT-1614082","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:16.000+0000","created":"2018-01-31T15:03:16.000+0000"}]},"verb":"POST","jobId":"24963341-2a1d-47a9-a323-a028c0f3701c","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/24963341-2a1d-47a9-a323-a028c0f3701c","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records"}'} headers: content-length: ['650'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:17 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records?per_page=100&type=TXT&name=orig.testfull.capsulecd.com response: body: {string: !!python/unicode '{"records":[{"name":"orig.testfull.capsulecd.com","id":"TXT-1614082","type":"TXT","data":"challengetoken","ttl":3600,"updated":"2018-01-31T15:03:16.000+0000","created":"2018-01-31T15:03:16.000+0000"}]}'} headers: content-length: ['213'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:17 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} - request: body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "updated.testfull.capsulecd.com", "ttl": 3600}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['108'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: PUT uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614082 response: body: {string: !!python/unicode '{"request":"{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"updated.testfull.capsulecd.com\", \"ttl\": 3600}","status":"RUNNING","verb":"PUT","jobId":"983975fa-bd73-4830-b2dd-cd081a58eab2","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/983975fa-bd73-4830-b2dd-cd081a58eab2","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614082"}'} headers: content-length: ['420'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:17 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 202, message: Accepted} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] X-Auth-Token: [!!python/unicode 'placeholder_auth_token'] method: GET uri: https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/983975fa-bd73-4830-b2dd-cd081a58eab2?showDetails=true response: body: {string: !!python/unicode '{"request":"{\"data\": \"challengetoken\", \"type\": \"TXT\", \"name\": \"updated.testfull.capsulecd.com\", \"ttl\": 3600}","status":"COMPLETED","verb":"PUT","jobId":"983975fa-bd73-4830-b2dd-cd081a58eab2","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/status/983975fa-bd73-4830-b2dd-cd081a58eab2","requestUrl":"https://dns.api.rackspacecloud.com/v1.0/placeholder_auth_account/domains/1234567/records/TXT-1614082"}'} headers: content-length: ['422'] content-type: [application/json] date: ['Wed, 31 Jan 2018 15:03:19 GMT'] server: [Jetty(8.0.y.z-SNAPSHOT)] via: [1.1 Repose (Repose/2.13.2)] x-api-version: [1.0.37] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/rage4/000077500000000000000000000000001325606366700212065ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTests/000077500000000000000000000000001325606366700245145ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000021151325606366700327660ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:28 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000017031325606366700416630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=thisisadomainidonotown.com response: body: {string: !!python/unicode '{"status":false,"id":0,"error":"Unable to fetch the item or API access not allowed"}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['84'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:28 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000054701325606366700444470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:29 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=localhost.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:29 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=127.0.0.1&ttl=3600&type=A&id=67787&name=localhost.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863433,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:31 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000054711325606366700451130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:31 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=docs.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:32 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=docs.example.com&ttl=3600&type=CNAME&id=67787&name=docs.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863435,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:32 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000055251325606366700446000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:33 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.fqdn.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:53 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=_acme-challenge.fqdn.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863437,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:54 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000055251325606366700446120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:54 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.full.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:55 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=_acme-challenge.full.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863439,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:55 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000055251325606366700447470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:56 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.test.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:56 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=_acme-challenge.test.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863441,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:58 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000117751325606366700460060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:49:58 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.createrecordset.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:11 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken1&ttl=3600&type=TXT&id=67787&name=_acme-challenge.createrecordset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863443,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:11 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.createrecordset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863443,"name":"_acme-challenge.createrecordset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['370'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:12 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken2&ttl=3600&type=TXT&id=67787&name=_acme-challenge.createrecordset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863445,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:12 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000123271325606366700454370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:14 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.noop.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:14 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=_acme-challenge.noop.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863447,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:15 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.noop.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863447,"name":"_acme-challenge.noop.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['358'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:28 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.noop.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863447,"name":"_acme-challenge.noop.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['358'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:28 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000132711325606366700441000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:29 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:29 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863449,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:30 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863449,"name":"delete.testfilt.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['353'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:30 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{"id": 2863449}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['15'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/deleterecord/ response: body: {string: !!python/unicode '{"status":true,"id":2863449,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:32 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfilt.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:44 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000132711325606366700471430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:45 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:45 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863451,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:46 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863451,"name":"delete.testfqdn.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['353'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:46 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{"id": 2863451}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['15'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/deleterecord/ response: body: {string: !!python/unicode '{"status":true,"id":2863451,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:48 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfqdn.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:50:48 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000132711325606366700471550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:00 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:02 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863453,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:02 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863453,"name":"delete.testfull.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['353'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:03 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{"id": 2863453}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['15'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/deleterecord/ response: body: {string: !!python/unicode '{"status":true,"id":2863453,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:03 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testfull.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:04 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000132571325606366700447410ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:04 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:21 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863455,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:37 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863455,"name":"delete.testid.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['351'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:38 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{"id": 2863455}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['15'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/deleterecord/ response: body: {string: !!python/unicode '{"status":true,"id":2863455,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:38 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=delete.testid.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:39 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 df2850b067a9b91f531a93e691ae1af78cdfb50f.paxheader00006660000000000000000000000256132560636670020701xustar00rootroot00000000000000174 path=lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml df2850b067a9b91f531a93e691ae1af78cdfb50f.data000066400000000000000000000212231325606366700175340ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:39 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:41 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken1&ttl=3600&type=TXT&id=67787&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863457,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:41 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863457,"name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['372'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:42 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken2&ttl=3600&type=TXT&id=67787&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863459,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:54 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863457,"name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863459,"name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken2","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['743'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:55 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{"id": 2863457}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['15'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/deleterecord/ response: body: {string: !!python/unicode '{"status":true,"id":2863457,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:55 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordinset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863459,"name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken2","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['372'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:57 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000221561325606366700442230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:57 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:58 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken1&ttl=3600&type=TXT&id=67787&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863461,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:51:58 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863461,"name":"_acme-challenge.deleterecordset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['370'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:11 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken2&ttl=3600&type=TXT&id=67787&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863463,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:11 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863461,"name":"_acme-challenge.deleterecordset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863463,"name":"_acme-challenge.deleterecordset.capsulecd.com","content":"challengetoken2","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['739'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:12 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{"id": 2863461}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['15'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/deleterecord/ response: body: {string: !!python/unicode '{"status":true,"id":2863461,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:12 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{"id": 2863463}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['15'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/deleterecord/ response: body: {string: !!python/unicode '{"status":true,"id":2863463,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:14 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.deleterecordset.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:14 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000077501325606366700412520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:15 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=ttl.fqdn.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:28 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=ttlshouldbe3600&ttl=3600&type=TXT&id=67787&name=ttl.fqdn.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863465,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:28 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=ttl.fqdn.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863465,"name":"ttl.fqdn.capsulecd.com","content":"ttlshouldbe3600","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['347'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:29 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000150661325606366700427350ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:29 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.listrecordset.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:31 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken1&ttl=3600&type=TXT&id=67787&name=_acme-challenge.listrecordset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863467,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:31 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.listrecordset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863467,"name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['368'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:32 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken2&ttl=3600&type=TXT&id=67787&name=_acme-challenge.listrecordset.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863469,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:45 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=_acme-challenge.listrecordset.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863467,"name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863469,"name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken2","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['735'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:45 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000100021325606366700463540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:46 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=random.fqdntest.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:46 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=random.fqdntest.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863471,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:47 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=random.fqdntest.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863471,"name":"random.fqdntest.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['353'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:47 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000100021325606366700463660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:52:49 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=random.fulltest.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:01 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=random.fulltest.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863473,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:01 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=random.fulltest.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863473,"name":"random.fulltest.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['353'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:02 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000036531325606366700460520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:02 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=filter.thisdoesnotexist.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:03 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000077621325606366700453670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:03 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=random.test.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:05 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=random.test.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863475,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:17 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=random.test.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863475,"name":"random.test.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['349'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:18 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000202241325606366700445150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:18 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787 response: body: {string: !!python/unicode '[{"id":2863407,"name":"capsulecd.com","content":"ns1.r4ns.com lexicon.mailinator.com 1521787998 10800 3600 604800 3600","type":"SOA","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863409,"name":"capsulecd.com","content":"ns1.r4ns.com","type":"NS","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863411,"name":"capsulecd.com","content":"ns2.r4ns.net","type":"NS","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863433,"name":"localhost.capsulecd.com","content":"127.0.0.1","type":"A","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863435,"name":"docs.capsulecd.com","content":"docs.example.com","type":"CNAME","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863437,"name":"_acme-challenge.fqdn.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863439,"name":"_acme-challenge.full.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863441,"name":"_acme-challenge.test.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863443,"name":"_acme-challenge.createrecordset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863445,"name":"_acme-challenge.createrecordset.capsulecd.com","content":"challengetoken2","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863447,"name":"_acme-challenge.noop.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863459,"name":"_acme-challenge.deleterecordinset.capsulecd.com","content":"challengetoken2","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863465,"name":"ttl.fqdn.capsulecd.com","content":"ttlshouldbe3600","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863467,"name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken1","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863469,"name":"_acme-challenge.listrecordset.capsulecd.com","content":"challengetoken2","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863471,"name":"random.fqdntest.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863473,"name":"random.fulltest.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null},{"id":2863475,"name":"random.test.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['6411'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:20 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000116331325606366700451160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/rage4/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getdomainbyname/?name=capsulecd.com response: body: {string: !!python/unicode '{"id":67787,"name":"capsulecd.com","owner_email":"lexicon@mailinator.com","type":0,"subnet_mask":0,"default_ns1":"ns1.r4ns.com","default_ns2":"ns2.r4ns.net","soa_refresh":10800,"soa_expiry":604800,"soa_retry":3600,"soa_nx":3600,"ns_ttl":3600}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['242'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:20 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=orig.testfqdn.capsulecd.com response: body: {string: !!python/unicode '[]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['2'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:21 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://rage4.com/rapi/createrecord/?content=challengetoken&ttl=3600&type=TXT&id=67787&name=orig.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863477,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:21 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://rage4.com/rapi/getrecords/?id=67787&name=orig.testfqdn.capsulecd.com response: body: {string: !!python/unicode '[{"id":2863477,"name":"orig.testfqdn.capsulecd.com","content":"challengetoken","type":"TXT","ttl":3600,"priority":1,"domain_id":67787,"geo_region_id":0,"geo_lat":0.0,"geo_long":0.0,"failover_enabled":false,"failover_active":false,"failover_content":null,"failover_withdraw":false,"webhook_id":-1,"is_active":true,"udp_limit":false,"description":null}]'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['351'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:34 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://rage4.com/rapi/updaterecord/?content=challengetoken&ttl=3600&id=2863477&name=updated.testfqdn.capsulecd.com response: body: {string: !!python/unicode '{"status":true,"id":2863477,"error":""}'} headers: access-control-allow-origin: ['*'] cache-control: ['private, s-maxage=0'] connection: [close] content-length: ['39'] content-type: [text/plain; charset=utf-8] date: ['Fri, 23 Mar 2018 06:53:34 GMT'] server: [GBSHouse/2.0] strict-transport-security: [max-age=31536000; includeSubDomains; preload;] x-powered-by: [GBSHouse] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/route53/000077500000000000000000000000001325606366700215125ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTests/000077500000000000000000000000001325606366700250205ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000024161325606366700332760ustar00rootroot00000000000000interactions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013235Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse2/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:36 GMT'] x-amzn-requestid: [4259fe5f-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000024161325606366700421710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013235Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse2/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:36 GMT'] x-amzn-requestid: [429dbe58-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000052041325606366700447460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013236Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse2/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:37 GMT'] x-amzn-requestid: [42de70cb-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerA127.0.0.1localhost.capsulecd.com.300CREATE headers: Content-Length: ['460'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013236Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/CF17IG5J1X5M7PENDING2016-10-09T01:32:37.919ZCREATE using lexicon Route 53 provider'} headers: content-length: ['332'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:37 GMT'] x-amzn-requestid: [42f1f8dc-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000052121325606366700454100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013237Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse3/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:37 GMT'] x-amzn-requestid: [434a0361-8dc0-11e6-a762-87e4489e0720] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerCNAMEdocs.example.comdocs.capsulecd.com.300CREATE headers: Content-Length: ['466'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013237Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/CNVXEL21DSSE9PENDING2016-10-09T01:32:38.501ZCREATE using lexicon Route 53 provider'} headers: content-length: ['332'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:37 GMT'] x-amzn-requestid: [435c79fb-8dc0-11e6-a762-87e4489e0720] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000052311325606366700450760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013237Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse4/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:38 GMT'] x-amzn-requestid: [43a0d637-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"_acme-challenge.fqdn.capsulecd.com.300CREATE headers: Content-Length: ['480'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013238Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C1A3B8VBTCYYOVPENDING2016-10-09T01:32:39.081ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:38 GMT'] x-amzn-requestid: [43b45e42-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000052311325606366700451100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013238Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse5/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:39 GMT'] x-amzn-requestid: [43fa197e-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"_acme-challenge.full.capsulecd.com.300CREATE headers: Content-Length: ['480'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013238Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C3QZFMKIVEW05NPENDING2016-10-09T01:32:39.667ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:39 GMT'] x-amzn-requestid: [440d0546-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000052311325606366700452450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013238Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse6/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:39 GMT'] x-amzn-requestid: [44529985-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"_acme-challenge.test.capsulecd.com.300CREATE headers: Content-Length: ['480'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013239Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C3BNEPBUUIXTZQPENDING2016-10-09T01:32:40.246ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:39 GMT'] x-amzn-requestid: [4465ac59-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000150041325606366700444000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013239Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse7/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:39 GMT'] x-amzn-requestid: [44b293e4-8dc0-11e6-9eaf-799ea20c9a03] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"delete.testfilt.capsulecd.com.300CREATE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013239Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C1LD422CD1FFW7PENDING2016-10-09T01:32:40.921ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:40 GMT'] x-amzn-requestid: [44cd47e2-8dc0-11e6-9eaf-799ea20c9a03] status: {code: 200, message: OK} - request: body: !!python/unicode DELETE using lexicon Route 53 providerTXT"challengetoken"delete.testfilt.capsulecd.com.300DELETE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013240Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C16141CWLG6YKWPENDING2016-10-09T01:32:41.073ZDELETE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:40 GMT'] x-amzn-requestid: [44e4a07f-8dc0-11e6-9eaf-799ea20c9a03] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013240Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['1982'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:40 GMT'] x-amzn-requestid: [44fa2459-8dc0-11e6-9eaf-799ea20c9a03] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000150041325606366700474430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013240Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse7/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:41 GMT'] x-amzn-requestid: [453cf9fb-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"delete.testfqdn.capsulecd.com.300CREATE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013240Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C32D281ZMBH6INPENDING2016-10-09T01:32:41.807ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:41 GMT'] x-amzn-requestid: [4552cbee-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} - request: body: !!python/unicode DELETE using lexicon Route 53 providerTXT"challengetoken"delete.testfqdn.capsulecd.com.300DELETE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013240Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C3VF6FG1FFV88IPENDING2016-10-09T01:32:41.955ZDELETE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:41 GMT'] x-amzn-requestid: [456a99bc-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013241Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['1982'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:42 GMT'] x-amzn-requestid: [45846352-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000150021325606366700474530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013241Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse7/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:42 GMT'] x-amzn-requestid: [45c7d4b2-8dc0-11e6-8007-f92dc2d345fb] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"delete.testfull.capsulecd.com.300CREATE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013241Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/CE0NHMZGUPDL5PENDING2016-10-09T01:32:42.698ZCREATE using lexicon Route 53 provider'} headers: content-length: ['332'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:42 GMT'] x-amzn-requestid: [45dbf8f4-8dc0-11e6-8007-f92dc2d345fb] status: {code: 200, message: OK} - request: body: !!python/unicode DELETE using lexicon Route 53 providerTXT"challengetoken"delete.testfull.capsulecd.com.300DELETE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013241Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/CUT13HX23V72IPENDING2016-10-09T01:32:42.847ZDELETE using lexicon Route 53 provider'} headers: content-length: ['332'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:42 GMT'] x-amzn-requestid: [45f2dc6d-8dc0-11e6-8007-f92dc2d345fb] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013242Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['1982'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:42 GMT'] x-amzn-requestid: [4609bfde-8dc0-11e6-8007-f92dc2d345fb] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000125571325606366700415570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013242Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse7/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:43 GMT'] x-amzn-requestid: [464edf4f-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"ttlshouldbe3600"ttl.fqdn.capsulecd.com.3600CREATE headers: Content-Length: ['470'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013242Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C286G3OOGBO9GJPENDING2016-10-09T01:32:43.674ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:43 GMT'] x-amzn-requestid: [466ffbf5-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013242Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['2198'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:43 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [4686df62-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000131211325606366700466650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013243Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse8/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:44 GMT'] x-amzn-requestid: [46cac616-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"random.fqdntest.capsulecd.com.300CREATE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013243Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C2GOCRSU4ITV0WPENDING2016-10-09T01:32:44.391ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:44 GMT'] x-amzn-requestid: [46dec357-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013243Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"random.fqdntest.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['2419'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:44 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [46f46e44-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000134551325606366700467110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013243Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse9/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['735'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:44 GMT'] x-amzn-requestid: [47398d22-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"random.fulltest.capsulecd.com.300CREATE headers: Content-Length: ['475'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013244Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/CVEXQI7H7RA91PENDING2016-10-09T01:32:45.125ZCREATE using lexicon Route 53 provider'} headers: content-length: ['332'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:44 GMT'] x-amzn-requestid: [474d8a5c-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013244Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"random.fqdntest.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"random.fulltest.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['2640'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:44 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [47650a0f-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000140041325606366700456560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013244Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse10/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['736'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:45 GMT'] x-amzn-requestid: [47a917cb-8dc0-11e6-ae6d-ef4282e2655b] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"random.test.capsulecd.com.300CREATE headers: Content-Length: ['471'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013244Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C24TSLQ5UO80NLPENDING2016-10-09T01:32:45.851ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:45 GMT'] x-amzn-requestid: [47bcc6e7-8dc0-11e6-ae6d-ef4282e2655b] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013245Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"random.fqdntest.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"random.fulltest.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"random.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['2857'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:45 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [47d3f877-8dc0-11e6-ae6d-ef4282e2655b] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000112021325606366700450150ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013245Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse11/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['736'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:45 GMT'] x-amzn-requestid: [4817b8cb-8dc0-11e6-8007-f92dc2d345fb] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013245Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"random.fqdntest.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"random.fulltest.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"random.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['2857'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:45 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [482b66ee-8dc0-11e6-8007-f92dc2d345fb] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000171341325606366700423610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013245Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse11/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['736'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:46 GMT'] x-amzn-requestid: [486effe1-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"orig.test.capsulecd.com.300CREATE headers: Content-Length: ['469'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013246Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C3ML8LEYPAH42JPENDING2016-10-09T01:32:47.135ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:46 GMT'] x-amzn-requestid: [48817676-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013246Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"random.fqdntest.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"random.fulltest.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"orig.test.capsulecd.com.TXT300"challengetoken"random.test.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['3072'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:46 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [4896ac31-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} - request: body: !!python/unicode UPSERT using lexicon Route 53 providerTXT"challengetoken"updated.test.capsulecd.com.300UPSERT headers: Content-Length: ['472'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013246Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C1ZNAFHKUJL8FGPENDING2016-10-09T01:32:47.403ZUPSERT using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:46 GMT'] x-amzn-requestid: [48aaf78d-8dc0-11e6-b80f-fd822a08c6c3] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000200311325606366700454120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013246Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse13/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['736'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:47 GMT'] x-amzn-requestid: [48ee8fff-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"orig.testfqdn.capsulecd.com.300CREATE headers: Content-Length: ['473'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013247Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C14BHL8X9QA0BQPENDING2016-10-09T01:32:48.023ZCREATE using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:47 GMT'] x-amzn-requestid: [4907964e-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013247Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"random.fqdntest.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"random.fulltest.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"orig.test.capsulecd.com.TXT300"challengetoken"random.test.capsulecd.com.TXT300"challengetoken"updated.test.capsulecd.com.TXT300"challengetoken"orig.testfqdn.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['3509'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:47 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [491f3d07-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} - request: body: !!python/unicode UPSERT using lexicon Route 53 providerTXT"challengetoken"updated.testfqdn.capsulecd.com.300UPSERT headers: Content-Length: ['476'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013247Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C3V55RIBBU2CM3PENDING2016-10-09T01:32:48.311ZUPSERT using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:48 GMT'] x-amzn-requestid: [493472c9-8dc0-11e6-ad4e-4db3db61d6c6] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000207211325606366700454320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/route53/IntegrationTestsinteractions: - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013247Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzonesbyname response: body: {string: !!python/unicode ' /hostedzone/ZBEJSHF5L79VIcapsulecd.com.CD167CD7-84D9-E9B6-A9CA-368CF9590C4Ffalse15/hostedzone/Z26VK10YTMHFYGeadmundo.com.D3154B90-A6B5-C702-9EC1-F2C63DCCF274false17false100'} headers: content-length: ['736'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:48 GMT'] x-amzn-requestid: [497af165-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} - request: body: !!python/unicode CREATE using lexicon Route 53 providerTXT"challengetoken"orig.testfull.capsulecd.com.300CREATE headers: Content-Length: ['473'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013247Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/CT324RA3S2BTAPENDING2016-10-09T01:32:48.906ZCREATE using lexicon Route 53 provider'} headers: content-length: ['332'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:48 GMT'] x-amzn-requestid: [498f63d5-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} - request: body: null headers: User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013248Z] method: !!python/unicode GET uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset response: body: {string: !!python/unicode ' capsulecd.com.NS172800ns-157.awsdns-19.com.ns-581.awsdns-08.net.ns-1197.awsdns-21.org.ns-1858.awsdns-40.co.uk.capsulecd.com.SOA900ns-157.awsdns-19.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400docs.capsulecd.com.CNAME300docs.example.com_acme-challenge.fqdn.capsulecd.com.TXT300"challengetoken"ttl.fqdn.capsulecd.com.TXT3600"ttlshouldbe3600"random.fqdntest.capsulecd.com.TXT300"challengetoken"_acme-challenge.full.capsulecd.com.TXT300"challengetoken"random.fulltest.capsulecd.com.TXT300"challengetoken"localhost.capsulecd.com.A300127.0.0.1_acme-challenge.test.capsulecd.com.TXT300"challengetoken"orig.test.capsulecd.com.TXT300"challengetoken"random.test.capsulecd.com.TXT300"challengetoken"updated.test.capsulecd.com.TXT300"challengetoken"orig.testfqdn.capsulecd.com.TXT300"challengetoken"updated.testfqdn.capsulecd.com.TXT300"challengetoken"orig.testfull.capsulecd.com.TXT300"challengetoken"false100'} headers: content-length: ['3950'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:48 GMT'] vary: [Accept-Encoding] x-amzn-requestid: [49a62033-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} - request: body: !!python/unicode UPSERT using lexicon Route 53 providerTXT"challengetoken"updated.testfull.capsulecd.com.300UPSERT headers: Content-Length: ['476'] User-Agent: [Boto3/1.4.1 Python/2.7.11 Darwin/15.6.0 Botocore/1.4.60] X-Amz-Date: [20161009T013248Z] method: !!python/unicode POST uri: https://route53.amazonaws.com/2013-04-01/hostedzone/ZBEJSHF5L79VI/rrset/ response: body: {string: !!python/unicode ' /change/C1SXJPGKTS19GLPENDING2016-10-09T01:32:49.191ZUPSERT using lexicon Route 53 provider'} headers: content-length: ['333'] content-type: [text/xml] date: ['Sun, 09 Oct 2016 01:32:49 GMT'] x-amzn-requestid: [49bb7cf9-8dc0-11e6-86bb-25110d14e1d9] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/000077500000000000000000000000001325606366700225215ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTests/000077500000000000000000000000001325606366700260275ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000035121325606366700343030ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[]}},"SettingsHash":"c63cedb2357b0f262cf61a6f9a61967b","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/fc93f751474e379eafee3766299e06fc"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:55 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['693'] X-Sakura-Encode-Microtime: ['287'] X-Sakura-Proxy-Decode-Microtime: ['54'] X-Sakura-Proxy-Microtime: ['51189'] X-Sakura-Serial: [fc93f751474e379eafee3766299e06fc] X-XSS-Protection: [1; mode=block] content-length: ['693'] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000025361325606366700432030ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22thisisadomainidonotown.com%22%7D%7D response: body: {string: '{"From":0,"Count":0,"Total":0,"CommonServiceItems":[],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/44af5498bcbbc85be4331a6e2f3e6e6a"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:55 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['168'] X-Sakura-Encode-Microtime: ['227'] X-Sakura-Proxy-Decode-Microtime: ['42'] X-Sakura-Proxy-Microtime: ['47523'] X-Sakura-Serial: [44af5498bcbbc85be4331a6e2f3e6e6a] X-XSS-Protection: [1; mode=block] content-length: ['168'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000126221325606366700457570ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[]}},"SettingsHash":"c63cedb2357b0f262cf61a6f9a61967b","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/51d5798d7745a86abc86695ee8fa333a"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:56 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['693'] X-Sakura-Encode-Microtime: ['279'] X-Sakura-Proxy-Decode-Microtime: ['74'] X-Sakura-Proxy-Microtime: ['65437'] X-Sakura-Serial: [51d5798d7745a86abc86695ee8fa333a] X-XSS-Protection: [1; mode=block] content-length: ['693'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[]}},"SettingsHash":"c63cedb2357b0f262cf61a6f9a61967b","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/cb2dbd65950aaf98345bcda63e842a23"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:56 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['651'] X-Sakura-Encode-Microtime: ['263'] X-Sakura-Proxy-Decode-Microtime: ['53'] X-Sakura-Proxy-Microtime: ['49058'] X-Sakura-Serial: [cb2dbd65950aaf98345bcda63e842a23] X-XSS-Protection: [1; mode=block] content-length: ['651'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['141'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600}]}},"SettingsHash":"8820135dc5c208780856282fde1dc989","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/1c98c3929fe693d5cdaa243ef5daeb6d"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:58 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['728'] X-Sakura-Encode-Microtime: ['315'] X-Sakura-Proxy-Decode-Microtime: ['63'] X-Sakura-Proxy-Microtime: ['1750992'] X-Sakura-Serial: [1c98c3929fe693d5cdaa243ef5daeb6d] X-XSS-Protection: [1; mode=block] content-length: ['728'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000116361325606366700464260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600}]}},"SettingsHash":"8820135dc5c208780856282fde1dc989","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/40383691c057225b7897c63c3261819e"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:58 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['755'] X-Sakura-Encode-Microtime: ['280'] X-Sakura-Proxy-Decode-Microtime: ['43'] X-Sakura-Proxy-Microtime: ['61448'] X-Sakura-Serial: [40383691c057225b7897c63c3261819e] X-XSS-Protection: [1; mode=block] content-length: ['755'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600}]}},"SettingsHash":"8820135dc5c208780856282fde1dc989","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/9a890637a981af37490702d7486ef9df"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:58 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['713'] X-Sakura-Encode-Microtime: ['567'] X-Sakura-Proxy-Decode-Microtime: ['112'] X-Sakura-Proxy-Microtime: ['60254'] X-Sakura-Serial: [9a890637a981af37490702d7486ef9df] X-XSS-Protection: [1; mode=block] content-length: ['713'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "docs", "Type": "CNAME", "RData": "docs.example.com.", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['219'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:59 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['2'] X-Sakura-Encode-Microtime: ['20815'] X-Sakura-Proxy-Decode-Microtime: ['75'] X-Sakura-Proxy-Microtime: ['142956'] X-Sakura-Serial: [bd95e160ce33ecc0ed2363900b98dd1b] X-XSS-Protection: [1; mode=block] content-length: ['551'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000133001325606366700461010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600}]}},"SettingsHash":"8820135dc5c208780856282fde1dc989","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/3c0c29c44dd4545e50df945704f34fcd"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:22:59 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['755'] X-Sakura-Encode-Microtime: ['558'] X-Sakura-Proxy-Decode-Microtime: ['46'] X-Sakura-Proxy-Microtime: ['67646'] X-Sakura-Serial: [3c0c29c44dd4545e50df945704f34fcd] X-XSS-Protection: [1; mode=block] content-length: ['755'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600}]}},"SettingsHash":"8820135dc5c208780856282fde1dc989","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/513b47310bdecfd6823fd63d5b767b0f"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:00 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['713'] X-Sakura-Encode-Microtime: ['545'] X-Sakura-Proxy-Decode-Microtime: ['128'] X-Sakura-Proxy-Microtime: ['75029'] X-Sakura-Serial: [513b47310bdecfd6823fd63d5b767b0f] X-XSS-Protection: [1; mode=block] content-length: ['713'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['230'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"22355f172b303c041c62a5678e453557","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/171b4ad4aed2e4ef76c07bcc3259a388"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:02 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['809'] X-Sakura-Encode-Microtime: ['639'] X-Sakura-Proxy-Decode-Microtime: ['119'] X-Sakura-Proxy-Microtime: ['1929149'] X-Sakura-Serial: [171b4ad4aed2e4ef76c07bcc3259a388] X-XSS-Protection: [1; mode=block] content-length: ['809'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000140211325606366700461140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"22355f172b303c041c62a5678e453557","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/6d07b84dd33f1fff131d789ec258678e"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:02 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['836'] X-Sakura-Encode-Microtime: ['675'] X-Sakura-Proxy-Decode-Microtime: ['96'] X-Sakura-Proxy-Microtime: ['66274'] X-Sakura-Serial: [6d07b84dd33f1fff131d789ec258678e] X-XSS-Protection: [1; mode=block] content-length: ['836'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"22355f172b303c041c62a5678e453557","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/c3c9a702eb2c9d0dcd4be46c65d4b354"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:02 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['794'] X-Sakura-Encode-Microtime: ['548'] X-Sakura-Proxy-Decode-Microtime: ['100'] X-Sakura-Proxy-Microtime: ['62854'] X-Sakura-Serial: [c3c9a702eb2c9d0dcd4be46c65d4b354] X-XSS-Protection: [1; mode=block] content-length: ['794'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['319'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"41ea079e78554ef7311c718a29eb8442","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/e5963bb45ae8746509d72606ca7375f1"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:04 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['890'] X-Sakura-Encode-Microtime: ['320'] X-Sakura-Proxy-Decode-Microtime: ['80'] X-Sakura-Proxy-Microtime: ['1811583'] X-Sakura-Serial: [e5963bb45ae8746509d72606ca7375f1] X-XSS-Protection: [1; mode=block] content-length: ['890'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000145421325606366700462610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"41ea079e78554ef7311c718a29eb8442","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/4fe5513b5056ab61aef48357583268bb"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:05 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['917'] X-Sakura-Encode-Microtime: ['579'] X-Sakura-Proxy-Decode-Microtime: ['97'] X-Sakura-Proxy-Microtime: ['66020'] X-Sakura-Serial: [4fe5513b5056ab61aef48357583268bb] X-XSS-Protection: [1; mode=block] content-length: ['917'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"41ea079e78554ef7311c718a29eb8442","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/654bcedd58f75ac5a6e3ffe899498846"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:05 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['875'] X-Sakura-Encode-Microtime: ['361'] X-Sakura-Proxy-Decode-Microtime: ['59'] X-Sakura-Proxy-Microtime: ['61314'] X-Sakura-Serial: [654bcedd58f75ac5a6e3ffe899498846] X-XSS-Protection: [1; mode=block] content-length: ['875'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['408'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/ba6a723379de3c1c5c773dd8b9e14784"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:07 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['971'] X-Sakura-Encode-Microtime: ['346'] X-Sakura-Proxy-Decode-Microtime: ['77'] X-Sakura-Proxy-Microtime: ['1700437'] X-Sakura-Serial: [ba6a723379de3c1c5c773dd8b9e14784] X-XSS-Protection: [1; mode=block] content-length: ['971'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000321531325606366700454130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/d961852be1589ef041c6c7fe0c7afa3e"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:07 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['998'] X-Sakura-Encode-Microtime: ['561'] X-Sakura-Proxy-Decode-Microtime: ['105'] X-Sakura-Proxy-Microtime: ['68548'] X-Sakura-Serial: [d961852be1589ef041c6c7fe0c7afa3e] X-XSS-Protection: [1; mode=block] content-length: ['998'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/3591cc77ee58f276649fa23936ff04b8"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:07 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['956'] X-Sakura-Encode-Microtime: ['455'] X-Sakura-Proxy-Decode-Microtime: ['89'] X-Sakura-Proxy-Microtime: ['70699'] X-Sakura-Serial: [3591cc77ee58f276649fa23936ff04b8] X-XSS-Protection: [1; mode=block] content-length: ['956'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "delete.testfilt", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['492'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"delete.testfilt","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"479243d72f7e0b02f8ffd4a83b1adf15","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/df0e1106c4e92adba4edc45cdc72e2ee"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:09 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1047'] X-Sakura-Encode-Microtime: ['655'] X-Sakura-Proxy-Decode-Microtime: ['119'] X-Sakura-Proxy-Microtime: ['1753797'] X-Sakura-Serial: [df0e1106c4e92adba4edc45cdc72e2ee] X-XSS-Protection: [1; mode=block] content-length: ['1047'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"delete.testfilt","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"479243d72f7e0b02f8ffd4a83b1adf15","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/5acbac9f7391dd9090224530b8e8623b"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:10 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1032'] X-Sakura-Encode-Microtime: ['636'] X-Sakura-Proxy-Decode-Microtime: ['118'] X-Sakura-Proxy-Microtime: ['62068'] X-Sakura-Serial: [5acbac9f7391dd9090224530b8e8623b] X-XSS-Protection: [1; mode=block] content-length: ['1032'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['408'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/10d9af18d3957abdecff74577f1be4f3"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:11 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['971'] X-Sakura-Encode-Microtime: ['327'] X-Sakura-Proxy-Decode-Microtime: ['72'] X-Sakura-Proxy-Microtime: ['1606654'] X-Sakura-Serial: [10d9af18d3957abdecff74577f1be4f3] X-XSS-Protection: [1; mode=block] content-length: ['971'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/136bb32cf2b319035b267a18da82d39d"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:12 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['956'] X-Sakura-Encode-Microtime: ['621'] X-Sakura-Proxy-Decode-Microtime: ['100'] X-Sakura-Proxy-Microtime: ['57595'] X-Sakura-Serial: [136bb32cf2b319035b267a18da82d39d] X-XSS-Protection: [1; mode=block] content-length: ['956'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000321531325606366700504560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/a6714f7808b2dc32d587ad838db7f599"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:12 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['998'] X-Sakura-Encode-Microtime: ['534'] X-Sakura-Proxy-Decode-Microtime: ['110'] X-Sakura-Proxy-Microtime: ['61451'] X-Sakura-Serial: [a6714f7808b2dc32d587ad838db7f599] X-XSS-Protection: [1; mode=block] content-length: ['998'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/0dbadd009fbc1dfb11bb30d41d4d4acb"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:12 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['956'] X-Sakura-Encode-Microtime: ['295'] X-Sakura-Proxy-Decode-Microtime: ['54'] X-Sakura-Proxy-Microtime: ['63935'] X-Sakura-Serial: [0dbadd009fbc1dfb11bb30d41d4d4acb] X-XSS-Protection: [1; mode=block] content-length: ['956'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "delete.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['492'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"delete.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"e612888de61a1a8fed6a33d55a88547c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/7553c79e65cc499a59b90b959e2c9a70"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:15 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1047'] X-Sakura-Encode-Microtime: ['311'] X-Sakura-Proxy-Decode-Microtime: ['78'] X-Sakura-Proxy-Microtime: ['1828295'] X-Sakura-Serial: [7553c79e65cc499a59b90b959e2c9a70] X-XSS-Protection: [1; mode=block] content-length: ['1047'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"delete.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"e612888de61a1a8fed6a33d55a88547c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/ba5ea3f1dcc475e7f746ee056e197408"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:15 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1032'] X-Sakura-Encode-Microtime: ['549'] X-Sakura-Proxy-Decode-Microtime: ['107'] X-Sakura-Proxy-Microtime: ['67709'] X-Sakura-Serial: [ba5ea3f1dcc475e7f746ee056e197408] X-XSS-Protection: [1; mode=block] content-length: ['1032'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['408'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/d5b4fb744816ee3cbeeb322ca3d8090a"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:17 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['971'] X-Sakura-Encode-Microtime: ['620'] X-Sakura-Proxy-Decode-Microtime: ['157'] X-Sakura-Proxy-Microtime: ['1753948'] X-Sakura-Serial: [d5b4fb744816ee3cbeeb322ca3d8090a] X-XSS-Protection: [1; mode=block] content-length: ['971'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/138a0f515cfbb11fec18a7e545a73a45"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:17 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['956'] X-Sakura-Encode-Microtime: ['575'] X-Sakura-Proxy-Decode-Microtime: ['101'] X-Sakura-Proxy-Microtime: ['57177'] X-Sakura-Serial: [138a0f515cfbb11fec18a7e545a73a45] X-XSS-Protection: [1; mode=block] content-length: ['956'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000321531325606366700504700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/0ba7511604e11175548f47d4f21fa8aa"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:17 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['998'] X-Sakura-Encode-Microtime: ['331'] X-Sakura-Proxy-Decode-Microtime: ['73'] X-Sakura-Proxy-Microtime: ['67631'] X-Sakura-Serial: [0ba7511604e11175548f47d4f21fa8aa] X-XSS-Protection: [1; mode=block] content-length: ['998'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/e992432b8a44e456a46a838b0b16c0f5"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:18 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['956'] X-Sakura-Encode-Microtime: ['339'] X-Sakura-Proxy-Decode-Microtime: ['66'] X-Sakura-Proxy-Microtime: ['63052'] X-Sakura-Serial: [e992432b8a44e456a46a838b0b16c0f5] X-XSS-Protection: [1; mode=block] content-length: ['956'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "delete.testfull", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['492'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"delete.testfull","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"486f4faa4b7e001598ef1abf5f9837f1","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/5c257ca46be3ca489946dbfa9fa94aef"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:20 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1047'] X-Sakura-Encode-Microtime: ['539'] X-Sakura-Proxy-Decode-Microtime: ['144'] X-Sakura-Proxy-Microtime: ['1668502'] X-Sakura-Serial: [5c257ca46be3ca489946dbfa9fa94aef] X-XSS-Protection: [1; mode=block] content-length: ['1047'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"delete.testfull","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"486f4faa4b7e001598ef1abf5f9837f1","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/bd853bb5ec06b89ec7e4fa39d9d87de6"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:20 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1032'] X-Sakura-Encode-Microtime: ['535'] X-Sakura-Proxy-Decode-Microtime: ['102'] X-Sakura-Proxy-Microtime: ['59671'] X-Sakura-Serial: [bd853bb5ec06b89ec7e4fa39d9d87de6] X-XSS-Protection: [1; mode=block] content-length: ['1032'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['408'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/c71f55642e8a986b1ba294bd2d132953"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:22 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['971'] X-Sakura-Encode-Microtime: ['486'] X-Sakura-Proxy-Decode-Microtime: ['108'] X-Sakura-Proxy-Microtime: ['1711429'] X-Sakura-Serial: [c71f55642e8a986b1ba294bd2d132953] X-XSS-Protection: [1; mode=block] content-length: ['971'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/a23eaae009d97b8977563882aa773d90"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:22 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['956'] X-Sakura-Encode-Microtime: ['566'] X-Sakura-Proxy-Decode-Microtime: ['103'] X-Sakura-Proxy-Microtime: ['61683'] X-Sakura-Serial: [a23eaae009d97b8977563882aa773d90] X-XSS-Protection: [1; mode=block] content-length: ['956'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000213171325606366700425600ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/702bb602c8285162be53a020462422db"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:22 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['998'] X-Sakura-Encode-Microtime: ['551'] X-Sakura-Proxy-Decode-Microtime: ['144'] X-Sakura-Proxy-Microtime: ['64746'] X-Sakura-Serial: [702bb602c8285162be53a020462422db] X-XSS-Protection: [1; mode=block] content-length: ['998'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"a0b341106ab458cdaf4232e3122bf9fe","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/d1e52d4db3865735c655b67883d557d9"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:23 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['956'] X-Sakura-Encode-Microtime: ['597'] X-Sakura-Proxy-Decode-Microtime: ['120'] X-Sakura-Proxy-Microtime: ['60972'] X-Sakura-Serial: [d1e52d4db3865735c655b67883d557d9] X-XSS-Protection: [1; mode=block] content-length: ['956'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['486'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600}]}},"SettingsHash":"6d77943e0ec86431945028596a58c25c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/2bdfc41072a145d6ed867ebbe9c5f6e1"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:25 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1041'] X-Sakura-Encode-Microtime: ['662'] X-Sakura-Proxy-Decode-Microtime: ['112'] X-Sakura-Proxy-Microtime: ['1700783'] X-Sakura-Serial: [2bdfc41072a145d6ed867ebbe9c5f6e1] X-XSS-Protection: [1; mode=block] content-length: ['1041'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600}]}},"SettingsHash":"6d77943e0ec86431945028596a58c25c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/22167a14390035f0806aa4cd09dffe5b"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:25 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1026'] X-Sakura-Encode-Microtime: ['323'] X-Sakura-Proxy-Decode-Microtime: ['67'] X-Sakura-Proxy-Microtime: ['58063'] X-Sakura-Serial: [22167a14390035f0806aa4cd09dffe5b] X-XSS-Protection: [1; mode=block] content-length: ['1026'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000221201325606366700476730ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600}]}},"SettingsHash":"6d77943e0ec86431945028596a58c25c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/c50796d04f4a6f12d22b910526e2a537"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:25 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1068'] X-Sakura-Encode-Microtime: ['583'] X-Sakura-Proxy-Decode-Microtime: ['108'] X-Sakura-Proxy-Microtime: ['67078'] X-Sakura-Serial: [c50796d04f4a6f12d22b910526e2a537] X-XSS-Protection: [1; mode=block] content-length: ['1068'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600}]}},"SettingsHash":"6d77943e0ec86431945028596a58c25c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/47e4a16fbbc5d87079fa95b62fff8aeb"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:25 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1026'] X-Sakura-Encode-Microtime: ['299'] X-Sakura-Proxy-Decode-Microtime: ['77'] X-Sakura-Proxy-Microtime: ['78621'] X-Sakura-Serial: [47e4a16fbbc5d87079fa95b62fff8aeb] X-XSS-Protection: [1; mode=block] content-length: ['1026'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['570'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"13f14f924ff3c741d9b4e0d515d483db","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/819ddfff76a35875728eb63dcefd5533"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:27 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1117'] X-Sakura-Encode-Microtime: ['607'] X-Sakura-Proxy-Decode-Microtime: ['146'] X-Sakura-Proxy-Microtime: ['1782230'] X-Sakura-Serial: [819ddfff76a35875728eb63dcefd5533] X-XSS-Protection: [1; mode=block] content-length: ['1117'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"13f14f924ff3c741d9b4e0d515d483db","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/2a899a23a9d17a4885c7737cd5703c27"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:28 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1102'] X-Sakura-Encode-Microtime: ['351'] X-Sakura-Proxy-Decode-Microtime: ['72'] X-Sakura-Proxy-Microtime: ['59015'] X-Sakura-Serial: [2a899a23a9d17a4885c7737cd5703c27] X-XSS-Protection: [1; mode=block] content-length: ['1102'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000227321325606366700477160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"13f14f924ff3c741d9b4e0d515d483db","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/d4b7ddc6243b18ea22309c228dc9cc68"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:28 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1144'] X-Sakura-Encode-Microtime: ['351'] X-Sakura-Proxy-Decode-Microtime: ['74'] X-Sakura-Proxy-Microtime: ['57838'] X-Sakura-Serial: [d4b7ddc6243b18ea22309c228dc9cc68] X-XSS-Protection: [1; mode=block] content-length: ['1144'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"13f14f924ff3c741d9b4e0d515d483db","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/257b56b77f55a1ff118b3ff47532ce4c"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:28 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1102'] X-Sakura-Encode-Microtime: ['316'] X-Sakura-Proxy-Decode-Microtime: ['62'] X-Sakura-Proxy-Microtime: ['57591'] X-Sakura-Serial: [257b56b77f55a1ff118b3ff47532ce4c] X-XSS-Protection: [1; mode=block] content-length: ['1102'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['654'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"cb3af155c635da1ee99779726ff1173a","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/d8f4fec31640cd8cfd552a4829a96eb9"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:30 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1193'] X-Sakura-Encode-Microtime: ['638'] X-Sakura-Proxy-Decode-Microtime: ['135'] X-Sakura-Proxy-Microtime: ['1674076'] X-Sakura-Serial: [d8f4fec31640cd8cfd552a4829a96eb9] X-XSS-Protection: [1; mode=block] content-length: ['1193'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"cb3af155c635da1ee99779726ff1173a","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/8343508a620ab36303208ce50f3a77b9"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:31 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1178'] X-Sakura-Encode-Microtime: ['606'] X-Sakura-Proxy-Decode-Microtime: ['108'] X-Sakura-Proxy-Microtime: ['62923'] X-Sakura-Serial: [8343508a620ab36303208ce50f3a77b9] X-XSS-Protection: [1; mode=block] content-length: ['1178'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000235301325606366700466710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"cb3af155c635da1ee99779726ff1173a","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/2f0cf374d7b64179e2335999127e1dee"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:31 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1220'] X-Sakura-Encode-Microtime: ['331'] X-Sakura-Proxy-Decode-Microtime: ['63'] X-Sakura-Proxy-Microtime: ['58039'] X-Sakura-Serial: [2f0cf374d7b64179e2335999127e1dee] X-XSS-Protection: [1; mode=block] content-length: ['1220'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"cb3af155c635da1ee99779726ff1173a","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/37ae77ab34ecc7bdfd346183067dee27"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:31 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1178'] X-Sakura-Encode-Microtime: ['619'] X-Sakura-Proxy-Decode-Microtime: ['126'] X-Sakura-Proxy-Microtime: ['60489'] X-Sakura-Serial: [37ae77ab34ecc7bdfd346183067dee27] X-XSS-Protection: [1; mode=block] content-length: ['1178'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['734'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"35a197689a33007438facdc128c5a674","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/24f51c47a8d96e189f65a8caa27aea4b"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:33 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1265'] X-Sakura-Encode-Microtime: ['585'] X-Sakura-Proxy-Decode-Microtime: ['79'] X-Sakura-Proxy-Microtime: ['1692958'] X-Sakura-Serial: [24f51c47a8d96e189f65a8caa27aea4b] X-XSS-Protection: [1; mode=block] content-length: ['1265'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"35a197689a33007438facdc128c5a674","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/7ef2ce5141bb3b6d14f27a7b814b66f5"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:33 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1250'] X-Sakura-Encode-Microtime: ['566'] X-Sakura-Proxy-Decode-Microtime: ['111'] X-Sakura-Proxy-Microtime: ['63704'] X-Sakura-Serial: [7ef2ce5141bb3b6d14f27a7b814b66f5] X-XSS-Protection: [1; mode=block] content-length: ['1250'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000112611325606366700460310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"35a197689a33007438facdc128c5a674","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/0d7cbde25c858db5c3378634b3fa5ebf"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:34 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1292'] X-Sakura-Encode-Microtime: ['661'] X-Sakura-Proxy-Decode-Microtime: ['132'] X-Sakura-Proxy-Microtime: ['62185'] X-Sakura-Serial: [0d7cbde25c858db5c3378634b3fa5ebf] X-XSS-Protection: [1; mode=block] content-length: ['1292'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"35a197689a33007438facdc128c5a674","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/5aa4842dc01fd6a0a73771bbb9fdb284"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:34 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1250'] X-Sakura-Encode-Microtime: ['601'] X-Sakura-Proxy-Decode-Microtime: ['102'] X-Sakura-Proxy-Microtime: ['57641'] X-Sakura-Serial: [5aa4842dc01fd6a0a73771bbb9fdb284] X-XSS-Protection: [1; mode=block] content-length: ['1250'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000376031325606366700433730ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"35a197689a33007438facdc128c5a674","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/547154c593836ea9c5dbbca7adce48eb"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:34 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1292'] X-Sakura-Encode-Microtime: ['621'] X-Sakura-Proxy-Decode-Microtime: ['126'] X-Sakura-Proxy-Microtime: ['58807'] X-Sakura-Serial: [547154c593836ea9c5dbbca7adce48eb] X-XSS-Protection: [1; mode=block] content-length: ['1292'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"35a197689a33007438facdc128c5a674","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/020476ba8124709c84aab87e34fd661c"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:35 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1250'] X-Sakura-Encode-Microtime: ['636'] X-Sakura-Proxy-Decode-Microtime: ['121'] X-Sakura-Proxy-Microtime: ['57340'] X-Sakura-Serial: [020476ba8124709c84aab87e34fd661c] X-XSS-Protection: [1; mode=block] content-length: ['1250'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['812'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"814ed6e51263d807078e814a9bb1e537","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/bb29219e7cd0f7cf15ca76b742dbb5f2"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:37 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1335'] X-Sakura-Encode-Microtime: ['689'] X-Sakura-Proxy-Decode-Microtime: ['140'] X-Sakura-Proxy-Microtime: ['1890505'] X-Sakura-Serial: [bb29219e7cd0f7cf15ca76b742dbb5f2] X-XSS-Protection: [1; mode=block] content-length: ['1335'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"814ed6e51263d807078e814a9bb1e537","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/5826f1f9fe7b88d32fb1ab5a73d4525a"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:37 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1320'] X-Sakura-Encode-Microtime: ['600'] X-Sakura-Proxy-Decode-Microtime: ['113'] X-Sakura-Proxy-Microtime: ['62881'] X-Sakura-Serial: [5826f1f9fe7b88d32fb1ab5a73d4525a] X-XSS-Protection: [1; mode=block] content-length: ['1320'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"814ed6e51263d807078e814a9bb1e537","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/f22ff95e3b079f5e4b3579097fcd785b"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:37 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1320'] X-Sakura-Encode-Microtime: ['652'] X-Sakura-Proxy-Decode-Microtime: ['130'] X-Sakura-Proxy-Microtime: ['61529'] X-Sakura-Serial: [f22ff95e3b079f5e4b3579097fcd785b] X-XSS-Protection: [1; mode=block] content-length: ['1320'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['893'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"dccf5574367933b9f67aca68bf266204","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/2d548f873abfe1d2d6b9d13b33e4ffea"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:39 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1408'] X-Sakura-Encode-Microtime: ['647'] X-Sakura-Proxy-Decode-Microtime: ['138'] X-Sakura-Proxy-Microtime: ['1738145'] X-Sakura-Serial: [2d548f873abfe1d2d6b9d13b33e4ffea] X-XSS-Protection: [1; mode=block] content-length: ['1408'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000347171325606366700464110ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"dccf5574367933b9f67aca68bf266204","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/46d985afe7aa02ddef34fb263ce3ecf1"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:40 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1435'] X-Sakura-Encode-Microtime: ['330'] X-Sakura-Proxy-Decode-Microtime: ['92'] X-Sakura-Proxy-Microtime: ['56040'] X-Sakura-Serial: [46d985afe7aa02ddef34fb263ce3ecf1] X-XSS-Protection: [1; mode=block] content-length: ['1435'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"dccf5574367933b9f67aca68bf266204","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/44cb44ec1fc505c311542f0ad3bd97b7"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:40 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1393'] X-Sakura-Encode-Microtime: ['660'] X-Sakura-Proxy-Decode-Microtime: ['135'] X-Sakura-Proxy-Microtime: ['70229'] X-Sakura-Serial: [44cb44ec1fc505c311542f0ad3bd97b7] X-XSS-Protection: [1; mode=block] content-length: ['1393'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.nameonly.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['980'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"31843a6f0a7bbfefd9158cca7cb98570","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/38ddd4e720396a50cd93564d9196b8f5"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:42 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1487'] X-Sakura-Encode-Microtime: ['637'] X-Sakura-Proxy-Decode-Microtime: ['154'] X-Sakura-Proxy-Microtime: ['1891437'] X-Sakura-Serial: [38ddd4e720396a50cd93564d9196b8f5] X-XSS-Protection: [1; mode=block] content-length: ['1487'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"31843a6f0a7bbfefd9158cca7cb98570","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/594be64dab1bd6d61b32dc147c52838e"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:42 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1472'] X-Sakura-Encode-Microtime: ['618'] X-Sakura-Proxy-Decode-Microtime: ['166'] X-Sakura-Proxy-Microtime: ['60578'] X-Sakura-Serial: [594be64dab1bd6d61b32dc147c52838e] X-XSS-Protection: [1; mode=block] content-length: ['1472'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.nameonly.test", "Type": "TXT", "RData": "updated", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['973'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600}]}},"SettingsHash":"637a9c86a5eca4c7bb2d69ed6a77e43c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/2a198fa9b77640c3ad2391dfb8490c03"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:44 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1480'] X-Sakura-Encode-Microtime: ['718'] X-Sakura-Proxy-Decode-Microtime: ['145'] X-Sakura-Proxy-Microtime: ['1793432'] X-Sakura-Serial: [2a198fa9b77640c3ad2391dfb8490c03] X-XSS-Protection: [1; mode=block] content-length: ['1480'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000432571325606366700464400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600}]}},"SettingsHash":"637a9c86a5eca4c7bb2d69ed6a77e43c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/557c9216c6d261d997baf1beacd5dbca"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:45 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1507'] X-Sakura-Encode-Microtime: ['416'] X-Sakura-Proxy-Decode-Microtime: ['82'] X-Sakura-Proxy-Microtime: ['58511'] X-Sakura-Serial: [557c9216c6d261d997baf1beacd5dbca] X-XSS-Protection: [1; mode=block] content-length: ['1507'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600}]}},"SettingsHash":"637a9c86a5eca4c7bb2d69ed6a77e43c","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/06ef481bc0fbdaba4b96aeba4aecff1a"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:45 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1465'] X-Sakura-Encode-Microtime: ['591'] X-Sakura-Proxy-Decode-Microtime: ['161'] X-Sakura-Proxy-Microtime: ['56300'] X-Sakura-Serial: [06ef481bc0fbdaba4b96aeba4aecff1a] X-XSS-Protection: [1; mode=block] content-length: ['1465'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.nameonly.test", "Type": "TXT", "RData": "updated", "TTL": 3600}, {"Name": "orig.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1055'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"f3034fa1a8d6f0c66283a0b208aadd40","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/4f2a555ea2c3092b258b6200582c4622"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:47 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1554'] X-Sakura-Encode-Microtime: ['342'] X-Sakura-Proxy-Decode-Microtime: ['82'] X-Sakura-Proxy-Microtime: ['1684847'] X-Sakura-Serial: [4f2a555ea2c3092b258b6200582c4622] X-XSS-Protection: [1; mode=block] content-length: ['1554'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"f3034fa1a8d6f0c66283a0b208aadd40","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/629753ba4e0d389e4758ede29ea88f8a"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:47 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1539'] X-Sakura-Encode-Microtime: ['773'] X-Sakura-Proxy-Decode-Microtime: ['161'] X-Sakura-Proxy-Microtime: ['58742'] X-Sakura-Serial: [629753ba4e0d389e4758ede29ea88f8a] X-XSS-Protection: [1; mode=block] content-length: ['1539'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"f3034fa1a8d6f0c66283a0b208aadd40","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/6fa26c1e9911e3ff9bc008e7d85d8463"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:47 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1539'] X-Sakura-Encode-Microtime: ['609'] X-Sakura-Proxy-Decode-Microtime: ['132'] X-Sakura-Proxy-Microtime: ['57364'] X-Sakura-Serial: [6fa26c1e9911e3ff9bc008e7d85d8463] X-XSS-Protection: [1; mode=block] content-length: ['1539'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.nameonly.test", "Type": "TXT", "RData": "updated", "TTL": 3600}, {"Name": "orig.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1140'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"12383d069f2d7b45a1cecdfa6ccb46a4","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/0abab1bb5fa7781d4ae26a7e9d324d30"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:49 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1631'] X-Sakura-Encode-Microtime: ['742'] X-Sakura-Proxy-Decode-Microtime: ['184'] X-Sakura-Proxy-Microtime: ['1788931'] X-Sakura-Serial: [0abab1bb5fa7781d4ae26a7e9d324d30] X-XSS-Protection: [1; mode=block] content-length: ['1631'] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000456341325606366700464530ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/sakuracloud/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem?%7B%22Filter%22:%20%7B%22Provider.Class%22:%20%22dns%22,%20%22Name%22:%20%22example.com%22%7D%7D response: body: {string: '{"From":0,"Count":1,"Total":1,"CommonServiceItems":[{"Index":0,"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"12383d069f2d7b45a1cecdfa6ccb46a4","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]}],"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/671b6fe8c72583a2d0ee8bf24b8facf2"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:50 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1658'] X-Sakura-Encode-Microtime: ['707'] X-Sakura-Proxy-Decode-Microtime: ['152'] X-Sakura-Proxy-Microtime: ['59777'] X-Sakura-Serial: [671b6fe8c72583a2d0ee8bf24b8facf2] X-XSS-Protection: [1; mode=block] content-length: ['1658'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"12383d069f2d7b45a1cecdfa6ccb46a4","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/37a75e03e08bae52606e3a0273fc1197"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:50 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1616'] X-Sakura-Encode-Microtime: ['317'] X-Sakura-Proxy-Decode-Microtime: ['63'] X-Sakura-Proxy-Microtime: ['63269'] X-Sakura-Serial: [37a75e03e08bae52606e3a0273fc1197] X-XSS-Protection: [1; mode=block] content-length: ['1616'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.nameonly.test", "Type": "TXT", "RData": "updated", "TTL": 3600}, {"Name": "orig.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.testfull", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1222'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.testfull","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"bca17ea718da2d6d3372e831e5b6e704","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/5617cabac6e84dc5f401e05cf27bef3c"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:52 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1705'] X-Sakura-Encode-Microtime: ['355'] X-Sakura-Proxy-Decode-Microtime: ['96'] X-Sakura-Proxy-Microtime: ['1650734'] X-Sakura-Serial: [5617cabac6e84dc5f401e05cf27bef3c] X-XSS-Protection: [1; mode=block] content-length: ['1705'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.testfull","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"bca17ea718da2d6d3372e831e5b6e704","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/3dc7e6e7a0524cbda1890bb8c31b78e2"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:52 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1690'] X-Sakura-Encode-Microtime: ['368'] X-Sakura-Proxy-Decode-Microtime: ['82'] X-Sakura-Proxy-Microtime: ['59735'] X-Sakura-Serial: [3dc7e6e7a0524cbda1890bb8c31b78e2] X-XSS-Protection: [1; mode=block] content-length: ['1690'] status: {code: 200, message: OK} - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.testfull","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"bca17ea718da2d6d3372e831e5b6e704","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/cb92ee80ad8f8ba7cbc690f0dc5bc6f3"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:52 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1690'] X-Sakura-Encode-Microtime: ['357'] X-Sakura-Proxy-Decode-Microtime: ['87'] X-Sakura-Proxy-Microtime: ['58847'] X-Sakura-Serial: [cb92ee80ad8f8ba7cbc690f0dc5bc6f3] X-XSS-Protection: [1; mode=block] content-length: ['1690'] status: {code: 200, message: OK} - request: body: '{"CommonServiceItem": {"Settings": {"DNS": {"ResourceRecordSets": [{"Name": "localhost", "Type": "A", "RData": "127.0.0.1", "TTL": 3600}, {"Name": "_acme-challenge.fqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.full", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "_acme-challenge.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "ttl.fqdn", "Type": "TXT", "RData": "ttlshouldbe3600", "TTL": 3600}, {"Name": "random.fqdntest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.fulltest", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "random.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.test", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.nameonly.test", "Type": "TXT", "RData": "updated", "TTL": 3600}, {"Name": "orig.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.testfqdn", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "orig.testfull", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}, {"Name": "updated.testfull", "Type": "TXT", "RData": "challengetoken", "TTL": 3600}]}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['1307'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: PUT uri: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/112901284755 response: body: {string: '{"CommonServiceItem":{"ID":"112901284755","Name":"example.com","Description":"","Settings":{"DNS":{"ResourceRecordSets":[{"Name":"localhost","Type":"A","RData":"127.0.0.1","TTL":3600},{"Name":"_acme-challenge.fqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.full","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"_acme-challenge.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"ttl.fqdn","Type":"TXT","RData":"ttlshouldbe3600","TTL":3600},{"Name":"random.fqdntest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.fulltest","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"random.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.test","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.nameonly.test","Type":"TXT","RData":"updated","TTL":3600},{"Name":"orig.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfqdn","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"orig.testfull","Type":"TXT","RData":"challengetoken","TTL":3600},{"Name":"updated.testfull","Type":"TXT","RData":"challengetoken","TTL":3600}]}},"SettingsHash":"c76f002e712aa665d78a4f4fccb6a387","Status":{"Zone":"example.com","NS":["ns1.gslb4.sakura.ne.jp","ns2.gslb4.sakura.ne.jp"]},"ServiceClass":"cloud\/dns","Availability":"available","CreatedAt":"2017-10-12T12:23:40+09:00","ModifiedAt":"2017-10-12T12:23:40+09:00","Provider":{"ID":2000002,"Class":"dns","Name":"gslb4.sakura.ne.jp","ServiceClass":"cloud\/dns"},"Icon":null,"Tags":[]},"Success":true,"is_ok":true,"_log_url":"http:\/\/is1a-so.cloud.alpha.sakura.ad.jp\/apilog\/#!\/6f9179ceaf5f82fbcb250eb46600783a"}'} headers: Cache-Control: [no-cache] Connection: [keep-alive] Content-Type: [application/json; charset=UTF-8] Date: ['Mon, 05 Mar 2018 06:23:54 GMT'] Pragma: [no-cache] Server: [nginx] Status: [200 OK] Vary: [Accept-Encoding] X-Content-Type-Options: [nosniff] X-FRAME-OPTIONS: [DENY] X-Sakura-Content-Length: ['1782'] X-Sakura-Encode-Microtime: ['391'] X-Sakura-Proxy-Decode-Microtime: ['89'] X-Sakura-Proxy-Microtime: ['1818636'] X-Sakura-Serial: [6f9179ceaf5f82fbcb250eb46600783a] X-XSS-Protection: [1; mode=block] content-length: ['1782'] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/softlayer/000077500000000000000000000000001325606366700222145ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTests/000077500000000000000000000000001325606366700255225ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000053061325606366700340010ustar00rootroot00000000000000interactions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071502\n \ \n \n \n updateDate\n \ \n 2017-07-16T03:06:20-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:10 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000041061325606366700426710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= thisisadomainidonotown.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['870'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:10 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000233341325606366700454540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071502\n \ \n \n \n updateDate\n \ \n 2017-07-16T03:06:20-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:10 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= 127.0.0.1 host operation _= localhost type operation _= a SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1601'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:11 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data 127.0.0.1 host localhost domainId 2140781 type A ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['949'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n 127.0.0.1\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n localhost\n \n \n \ \n id\n \n 80479063\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n A\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071503\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:11-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1761'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:11 GMT'] ntcoent-length: ['1761'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000233561325606366700461230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071503\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:11-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:12 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= docs.example.com host operation _= docs type operation _= cname SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1607'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:12 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data docs.example.com host docs domainId 2140781 type CNAME ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['955'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n docs.example.com\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n docs\n \n \n \n \ id\n \n 80479065\n \n \ \n \n minimum\n \n \n \ \n \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n CNAME\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071504\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:13-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1767'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:13 GMT'] ntcoent-length: ['1767'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000234221325606366700456020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071504\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:13-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:13 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= _acme-challenge.fqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1619'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:13 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host _acme-challenge.fqdn domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['967'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n _acme-challenge.fqdn\n \n \n \ \n id\n \n 80479067\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071505\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:14-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1779'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:14 GMT'] ntcoent-length: ['1779'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000234221325606366700456140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071505\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:14-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:15 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= _acme-challenge.full type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1619'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:15 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host _acme-challenge.full domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['967'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n _acme-challenge.full\n \n \n \ \n id\n \n 80479069\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071506\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:15-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1779'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:15 GMT'] ntcoent-length: ['1779'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000234221325606366700457510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071506\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:15-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:16 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= _acme-challenge.test type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1619'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:16 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host _acme-challenge.test domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['967'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n _acme-challenge.test\n \n \n \ \n id\n \n 80479071\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071507\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:17-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1779'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:17 GMT'] ntcoent-length: ['1779'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000455771325606366700451240ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071507\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:17-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:17 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= delete.testfilt type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:17 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host delete.testfilt domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['962'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n delete.testfilt\n \n \n \ \n id\n \n 80479073\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071508\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:18-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1774'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:18 GMT'] ntcoent-length: ['1774'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= delete.testfilt type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n delete.testfilt\n \n \ \n \n id\n \n \ 80479073\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1442'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:18 GMT'] ntcoent-length: ['1442'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' deleteObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479073 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['713'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:19 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= delete.testfilt type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1451'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:19 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000455771325606366700501670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071509\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:19-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:19 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= delete.testfqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:20 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host delete.testfqdn domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['962'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n delete.testfqdn\n \n \n \ \n id\n \n 80479075\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071510\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:20-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1774'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:20 GMT'] ntcoent-length: ['1774'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= delete.testfqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n delete.testfqdn\n \n \ \n \n id\n \n \ 80479075\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1442'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:21 GMT'] ntcoent-length: ['1442'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' deleteObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479075 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['713'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:21 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= delete.testfqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1451'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:21 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000455771325606366700502010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071511\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:21-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:22 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= delete.testfull type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:22 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host delete.testfull domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['962'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n delete.testfull\n \n \n \ \n id\n \n 80479077\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071512\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:23-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1774'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:23 GMT'] ntcoent-length: ['1774'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= delete.testfull type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n delete.testfull\n \n \ \n \n id\n \n \ 80479077\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1442'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:23 GMT'] ntcoent-length: ['1442'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' deleteObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479077 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['713'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:23 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= delete.testfull type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1451'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:24 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000452211325606366700457430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071513\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:24-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:25 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= delete.testid type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1612'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:26 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host delete.testid domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['960'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n delete.testid\n \n \n \ \n id\n \n 80479079\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071514\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:26-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1772'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:26 GMT'] ntcoent-length: ['1772'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= delete.testid type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1449'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n delete.testid\n \n \ \n \n id\n \n \ 80479079\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1440'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:27 GMT'] ntcoent-length: ['1440'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' deleteObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479079 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['713'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:27 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= delete.testid type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1449'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:28 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000340351325606366700422540ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071515\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:27-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:28 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= ttlshouldbe3600 host operation _= ttl.fqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1608'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:28 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data ttlshouldbe3600 host ttl.fqdn domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['956'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n ttlshouldbe3600\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n ttl.fqdn\n \n \n \ \n id\n \n 80479081\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071516\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:29-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1768'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:29 GMT'] ntcoent-length: ['1768'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= ttl.fqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1444'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n ttlshouldbe3600\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n ttl.fqdn\n \n \n \ \n id\n \n 80479081\n \ \n \n \n minimum\n \ \n \n \n \n \n \ mxPriority\n \n \n \n \ \n \n refresh\n \n \ \n \n \n \n retry\n \ \n \n \n \n \n \ ttl\n \n 3600\n \n \ \n \n type\n \n \ txt\n \n \n \n \ \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1436'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:29 GMT'] ntcoent-length: ['1436'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000340741325606366700474010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071516\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:29-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:30 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= random.fqdntest type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:30 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host random.fqdntest domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['962'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n random.fqdntest\n \n \n \ \n id\n \n 80479083\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071517\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:31-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1774'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:31 GMT'] ntcoent-length: ['1774'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= random.fqdntest type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1451'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n random.fqdntest\n \n \ \n \n id\n \n \ 80479083\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1442'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:31 GMT'] ntcoent-length: ['1442'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000340741325606366700474130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071517\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:31-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:31 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= random.fulltest type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1614'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:32 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host random.fulltest domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['962'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n random.fulltest\n \n \n \ \n id\n \n 80479085\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071518\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:32-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1774'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:32 GMT'] ntcoent-length: ['1774'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= random.fulltest type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1451'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n random.fulltest\n \n \ \n \n id\n \n \ 80479085\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1442'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:33 GMT'] ntcoent-length: ['1442'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000340501325606366700463630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071518\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:32-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:33 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= random.test type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1610'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:33 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host random.test domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['958'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n random.test\n \n \n \ \n id\n \n 80479087\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071519\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:34-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1770'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:34 GMT'] ntcoent-length: ['1770'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= random.test type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1447'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n random.test\n \n \n \ \n id\n \n 80479087\n \ \n \n \n minimum\n \ \n \n \n \n \n \ mxPriority\n \n \n \n \ \n \n refresh\n \n \ \n \n \n \n retry\n \ \n \n \n \n \n \ ttl\n \n 3600\n \n \ \n \n type\n \n \ txt\n \n \n \n \ \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1438'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:34 GMT'] ntcoent-length: ['1438'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000776011325606366700455360ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071519\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:34-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:35 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1053'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n random.fqdntest\n \n \ \n \n id\n \n \ 80479083\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \ \n data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n random.fulltest\n \n \ \n \n id\n \n \ 80479085\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \ \n data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n random.test\n \n \n \ \n id\n \n 80479087\n \ \n \n \n minimum\n \ \n \n \n \n \n \ mxPriority\n \n \n \n \ \n \n refresh\n \n \ \n \n \n \n retry\n \ \n \n \n \n \n \ ttl\n \n 3600\n \n \ \n \n type\n \n \ txt\n \n \n \n \ \n \n \n \n data\n \ \n ttlshouldbe3600\n \n \ \n \n domainId\n \n \ 2140781\n \n \n \n \ expire\n \n \n \n \ \n \n host\n \n \ ttl.fqdn\n \n \n \n \ id\n \n 80479081\n \n \ \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 3600\n \n \n \ \n type\n \n txt\n \ \n \n \n \n \n \ \n \n data\n \n \ challengetoken\n \n \n \ \n domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n _acme-challenge.fqdn\n \ \n \n \n id\n \ \n 80479067\n \n \n \ \n minimum\n \n \n \ \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 3600\n \n \n \ \n type\n \n txt\n \ \n \n \n \n \n \ \n \n data\n \n \ challengetoken\n \n \n \ \n domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n _acme-challenge.full\n \ \n \n \n id\n \ \n 80479069\n \n \n \ \n minimum\n \n \n \ \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 3600\n \n \n \ \n type\n \n txt\n \ \n \n \n \n \n \ \n \n data\n \n \ challengetoken\n \n \n \ \n domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n _acme-challenge.test\n \ \n \n \n id\n \ \n 80479071\n \n \n \ \n minimum\n \n \n \ \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 3600\n \n \n \ \n type\n \n txt\n \ \n \n \n \n \n \ \n \n data\n \n \ ns1.softlayer.com.\n \n \n \ \n domainId\n \n 2140781\n \ \n \n \n expire\n \ \n 1728000\n \n \n \ \n host\n \n @\n \ \n \n \n id\n \ \n 80478913\n \n \n \ \n minimum\n \n 43200\n \ \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n 7200\n \n \ \n \n responsiblePerson\n \n \ support.softlayer.com.\n \n \n \ \n retry\n \n 600\n \ \n \n \n ttl\n \ \n 86400\n \n \n \ \n type\n \n soa\n \ \n \n \n \n \n \ \n \n data\n \n \ ns1.softlayer.com.\n \n \n \ \n domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n @\n \n \ \n \n id\n \n \ 80478915\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 86400\n \n \n \n \ type\n \n ns\n \n \ \n \n \n \n \n \ \n data\n \n ns2.softlayer.com.\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n @\n \n \n \ \n id\n \n 80478917\n \ \n \n \n minimum\n \ \n \n \n \n \n \ mxPriority\n \n \n \n \ \n \n refresh\n \n \ \n \n \n \n retry\n \ \n \n \n \n \n \ ttl\n \n 86400\n \n \ \n \n type\n \n \ ns\n \n \n \n \ \n \n \n \n data\n \ \n mail.example.com.\n \n \ \n \n domainId\n \n \ 2140781\n \n \n \n \ expire\n \n \n \n \ \n \n host\n \n \ @\n \n \n \n \ id\n \n 80478927\n \n \ \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n 10\n \n \n \ \n refresh\n \n \n \ \n \n \n retry\n \ \n \n \n \n \n \ ttl\n \n 86400\n \n \ \n \n type\n \n \ mx\n \n \n \n \ \n \n \n \n data\n \ \n docs.example.com\n \n \ \n \n domainId\n \n \ 2140781\n \n \n \n \ expire\n \n \n \n \ \n \n host\n \n \ docs\n \n \n \n \ id\n \n 80479065\n \n \ \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 3600\n \n \n \ \n type\n \n cname\n \ \n \n \n \n \n \ \n \n data\n \n \ 127.0.0.1\n \n \n \n \ domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n @\n \n \ \n \n id\n \n \ 80478911\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 86400\n \n \n \n \ type\n \n a\n \n \ \n \n \n \n \n \ \n data\n \n 127.0.0.1\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n ftp\n \n \n \ \n id\n \n 80478925\n \ \n \n \n minimum\n \ \n \n \n \n \n \ mxPriority\n \n \n \n \ \n \n refresh\n \n \ \n \n \n \n retry\n \ \n \n \n \n \n \ ttl\n \n 86400\n \n \ \n \n type\n \n \ a\n \n \n \n \ \n \n \n \n data\n \ \n 127.0.0.1\n \n \n \ \n domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n localhost\n \ \n \n \n id\n \ \n 80479063\n \n \n \ \n minimum\n \n \n \ \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 3600\n \n \n \ \n type\n \n a\n \ \n \n \n \n \n \ \n \n data\n \n \ 127.0.0.1\n \n \n \n \ domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n mail\n \ \n \n \n id\n \ \n 80478919\n \n \n \ \n minimum\n \n \n \ \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 86400\n \n \n \ \n type\n \n a\n \ \n \n \n \n \n \ \n \n data\n \n \ 127.0.0.1\n \n \n \n \ domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n webmail\n \ \n \n \n id\n \ \n 80478921\n \n \n \ \n minimum\n \n \n \ \n \n \n mxPriority\n \ \n \n \n \n \n \ refresh\n \n \n \n \ \n \n retry\n \n \ \n \n \n \n ttl\n \ \n 86400\n \n \n \ \n type\n \n a\n \ \n \n \n \n \n \ \n \n data\n \n \ 127.0.0.1\n \n \n \n \ domainId\n \n 2140781\n \ \n \n \n expire\n \ \n \n \n \n \n \ host\n \n www\n \n \ \n \n id\n \n \ 80478923\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 86400\n \n \n \n \ type\n \n a\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['23682'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:35 GMT'] server: [Apache] softlayer-total-items: ['18'] transfer-encoding: [chunked] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000406361325606366700430660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071519\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:34-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:36 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= orig.test type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1608'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:36 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host orig.test domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['956'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n orig.test\n \n \n \ \n id\n \n 80479089\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071520\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:37-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1768'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:36 GMT'] ntcoent-length: ['1768'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= orig.test type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1445'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n orig.test\n \n \n \ \n id\n \n 80479089\n \ \n \n \n minimum\n \ \n \n \n \n \n \ mxPriority\n \n \n \n \ \n \n refresh\n \n \ \n \n \n \n retry\n \ \n \n \n \n \n \ ttl\n \n 3600\n \n \ \n \n type\n \n \ txt\n \n \n \n \ \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1436'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:37 GMT'] ntcoent-length: ['1436'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' editObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479089 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host updated.test type TXT id 80479089 ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1138'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:37 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml000066400000000000000000000407121325606366700460740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071521\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:37-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:38 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= orig.nameonly.test type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1617'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:38 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host orig.nameonly.test domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['965'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n orig.nameonly.test\n \n \n \ \n id\n \n 80479091\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071522\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:39-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1777'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:39 GMT'] ntcoent-length: ['1777'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= orig.nameonly.test type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1454'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n orig.nameonly.test\n \n \ \n \n id\n \n \ 80479091\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1445'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:39 GMT'] ntcoent-length: ['1445'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' editObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479091 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data updated host orig.nameonly.test type TXT id 80479091 ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1137'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:39 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000406661325606366700461340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071523\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:40-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:40 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= orig.testfqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1612'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:40 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host orig.testfqdn domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['960'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n orig.testfqdn\n \n \n \ \n id\n \n 80479093\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071524\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:41-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1772'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:41 GMT'] ntcoent-length: ['1772'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= orig.testfqdn type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1449'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n orig.testfqdn\n \n \ \n \n id\n \n \ 80479093\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1440'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:41 GMT'] ntcoent-length: ['1440'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' editObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479093 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host updated.testfqdn type TXT id 80479093 ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1142'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:42 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000406661325606366700461460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/softlayer/IntegrationTestsinteractions: - request: body: !!python/unicode ' getDomains headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_AccountObjectFilter domains name operation _= example.com ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['856'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Account response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ id\n \n 2140781\n \n \ \n \n name\n \n \ example.com\n \n \n \ \n serial\n \n 2017071525\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:42-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['690'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:42 GMT'] ntcoent-length: ['690'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords data operation _= challengetoken host operation _= orig.testfull type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1612'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['126'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:43 GMT'] ntcoent-length: ['126'] server: [Apache] softlayer-total-items: ['0'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' createObject headers authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host orig.testfull domainId 2140781 type TXT ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['960'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n \n \n data\n \n challengetoken\n \ \n \n \n domainId\n \n \ 2140781\n \n \n \n expire\n \ \n \n \n \n \n host\n \ \n orig.testfull\n \n \n \ \n id\n \n 80479095\n \ \n \n \n minimum\n \n \ \n \n \n \n mxPriority\n \ \n \n \n \n \n refresh\n \ \n \n \n \n \n retry\n \ \n \n \n \n \n ttl\n \ \n 3600\n \n \n \n \ type\n \n TXT\n \n \ \n \n domain\n \n \n \ \n id\n \n 2140781\n \ \n \n \n name\n \ \n example.com\n \n \n \ \n serial\n \n 2017071526\n \ \n \n \n updateDate\n \ \n 2017-07-15T22:18:43-05:00\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1772'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:43 GMT'] ntcoent-length: ['1772'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' getResourceRecords headers SoftLayer_Dns_DomainInitParameters id 2140781 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key SoftLayer_Dns_DomainObjectFilter resourceRecords host operation _= orig.testfull type operation _= txt SoftLayer_ObjectMask mask mask[id,expire,domainId,host,minimum,refresh,retry,mxPriority,ttl,type,data,responsiblePerson] ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1449'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain response: body: {string: !!python/unicode "\n\n\n \n \n \n \n \n \n \ data\n \n challengetoken\n \ \n \n \n domainId\n \ \n 2140781\n \n \n \ \n expire\n \n \n \ \n \n \n host\n \ \n orig.testfull\n \n \ \n \n id\n \n \ 80479095\n \n \n \n \ minimum\n \n \n \n \ \n \n mxPriority\n \n \ \n \n \n \n refresh\n \ \n \n \n \n \n \ retry\n \n \n \n \ \n \n ttl\n \n \ 3600\n \n \n \n \ type\n \n txt\n \n \ \n \n \n \n \n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['1440'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:44 GMT'] ntcoent-length: ['1440'] server: [Apache] softlayer-total-items: ['1'] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode ' editObject headers SoftLayer_Dns_Domain_ResourceRecordInitParameters id 80479095 authenticate username placeholder_auth_username apiKey placeholder_auth_api_key data challengetoken host updated.testfull type TXT id 80479095 ttl 3600 ' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate, compress'] Connection: [keep-alive] Content-Length: ['1142'] Content-Type: [application/xml] User-Agent: [softlayer-python/v4.1.1] method: POST uri: https://api.softlayer.com/xmlrpc/v3.1/SoftLayer_Dns_Domain_ResourceRecord response: body: {string: !!python/unicode "\n\n\n \n 1\n \n\n\n"} headers: cache-control: [private] connection: [close] content-length: ['117'] content-type: [text/xml] date: ['Sun, 16 Jul 2017 03:18:44 GMT'] ntcoent-length: ['117'] server: [Apache] vary: [Accept-Encoding] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/transip/000077500000000000000000000000001325606366700216645ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests/000077500000000000000000000000001325606366700251725ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests/test_Provider_authenticate.json000066400000000000000000001055601325606366700334630ustar00rootroot00000000000000{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:06 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "4630" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:06 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Eurohttp://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 } test_Provider_authenticate_with_unmanaged_domain_should_fail.json000066400000000000000000001022121325606366700423450ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:06 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "647" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "thisisadomainidonotown.com", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "294" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:06 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n102One or more domains could not be found.\n" }, "status": { "code": 500, "message": "Internal Service Error" } } } ], "version": 1 }test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.json000066400000000000000000001372001325606366700451310ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:07 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "4630" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:07 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "4630" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:07 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "1140" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1localhost86400A127.0.0.1", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:08 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "4838" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:08 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1localhost86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.json000066400000000000000000001627351325606366700456070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:09 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "4838" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:09 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1localhost86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "4838" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:11 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1localhost86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "1355" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1localhost86400A127.0.0.1docs86400CNAMEdocs.example.com.", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:12 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5053" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:14 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5053" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:15 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "1570" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1docs86400CNAMEdocs.example.com.", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "538" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:17 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n302A CNAME's name must be unique, there cannot exist other records with the same name according to RFC 1035.: docs 86400 CNAME docs.example.com.\nA CNAME's name must be unique, there cannot exist other records with the same name according to RFC 1035.: docs 86400 CNAME docs.example.com.\n" }, "status": { "code": 500, "message": "Internal Service Error" } } } ], "version": 1 }test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.json000066400000000000000000001426201325606366700452630ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:18 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5053" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:19 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5053" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:20 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1TransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "1581" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:22 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5279" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:23 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.json000066400000000000000000001445001325606366700452740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:25 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5279" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:25 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5279" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:27 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "1807" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:28 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5505" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:29 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.json000066400000000000000000001463601325606366700454370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:31 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5505" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:31 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5505" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:33 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2033" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:34 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:37 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_delete_record_by_filter_should_remove_record.json000066400000000000000000002233531325606366700445710ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:38 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:38 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:40 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2254" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokendelete.testfilt86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:42 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5952" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:43 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1delete.testfilt86400TXTchallengetokendocs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5952" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:45 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1delete.testfilt86400TXTchallengetokendocs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2033" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:46 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:48 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:50 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.json000066400000000000000000002233531325606366700476340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:51 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:52 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:53 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2254" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokendelete.testfqdn86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:55 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5952" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:56 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1delete.testfqdn86400TXTchallengetokendocs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5952" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:58 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1delete.testfqdn86400TXTchallengetokendocs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2033" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:20:59 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:01 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:03 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.json000066400000000000000000002233531325606366700476460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:04 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:04 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:06 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2254" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokendelete.testfull86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:07 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5952" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:09 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1delete.testfull86400TXTchallengetokendocs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5952" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:11 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1delete.testfull86400TXTchallengetokendocs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2033" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:12 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:14 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:15 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_list_records_after_setting_ttl.json000066400000000000000000001640401325606366700417330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:17 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:17 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5731" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:19 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2247" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:20 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5945" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:22 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1ttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5945" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:23 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1ttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.json000066400000000000000000001662251325606366700470640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:25 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5945" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:25 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1ttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "5945" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:26 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1ttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2468" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1ttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:28 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6166" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:30 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6166" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:31 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.json000066400000000000000000001704301325606366700470670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:33 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6166" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:33 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6166" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:35 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2689" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenrandom.fulltest86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:36 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6387" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:38 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6387" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:39 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_list_records_with_name_filter_should_return_record.json000066400000000000000000001726221325606366700460520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:40 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6387" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:41 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6387" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:42 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "2907" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenrandom.test86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:43 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6605" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:45 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6605" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:47 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_list_records_with_no_arguments_should_list_all.json000066400000000000000000001267561325606366700452230ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:48 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6605" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:48 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6605" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:50 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_update_record_should_modify_record.json000066400000000000000000002437241325606366700425500ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:51 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6605" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:51 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6605" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:53 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "3122" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1random.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenorig.test86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:55 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6820" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:56 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6820" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:58 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "6820" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:21:59 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "3340" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenupdated.test86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:01 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7038" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:03 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.json000066400000000000000000002530341325606366700456060ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:04 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7038" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:04 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7038" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:06 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "3559" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:08 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7257" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:09 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7257" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:11 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7257" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:13 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "3781" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:14 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7479" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:16 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }test_Provider_when_calling_update_record_with_full_name_should_modify_record.json000066400000000000000000002622041325606366700456170ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/transip/IntegrationTests{ "interactions": [ { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Connection": [ "keep-alive" ], "Accept-Encoding": [ "gzip, deflate" ] }, "body": null, "uri": "https://api.transip.nl/wsdl/?service=DomainService", "method": "GET" }, "response": { "headers": { "content-length": [ "27685" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:18 GMT" ], "content-type": [ "text/xml" ] }, "body": { "string": "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7479" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:19 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7479" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:20 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "4000" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenorig.testfull86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:22 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7698" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:23 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenorig.testfull86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7698" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:25 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenorig.testfull86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7698" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:26 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenorig.testfull86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "4222" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#setDnsEntries\"" ] }, "body": "hurrdurr.nl@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenorig.testfull86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenupdated.testfull86400TXTchallengetoken", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "407" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:28 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\n\n" }, "status": { "code": 200, "message": "OK" } } }, { "request": { "headers": { "User-Agent": [ "python-requests/2.11.1" ], "Accept": [ "*/*" ], "Accept-Encoding": [ "gzip, deflate" ], "Content-Length": [ "632" ], "Content-Type": [ "text/xml; charset=utf-8" ], "Connection": [ "keep-alive" ], "SOAPAction": [ "\"urn:DomainService#DomainServiceServer#getInfo\"" ] }, "body": "hurrdurr.nl", "uri": "https://api.transip.nl/soap/?service=DomainService", "method": "POST" }, "response": { "headers": { "content-length": [ "7920" ], "server": [ "Apache" ], "vary": [ "Accept-Encoding" ], "transfer-encoding": [ "chunked" ], "date": [ "Tue, 11 Oct 2016 13:22:30 GMT" ], "content-type": [ "text/xml; charset=utf-8" ] }, "body": { "string": "\nhurrdurr.nlns0.transip.netns1.transip.nlns2.transip.eu@86400A127.0.0.1docs86400CNAMEdocs.example.com.localhost86400A127.0.0.1orig.test86400TXTchallengetokenorig.testfqdn86400TXTchallengetokenorig.testfull86400TXTchallengetokenrandom.fqdntest86400TXTchallengetokenrandom.fulltest86400TXTchallengetokenrandom.test86400TXTchallengetokenttl.fqdn3600TXTttlshouldbe3600updated.test86400TXTchallengetokenupdated.testfqdn86400TXTchallengetokenupdated.testfull86400TXTchallengetoken_acme-challenge.fqdn86400TXTchallengetoken_acme-challenge.full86400TXTchallengetoken_acme-challenge.test86400TXTchallengetokenTransIP BVsupport@transip.nlhttp://www.transip.nlTransIP BVReal-time domeinregistratie en -beheer vanaf 4.99 Euro!http://www.transip.nl/products/domain/false\n" }, "status": { "code": 200, "message": "OK" } } } ], "version": 1 }lexicon-2.2.1/tests/fixtures/cassettes/vultr/000077500000000000000000000000001325606366700213605ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTests/000077500000000000000000000000001325606366700246665ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000016251325606366700331450ustar00rootroot00000000000000interactions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Wed, 13 Apr 2016 23:22:33 GMT'] expires: ['Wed, 13 Apr 2016 23:22:32 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000016251325606366700420400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Wed, 13 Apr 2016 23:22:33 GMT'] expires: ['Wed, 13 Apr 2016 23:22:32 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000033051325606366700446140ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:15 GMT'] expires: ['Thu, 14 Apr 2016 00:09:14 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=127.0.0.1&domain=capsulecd.com&type=A&name=localhost headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:09:18 GMT'] expires: ['Thu, 14 Apr 2016 00:09:17 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000033131325606366700452560ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:16 GMT'] expires: ['Thu, 14 Apr 2016 00:09:15 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=docs.example.com&domain=capsulecd.com&type=CNAME&name=docs headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['74'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:09:19 GMT'] expires: ['Thu, 14 Apr 2016 00:09:18 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000033351325606366700447470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:05:25 GMT'] expires: ['Thu, 14 Apr 2016 00:05:24 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=_acme-challenge.fqdn headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:05:28 GMT'] expires: ['Thu, 14 Apr 2016 00:05:27 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000033351325606366700447610ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:05:25 GMT'] expires: ['Thu, 14 Apr 2016 00:05:24 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=_acme-challenge.full headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:05:29 GMT'] expires: ['Thu, 14 Apr 2016 00:05:28 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000033351325606366700451160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:05:25 GMT'] expires: ['Thu, 14 Apr 2016 00:05:24 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=_acme-challenge.test headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:05:30 GMT'] expires: ['Thu, 14 Apr 2016 00:05:29 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000141741325606366700442550ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:25 GMT'] expires: ['Thu, 14 Apr 2016 00:26:24 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=delete.testfilt headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:29 GMT'] expires: ['Thu, 14 Apr 2016 00:26:28 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"delete.testfilt","data":"\"challengetoken\"","priority":0,"RECORDID":2051719},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['973'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:30 GMT'] expires: ['Thu, 14 Apr 2016 00:26:29 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: RECORDID=2051719&domain=capsulecd.com headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['37'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/delete_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:36 GMT'] expires: ['Thu, 14 Apr 2016 00:26:35 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"delete.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051720},{"type":"TXT","name":"delete.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051721},{"type":"TXT","name":"delete.testid","data":"\"challengetoken\"","priority":0,"RECORDID":2051722},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['1171'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:37 GMT'] expires: ['Thu, 14 Apr 2016 00:26:36 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000141751325606366700473210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:26 GMT'] expires: ['Thu, 14 Apr 2016 00:26:25 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=delete.testfqdn headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:30 GMT'] expires: ['Thu, 14 Apr 2016 00:26:29 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"delete.testfilt","data":"\"challengetoken\"","priority":0,"RECORDID":2051719},{"type":"TXT","name":"delete.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051720},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['1073'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:31 GMT'] expires: ['Thu, 14 Apr 2016 00:26:30 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: RECORDID=2051720&domain=capsulecd.com headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['37'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/delete_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:38 GMT'] expires: ['Thu, 14 Apr 2016 00:26:37 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"delete.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051721},{"type":"TXT","name":"delete.testid","data":"\"challengetoken\"","priority":0,"RECORDID":2051722},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['1071'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:38 GMT'] expires: ['Thu, 14 Apr 2016 00:26:37 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000141741325606366700473320ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:26 GMT'] expires: ['Thu, 14 Apr 2016 00:26:25 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=delete.testfull headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:32 GMT'] expires: ['Thu, 14 Apr 2016 00:26:31 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"delete.testfilt","data":"\"challengetoken\"","priority":0,"RECORDID":2051719},{"type":"TXT","name":"delete.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051720},{"type":"TXT","name":"delete.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051721},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['1173'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:32 GMT'] expires: ['Thu, 14 Apr 2016 00:26:31 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: RECORDID=2051721&domain=capsulecd.com headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['37'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/delete_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:39 GMT'] expires: ['Thu, 14 Apr 2016 00:26:38 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"delete.testid","data":"\"challengetoken\"","priority":0,"RECORDID":2051722},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['971'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:40 GMT'] expires: ['Thu, 14 Apr 2016 00:26:39 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000141721325606366700451100ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:27 GMT'] expires: ['Thu, 14 Apr 2016 00:26:26 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=delete.testid headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:33 GMT'] expires: ['Thu, 14 Apr 2016 00:26:32 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"delete.testfilt","data":"\"challengetoken\"","priority":0,"RECORDID":2051719},{"type":"TXT","name":"delete.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051720},{"type":"TXT","name":"delete.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051721},{"type":"TXT","name":"delete.testid","data":"\"challengetoken\"","priority":0,"RECORDID":2051722},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['1271'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:34 GMT'] expires: ['Thu, 14 Apr 2016 00:26:33 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: RECORDID=2051722&domain=capsulecd.com headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['37'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/delete_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:41 GMT'] expires: ['Thu, 14 Apr 2016 00:26:40 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['873'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:42 GMT'] expires: ['Thu, 14 Apr 2016 00:26:41 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000070211325606366700414130ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:23:16 GMT'] expires: ['Sat, 30 Jul 2016 21:23:15 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: domain=capsulecd.com&name=ttl.fqdn&type=TXT&priority=0&ttl=3600&data=%22ttlshouldbe3600%22 headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['90'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Sat, 30 Jul 2016 21:23:18 GMT'] expires: ['Sat, 30 Jul 2016 21:23:17 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670,"ttl":300},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671,"ttl":300},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680,"ttl":300},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681,"ttl":300},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682,"ttl":300},{"type":"TXT","name":"ttl.fqdn","data":"\"ttlshouldbe3600\"","priority":0,"RECORDID":2452603,"ttl":3600},{"type":"TXT","name":"updated.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716,"ttl":300},{"type":"TXT","name":"updated.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717,"ttl":300},{"type":"TXT","name":"updated.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718,"ttl":300},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668,"ttl":300}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['1068'] content-type: [application/json] date: ['Sat, 30 Jul 2016 21:23:19 GMT'] expires: ['Sat, 30 Jul 2016 21:23:18 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000055331325606366700465430ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:31 GMT'] expires: ['Thu, 14 Apr 2016 00:09:30 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=random.fqdntest headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:09:35 GMT'] expires: ['Thu, 14 Apr 2016 00:09:34 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['378'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:35 GMT'] expires: ['Thu, 14 Apr 2016 00:09:34 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000056771325606366700465660ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:32 GMT'] expires: ['Thu, 14 Apr 2016 00:09:31 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=random.fulltest headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['87'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:09:36 GMT'] expires: ['Thu, 14 Apr 2016 00:09:35 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['478'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:37 GMT'] expires: ['Thu, 14 Apr 2016 00:09:36 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000060331325606366700455270ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:32 GMT'] expires: ['Thu, 14 Apr 2016 00:09:31 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=random.test headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['83'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:09:38 GMT'] expires: ['Thu, 14 Apr 2016 00:09:37 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['574'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:39 GMT'] expires: ['Thu, 14 Apr 2016 00:09:38 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000041661325606366700446760ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:33 GMT'] expires: ['Thu, 14 Apr 2016 00:09:32 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['574'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:09:39 GMT'] expires: ['Thu, 14 Apr 2016 00:09:38 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000077341325606366700422340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:05 GMT'] expires: ['Thu, 14 Apr 2016 00:26:04 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=orig.test headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['81'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:08 GMT'] expires: ['Thu, 14 Apr 2016 00:26:07 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"orig.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['668'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:09 GMT'] expires: ['Thu, 14 Apr 2016 00:26:08 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: RECORDID=2051716&domain=capsulecd.com&data=%22challengetoken%22&name=updated.test&ttl=300 headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['89'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/update_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:14 GMT'] expires: ['Thu, 14 Apr 2016 00:26:13 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000101061325606366700452620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:06 GMT'] expires: ['Thu, 14 Apr 2016 00:26:05 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=orig.testfqdn headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:10 GMT'] expires: ['Thu, 14 Apr 2016 00:26:09 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"orig.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"orig.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['766'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:10 GMT'] expires: ['Thu, 14 Apr 2016 00:26:09 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: RECORDID=2051717&domain=capsulecd.com&data=%22challengetoken%22&name=updated.testfqdn&ttl=300 headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/update_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:15 GMT'] expires: ['Thu, 14 Apr 2016 00:26:14 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000102501325606366700452740ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/vultr/IntegrationTestsinteractions: - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/list response: body: {string: !!python/unicode '[{"domain":"capsulecd.com","date_created":"2016-04-13 19:03:44"}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['65'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:06 GMT'] expires: ['Thu, 14 Apr 2016 00:26:05 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: priority=0&data=%22challengetoken%22&domain=capsulecd.com&type=TXT&name=orig.testfull headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['85'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/create_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:11 GMT'] expires: ['Thu, 14 Apr 2016 00:26:10 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET uri: https://api.vultr.com/v1/dns/records?domain=capsulecd.com response: body: {string: !!python/unicode '[{"type":"A","name":"localhost","data":"127.0.0.1","priority":0,"RECORDID":2051670},{"type":"CNAME","name":"docs","data":"docs.example.com","priority":0,"RECORDID":2051671},{"type":"TXT","name":"orig.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051716},{"type":"TXT","name":"orig.testfqdn","data":"\"challengetoken\"","priority":0,"RECORDID":2051717},{"type":"TXT","name":"orig.testfull","data":"\"challengetoken\"","priority":0,"RECORDID":2051718},{"type":"TXT","name":"random.fqdntest","data":"\"challengetoken\"","priority":0,"RECORDID":2051680},{"type":"TXT","name":"random.fulltest","data":"\"challengetoken\"","priority":0,"RECORDID":2051681},{"type":"TXT","name":"random.test","data":"\"challengetoken\"","priority":0,"RECORDID":2051682},{"type":"TXT","name":"_acme-challenge.full","data":"\"challengetoken\"","priority":0,"RECORDID":2051668}]'} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['864'] content-type: [application/json] date: ['Thu, 14 Apr 2016 00:26:12 GMT'] expires: ['Thu, 14 Apr 2016 00:26:11 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} - request: body: RECORDID=2051718&domain=capsulecd.com&data=%22challengetoken%22&name=updated.testfull&ttl=300 headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['93'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: https://api.vultr.com/v1/dns/update_record response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] content-type: [text/html; charset=UTF-8] date: ['Thu, 14 Apr 2016 00:26:16 GMT'] expires: ['Thu, 14 Apr 2016 00:26:15 GMT'] server: [nginx] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [DENY] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/yandex/000077500000000000000000000000001325606366700214745ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTests/000077500000000000000000000000001325606366700250025ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000101731325606366700332570ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['2941'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:40:37 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000020431325606366700421470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=thisisadomainidonotown.com response: body: {string: !!python/unicode '{"domain": "thisisadomainidonotown.com", "success": "error", "error": "not_allowed"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['85'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:41:04 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000124621325606366700447340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['2941'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:43:30 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=A&subdomain=localhost&content=127.0.0.1&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['235'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:43:31 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000130071325606366700453730ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3121'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:44:52 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=CNAME&subdomain=docs&content=docs.example.com.&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['237'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:44:53 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000133631325606366700450650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3303'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:45:24 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.fqdn&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['264'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:45:26 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000137241325606366700451000ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3512'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:45:50 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.full&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['264'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:45:51 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000142751325606366700452370ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3721'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:45:52 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.test&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['264'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:45:53 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_multiple_times_should_create_record_set.yaml000066400000000000000000000165251325606366700462720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3526'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:13 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.createrecordset&content=challengetoken1&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['286'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:38:31 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.createrecordset&content=challengetoken2&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['286'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:15 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml000066400000000000000000000354221325606366700457260ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3988'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:16 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.noop&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['263'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:17 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.noop&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"domain": "capsulecd.com", "success": "error", "error": "record_exists"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['74'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:22 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.noop&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"domain": "capsulecd.com", "success": "error", "error": "record_exists"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['74'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:31 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535421, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535422, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4885'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:43:08 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000436531325606366700443750ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:08 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=delete.testfilt&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testfilt.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560213, "subdomain": "delete.testfilt", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['254'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:09 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testfilt.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560213, "subdomain": "delete.testfilt", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4129'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:10 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/del?domain=capsulecd.com&record_id=39560213 response: body: {string: !!python/unicode '{"record_id": 39560213, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['68'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:11 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:12 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000436531325606366700474400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:21 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=delete.testfqdn&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testfqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560225, "subdomain": "delete.testfqdn", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['254'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:22 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testfqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560225, "subdomain": "delete.testfqdn", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4129'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:22 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/del?domain=capsulecd.com&record_id=39560225 response: body: {string: !!python/unicode '{"record_id": 39560225, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['68'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:23 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:24 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000436531325606366700474520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:25 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=delete.testfull&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testfull.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560226, "subdomain": "delete.testfull", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['254'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:26 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testfull.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560226, "subdomain": "delete.testfull", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4129'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:27 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/del?domain=capsulecd.com&record_id=39560226 response: body: {string: !!python/unicode '{"record_id": 39560226, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['68'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:28 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:29 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000436411325606366700452270ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:30 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=delete.testid&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testid.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560227, "subdomain": "delete.testid", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['250'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:31 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "delete.testid.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560227, "subdomain": "delete.testid", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4125'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:32 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/del?domain=capsulecd.com&record_id=39560227 response: body: {string: !!python/unicode '{"record_id": 39560227, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['68'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:33 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['3930'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:46:35 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 7f2f7dd1aa722961e5617352bf34076ca80817c6.paxheader00006660000000000000000000000257132560636670020321xustar00rootroot00000000000000175 path=lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTests/test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml 7f2f7dd1aa722961e5617352bf34076ca80817c6.data000066400000000000000000000513141325606366700171570ustar00rootroot00000000000000interactions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4196'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:20 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.deleterecordinset&content=challengetoken1&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535408, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['290'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:21 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.deleterecordinset&content=challengetoken2&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['290'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:22 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535408, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4666'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:23 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/del?domain=capsulecd.com&record_id=48535408 response: body: {string: !!python/unicode '{"record_id": 48535408, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['68'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:24 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4431'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:25 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_with_record_set_name_remove_all.yaml000066400000000000000000000542761325606366700445210ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4431'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:26 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.deleterecordset&content=challengetoken1&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535410, "subdomain": "_acme-challenge.deleterecordset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['286'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:27 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.deleterecordset&content=challengetoken2&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535417, "subdomain": "_acme-challenge.deleterecordset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['286'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:26 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535410, "subdomain": "_acme-challenge.deleterecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535417, "subdomain": "_acme-challenge.deleterecordset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4893'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:29 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/del?domain=capsulecd.com&record_id=48535410 response: body: {string: !!python/unicode '{"record_id": 48535410, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['68'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:38:24 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/del?domain=capsulecd.com&record_id=48535417 response: body: {string: !!python/unicode '{"record_id": 48535417, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['68'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:29 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4431'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:32 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000320301325606366700415250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4519'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:53:37 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=ttl.fqdn&content=ttlshouldbe3600&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['240'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:53:38 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4704'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:53:39 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_should_handle_record_sets.yaml000066400000000000000000000347451325606366700432300ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4431'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:33 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.listrecordset&content=challengetoken1&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535421, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['282'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:34 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=_acme-challenge.listrecordset&content=challengetoken2&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535422, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['282'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:35 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535421, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535422, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4885'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:36 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000302061325606366700466520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4116'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:07 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=random.fqdntest&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['254'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:08 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4315'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:09 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000310641325606366700466670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4315'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:09 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=random.fulltest&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['254'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:10 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4514'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:11 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml000066400000000000000000000306171325606366700463400ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535421, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535422, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4885'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:38:31 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.18.4] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535403, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.createrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535404, "subdomain": "_acme-challenge.createrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.deleterecordinset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535409, "subdomain": "_acme-challenge.deleterecordinset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.donothing.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48488964, "subdomain": "_acme-challenge.donothing", "type": "TXT"}, {"content": "challengetoken1", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535421, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken2", "domain": "capsulecd.com", "fqdn": "_acme-challenge.listrecordset.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535422, "subdomain": "_acme-challenge.listrecordset", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.noop.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 48535405, "subdomain": "_acme-challenge.noop", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4885'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 20 Mar 2018 17:37:38 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000317261325606366700456520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4514'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:13 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=random.test&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['246'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:13 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4705'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:14 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000300051325606366700450010ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4705'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:15 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560245, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4705'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:47:16 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000353061325606366700423440ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4704'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:13 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=orig.test&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "orig.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560410, "subdomain": "orig.test", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['242'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:14 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "orig.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560410, "subdomain": "orig.test", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4891'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:15 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/edit?domain=capsulecd.com&record_id=39560410&type=TXT&subdomain=updated.test&content=challengetoken response: body: {string: !!python/unicode '{"record_id": 39560410, "record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560410, "operation": "editing", "subdomain": "updated.test", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['295'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:16 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000362101325606366700454020ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560410, "subdomain": "updated.test", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['4897'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:17 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=orig.testfqdn&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "orig.testfqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560411, "subdomain": "orig.testfqdn", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['250'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:18 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "orig.testfqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560411, "subdomain": "orig.testfqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560410, "subdomain": "updated.test", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['5092'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:19 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/edit?domain=capsulecd.com&record_id=39560411&type=TXT&subdomain=updated.testfqdn&content=challengetoken response: body: {string: !!python/unicode '{"record_id": 39560411, "record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.testfqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560411, "operation": "editing", "subdomain": "updated.testfqdn", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['303'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:20 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000371121325606366700454160ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/yandex/IntegrationTestsinteractions: - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560410, "subdomain": "updated.test", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.testfqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560411, "subdomain": "updated.testfqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['5098'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:20 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/add?domain=capsulecd.com&type=TXT&subdomain=orig.testfull&content=challengetoken&ttl=3600 response: body: {string: !!python/unicode '{"record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "orig.testfull.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560412, "subdomain": "orig.testfull", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['250'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:21 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: GET uri: https://pddimp.yandex.ru/api2/admin/dns/list?domain=capsulecd.com response: body: {string: !!python/unicode '{"records": [{"content": "mx.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": 10, "ttl": 21600, "record_id": 39559783, "subdomain": "@", "type": "MX"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559782, "subdomain": "@", "type": "NS"}, {"content": "dns2.yandex.net.", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559781, "subdomain": "@", "type": "NS"}, {"content": "dns1.yandex.net.", "domain": "capsulecd.com", "retry": 900, "fqdn": "capsulecd.com", "refresh": 14400, "admin_mail": "lexicon.test.yandex.ru", "priority": "", "expire": 1209600, "ttl": 21600, "record_id": 39559780, "subdomain": "@", "type": "SOA", "minttl": 14400}, {"content": "v=spf1 redirect=_spf.yandex.net", "domain": "capsulecd.com", "fqdn": "capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559784, "subdomain": "@", "type": "TXT"}, {"content": "docs.example.com.", "domain": "capsulecd.com", "fqdn": "docs.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560158, "subdomain": "docs", "type": "CNAME"}, {"content": "127.0.0.1", "domain": "capsulecd.com", "fqdn": "localhost.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560119, "subdomain": "localhost", "type": "A"}, {"content": "domain.mail.yandex.net.", "domain": "capsulecd.com", "fqdn": "mail.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559969, "subdomain": "mail", "type": "CNAME"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "orig.testfull.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560412, "subdomain": "orig.testfull", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fqdntest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560246, "subdomain": "random.fqdntest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.fulltest.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560247, "subdomain": "random.fulltest", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "random.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560259, "subdomain": "random.test", "type": "TXT"}, {"content": "ttlshouldbe3600", "domain": "capsulecd.com", "fqdn": "ttl.fqdn.capsulecd.com", "priority": "", "ttl": 3600, "record_id": 39560388, "subdomain": "ttl.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560410, "subdomain": "updated.test", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.testfqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560411, "subdomain": "updated.testfqdn", "type": "TXT"}, {"content": "104.31.76.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559785, "subdomain": "www", "type": "A"}, {"content": "104.31.77.164", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559786, "subdomain": "www", "type": "A"}, {"content": "2400:cb00:2048:1::681f:4ca4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559791, "subdomain": "www", "type": "AAAA"}, {"content": "2400:cb00:2048:1::681f:4da4", "domain": "capsulecd.com", "fqdn": "www.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39559792, "subdomain": "www", "type": "AAAA"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.fqdn.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560183, "subdomain": "_acme-challenge.fqdn", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.full.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560186, "subdomain": "_acme-challenge.full", "type": "TXT"}, {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "_acme-challenge.test.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560187, "subdomain": "_acme-challenge.test", "type": "TXT"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559787, "subdomain": "_xmpp-client._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-client._tcp.conference.capsulecd.com", "port": 5222, "priority": 20, "ttl": 21600, "record_id": 39559789, "subdomain": "_xmpp-client._tcp.conference", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559788, "subdomain": "_xmpp-server._tcp", "type": "SRV"}, {"content": "domain-xmpp.yandex.net.", "domain": "capsulecd.com", "weight": 0, "fqdn": "_xmpp-server._tcp.conference.capsulecd.com", "port": 5269, "priority": 20, "ttl": 21600, "record_id": 39559790, "subdomain": "_xmpp-server._tcp.conference", "type": "SRV"}], "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['5293'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:22 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] transfer-encoding: [chunked] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} - request: body: !!python/unicode '{}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json] User-Agent: [python-requests/2.9.1] method: POST uri: https://pddimp.yandex.ru/api2/admin/dns/edit?domain=capsulecd.com&record_id=39560412&type=TXT&subdomain=updated.testfull&content=challengetoken response: body: {string: !!python/unicode '{"record_id": 39560412, "record": {"content": "challengetoken", "domain": "capsulecd.com", "fqdn": "updated.testfull.capsulecd.com", "priority": "", "ttl": 21600, "record_id": 39560412, "operation": "editing", "subdomain": "updated.testfull", "type": "TXT"}, "domain": "capsulecd.com", "success": "ok"} '} headers: connection: [keep-alive] content-disposition: [attachment; filename="json.txt"; filename*=UTF-8''json.txt] content-length: ['303'] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] date: ['Tue, 24 Jan 2017 05:54:23 GMT'] server: [nginx/1.8.1] strict-transport-security: [max-age=31536000] x-content-type-options: [nosniff] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/fixtures/cassettes/zonomi/000077500000000000000000000000001325606366700215175ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTests/000077500000000000000000000000001325606366700250255ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTests/test_Provider_authenticate.yaml000066400000000000000000000027111325606366700333010ustar00rootroot00000000000000interactions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['476'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:05 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=649951985; Expires=Wed, 28-Nov-2018 22:03:05 GMT; Path=/app; HttpOnly', JSESSIONID=84E79C4ACC6084245A2247A0077FF3DF; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml000066400000000000000000000020411325606366700421700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.thisisadomainidonotown.com&type=SOA response: body: {string: !!python/unicode ']> ERROR: No zone found for thisisadomainidonotown.com'} headers: cache-control: [no-store] connection: [close] content-length: ['180'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:07 GMT'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=849951985; Expires=Wed, 28-Nov-2018 22:03:07 GMT; Path=/app; HttpOnly', JSESSIONID=1E1CD2D59E034E25FF4A2A9C5AA5A0C3; Path=/app/; Secure; HttpOnly] status: {code: 500, message: Internal Server Error} version: 1 test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml000066400000000000000000000056641325606366700447650ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['476'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:08 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=159951985; Expires=Wed, 28-Nov-2018 22:03:08 GMT; Path=/app; HttpOnly', JSESSIONID=7BB29499C6532FAD36C1995FEDFE65A7; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=localhost.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=A&value=127.0.0.1 response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['476'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:09 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=759951985; Expires=Wed, 28-Nov-2018 22:03:09 GMT; Path=/app; HttpOnly', JSESSIONID=8E7612E9812014E314021AAC2BB80583; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml000066400000000000000000000057061325606366700454250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['476'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:10 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=959951985; Expires=Wed, 28-Nov-2018 22:03:10 GMT; Path=/app; HttpOnly', JSESSIONID=A057DC5765F9AB1238A33FB5F6FAFAF8; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=docs.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=CNAME&value=docs.example.com response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['488'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:12 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=269951985; Expires=Wed, 28-Nov-2018 22:03:12 GMT; Path=/app; HttpOnly', JSESSIONID=BDB7EEE3444C90D074A71954194AE297; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml000066400000000000000000000057511325606366700451120ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['476'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:13 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=469951985; Expires=Wed, 28-Nov-2018 22:03:13 GMT; Path=/app; HttpOnly', JSESSIONID=28DEC4B70CADE3C99F1680005AA8F163; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=_acme-challenge.fqdn.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['512'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:14 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=669951985; Expires=Wed, 28-Nov-2018 22:03:14 GMT; Path=/app; HttpOnly', JSESSIONID=2C48BC9A86E59A1B94A96F1383346A66; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml000066400000000000000000000057521325606366700451250ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:15 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=279951985; Expires=Wed, 28-Nov-2018 22:03:15 GMT; Path=/app; HttpOnly', JSESSIONID=3D64463062C26CB5AED0CA326A94B718; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=_acme-challenge.full.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['512'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:16 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=879951985; Expires=Wed, 28-Nov-2018 22:03:16 GMT; Path=/app; HttpOnly', JSESSIONID=A5D68B4D8A7B7F7A6D6322C8A922AB87; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml000066400000000000000000000057521325606366700452620ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:17 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=589951985; Expires=Wed, 28-Nov-2018 22:03:17 GMT; Path=/app; HttpOnly', JSESSIONID=1228AB24312D9FF28A3F523D1B3B44AF; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=_acme-challenge.test.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['512'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:18 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=989951985; Expires=Wed, 28-Nov-2018 22:03:18 GMT; Path=/app; HttpOnly', JSESSIONID=64A963558940273EE6C05A45B261AFFB; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml000066400000000000000000000133141325606366700444070ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:19 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=299951985; Expires=Wed, 28-Nov-2018 22:03:19 GMT; Path=/app; HttpOnly', JSESSIONID=BE15578FD89AAA9B3DB10DE5F17466B0; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=delete.testfilt.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['502'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:20 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=499951985; Expires=Wed, 28-Nov-2018 22:03:20 GMT; Path=/app; HttpOnly', JSESSIONID=5DACB5BC320CFBF4585962426C999E29; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=DELETE&name=delete.testfilt.pcekper.com.ar&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['495'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:21 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=100061985; Expires=Wed, 28-Nov-2018 22:03:21 GMT; Path=/app; HttpOnly', JSESSIONID=34CF9D7660D842A631434D8673BB3CA0; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=delete.testfilt.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['339'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:22 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=300061985; Expires=Wed, 28-Nov-2018 22:03:22 GMT; Path=/app; HttpOnly', JSESSIONID=6C0D687DA69588E7F5A1A2FB0FABB8EE; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml000066400000000000000000000133141325606366700474520ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:24 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=500061985; Expires=Wed, 28-Nov-2018 22:03:24 GMT; Path=/app; HttpOnly', JSESSIONID=664187BE96A9D2945DA6F5920DAB692D; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=delete.testfqdn.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['502'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:25 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=900061985; Expires=Wed, 28-Nov-2018 22:03:25 GMT; Path=/app; HttpOnly', JSESSIONID=F5467D87C30ADB0C44C02A9D3D02BCE8; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=DELETE&name=delete.testfqdn.pcekper.com.ar&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['495'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:26 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=210061985; Expires=Wed, 28-Nov-2018 22:03:26 GMT; Path=/app; HttpOnly', JSESSIONID=60DF73A003CE14737942D22CEBF426F6; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=delete.testfqdn.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['339'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:27 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=610061985; Expires=Wed, 28-Nov-2018 22:03:27 GMT; Path=/app; HttpOnly', JSESSIONID=D3835E8DFF012CD9617F2C56F2BD2059; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml000066400000000000000000000133141325606366700474640ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:28 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=810061985; Expires=Wed, 28-Nov-2018 22:03:28 GMT; Path=/app; HttpOnly', JSESSIONID=2ADCF163D9F995CE641ED7D8CBD20892; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=delete.testfull.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['502'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:29 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=120061985; Expires=Wed, 28-Nov-2018 22:03:29 GMT; Path=/app; HttpOnly', JSESSIONID=4133C417C37E1258266F65ADBD350CA3; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=DELETE&name=delete.testfull.pcekper.com.ar&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['495'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:30 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=320061985; Expires=Wed, 28-Nov-2018 22:03:30 GMT; Path=/app; HttpOnly', JSESSIONID=260639E0470E237BDFF9428C32FDAE2F; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=delete.testfull.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['339'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:31 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=520061985; Expires=Wed, 28-Nov-2018 22:03:31 GMT; Path=/app; HttpOnly', JSESSIONID=5747FDF754FC5592FDFA8D373BF1D2B2; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml000066400000000000000000000161341325606366700452470ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:32 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=720061985; Expires=Wed, 28-Nov-2018 22:03:32 GMT; Path=/app; HttpOnly', JSESSIONID=C0031C6ADADFF481DEA3B0B9CA686BDA; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=delete.testid.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['498'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:33 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=920061985; Expires=Wed, 28-Nov-2018 22:03:33 GMT; Path=/app; HttpOnly', JSESSIONID=4810DF897C8666D8E7A7704FCE498485; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=delete.testid.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t\ "} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['454'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:34 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=230061985; Expires=Wed, 28-Nov-2018 22:03:34 GMT; Path=/app; HttpOnly', JSESSIONID=05B7B16FF9D42EB30875894150141D14; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=DELETE&name=delete.testid.pcekper.com.ar&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['491'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:35 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=430061985; Expires=Wed, 28-Nov-2018 22:03:35 GMT; Path=/app; HttpOnly', JSESSIONID=D17D3953D66150895E0AB56FAEAC1E0B; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=delete.testid.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['337'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:36 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=830061985; Expires=Wed, 28-Nov-2018 22:03:36 GMT; Path=/app; HttpOnly', JSESSIONID=03BE98168AF753CCA57117BB98EACF37; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_after_setting_ttl.yaml000066400000000000000000000105211325606366700415510ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:37 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=540061985; Expires=Wed, 28-Nov-2018 22:03:37 GMT; Path=/app; HttpOnly', JSESSIONID=52936F4EBA4C276CA29D19CBEE858EDD; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=ttl.fqdn.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=ttlshouldbe3600 response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['490'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:38 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=740061985; Expires=Wed, 28-Nov-2018 22:03:38 GMT; Path=/app; HttpOnly', JSESSIONID=3983A1D18FE9F29063A338C50A72B0EC; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=ttl.fqdn.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['445'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:39 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=940061985; Expires=Wed, 28-Nov-2018 22:03:39 GMT; Path=/app; HttpOnly', JSESSIONID=1095461DF6406C03B0D2C2624FD8C2FF; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml000066400000000000000000000106011325606366700466720ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:40 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=250061985; Expires=Wed, 28-Nov-2018 22:03:40 GMT; Path=/app; HttpOnly', JSESSIONID=5ED5A9467AEC1D839181825937DDBC8F; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=random.fqdntest.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['502'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:41 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=450061985; Expires=Wed, 28-Nov-2018 22:03:41 GMT; Path=/app; HttpOnly', JSESSIONID=3A4EEBCA1C169D30A02BE8083D6BEC24; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=random.fqdntest.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t\ "} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['458'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:42 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=650061985; Expires=Wed, 28-Nov-2018 22:03:42 GMT; Path=/app; HttpOnly', JSESSIONID=48932F38B64B58D1433B03B9AA1DD299; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml000066400000000000000000000106011325606366700467040ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:43 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=360061985; Expires=Wed, 28-Nov-2018 22:03:43 GMT; Path=/app; HttpOnly', JSESSIONID=A067274151EEC717223EF2DA904745AA; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=random.fulltest.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['502'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:44 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=560061985; Expires=Wed, 28-Nov-2018 22:03:44 GMT; Path=/app; HttpOnly', JSESSIONID=7B20EDF0A0EAB0525378FC576F7301EF; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=random.fulltest.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t\ "} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['458'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:45 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=270061985; Expires=Wed, 28-Nov-2018 22:03:45 GMT; Path=/app; HttpOnly', JSESSIONID=FE243DA69BD2D9FCBE1E9B851E439658; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml000066400000000000000000000105521325606366700456670ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:46 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=670061985; Expires=Wed, 28-Nov-2018 22:03:46 GMT; Path=/app; HttpOnly', JSESSIONID=B0BD10CA280974E3911AF9FA86D20A63; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=random.test.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['494'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:47 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=870061985; Expires=Wed, 28-Nov-2018 22:03:47 GMT; Path=/app; HttpOnly', JSESSIONID=5DAE52414A1BB304A2215C1332BAA86E; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=random.test.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t\ "} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['450'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:47 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=380061985; Expires=Wed, 28-Nov-2018 22:03:47 GMT; Path=/app; HttpOnly', JSESSIONID=486BF1D092A3B3C00B1231285E8D08D3; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml000066400000000000000000000113731325606366700450330ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:48 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=580061985; Expires=Wed, 28-Nov-2018 22:03:48 GMT; Path=/app; HttpOnly', JSESSIONID=365DBDD1DB887EF1D28006393043985D; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t\n\t\n\t\n\t\n\t\n\t\n\t\ \n\t\n\t\n\t\n\t\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['2000'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:49 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=780061985; Expires=Wed, 28-Nov-2018 22:03:49 GMT; Path=/app; HttpOnly', JSESSIONID=B79A348B5DF452C063DA2541160C729B; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_should_modify_record.yaml000066400000000000000000000164611325606366700423700ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:50 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=980061985; Expires=Wed, 28-Nov-2018 22:03:50 GMT; Path=/app; HttpOnly', JSESSIONID=017DCEABFF74117850A5F72AB05BBD42; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=orig.test.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['490'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:51 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=290061985; Expires=Wed, 28-Nov-2018 22:03:51 GMT; Path=/app; HttpOnly', JSESSIONID=965F98519646102D9682DFB205FC5263; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=orig.test.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['446'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:52 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=490061985; Expires=Wed, 28-Nov-2018 22:03:52 GMT; Path=/app; HttpOnly', JSESSIONID=6393D1F41C0734FCC53C456106FB5A70; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=DELETE&name=orig.test.pcekper.com.ar&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['483'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:53 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=690061985; Expires=Wed, 28-Nov-2018 22:03:53 GMT; Path=/app; HttpOnly', JSESSIONID=2C04D96A3FF31E725EB3D72B480208CB; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=updated.test.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['496'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:54 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=890061985; Expires=Wed, 28-Nov-2018 22:03:54 GMT; Path=/app; HttpOnly', JSESSIONID=2EB5F9687DDEC70E27A7F3B7BE2EEB0F; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml000066400000000000000000000165521325606366700454340ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:55 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=101061985; Expires=Wed, 28-Nov-2018 22:03:55 GMT; Path=/app; HttpOnly', JSESSIONID=A5F9B47A323839E314BF4846DED34113; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=orig.testfqdn.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['498'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:56 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=501061985; Expires=Wed, 28-Nov-2018 22:03:56 GMT; Path=/app; HttpOnly', JSESSIONID=2E0E88FD78C6D74D51D6166C4114A83F; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=orig.testfqdn.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t\ "} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['454'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:57 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=701061985; Expires=Wed, 28-Nov-2018 22:03:57 GMT; Path=/app; HttpOnly', JSESSIONID=342118A8140BD7175A087F36D3BFC84B; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=DELETE&name=orig.testfqdn.pcekper.com.ar&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['491'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:03:58 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=901061985; Expires=Wed, 28-Nov-2018 22:03:58 GMT; Path=/app; HttpOnly', JSESSIONID=ED89B1F7BAF3EC8655E89A0E47A1547C; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=updated.testfqdn.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['504'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:04:00 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=411061985; Expires=Wed, 28-Nov-2018 22:04:00 GMT; Path=/app; HttpOnly', JSESSIONID=8EC75ABCC94D21EED00FC48E305CE0DA; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml000066400000000000000000000165521325606366700454460ustar00rootroot00000000000000lexicon-2.2.1/tests/fixtures/cassettes/zonomi/IntegrationTestsinteractions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=%2A%2A.pcekper.com.ar&type=SOA response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['477'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:04:01 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=611061985; Expires=Wed, 28-Nov-2018 22:04:01 GMT; Path=/app; HttpOnly', JSESSIONID=DB02526E05E2847843874773D86FF63E; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=orig.testfull.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['498'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:04:02 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=121061985; Expires=Wed, 28-Nov-2018 22:04:02 GMT; Path=/app; HttpOnly', JSESSIONID=A87810CE071EB4F9DA976C3DD1E03176; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=QUERY&name=orig.testfull.pcekper.com.ar&type=TXT response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t\ "} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['454'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:04:04 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=771061985; Expires=Wed, 28-Nov-2018 22:04:04 GMT; Path=/app; HttpOnly', JSESSIONID=1EAC2509CF9871B4444A28027B8BCCCF; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=DELETE&name=orig.testfull.pcekper.com.ar&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['491'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:04:06 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=591061985; Expires=Wed, 28-Nov-2018 22:04:06 GMT; Path=/app; HttpOnly', JSESSIONID=6338CDBE22ACA5EACDB798756F49E14D; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET uri: https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=updated.testfull.pcekper.com.ar&prio=placeholder_priority&ttl=3600&type=TXT&value=challengetoken response: body: {string: !!python/unicode "]>OK:\n\ \n\n\n\n\t"} headers: cache-control: [no-store] connection: [Keep-Alive] content-length: ['504'] content-type: [text/xml;charset=UTF-8] date: ['Tue, 28 Nov 2017 22:04:07 GMT'] keep-alive: ['timeout=5, max=100'] server: [Apache/2.4.25 (Debian)] set-cookie: ['uv=791061985; Expires=Wed, 28-Nov-2018 22:04:07 GMT; Path=/app; HttpOnly', JSESSIONID=7022B9DFBF908BA4F4D61F9ED359D9D2; Path=/app/; Secure; HttpOnly] vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 lexicon-2.2.1/tests/providers/000077500000000000000000000000001325606366700163525ustar00rootroot00000000000000lexicon-2.2.1/tests/providers/integration_tests.py000066400000000000000000000527031325606366700225000ustar00rootroot00000000000000import contextlib from builtins import object import lexicon.client from lexicon.common.options_handler import SafeOptions, env_auth_options import pytest import vcr import os # Configure VCR provider_vcr = vcr.VCR( cassette_library_dir='tests/fixtures/cassettes', record_mode='new_episodes', decode_compressed_response=True ) """ https://stackoverflow.com/questions/26266481/pytest-reusable-tests-for-different-implementations-of-the-same-interface Single, reusable definition of tests for the interface. Authors of new implementations of the interface merely have to provide the test data, as class attributes of a class which inherits unittest.TestCase AND this class. Required test data: self.Provider must be set self.provider_name must be set self.domain must be set self._filter_headers can be defined to provide a list of sensitive headers self._filter_query_parameters can be defined to provide a list of sensitive parameter Extended test suites can be skipped by adding the following snippet to the test_{PROVIDER_NAME}.py file @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite') """ class IntegrationTests(object): ########################################################################### # Provider.authenticate() ########################################################################### def test_Provider_authenticate(self): with self._test_fixture_recording('test_Provider_authenticate'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.domain_id is not None def test_Provider_authenticate_with_unmanaged_domain_should_fail(self): with self._test_fixture_recording('test_Provider_authenticate_with_unmanaged_domain_should_fail'): options = self._test_options() options['domain'] = 'thisisadomainidonotown.com' provider = self.Provider(options, self._test_engine_overrides()) with pytest.raises(Exception): provider.authenticate() ########################################################################### # Provider.create_record() ########################################################################### def test_Provider_when_calling_create_record_for_A_with_valid_name_and_content(self): with self._test_fixture_recording('test_Provider_when_calling_create_record_for_A_with_valid_name_and_content'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('A','localhost','127.0.0.1') def test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content(self): with self._test_fixture_recording('test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('CNAME','docs','docs.example.com') def test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content(self): with self._test_fixture_recording('test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT','_acme-challenge.test','challengetoken') def test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content(self): with self._test_fixture_recording('test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT',"_acme-challenge.full.{0}".format(self.domain),'challengetoken') def test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content(self): with self._test_fixture_recording('test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT',"_acme-challenge.fqdn.{0}.".format(self.domain),'challengetoken') ########################################################################### # Provider.list_records() ########################################################################### def test_Provider_when_calling_list_records_with_no_arguments_should_list_all(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_with_no_arguments_should_list_all'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert isinstance(provider.list_records(), list) def test_Provider_when_calling_list_records_with_name_filter_should_return_record(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_with_name_filter_should_return_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() provider.create_record('TXT','random.test','challengetoken') records = provider.list_records('TXT','random.test') assert len(records) == 1 assert records[0]['content'] == 'challengetoken' assert records[0]['type'] == 'TXT' assert records[0]['name'] == 'random.test.{0}'.format(self.domain) def test_Provider_when_calling_list_records_with_full_name_filter_should_return_record(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_with_full_name_filter_should_return_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() provider.create_record('TXT','random.fulltest.{0}'.format(self.domain),'challengetoken') records = provider.list_records('TXT','random.fulltest.{0}'.format(self.domain)) assert len(records) == 1 assert records[0]['content'] == 'challengetoken' assert records[0]['type'] == 'TXT' assert records[0]['name'] == 'random.fulltest.{0}'.format(self.domain) def test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() provider.create_record('TXT','random.fqdntest.{0}.'.format(self.domain),'challengetoken') records = provider.list_records('TXT','random.fqdntest.{0}.'.format(self.domain)) assert len(records) == 1 assert records[0]['content'] == 'challengetoken' assert records[0]['type'] == 'TXT' assert records[0]['name'] == 'random.fqdntest.{0}'.format(self.domain) def test_Provider_when_calling_list_records_after_setting_ttl(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_after_setting_ttl'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT',"ttl.fqdn.{0}.".format(self.domain),'ttlshouldbe3600') records = provider.list_records('TXT','ttl.fqdn.{0}'.format(self.domain)) assert len(records) == 1 assert str(records[0]['ttl']) == str(3600) @pytest.mark.skip(reason="not sure how to test empty list across multiple providers") def test_Provider_when_calling_list_records_should_return_empty_list_if_no_records_found(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_should_return_empty_list_if_no_records_found'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert isinstance(provider.list_records(), list) @pytest.mark.skip(reason="not sure how to test filtering across multiple providers") def test_Provider_when_calling_list_records_with_arguments_should_filter_list(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_with_arguments_should_filter_list'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert isinstance(provider.list_records(), list) ########################################################################### # Provider.update_record() ########################################################################### def test_Provider_when_calling_update_record_should_modify_record(self): with self._test_fixture_recording('test_Provider_when_calling_update_record_should_modify_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT','orig.test','challengetoken') records = provider.list_records('TXT','orig.test') assert provider.update_record(records[0].get('id', None),'TXT','updated.test','challengetoken') def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): with self._test_fixture_recording('test_Provider_when_calling_update_record_should_modify_record_name_specified'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT','orig.nameonly.test','challengetoken') assert provider.update_record(None,'TXT','orig.nameonly.test','updated') def test_Provider_when_calling_update_record_with_full_name_should_modify_record(self): with self._test_fixture_recording('test_Provider_when_calling_update_record_with_full_name_should_modify_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT','orig.testfull.{0}'.format(self.domain),'challengetoken') records = provider.list_records('TXT','orig.testfull.{0}'.format(self.domain)) assert provider.update_record(records[0].get('id', None),'TXT','updated.testfull.{0}'.format(self.domain),'challengetoken') def test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record(self): with self._test_fixture_recording('test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT','orig.testfqdn.{0}.'.format(self.domain),'challengetoken') records = provider.list_records('TXT','orig.testfqdn.{0}.'.format(self.domain)) assert provider.update_record(records[0].get('id', None),'TXT','updated.testfqdn.{0}.'.format(self.domain),'challengetoken') ########################################################################### # Provider.delete_record() ########################################################################### def test_Provider_when_calling_delete_record_by_identifier_should_remove_record(self): with self._test_fixture_recording('test_Provider_when_calling_delete_record_by_identifier_should_remove_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT','delete.testid','challengetoken') records = provider.list_records('TXT','delete.testid') assert provider.delete_record(records[0]['id']) records = provider.list_records('TXT','delete.testid') assert len(records) == 0 def test_Provider_when_calling_delete_record_by_filter_should_remove_record(self): with self._test_fixture_recording('test_Provider_when_calling_delete_record_by_filter_should_remove_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT','delete.testfilt','challengetoken') assert provider.delete_record(None, 'TXT','delete.testfilt','challengetoken') records = provider.list_records('TXT','delete.testfilt') assert len(records) == 0 def test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record(self): with self._test_fixture_recording('test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT', 'delete.testfull.{0}'.format(self.domain),'challengetoken') assert provider.delete_record(None, 'TXT', 'delete.testfull.{0}'.format(self.domain),'challengetoken') records = provider.list_records('TXT', 'delete.testfull.{0}'.format(self.domain)) assert len(records) == 0 def test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record(self): with self._test_fixture_recording('test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT', 'delete.testfqdn.{0}.'.format(self.domain),'challengetoken') assert provider.delete_record(None, 'TXT', 'delete.testfqdn.{0}.'.format(self.domain),'challengetoken') records = provider.list_records('TXT', 'delete.testfqdn.{0}.'.format(self.domain)) assert len(records) == 0 ########################################################################### # Extended Test Suite 1 - March 2018 - Validation for Create Record NOOP & Record Sets ########################################################################### @pytest.mark.ext_suite_1 def test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop(self): with self._test_fixture_recording('test_Provider_when_calling_create_record_with_duplicate_records_should_be_noop'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT',"_acme-challenge.noop.{0}.".format(self.domain),'challengetoken') assert provider.create_record('TXT',"_acme-challenge.noop.{0}.".format(self.domain),'challengetoken') records = provider.list_records('TXT',"_acme-challenge.noop.{0}.".format(self.domain)) assert len(records) == 1 @pytest.mark.ext_suite_1 def test_Provider_when_calling_create_record_multiple_times_should_create_record_set(self): with self._test_fixture_recording('test_Provider_when_calling_create_record_multiple_times_should_create_record_set'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT',"_acme-challenge.createrecordset.{0}.".format(self.domain),'challengetoken1') assert provider.create_record('TXT',"_acme-challenge.createrecordset.{0}.".format(self.domain),'challengetoken2') @pytest.mark.ext_suite_1 def test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_with_invalid_filter_should_be_empty_list'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() records = provider.list_records('TXT','filter.thisdoesnotexist.{0}'.format(self.domain)) assert len(records) == 0 @pytest.mark.ext_suite_1 def test_Provider_when_calling_list_records_should_handle_record_sets(self): with self._test_fixture_recording('test_Provider_when_calling_list_records_should_handle_record_sets'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() provider.create_record('TXT',"_acme-challenge.listrecordset.{0}.".format(self.domain),'challengetoken1') provider.create_record('TXT',"_acme-challenge.listrecordset.{0}.".format(self.domain),'challengetoken2') records = provider.list_records('TXT','_acme-challenge.listrecordset.{0}.'.format(self.domain)) assert len(records) == 2 @pytest.mark.ext_suite_1 def test_Provider_when_calling_delete_record_with_record_set_name_remove_all(self): with self._test_fixture_recording('test_Provider_when_calling_delete_record_with_record_set_name_remove_all'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT',"_acme-challenge.deleterecordset.{0}.".format(self.domain),'challengetoken1') assert provider.create_record('TXT',"_acme-challenge.deleterecordset.{0}.".format(self.domain),'challengetoken2') assert provider.delete_record(None, 'TXT', '_acme-challenge.deleterecordset.{0}.'.format(self.domain)) records = provider.list_records('TXT', '_acme-challenge.deleterecordset.{0}.'.format(self.domain)) assert len(records) == 0 @pytest.mark.ext_suite_1 def test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched(self): with self._test_fixture_recording('test_Provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched'): provider = self.Provider(self._test_options(), self._test_engine_overrides()) provider.authenticate() assert provider.create_record('TXT',"_acme-challenge.deleterecordinset.{0}.".format(self.domain),'challengetoken1') assert provider.create_record('TXT',"_acme-challenge.deleterecordinset.{0}.".format(self.domain),'challengetoken2') assert provider.delete_record(None, 'TXT', '_acme-challenge.deleterecordinset.{0}.'.format(self.domain),'challengetoken1') records = provider.list_records('TXT', '_acme-challenge.deleterecordinset.{0}.'.format(self.domain)) assert len(records) == 1 # Private helpers, mimicing the auth_* options provided by the Client # http://stackoverflow.com/questions/6229073/how-to-make-a-python-dictionary-that-returns-key-for-keys-missing-from-the-dicti """ This method lets you set options that are passed into the Provider. see lexicon/providers/base.py for a full list of options available. In general you should not need to override this method. Just override `self.domain` Any parameters that you expect to be passed to the provider via the cli, like --auth_username and --auth_token, will be present during the tests, with a 'placeholder_' prefix. options['auth_password'] == 'placeholder_auth_password' options['auth_username'] == 'placeholder_auth_username' options['unique_provider_option'] == 'placeholder_unique_provider_option' """ def _test_options(self): cmd_options = SafeOptions() cmd_options['domain'] = self.domain cmd_options.update(env_auth_options(self.provider_name)) return cmd_options """ This method lets you override engine options. You must ensure the `fallbackFn` is defined, so your override might look like: def _test_engine_overrides(self): overrides = super(DnsmadeeasyProviderTests, self)._test_engine_overrides() overrides.update({'api_endpoint': 'http://api.sandbox.dnsmadeeasy.com/V2.0'}) return overrides In general you should not need to override this method unless you need to override a provider setting only during testing. Like `api_endpoint`. """ def _test_engine_overrides(self): overrides = { 'fallbackFn': (lambda x: 'placeholder_' + x) } return overrides def _cassette_path(self, fixture_subpath): return "{0}/{1}".format(self.provider_name, fixture_subpath) def _filter_headers(self): return [] def _filter_query_parameters(self): return [] def _filter_post_data_parameters(self): return [] #http://preshing.com/20110920/the-python-with-statement-by-example/ #https://jeffknupp.com/blog/2016/03/07/python-with-context-managers/ @contextlib.contextmanager def _test_fixture_recording(self, test_name, recording_extension='yaml', recording_folder='IntegrationTests'): with provider_vcr.use_cassette(self._cassette_path('{0}/{1}.{2}'.format(recording_folder, test_name, recording_extension)), filter_headers=self._filter_headers(), filter_query_parameters=self._filter_query_parameters(), filter_post_data_parameters=self._filter_post_data_parameters()): yieldlexicon-2.2.1/tests/providers/test_aurora.py000066400000000000000000000011021325606366700212460ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.aurora import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class AuroraProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'aurora' domain = 'example.nl' def _filter_headers(self): return ['Authorization'] lexicon-2.2.1/tests/providers/test_cloudflare.py000066400000000000000000000014711325606366700221060ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.cloudflare import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class CloudflareProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'cloudflare' domain = 'capsulecd.com' def _filter_headers(self): return ['X-Auth-Email', 'X-Auth-Key','set-cookie'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_cloudns.py000066400000000000000000000024071325606366700214350ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.cloudns import Provider from lexicon.common.options_handler import env_auth_options from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class CloudnsProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'cloudns' domain = 'api-example.com' def _filter_query_parameters(self): return ['auth-id', 'sub-auth-id', 'sub-auth-user', 'auth-password'] def _filter_post_data_parameters(self): return ['auth-id', 'sub-auth-id', 'sub-auth-user', 'auth-password'] # Override _test_options to call env_auth_options and then import auth config from env variables def _test_options(self): cmd_options = super(CloudnsProviderTests, self)._test_options() cmd_options.update(env_auth_options(self.provider_name)) return cmd_options @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_cloudxns.py000066400000000000000000000014431325606366700216240ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.cloudxns import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class DnsParkProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'cloudxns' domain = 'capsulecd.com' def _filter_post_data_parameters(self): return ['login_token'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_digitalocean.py000066400000000000000000000017151325606366700224120ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.digitalocean import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class DigitalOceanProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'digitalocean' domain = 'capsulecd.com' def _filter_headers(self): return ['Authorization'] @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_dnsimple.py000066400000000000000000000024571325606366700216060ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.dnsimple import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class DnsimpleProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'dnsimple' domain = 'lexicontest.com' def _test_engine_overrides(self): overrides = super(DnsimpleProviderTests, self)._test_engine_overrides() overrides.update({'api_endpoint': 'https://api.sandbox.dnsimple.com/v2'}) return overrides # Override _test_options to call env_auth_options and then import auth config from env variables def _test_options(self): cmd_options = super(DnsimpleProviderTests, self)._test_options() cmd_options['regions'] = ['global'] return cmd_options def _filter_headers(self): return ['Authorization','set-cookie','X-Dnsimple-OTP'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_dnsmadeeasy.py000066400000000000000000000020561325606366700222630ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.dnsmadeeasy import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class DnsmadeeasyProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'dnsmadeeasy' domain = 'capsulecd.com' def _test_engine_overrides(self): overrides = super(DnsmadeeasyProviderTests, self)._test_engine_overrides() overrides.update({'api_endpoint': 'http://api.sandbox.dnsmadeeasy.com/V2.0'}) return overrides def _filter_headers(self): return ['x-dnsme-apiKey', 'x-dnsme-hmac', 'Authorization'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_dnspark.py000066400000000000000000000020601325606366700214230ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.dnspark import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class DnsParkProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'dnspark' domain = 'capsulecd.com' def _filter_headers(self): return ['Authorization'] @pytest.mark.skip(reason="domain no longer exists") def test_Provider_when_calling_list_records_after_setting_ttl(self): return @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_dnspod.py000066400000000000000000000021501325606366700212500ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.dnspod import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class DnsParkProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'dnspod' domain = 'capsulecd.com' def _filter_post_data_parameters(self): return ['login_token'] # TODO: @pytest.mark.skip(reason="domain no longer exists") def test_Provider_when_calling_list_records_after_setting_ttl(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_easydns.py000066400000000000000000000023551325606366700214360ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.easydns import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class EasyDnsProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'easydns' domain = 'easydnstemp.com' def _test_engine_overrides(self): overrides = super(EasyDnsProviderTests, self)._test_engine_overrides() overrides.update({'api_endpoint': 'http://sandbox.rest.easydns.net'}) return overrides def _filter_headers(self): return ['Authorization'] def _filter_query_parameters(self): return ['_key', '_user'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_gandi.py000066400000000000000000000016211325606366700210450ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.gandi import Provider from lexicon.common.options_handler import env_auth_options from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class GandiProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'gandi' domain = 'reachlike.ca' @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_gehirn.py000066400000000000000000000013611325606366700212400ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.gehirn import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class GehirnProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'gehirn' domain = 'example.com' def _filter_headers(self): return ['Authorization'] @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_glesys.py000066400000000000000000000017001325606366700212670ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.glesys import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class GlesysProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'glesys' domain = "capsulecd.com" def _filter_headers(self): return ['Authorization'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_godaddy.py000066400000000000000000000032631325606366700214020ustar00rootroot00000000000000# Test for one implementation of the interface from unittest import TestCase from lexicon.providers.godaddy import Provider from integration_tests import IntegrationTests import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class GoDaddyProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'godaddy' # Domain existing in the GoDaddy OTE server at the time of the test (17/06/2017) domain = '000.biz' def _filter_headers(self): return ['Authorization'] def _test_engine_overrides(self): overrides = super(GoDaddyProviderTests, self)._test_engine_overrides() # Use the OTE server, which allows tests without account overrides.update({'api_endpoint': 'https://api.ote-godaddy.com/v1'}) return overrides def _test_options(self): cmd_options = super(GoDaddyProviderTests, self)._test_options() # This token is public, # and used on https://developer.godaddy.com to test against OTE server cmd_options.update({ 'auth_key': 'UzQxLikm_46KxDFnbjN7cQjmw6wocia', 'auth_secret': '46L26ydpkwMaKZV6uVdDWe' }) return cmd_options @pytest.mark.skip(reason="GoDaddy does not use id in their DNS records") def test_Provider_when_calling_delete_record_by_identifier_should_remove_record(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_linode.py000066400000000000000000000015041325606366700212350ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.linode import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class LinodeProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'linode' domain = 'lexicon-example.com' def _filter_post_data_parameters(self): return [] def _filter_headers(self): return [] def _filter_query_parameters(self): return ['api_key'] @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return lexicon-2.2.1/tests/providers/test_luadns.py000066400000000000000000000017071325606366700212560ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.luadns import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class LuaDNSProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'luadns' domain = 'capsulecd.com' def _filter_headers(self): return ['Authorization'] @pytest.mark.skip(reason="CNAME requires FQDN for this provider") def test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_memset.py000066400000000000000000000014411325606366700212550ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.memset import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class MemsetProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'memset' domain = 'testzone.com' def _filter_headers(self): return ['Authorization'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_namecheap.py000066400000000000000000000024421325606366700217060ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.namecheap import Provider from lexicon.common.options_handler import env_auth_options from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class NamecheapProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'namecheap' domain = 'lexicontest.com' def _filter_query_parameters(self): return ['ApiKey','UserName', 'ApiUser'] def _test_options(self): options = super(NamecheapProviderTests, self)._test_options() options.update({'auth_sandbox':True}) options.update({'auth_client_ip':'127.0.0.1'}) options.update(env_auth_options(self.provider_name)) return options @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_namesilo.py000066400000000000000000000017731325606366700216020ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.namesilo import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class NameSiloProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'namesilo' domain = 'capsulecdfake.com' def _test_engine_overrides(self): overrides = super(NameSiloProviderTests, self)._test_engine_overrides() overrides.update({'api_endpoint': 'http://sandbox.namesilo.com/api'}) return overrides def _filter_query_parameters(self): return ['key'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_nsone.py000066400000000000000000000017141325606366700211100ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.nsone import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class Ns1ProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'nsone' domain = 'lexicon-example.com' def _filter_headers(self): return ['X-NSONE-Key', 'Authorization'] @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return lexicon-2.2.1/tests/providers/test_onapp.py000066400000000000000000000010051325606366700210740ustar00rootroot00000000000000from unittest import TestCase from lexicon.providers.onapp import Provider from integration_tests import IntegrationTests class OnappProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'onapp' domain = 'my-test.org' def _filter_headers(self): return ['Authorization'] def _test_options(self): options = super(OnappProviderTests, self)._test_options() options.update({'auth_server':'https://dashboard.dynomesh.com.au'}) return options lexicon-2.2.1/tests/providers/test_ovh.py000066400000000000000000000020671325606366700205640ustar00rootroot00000000000000# Test for one implementation of the interface from unittest import TestCase from lexicon.providers.ovh import Provider from integration_tests import IntegrationTests import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class OvhProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'ovh' domain = 'elogium.net' def _filter_headers(self): return ['X-Ovh-Application', 'X-Ovh-Consumer', 'X-Ovh-Signature'] # Override _test_options to call env_auth_options and then import auth config from env variables def _test_options(self): cmd_options = super(OvhProviderTests, self)._test_options() cmd_options.update({'auth_entrypoint':'ovh-eu'}) return cmd_options @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_pointhq.py000066400000000000000000000016761325606366700214570ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.pointhq import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class PointHqProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'pointhq' domain = 'capsulecd.com' def _filter_headers(self): return ['Authorization'] @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_powerdns.py000066400000000000000000000020561325606366700216270ustar00rootroot00000000000000from lexicon.providers.powerdns import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class PowerdnsProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'powerdns' domain = 'example.com' def _filter_headers(self): return ['X-API-Key'] def _test_options(self): options = super(PowerdnsProviderTests, self)._test_options() options.update({'pdns_server':'https://dnsadmin.hhome.me','pdns_server_id':'localhost'}) return options # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_rackspace.py000066400000000000000000000027221325606366700217220ustar00rootroot00000000000000""""Test for rackspace implementation of the lexicon interface""" from unittest import TestCase import pytest from lexicon.providers.rackspace import Provider from integration_tests import IntegrationTests # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class RackspaceProviderTests(TestCase, IntegrationTests): """Tests the rackspace provider""" Provider = Provider provider_name = 'rackspace' domain = 'capsulecd.com' def _filter_post_data_parameters(self): return ['auth'] def _filter_headers(self): return ['X-Auth-Token'] # Rackspace does not provide a sandbox API; actual credentials are required # Replace the auth_account, auth_username and auth_api_key as well as the # domain above with an actual domain you have added to Rackspace to # regenerate the fixtures def _test_options(self): options = super(RackspaceProviderTests, self)._test_options() options.update({ # 'auth_account': '123456', # 'auth_username': 'foo', # 'auth_api_key': 'bar', 'sleep_time': '0' }) options['auth_token'] = None return options @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_rage4.py000066400000000000000000000022071325606366700207660ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.rage4 import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class Rage4ProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'rage4' domain = 'capsulecd.com' def _filter_headers(self): return ['Authorization'] @pytest.mark.skip(reason="update requires type to be specified for this provider") def test_Provider_when_calling_update_record_with_full_name_should_modify_record(self): return @pytest.mark.skip(reason="update requires type to be specified for this provider") def test_Provider_when_calling_update_record_should_modify_record(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_route53.py000066400000000000000000000050031325606366700212670ustar00rootroot00000000000000"""Test for route53 implementation of the interface.""" import unittest import pytest from lexicon.providers.route53 import Provider from integration_tests import IntegrationTests, provider_vcr class Route53ProviderTests(unittest.TestCase, IntegrationTests): """Route53 Proivder Tests.""" Provider = Provider provider_name = 'route53' domain = 'capsulecd.com' def _filter_headers(self): """Sensitive headers to be filtered.""" return ['Authorization'] def test_Provider_authenticate_private_zone_only(self): with provider_vcr.use_cassette(super(Route53ProviderTests, self)._cassette_path('IntegrationTests/test_Provider_authenticate.yaml'), filter_headers=super(Route53ProviderTests, self)._filter_headers(), filter_query_parameters=super(Route53ProviderTests, self)._filter_query_parameters(), filter_post_data_parameters=super(Route53ProviderTests, self)._filter_post_data_parameters()): options = super(Route53ProviderTests, self)._test_options() options['private_zone'] = 'true' provider = self.Provider(options, super(Route53ProviderTests, self)._test_engine_overrides()) with pytest.raises(Exception): provider.authenticate() def test_Provider_authenticate_private_zone_false(self): with provider_vcr.use_cassette(super(Route53ProviderTests, self)._cassette_path('IntegrationTests/test_Provider_authenticate.yaml'), filter_headers=super(Route53ProviderTests, self)._filter_headers(), filter_query_parameters=super(Route53ProviderTests, self)._filter_query_parameters(), filter_post_data_parameters=super(Route53ProviderTests, self)._filter_post_data_parameters()): options = super(Route53ProviderTests, self)._test_options() options['private_zone'] = 'false' provider = self.Provider(options, super(Route53ProviderTests, self)._test_engine_overrides()) provider.authenticate() assert provider.domain_id is not None @pytest.mark.skip(reason="route 53 dns records don't have ids") def test_Provider_when_calling_delete_record_by_identifier_should_remove_record(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_sakuracloud.py000066400000000000000000000017031325606366700223010ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.sakuracloud import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class SakruaCloudProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'sakuracloud' domain = 'example.com' def _filter_headers(self): return ['Authorization'] # TODO: this should be enabled @pytest.mark.skip(reason="record id is not exists") def test_Provider_when_calling_delete_record_by_identifier_should_remove_record(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_softlayer.py000066400000000000000000000020701325606366700217720ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.softlayer import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class SoftLayerProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'softlayer' domain = 'example.com' # SoftLayer does not provide a sandbox API; actual credentials are required # Keeping this here for when fixtures need to be regenerated #def _test_options(self): # options = super(SoftLayerProviderTests, self)._test_options() # options.update({ # 'auth_username': 'foo', # 'auth_api_key': 'bar' # }) # return options @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_transip.py000066400000000000000000000111401325606366700214400ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.transip import Provider from integration_tests import IntegrationTests, provider_vcr from unittest import TestCase import pytest from tempfile import mkstemp import os FAKE_KEY = b""" -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAxV08IlJRwNq9WyyGO2xRyT0F6XIBD2R5CrwJoP7gIHVU/Mhk KeK8//+MbUZtKFoeJi9lI8Cbkqe7GVk9yab6R2/vVzV21XRh+57R79nEh+QTf/vZ dg+DjUn62U4lcgoVp3sHddIi/Zi58xz2a2lGGIdolsv1x0/PmAQPULt721IG/osp RBjTtaZ8niXrOTfjH814i8kgXu74CCGu0X6kJBIezMA2wqY1ZKZYRMpfrxkEZe0t 45pEM1CmSTCqyDMpwYou9wJaDHn0ts1KvKkKBfmO4B0nqfW9Sv9rkmpBCLTtMobj dQ8EwWv1L1g9uddkPALgRODEpR4fq7PTmq2VEQIDAQABAoIBAFf4wwEZaE9qMNUe 94YtNhdZF/WCV26g/kMGpdQZR5WwNv2l5N+2rT/+jH140tcVtDKZFZ/mDnJESWV3 Hc9wmkaVYj2hGyLyCWq61CDxFGTuCLMXc0roh17HBwUtjAtU62oHsL+XtvkKxnfT BRPDjPcKBFiS+S6qKII97QWzS/XpxL47VpXcYboVunzUncIKghC93LdvPp3ukh6x HIarqyctqkksLJtLgH5ffuABCJLChetpOIfcfspjtMoji43CXXd7Y3rGWy3EzSHA s4mNb4K6r8MOlJj3HiTn9bEgL2V2q3OHSYHYXexir67vkQeN+NsC80G0uODt6Uuo Cd1RobECgYEA+O+nZYRc22jI8oqRoQeCx6cTWJoaf4OYDXcaerRMIiE7yigHNgmX LGs9RYTVrWXzjM5KHVvPvavpm/zIBoa5fA7uqdH9BjuZVLm1COXzKxF5hevZuAxr zGQWDbdvzdsihPBvwlf0dKScA/WIRW0KCqUmC6IlS/An4Y0nI05P+KsCgYEAyvby cfUPgeanBnYE3GGou3cLiurzvK3vHuQl6vVE3DcheUj/5tKTwG5Q3/7y51MKHnfH xEc/X2IePXYVy0JwpC6NHzkyJPuJ1zYlkQGSs81TUbYOk9SKi3SL9bM+3vRzYFoL GMLJuvEqIscxLNqR0xQB5eBkg8T+AVJiA7cTITMCgYEAn5/ND2OYx3ihoiUIzOEs EyonVaE7bJjNX5UH/bavOxNka3TPau8raOg7GeDbw5ykV53QGJNO2qjp24R0Hvs0 5UAN+gcU4HJHF/UdCN+q1esWqbFaopIUbbOgEJuXrcDembAzecM8la8X+9Ht19bb oYfUpZELqW4NpKwGdLU6wpECgYAfn3hI3xjKcYiGji7Vs3WZt8OZol/VfvgpxPxP bmWLNh/GCOSuLxMMQWPicpOgDSUfeCQs5bjvAJebleFxaOmp+wLL4Zp5fqOMX4hc 3nTgBNa9fXMp/0ySy9besk3SaR3s3jqqYfcSZG7fOk/kIC3mSFC/Y0Xl7fRxekeB Mq4NVwKBgQDQ+3+cgZph5geq0PUuKMvMECDuCEnG8rrr4jTCe+sRP34y1IaxJ2w6 S6p+kvTBePSqV2wWZCls6p7mhGEto+8H9b4pWdmSqccn0vFu4kekm/OU4+IxqzWQ KPeh76yhdzsFwzh+0LBPfkFgFn3YlHp0eoywNpm57MFxWx8u3U2Hkw== -----END RSA PRIVATE KEY----- """ # The following fields were removed from the test fixtures: # getInfo: contacts, authcode, registrationDate, renewalDate # using: # find tests/fixtures/cassettes/transip/ -name \*.json -exec sed -i 's///g' '{}' \; # find tests/fixtures/cassettes/transip/ -name \*.json -exec sed -i 's///g' '{}' \; # find tests/fixtures/cassettes/transip/ -name \*.json -exec sed -i 's///g' '{}' \; # find tests/fixtures/cassettes/transip/ -name \*.json -exec sed -i 's///g' '{}' \; # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class TransipProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'transip' domain = 'hurrdurr.nl' # Disable setUp and tearDown, and set a real username and key in # provider_opts to execute real calls def _test_options(self): options = super(TransipProviderTests, self)._test_options() (_fake_fd, _fake_key) = mkstemp() _fake_file = os.fdopen(_fake_fd, 'wb', 1024) _fake_file.write(FAKE_KEY) _fake_file.close() self._fake_key = _fake_key options.update({ 'auth_username': 'foo', 'auth_api_key': _fake_key }) return options @classmethod def setUpClass(cls): cls.old_serializer = provider_vcr.serializer provider_vcr.serializer = "json" @classmethod def tearDownClass(cls): provider_vcr.serializer = cls.old_serializer def tearDown(self): os.unlink(self._fake_key) def _filter_headers(self): return ['Cookie'] def _cassette_path(self, fixture_subpath): path = super(TransipProviderTests, self)._cassette_path(fixture_subpath) return path.replace(".yaml", ".json") @pytest.mark.skip(reason="manipulating records by id is not supported") def test_Provider_when_calling_delete_record_by_identifier_should_remove_record(self): return @pytest.mark.skip(reason="adding docs.example.com as a CNAME target will result in a RFC 1035 error") def test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content(self): return # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_vultr.py000066400000000000000000000016661325606366700211500ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.vultr import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class VultrProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'vultr' domain = 'capsulecd.com' def _filter_headers(self): return ['API-Key'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/providers/test_yandex.py000066400000000000000000000015231325606366700212540ustar00rootroot00000000000000# Test for one implementation of the interface from lexicon.providers.yandex import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from define_tests.TheTests class YandexPDDProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'yandex' domain = 'capsulecd.com' def _filter_headers(self): """Sensitive headers to be filtered.""" return ['Authorization', 'PddToken'] # TODO: this should be enabled @pytest.mark.skip(reason="regenerating auth keys required") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): returnlexicon-2.2.1/tests/providers/test_zonomi.py000066400000000000000000000022411325606366700212750ustar00rootroot00000000000000from lexicon.providers.zonomi import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.IntegrationTests class ZonomiProviderTests(TestCase, IntegrationTests): Provider = Provider provider_name = 'zonomi' domain = 'pcekper.com.ar' def _test_engine_overrides(self): overrides = super(ZonomiProviderTests, self)._test_engine_overrides() overrides.update({'api_endpoint': 'https://zonomi.com/app'}) return overrides def _filter_query_parameters(self): return ['api_key'] # TODO: this should be enabled @pytest.mark.skip(reason="The record identifier is based on the name, this needs disabled") def test_Provider_when_calling_update_record_should_modify_record_name_specified(self): return @pytest.fixture(autouse=True) def skip_suite(self, request): if request.node.get_marker('ext_suite_1'): pytest.skip('Skipping extended suite')lexicon-2.2.1/tests/test_client.py000066400000000000000000000115331325606366700172270ustar00rootroot00000000000000import lexicon.client import pytest import os def test_Client_init(): options = { 'provider_name':'base', 'action': 'list', 'domain': 'example.com', 'type': 'TXT' } client = lexicon.client.Client(options) assert client.provider_name == options['provider_name'] assert client.action == options['action'] assert client.options['domain'] == options['domain'] assert client.options['type'] == options['type'] def test_Client_init_when_domain_includes_subdomain_should_strip(): options = { 'provider_name':'base', 'action': 'list', 'domain': 'www.example.com', 'type': 'TXT' } client = lexicon.client.Client(options) assert client.provider_name == options['provider_name'] assert client.action == options['action'] assert client.options['domain'] == 'example.com' assert client.options['type'] == options['type'] def test_Client_init_with_delegated_domain_name(): options = { 'provider_name':'base', 'action': 'list', 'domain': 'www.sub.example.com', 'delegated': 'sub', 'type': 'TXT' } client = lexicon.client.Client(options) assert client.provider_name == options['provider_name'] assert client.action == options['action'] assert client.options['domain'] == "sub.example.com" assert client.options['type'] == options['type'] def test_Client_init_with_delegated_domain_fqdn(): options = { 'provider_name':'base', 'action': 'list', 'domain': 'www.sub.example.com', 'delegated': 'sub.example.com', 'type': 'TXT' } client = lexicon.client.Client(options) assert client.provider_name == options['provider_name'] assert client.action == options['action'] assert client.options['domain'] == "sub.example.com" assert client.options['type'] == options['type'] def test_Client_init_with_same_delegated_domain_fqdn(): options = { 'provider_name':'base', 'action': 'list', 'domain': 'www.example.com', 'delegated': 'example.com', 'type': 'TXT' } client = lexicon.client.Client(options) assert client.provider_name == options['provider_name'] assert client.action == options['action'] assert client.options['domain'] == "example.com" assert client.options['type'] == options['type'] def test_Client_init_when_missing_provider_should_fail(): options = { 'action': 'list', 'domain': 'example.com', 'type': 'TXT' } with pytest.raises(AttributeError): lexicon.client.Client(options) def test_Client_init_when_missing_action_should_fail(): options = { 'provider_name':'base', 'domain': 'example.com', 'type': 'TXT' } with pytest.raises(AttributeError): lexicon.client.Client(options) def test_Client_init_when_missing_domain_should_fail(): options = { 'provider_name':'base', 'action': 'list', 'type': 'TXT' } with pytest.raises(AttributeError): lexicon.client.Client(options) def test_Client_init_when_missing_type_should_fail(): options = { 'provider_name':'base', 'action': 'list', 'domain': 'example.com', } with pytest.raises(AttributeError): lexicon.client.Client(options) def test_Client_parse_env_with_no_keys_should_do_nothing(monkeypatch): if os.environ.get('LEXICON_CLOUDFLARE_TOKEN'): monkeypatch.delenv('LEXICON_CLOUDFLARE_TOKEN') if os.environ.get('LEXICON_CLOUDFLARE_USERNAME'): monkeypatch.delenv('LEXICON_CLOUDFLARE_USERNAME') options = { 'provider_name':'cloudflare', 'action': 'list', 'domain': 'www.example.com', 'type': 'TXT' } client = lexicon.client.Client(options) assert client.provider_name == options['provider_name'] assert client.action == options['action'] assert client.options['domain'] == 'example.com' assert client.options['type'] == options['type'] assert client.options.get('auth_token') == None assert client.options.get('auth_username') == None def test_Client_parse_env_with_auth_keys(monkeypatch): monkeypatch.setenv('LEXICON_CLOUDFLARE_TOKEN','test-token') monkeypatch.setenv('LEXICON_CLOUDFLARE_USERNAME','test-username@example.com') options = { 'provider_name':'cloudflare', 'action': 'list', 'domain': 'www.example.com', 'type': 'TXT' } client = lexicon.client.Client(options) assert client.provider_name == options['provider_name'] assert client.action == options['action'] assert client.options['domain'] == 'example.com' assert client.options['type'] == options['type'] assert client.options.get('auth_token') == 'test-token' assert client.options.get('auth_username') == 'test-username@example.com' #TODO: add tests for Provider loading?lexicon-2.2.1/tests/test_main.py000066400000000000000000000021751325606366700166770ustar00rootroot00000000000000import lexicon.__main__ import pytest def test_BaseProviderParser(): baseparser = lexicon.__main__.BaseProviderParser() parsed = baseparser.parse_args(['list','capsulecd.com','TXT']) assert parsed.action == 'list' assert parsed.domain == 'capsulecd.com' assert parsed.type == 'TXT' assert parsed.ttl == None def test_BaseProviderParser_without_domain(): baseparser = lexicon.__main__.BaseProviderParser() with pytest.raises(SystemExit): baseparser.parse_args(['list']) def test_BaseProviderParser_without_options(): baseparser = lexicon.__main__.BaseProviderParser() with pytest.raises(SystemExit): baseparser.parse_args([]) def test_MainParser(): baseparser = lexicon.__main__.MainParser() parsed = baseparser.parse_args(['cloudflare','list','capsulecd.com','TXT']) assert parsed.provider_name == 'cloudflare' assert parsed.action == 'list' assert parsed.domain == 'capsulecd.com' assert parsed.type == 'TXT' def test_MainParser_without_args(): baseparser = lexicon.__main__.MainParser() with pytest.raises(SystemExit): baseparser.parse_args([]) lexicon-2.2.1/tox.ini000066400000000000000000000012751325606366700145130ustar00rootroot00000000000000# Tox (http://tox.testrun.org/) is a tool for running tests # in multiple virtualenvs. This configuration file will run the # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. [tox] envlist = py27, py34, py35 usedevelop = True # basic install ensures that providers which require additional libraries do not break the CLI when not installed. [testenv:basic] passenv = CIRCLE_BRANCH commands = lexicon --version deps = -rrequirements.txt [testenv] passenv = CIRCLE_BRANCH commands = lexicon --version py.test tests --cov=lexicon coveralls deps = -rrequirements.txt -rtest-requirements.txt -roptional-requirements.txt