[libcloud] branch trunk updated: Update CHANGES.rst

2019-01-27 Thread anthonyshaw
This is an automated email from the ASF dual-hosted git repository.

anthonyshaw pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
 new e8735a7  Update CHANGES.rst
e8735a7 is described below

commit e8735a71023a46c24b715830358ee59039b45704
Author: Anthony Shaw 
AuthorDate: Mon Jan 28 08:12:27 2019 +1100

Update CHANGES.rst
---
 CHANGES.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CHANGES.rst b/CHANGES.rst
index 6743cbd..0ee8e91 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -15,6 +15,8 @@ General
 
 - Use assertIsNone instead of assertEqual with None in tests (GITHUB-1264)
   [Ken Dreyer]
+  
+- Updating command line arguments to current version in Azure examples 
(GITHUB-1273) [mitar]
 
 Common
 ~~



[jira] [Commented] (LIBCLOUD-1025) add a driver for RcodeZero DNS

2019-01-27 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/LIBCLOUD-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16753588#comment-16753588
 ] 

ASF subversion and git services commented on LIBCLOUD-1025:
---

Commit 78dafcbf314723028c9cc7c3268646971957d3ef in libcloud's branch 
refs/heads/trunk from Michael Braunoeder
[ https://gitbox.apache.org/repos/asf?p=libcloud.git;h=78dafcb ]

[LIBCLOUD-1025] Add a new DNS driver for RcodeZero DNS.


> add a driver for RcodeZero DNS
> --
>
> Key: LIBCLOUD-1025
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-1025
> Project: Libcloud
>  Issue Type: Improvement
>  Components: DNS
>Reporter: Michael Braunoeder
>Priority: Major
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> add a driver for RcodeZero DNS : https://my.rcodezero.at/api-doc/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] tonybaloney merged pull request #1273: Updating command line arguments to current version

2019-01-27 Thread GitBox
tonybaloney merged pull request #1273: Updating command line arguments to 
current version
URL: https://github.com/apache/libcloud/pull/1273
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] tonybaloney merged pull request #1274: Issues are not on GitHub

2019-01-27 Thread GitBox
tonybaloney merged pull request #1274: Issues are not on GitHub
URL: https://github.com/apache/libcloud/pull/1274
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[libcloud] branch trunk updated: Update CHANGES.rst

2019-01-27 Thread anthonyshaw
This is an automated email from the ASF dual-hosted git repository.

anthonyshaw pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 34ad7af  Update CHANGES.rst
34ad7af is described below

commit 34ad7aff07eaf8dffe213729ac09379146e4725a
Author: Anthony Shaw 
AuthorDate: Mon Jan 28 08:10:32 2019 +1100

Update CHANGES.rst

Changes for #1275
---
 CHANGES.rst | 5 +
 1 file changed, 5 insertions(+)

diff --git a/CHANGES.rst b/CHANGES.rst
index afe377e..6743cbd 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -108,6 +108,11 @@ DNS
 
 - Add new driver for RcodeZero DNS (GITHUB-1256, LIBCLOUD-1025) [MikeAT]
 
+Storage
+~~~
+
+- Adds missing docs for param ex_prefix & adds to DummyStore. Add ex_prefix 
kwarg to the `list_container_objects` methods in the base and dummy classes. 
(GITHUB-1275) [RichardARPANET]
+
 Changes in Apache Libcloud 2.4.0
 
 



[GitHub] tonybaloney commented on issue #1274: Issues are not on GitHub

2019-01-27 Thread GitBox
tonybaloney commented on issue #1274: Issues are not on GitHub
URL: https://github.com/apache/libcloud/pull/1274#issuecomment-457954597
 
 
    good point. Thanks for raising


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[libcloud] branch trunk updated: Issues are not on GitHub.

2019-01-27 Thread anthonyshaw
This is an automated email from the ASF dual-hosted git repository.

anthonyshaw pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
 new ced293d  Issues are not on GitHub.
 new 2f1ded1  Merge pull request #1274 from mitar/patch-2
ced293d is described below

commit ced293dd0bdb45a0cf3d73e09d34071c5e7b2d38
Author: Mitar 
AuthorDate: Mon Dec 31 16:45:01 2018 -0800

Issues are not on GitHub.
---
 README.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.rst b/README.rst
index e473aaa..21a8397 100644
--- a/README.rst
+++ b/README.rst
@@ -32,7 +32,7 @@ through a unified and easy to use API.
 
 :Code:  https://github.com/apache/libcloud
 :License:   Apache 2.0; see LICENSE file
-:Issues:https://github.com/apache/libcloud/issues
+:Issues:https://issues.apache.org/jira/projects/LIBCLOUD/issues
 :Website:   https://libcloud.apache.org/
 :Documentation: https://libcloud.readthedocs.io
 



[GitHub] tonybaloney merged pull request #1275: Adds missing docs for param ex_prefix & adds to DummyStore

2019-01-27 Thread GitBox
tonybaloney merged pull request #1275: Adds missing docs for param ex_prefix & 
adds to DummyStore
URL: https://github.com/apache/libcloud/pull/1275
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[libcloud] branch trunk updated: Adds missing docs for param ``ex_prefix`` within list_container_objects method.

2019-01-27 Thread anthonyshaw
This is an automated email from the ASF dual-hosted git repository.

anthonyshaw pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 09af52a  Adds missing docs for param ``ex_prefix`` within 
list_container_objects method.
 new 469bda9  Merge pull request #1275 from 
richardARPANET/corrects-list-container-objects-docs
09af52a is described below

commit 09af52a3918258606b5696e6fbe6add2fc072e3c
Author: Richard O'Dwyer 
AuthorDate: Tue Jan 8 15:01:50 2019 +0100

Adds missing docs for param ``ex_prefix`` within list_container_objects 
method.

Also adds ex_prefix functionality to the DummyStore, since all other stores 
have this feature.
---
 libcloud/storage/base.py|  5 -
 libcloud/storage/drivers/dummy.py   |  7 --
 libcloud/test/storage/test_dummy.py | 45 +
 3 files changed, 54 insertions(+), 3 deletions(-)

diff --git a/libcloud/storage/base.py b/libcloud/storage/base.py
index 052725b..85a132d 100644
--- a/libcloud/storage/base.py
+++ b/libcloud/storage/base.py
@@ -221,13 +221,16 @@ class StorageDriver(BaseDriver):
 raise NotImplementedError(
 'iterate_container_objects not implemented for this driver')
 
-def list_container_objects(self, container):
+def list_container_objects(self, container, ex_prefix=None):
 """
 Return a list of objects for the given container.
 
 :param container: Container instance.
 :type container: :class:`Container`
 
+:param ex_prefix: Filter objects starting with a prefix.
+:type  ex_prefix: ``str``
+
 :return: A list of Object instances.
 :rtype: ``list`` of :class:`Object`
 """
diff --git a/libcloud/storage/drivers/dummy.py 
b/libcloud/storage/drivers/dummy.py
index 1200e51..6b5c3c3 100644
--- a/libcloud/storage/drivers/dummy.py
+++ b/libcloud/storage/drivers/dummy.py
@@ -178,10 +178,13 @@ class DummyStorageDriver(StorageDriver):
 for container in list(self._containers.values()):
 yield container['container']
 
-def list_container_objects(self, container):
+def list_container_objects(self, container, ex_prefix=None):
 container = self.get_container(container.name)
 
-return container.objects
+objects = list(self._containers[container.name]['objects'].values())
+if ex_prefix is not None:
+objects = [o for o in objects if o.name.startswith(ex_prefix)]
+return objects
 
 def get_container(self, container_name):
 """
diff --git a/libcloud/test/storage/test_dummy.py 
b/libcloud/test/storage/test_dummy.py
new file mode 100644
index 000..b627cfa
--- /dev/null
+++ b/libcloud/test/storage/test_dummy.py
@@ -0,0 +1,45 @@
+import pytest
+
+from libcloud.storage.drivers.dummy import DummyStorageDriver
+
+
+@pytest.fixture
+def driver():
+return DummyStorageDriver('key', 'id')
+
+
+@pytest.fixture
+def container_with_contents(driver):
+container_name = 'test'
+object_name = 'test.dat'
+container = driver.create_container(container_name=container_name)
+driver.upload_object(
+__file__, container=container, object_name=object_name
+)
+return container_name, object_name
+
+
+def test_list_container_objects(driver, container_with_contents):
+container_name, object_name = container_with_contents
+container = driver.get_container(container_name)
+
+objects = driver.list_container_objects(container=container)
+
+assert any(o for o in objects if o.name == object_name)
+
+
+def test_list_container_objects_filter_by_prefix(
+driver, container_with_contents
+):
+container_name, object_name = container_with_contents
+container = driver.get_container(container_name)
+
+objects = driver.list_container_objects(
+container=container, ex_prefix=object_name[:3]
+)
+assert any(o for o in objects if o.name == object_name)
+
+objects = driver.list_container_objects(
+container=container, ex_prefix='does-not-exist.dat'
+)
+assert not objects



[libcloud] branch trunk updated: Update CHANGES.rst

2019-01-27 Thread anthonyshaw
This is an automated email from the ASF dual-hosted git repository.

anthonyshaw pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
 new c7ee7e0  Update CHANGES.rst
c7ee7e0 is described below

commit c7ee7e0f4bde7180639a63e30971c994c5d73736
Author: Anthony Shaw 
AuthorDate: Mon Jan 28 08:07:14 2019 +1100

Update CHANGES.rst

Add changes for #1256
---
 CHANGES.rst | 5 +
 1 file changed, 5 insertions(+)

diff --git a/CHANGES.rst b/CHANGES.rst
index 4309ecf..afe377e 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -103,6 +103,11 @@ Container
 - [Docker] Improve docstring for RegistryClient (GITHUB-1254)
   [Ken Dreyer]
 
+DNS
+~~~
+
+- Add new driver for RcodeZero DNS (GITHUB-1256, LIBCLOUD-1025) [MikeAT]
+
 Changes in Apache Libcloud 2.4.0
 
 



[jira] [Commented] (LIBCLOUD-1025) add a driver for RcodeZero DNS

2019-01-27 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/LIBCLOUD-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16753589#comment-16753589
 ] 

ASF subversion and git services commented on LIBCLOUD-1025:
---

Commit 771fa66da5aeaff8225669358420b676f7ae1b31 in libcloud's branch 
refs/heads/trunk from Michael Braunoeder
[ https://gitbox.apache.org/repos/asf?p=libcloud.git;h=771fa66 ]

[LIBCLOUD-1025] fixed travis errors.


> add a driver for RcodeZero DNS
> --
>
> Key: LIBCLOUD-1025
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-1025
> Project: Libcloud
>  Issue Type: Improvement
>  Components: DNS
>Reporter: Michael Braunoeder
>Priority: Major
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> add a driver for RcodeZero DNS : https://my.rcodezero.at/api-doc/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] tonybaloney commented on issue #1256: [LIBCLOUD-1025] Add a new DNS driver for RcodeZero DNS.

2019-01-27 Thread GitBox
tonybaloney commented on issue #1256: [LIBCLOUD-1025] Add a new DNS driver for 
RcodeZero DNS.
URL: https://github.com/apache/libcloud/pull/1256#issuecomment-457954143
 
 
   Thanks @MikeAT changes look great  


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[libcloud] branch trunk updated (1437fc3 -> 69b110b)

2019-01-27 Thread anthonyshaw
This is an automated email from the ASF dual-hosted git repository.

anthonyshaw pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git.


from 1437fc3  Add changes for #1272
 new 78dafcb  [LIBCLOUD-1025] Add a new DNS driver for RcodeZero DNS.
 new 771fa66  [LIBCLOUD-1025] fixed travis errors.
 new 8baa513  fixed documentation
 new ef7b7af  use default-hostname as a class-attribute
 new b9f9bf8  refactore double negotiation
 new 67aed49  add method get_record
 new 1212dfa  regenerated supported methods/providers table
 new 50be9e7  fixed whitespaces
 new fe27e6c  fixed python3 issue and tests
 new 69b110b  Merge pull request #1256 from 
MikeAT/Libcloud-1025_add_RcodeZero_DNS_Driver

The 6278 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/_static/images/provider_logos/rcodezero.png   | Bin 0 -> 35718 bytes
 docs/dns/_supported_methods.rst|   2 +
 docs/dns/_supported_providers.rst  |   2 +
 docs/dns/drivers/rcodezero.rst |  43 ++
 .../examples/dns/rcodezero}/__init__.py|   0
 docs/examples/dns/rcodezero/instantiate_driver.py  |  10 +
 libcloud/dns/drivers/rcodezero.py  | 535 +
 libcloud/dns/providers.py  |   2 +
 libcloud/dns/types.py  |   1 +
 .../dns/fixtures/rcodezero/get_zone_details.json   |  13 +
 .../test/dns/fixtures/rcodezero/list_records.json  |  40 ++
 .../test/dns/fixtures/rcodezero/list_zones.json|  35 ++
 .../dns/{test_powerdns.py => test_rcodezero.py}| 136 +++---
 13 files changed, 760 insertions(+), 59 deletions(-)
 create mode 100644 docs/_static/images/provider_logos/rcodezero.png
 create mode 100644 docs/dns/drivers/rcodezero.rst
 copy {libcloud/test/storage => docs/examples/dns/rcodezero}/__init__.py (100%)
 create mode 100644 docs/examples/dns/rcodezero/instantiate_driver.py
 create mode 100644 libcloud/dns/drivers/rcodezero.py
 create mode 100644 libcloud/test/dns/fixtures/rcodezero/get_zone_details.json
 create mode 100644 libcloud/test/dns/fixtures/rcodezero/list_records.json
 create mode 100644 libcloud/test/dns/fixtures/rcodezero/list_zones.json
 copy libcloud/test/dns/{test_powerdns.py => test_rcodezero.py} (57%)



[jira] [Commented] (LIBCLOUD-1025) add a driver for RcodeZero DNS

2019-01-27 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/LIBCLOUD-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16753590#comment-16753590
 ] 

ASF subversion and git services commented on LIBCLOUD-1025:
---

Commit 69b110bc46f9ba6371101ac079a86225bc75bd48 in libcloud's branch 
refs/heads/trunk from Anthony Shaw
[ https://gitbox.apache.org/repos/asf?p=libcloud.git;h=69b110b ]

Merge pull request #1256 from MikeAT/Libcloud-1025_add_RcodeZero_DNS_Driver

[LIBCLOUD-1025] Add a new DNS driver for RcodeZero DNS.

> add a driver for RcodeZero DNS
> --
>
> Key: LIBCLOUD-1025
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-1025
> Project: Libcloud
>  Issue Type: Improvement
>  Components: DNS
>Reporter: Michael Braunoeder
>Priority: Major
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> add a driver for RcodeZero DNS : https://my.rcodezero.at/api-doc/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] tonybaloney merged pull request #1256: [LIBCLOUD-1025] Add a new DNS driver for RcodeZero DNS.

2019-01-27 Thread GitBox
tonybaloney merged pull request #1256: [LIBCLOUD-1025] Add a new DNS driver for 
RcodeZero DNS.
URL: https://github.com/apache/libcloud/pull/1256
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services