GithubHelp home page GithubHelp logo

python-dns's Introduction

Python Client for Cloud DNS API

preview pypi versions

Cloud DNS API: provides methods that you can use to manage DNS for your applications.

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Enable the Cloud DNS API.
  4. Setup Authentication.

Installation

Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.

With virtualenv, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.

Code samples and snippets

Code samples and snippets live in python-docs-samples repository.

Supported Python Versions

Our client libraries are compatible with all current active and maintenance versions of Python.

Python >= 3.7

Unsupported Python Versions

Python <= 3.6

If you are using an end-of-life version of Python, we recommend that you update as soon as possible to an actively supported version.

Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-dns

Windows

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-dns

Next Steps

python-dns's People

Contributors

busunkim96 avatar charles-salmon avatar chemelnucfin avatar crwilcox avatar dandhlee avatar daspecster avatar dependabot[bot] avatar dhermes avatar gcf-owl-bot[bot] avatar google-cloud-policy-bot[bot] avatar jonny74889 avatar justinbeckwith avatar lukesneeringer avatar noahdietz avatar parthea avatar plamut avatar pravindahal avatar release-please[bot] avatar ryanyuan avatar surferjeffatgoogle avatar tseaver avatar tswast avatar vam-google avatar vchudnov-g avatar yash2121ja avatar ylil93 avatar yoshi-automation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-dns's Issues

Synthesis failed for python-dns

Hello! Autosynth couldn't regenerate python-dns. ๐Ÿ’”

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
On branch autosynth
nothing to commit, working tree clean
HEAD detached at FETCH_HEAD
nothing to commit, working tree clean
.coveragerc
.flake8
.github/CONTRIBUTING.md
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/support_request.md
.github/PULL_REQUEST_TEMPLATE.md
.github/release-please.yml
.gitignore
.kokoro/build.sh
.kokoro/continuous/common.cfg
.kokoro/continuous/continuous.cfg
.kokoro/docs/common.cfg
.kokoro/docs/docs.cfg
.kokoro/presubmit/common.cfg
.kokoro/presubmit/presubmit.cfg
.kokoro/publish-docs.sh
.kokoro/release.sh
.kokoro/release/common.cfg
.kokoro/release/release.cfg
.kokoro/trampoline.sh
CODE_OF_CONDUCT.md
CONTRIBUTING.rst
LICENSE
MANIFEST.in
docs/_static/custom.css
docs/_templates/layout.html
docs/conf.py.j2
noxfile.py.j2
renovate.json
setup.cfg
Running session blacken
Creating virtual environment (virtualenv) using python3.6 in .nox/blacken
pip install black==19.3b0
Error: pip is not installed into the virtualenv, it is located at /tmpfs/src/git/autosynth/env/bin/pip. Pass external=True into run() to explicitly allow this.
Session blacken failed.
synthtool > Failed executing nox -s blacken:

None
synthtool > Wrote metadata to synth.metadata.
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/tmpfs/src/git/autosynth/working_repo/synth.py", line 30, in <module>
    s.shell.run(["nox", "-s", "blacken"], hide_output=False)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nox', '-s', 'blacken']' returned non-zero exit status 1.

Synthesis failed

Google internal developers can see the full log here.

missing optional parameter "name" in list_resource_record_sets

As in title, ManagedZones list_resource_record_sets is missing the optional parameter "name", see https://cloud.google.com/dns/api/v1/resourceRecordSets/list

Use case: if you need to update a resource record set you have to make a zone delete/create change operation, so you need the current record set to delete it. You have to get the full list and then cycle to get the one you need, if you have hundreds/thousands of record sets this is a waste.

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_name failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_name(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:80:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_client.TestClient: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_ctor_defaults
  • test_ctor_w_client_info
  • test_ctor_w_client_options_dict
  • test_ctor_w_client_options_object
  • test_ctor_w_empty_client_options_object
  • test_list_zones_defaults
  • test_list_zones_explicit
  • test_quotas_defaults
  • test_quotas_w_kind_key
  • test_zone_explicit
  • test_zone_w_dns_name_wo_description
  • test_zone_wo_dns_name

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test_resource_record_set.TestResourceRecordSet: test_ctor failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_ctor(self):
    zone = _Zone()
  rrs = self._make_one(
        "test.example.com", "CNAME", 3600, ["www.example.com"], zone
    )

tests/unit/test_resource_record_set.py:31:


tests/unit/test_resource_record_set.py:26: in _make_one
return self._get_target_class()(*args, **kw)
tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

Add a py.typed file for submodule

To be in accordance with PEP 561 we should add a py.typed file to google/cloud/dns/py.typed

The file can be empty but does need to be present for some type checkers.

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_type failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_type(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:66:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test__http.TestConnection: test_extra_headers failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_extra_headers(self):
    import requests
    from google.cloud import _http as base_http

    http = mock.create_autospec(requests.Session, instance=True)
    response = requests.Response()
    response.status_code = 200
    response_data = b"brent-spiner"
    response._content = response_data
    http.request.return_value = response
    client = mock.Mock(_http=http, spec=["_http"])
  conn = self._make_one(client)

tests/unit/test__http.py:83:


tests/unit/test__http.py:28: in _make_one
return self._get_target_class()(*args, **kw)
tests/unit/test__http.py:23: in _get_target_class
from google.cloud.dns._http import Connection
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_zone.TestManagedZone: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_changes
  • test_create_w_alternate_client
  • test_create_w_bound_client
  • test_create_w_missing_output_properties
  • test_create_wo_dns_name_or_description
  • test_ctor_defaults
  • test_ctor_explicit
  • test_ctor_wo_description
  • test_delete_w_alternate_client
  • test_delete_w_bound_client
  • test_description_setter
  • test_description_setter_bad_value
  • test_exists_hit_w_alternate_client
  • test_exists_miss_w_bound_client
  • test_from_api_repr_bare
  • test_from_api_repr_missing_identity
  • test_from_api_repr_w_properties
  • test_list_changes_defaults
  • test_list_changes_explicit
  • test_list_resource_record_sets_defaults
  • test_list_resource_record_sets_explicit
  • test_name_server_set_setter
  • test_name_server_set_setter_bad_value
  • test_reload_w_alternate_client
  • test_reload_w_bound_client
  • test_resource_record_set

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_ttl failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_ttl(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:52:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_zone.TestManagedZone: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_changes
  • test_create_w_alternate_client
  • test_create_w_bound_client
  • test_create_w_missing_output_properties
  • test_create_wo_dns_name_or_description
  • test_ctor_defaults
  • test_ctor_explicit
  • test_ctor_wo_description
  • test_delete_w_alternate_client
  • test_delete_w_bound_client
  • test_description_setter
  • test_description_setter_bad_value
  • test_exists_hit_w_alternate_client
  • test_exists_miss_w_bound_client
  • test_from_api_repr_bare
  • test_from_api_repr_missing_identity
  • test_from_api_repr_w_properties
  • test_list_changes_defaults
  • test_list_changes_explicit
  • test_list_resource_record_sets_defaults
  • test_list_resource_record_sets_explicit
  • test_name_server_set_setter
  • test_name_server_set_setter_bad_value
  • test_reload_w_alternate_client
  • test_reload_w_bound_client
  • test_resource_record_set

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test_client.TestClient: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_ctor_defaults
  • test_ctor_w_client_info
  • test_ctor_w_client_options_dict
  • test_ctor_w_client_options_object
  • test_ctor_w_empty_client_options_object
  • test_list_zones_defaults
  • test_list_zones_explicit
  • test_quotas_defaults
  • test_quotas_w_kind_key
  • test_zone_explicit
  • test_zone_w_dns_name_wo_description
  • test_zone_wo_dns_name

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test_resource_record_set.TestResourceRecordSet: test_ctor failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_ctor(self):
    zone = _Zone()

    rrs = self._make_one(
      "test.example.com", "CNAME", 3600, ["www.example.com"], zone
    )

tests/unit/test_resource_record_set.py:32:


tests/unit/test_resource_record_set.py:26: in _make_one
return self._get_target_class()(*args, **kw)
tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_name failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_name(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:80:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test__http.TestConnection: test_build_api_url_no_extra_query_params failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_build_api_url_no_extra_query_params(self):
  from six.moves.urllib.parse import parse_qsl

E ModuleNotFoundError: No module named 'six'

tests/unit/test__http.py:31: ModuleNotFoundError

tests.unit.test_changes.TestChanges: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_add_record_set
  • test_add_record_set_invalid_value
  • test_create_w_alternate_client
  • test_create_w_bound_client
  • test_create_wo_additions_or_deletions
  • test_ctor
  • test_delete_record_set
  • test_delete_record_set_invalid_value
  • test_exists_hit_w_alternate_client
  • test_exists_miss_w_bound_client
  • test_from_api_repr
  • test_from_api_repr_missing_additions_deletions
  • test_name_setter
  • test_name_setter_bad_value
  • test_reload_w_alternate_client
  • test_reload_w_bound_client

commit: 978174f
buildURL: Build Status, Sponge
status: failed

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

client.quotas() error

  • OS type and version: macOS Mojave (10.14.6 (18G5033))
  • Python version: Python 3.7.4
  • pip version: pip 20.2.3 from /Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages/pip (python 3.7)
  • google-cloud-dns version:
Version: 0.32.0
Summary: Google Cloud DNS API client library
Home-page: https://github.com/googleapis/python-dns
Author: Google LLC
Author-email: [email protected]
License: Apache 2.0
Location: /Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages
Requires: google-cloud-core
Required-by:

Steps to reproduce

  1. Ensure authentication is properly setup (I'm using a Service Account)
  2. Execute code below, substituting "my-project" for a valid projectID

Code example

from google.cloud import dns
client = dns.Client(project="my-project")
quotas = client.quotas()  # API request

image

Stack trace

Traceback (most recent call last):
  File "google-cloud-dns-search.py", line 3, in <module>
    quotas = client.quotas()  # API request
  File "/Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages/google/cloud/dns/client.py", line 100, in quotas
    key: int(value) for key, value in resp["quota"].items() if key != "kind"
  File "/Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages/google/cloud/dns/client.py", line 100, in <dictcomp>
    key: int(value) for key, value in resp["quota"].items() if key != "kind"
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_bare failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_bare(self):
    zone = _Zone()
    RESOURCE = {
        "kind": "dns#resourceRecordSet",
        "name": "test.example.com",
        "type": "CNAME",
        "ttl": "3600",
        "rrdatas": ["www.example.com"],
    }
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:97:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

Your .repo-metadata.json file has a problem ๐Ÿค’

You have a problem with your .repo-metadata.json file:

Result of scan ๐Ÿ“ˆ:

  • api_shortname 'dns' invalid in .repo-metadata.json

โ˜๏ธ Once you address these problems, you can close this issue.

Need help?

  • Schema definition: lists valid options for each field.
  • API index: for gRPC libraries api_shortname should match the subdomain of an API's hostName.
  • Reach out to go/github-automation if you have any questions.

tests.unit.test_resource_record_set.TestResourceRecordSet: test_ctor failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_ctor(self):
    zone = _Zone()
  rrs = self._make_one(
        "test.example.com", "CNAME", 3600, ["www.example.com"], zone
    )

tests/unit/test_resource_record_set.py:31:


tests/unit/test_resource_record_set.py:26: in _make_one
return self._get_target_class()(*args, **kw)
tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_type failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_type(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:66:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_zone.TestManagedZone: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_changes
  • test_create_w_alternate_client
  • test_create_w_bound_client
  • test_create_w_missing_output_properties
  • test_create_wo_dns_name_or_description
  • test_ctor_defaults
  • test_ctor_explicit
  • test_ctor_wo_description
  • test_delete_w_alternate_client
  • test_delete_w_bound_client
  • test_description_setter
  • test_description_setter_bad_value
  • test_exists_hit_w_alternate_client
  • test_exists_miss_w_bound_client
  • test_from_api_repr_bare
  • test_from_api_repr_missing_identity
  • test_from_api_repr_w_properties
  • test_list_changes_defaults
  • test_list_changes_explicit
  • test_list_resource_record_sets_defaults
  • test_list_resource_record_sets_explicit
  • test_name_server_set_setter
  • test_name_server_set_setter_bad_value
  • test_reload_w_alternate_client
  • test_reload_w_bound_client
  • test_resource_record_set

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test_changes.TestChanges: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_add_record_set
  • test_add_record_set_invalid_value
  • test_create_w_alternate_client
  • test_create_w_bound_client
  • test_create_wo_additions_or_deletions
  • test_ctor
  • test_delete_record_set
  • test_delete_record_set_invalid_value
  • test_exists_hit_w_alternate_client
  • test_exists_miss_w_bound_client
  • test_from_api_repr
  • test_from_api_repr_missing_additions_deletions
  • test_name_setter
  • test_name_setter_bad_value
  • test_reload_w_alternate_client
  • test_reload_w_bound_client

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test__http.TestConnection: test_build_api_url_w_custom_endpoint failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_build_api_url_w_custom_endpoint(self):
  from six.moves.urllib.parse import parse_qsl

E ModuleNotFoundError: No module named 'six'

tests/unit/test__http.py:45: ModuleNotFoundError

tests.unit.test__http.TestConnection: test_build_api_url_w_extra_query_params failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_build_api_url_w_extra_query_params(self):
  from six.moves.urllib.parse import parse_qsl

E ModuleNotFoundError: No module named 'six'

tests/unit/test__http.py:60: ModuleNotFoundError

tests.unit.test_client.TestClient: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_ctor_defaults
  • test_ctor_w_client_info
  • test_ctor_w_client_options_dict
  • test_ctor_w_client_options_object
  • test_ctor_w_empty_client_options_object
  • test_list_zones_defaults
  • test_list_zones_explicit
  • test_quotas_defaults
  • test_quotas_w_kind_key
  • test_zone_explicit
  • test_zone_w_dns_name_wo_description
  • test_zone_wo_dns_name

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_ttl failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_ttl(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:52:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_bare failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_bare(self):
    zone = _Zone()
    RESOURCE = {
        "kind": "dns#resourceRecordSet",
        "name": "test.example.com",
        "type": "CNAME",
        "ttl": "3600",
        "rrdatas": ["www.example.com"],
    }
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:97:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

README.md is outdated

It says

Code samples and snippets live in the samples/ folder.

but there is no samples folder

Synthesis failed for python-dns

Hello! Autosynth couldn't regenerate python-dns. ๐Ÿ’”

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
.coveragerc
.flake8
.github/CONTRIBUTING.md
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/support_request.md
.github/PULL_REQUEST_TEMPLATE.md
.github/release-please.yml
.gitignore
.kokoro/build.sh
.kokoro/continuous/common.cfg
.kokoro/continuous/continuous.cfg
.kokoro/docs/common.cfg
.kokoro/docs/docs.cfg
.kokoro/presubmit/common.cfg
.kokoro/presubmit/presubmit.cfg
.kokoro/publish-docs.sh
.kokoro/release.sh
.kokoro/release/common.cfg
.kokoro/release/release.cfg
.kokoro/trampoline.sh
CODE_OF_CONDUCT.md
CONTRIBUTING.rst
LICENSE
MANIFEST.in
docs/_static/custom.css
docs/_templates/layout.html
docs/conf.py.j2
noxfile.py.j2
renovate.json
setup.cfg
Running session blacken
Creating virtual environment (virtualenv) using python3.6 in .nox/blacken
pip install black==19.3b0
Error: pip is not installed into the virtualenv, it is located at /tmpfs/src/git/autosynth/env/bin/pip. Pass external=True into run() to explicitly allow this.
Session blacken failed.
synthtool > Failed executing nox -s blacken:

None
synthtool > Wrote metadata to synth.metadata.
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 99, in <module>
    main()
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 91, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/tmpfs/src/git/autosynth/working_repo/synth.py", line 30, in <module>
    s.shell.run(["nox", "-s", "blacken"], hide_output=False)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nox', '-s', 'blacken']' returned non-zero exit status 1.

Synthesis failed

Google internal developers can see the full log here.

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_name failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_name(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:80:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_rrdatas failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_rrdatas(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:43:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_type failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_type(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:66:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test__http.TestConnection: test_extra_headers failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_extra_headers(self):
    import requests
    from google.cloud import _http as base_http

    http = mock.create_autospec(requests.Session, instance=True)
    response = requests.Response()
    response.status_code = 200
    response_data = b"brent-spiner"
    response._content = response_data
    http.request.return_value = response
    client = mock.Mock(_http=http, spec=["_http"])
  conn = self._make_one(client)

tests/unit/test__http.py:83:


tests/unit/test__http.py:28: in _make_one
return self._get_target_class()(*args, **kw)
tests/unit/test__http.py:23: in _get_target_class
from google.cloud.dns._http import Connection
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_ttl failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_ttl(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:52:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_rrdatas failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_rrdatas(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:43:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

get zone visibility from list_zones

Is your feature request related to a problem? Please describe.
When operating against a list of zones, I have a situation where I'd like to be able to (e.g.) only operate on public zones.

Describe the solution you'd like
I'd like to be able to get public / private status (say, as zone.visibility) when listing zones in the Python API
For example,
https://cloud.google.com/dns/docs/reference/v1/managedZones
lists visibility, however, list_zones() returns (e.g.) zone.name, but not zone.visibility.

https://googleapis.dev/python/dns/latest/zone.html
has some properties listed, but doesn't seem to have any that I can see that refer to the zone being public or private.

Describe alternatives you've considered
Let me know if I need to make another call, but I'm assuming since list_zones returns objects of type ManagedZone that this should already be there if it's available.

Additional context

Question: Does google-cloud-dns python client supports dry-run

WHAT

Does google-cloud-dns python client supports dry-run? Sorry for the trouble! ๐Ÿ™‡
If yes, could you please redirect me to the documentation.

WHY

I am using google-cloud-dns python client. I think it would be a good idea to do dry-run to see the changes. But i could not find anything related here.

zone.list_resource_record_sets example in index.rst is wrong

In index.rst, there is the following example:

>>> records, page_token = zone.list_resource_record_sets()  # API request
>>> while page_token is not None:
...     next_batch, page_token = zone.list_resource_record_sets(
...         page_token=page_token)  # API request
...     records.extend(next_batch)

However, zone.list_resource_record_sets only returns only one value and I guess does the paging automatically.

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_bare failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_bare(self):
    zone = _Zone()
    RESOURCE = {
        "kind": "dns#resourceRecordSet",
        "name": "test.example.com",
        "type": "CNAME",
        "ttl": "3600",
        "rrdatas": ["www.example.com"],
    }
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:97:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

tests.unit.test_changes.TestChanges: many tests failed

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_add_record_set
  • test_add_record_set_invalid_value
  • test_create_w_alternate_client
  • test_create_w_bound_client
  • test_create_wo_additions_or_deletions
  • test_ctor
  • test_delete_record_set
  • test_delete_record_set_invalid_value
  • test_exists_hit_w_alternate_client
  • test_exists_miss_w_bound_client
  • test_from_api_repr
  • test_from_api_repr_missing_additions_deletions
  • test_name_setter
  • test_name_setter_bad_value
  • test_reload_w_alternate_client
  • test_reload_w_bound_client

commit: 978174f
buildURL: Build Status, Sponge
status: failed

tests.unit.test_resource_record_set.TestResourceRecordSet: test_from_api_repr_missing_rrdatas failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 978174f
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_api_repr_missing_rrdatas(self):
    zone = _Zone()
  klass = self._get_target_class()

tests/unit/test_resource_record_set.py:43:


tests/unit/test_resource_record_set.py:21: in _get_target_class
from google.cloud.dns.resource_record_set import ResourceRecordSet
google/cloud/dns/init.py:32: in
from google.cloud.dns.zone import Changes


"""Define API ManagedZones."""

import six
E ModuleNotFoundError: No module named 'six'

google/cloud/dns/zone.py:17: ModuleNotFoundError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.