debian/0000775000000000000000000000000012325767333007203 5ustar debian/control0000664000000000000000000000513412315321366010600 0ustar Source: python-seamicroclient Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: PKG OpenStack Uploaders: Julien Danjou , Thomas Goirand , Mehdi Abaakouk Build-Depends: openstack-pkg-tools, debhelper (>= 9), python-all (>= 2.6.6-3~), python-babel (>= 1.3), python-coverage (>= 3.6), python-fixtures (>= 0.3.14), python-iso8601 (>= 0.1.8), python-keyring (>=1.6.1), python-mock (>= 1.0), python-pbr (>= 0.5.21), python-prettytable, python-setuptools, python-simplejson, python-six (>= 1.4.1), python-sphinx (>= 1.1.2), python-testtools (>= 0.9.32), testrepository (>= 0.0.17), python-requests # python3-all, # python3-babel (>= 1.3), # python3-iso8601 (>= 0.1.8), # python3-pbr (>= 0.5.21), # python3-prettytable, # python3-setuptools, # python3-simplejson, # python3-six (>= 1.4.1), Standards-Version: 3.9.5 X-Python-Version: >= 2.6 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-seamicroclient.git Vcs-Git: git://anonscm.debian.org/openstack/python-seamicroclient.git Homepage: https://github.com/seamicro/python-seamicroclient Package: python-seamicroclient Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: python-babel (>= 1.3), python-iso8601 (>= 0.1.8), python-pbr (>= 0.5.21), python-prettytable, python-requests (>= 1.1), python-simplejson, python-six (>= 1.4.1), ${misc:Depends}, ${python:Depends} Description: Client library for Seamicro chassis API - Python 2.x Python client for consuming SeaMicro REST API v2.0 . This package contains the Python 2.x module. #Package: python3-seamicroclient #Architecture: all #Pre-Depends: dpkg (>= 1.15.6~) #Depends: python3-babel (>= 1.3), # python3-pbr (>= 0.5.21), # python3-prettytable, # python3-requests (>= 1.1), # python3-simplejson, # python3-six (>= 1.4.1), # ${misc:Depends}, # ${python3:Depends} #Description: Client library for Seamicro chassis API - Python 3.x # Python client for consuming SeaMicro REST API v2.0 # . # This package contains the Python 3.x module. debian/source/0000775000000000000000000000000012310516541010466 5ustar debian/source/format0000664000000000000000000000001412310516541011674 0ustar 3.0 (quilt) debian/source/options0000664000000000000000000000005212310516541012101 0ustar extend-diff-ignore = "^[^/]*[.]egg-info/" debian/changelog0000664000000000000000000000302512325767333011055 0ustar python-seamicroclient (0.2.1-0ubuntu1) trusty-proposed; urgency=medium * New upstream bugfix release. - This release only fixes connection issues when trying to power on/off multiple nodes at the same time. (LP: #1311140) * debian/patches/fix-tests.patch: Fix tests. -- Andres Rodriguez Tue, 22 Apr 2014 12:18:19 -0400 python-seamicroclient (0.2.0-0ubuntu1) trusty; urgency=medium * New upstream release (LP: #1305220) - Remove use of auth_token for REST API. Fixes concurrent access by using user/password each time instead of auth_token (LP: #1302828) * debian/watch: Updated to include correct URL link. -- Andres Rodriguez Wed, 09 Apr 2014 13:37:27 -0400 python-seamicroclient (0.1.0-2ubuntu1) trusty; urgency=medium * debian/control: - Drop Build-Depends on python-hacking since we don't use pep8 testing. - Add Build-Depends on python-requests. * debian/rules: Run tests with testr instead. * debian/patches/skip-tests.patch: Skip various tests as they require to have actual hardware to test against. -- Andres Rodriguez Fri, 28 Mar 2014 12:17:18 -0400 python-seamicroclient (0.1.0-2) unstable; urgency=medium * Added missing build-depends: openstack-pkg-tools (Closes: #741539). -- Thomas Goirand Fri, 14 Mar 2014 06:09:23 +0000 python-seamicroclient (0.1.0-1) unstable; urgency=low * Initial release. (Closes: #738328) -- Thomas Goirand Sun, 09 Feb 2014 15:34:09 +0800 debian/patches/0000775000000000000000000000000012325516766010634 5ustar debian/patches/skip-tests.patch0000664000000000000000000001306612315325646013763 0ustar Index: python-seamicroclient-0.1.0/seamicroclient/tests/functional/v2/test_volumes.py =================================================================== --- python-seamicroclient-0.1.0.orig/seamicroclient/tests/functional/v2/test_volumes.py 2014-03-28 13:04:29.165328793 -0400 +++ python-seamicroclient-0.1.0/seamicroclient/tests/functional/v2/test_volumes.py 2014-03-28 13:04:29.157328793 -0400 @@ -25,15 +25,18 @@ return cs.volumes.create(volume_size, pool) def test_list_volume(self): + self.skipTest('Test requires actual hardware, skipping...') volume_list = cs.volumes.list() self.assertTrue(len(volume_list) > 0) def test_get_volume(self): + self.skipTest('Test requires actual hardware, skipping...') volume_id = cs.volumes.list()[0].id volume = cs.volumes.get(volume_id) self.assertEqual(volume.id, volume_id) def test_create_volume(self): + self.skipTest('Test requires actual hardware, skipping...') pool = cs.pools.list()[0] volume_size = 2 volume_id = self.create_volume(volume_size, pool) @@ -41,6 +44,7 @@ cs.volumes.delete(volume_id) def test_delete_volume(self): + self.skipTest('Test requires actual hardware, skipping...') pool = cs.pools.list()[0] volume = self.create_volume(pool=pool) cs.volumes.delete(volume) Index: python-seamicroclient-0.1.0/seamicroclient/tests/functional/v2/test_servers.py =================================================================== --- python-seamicroclient-0.1.0.orig/seamicroclient/tests/functional/v2/test_servers.py 2014-03-28 13:04:29.165328793 -0400 +++ python-seamicroclient-0.1.0/seamicroclient/tests/functional/v2/test_servers.py 2014-03-28 13:04:29.157328793 -0400 @@ -51,14 +51,17 @@ return cs.volumes.create(size, pool) def test_list_servers(self): + self.skipTest('Test requires actual hardware, skipping...') sl = cs.servers.list() self.assertTrue(len(sl) > 0) def test_get_server(self): + self.skipTest('Test requires actual hardware, skipping...') s = cs.servers.get(SERVER_ID) self.assertEqual(s.id, SERVER_ID) def test_power_on_power_off(self): + self.skipTest('Test requires actual hardware, skipping...') s = cs.servers.get(SERVER_ID) self.assertEqual(s.id, SERVER_ID) if s.active: @@ -75,6 +78,7 @@ s.power_off() def test_reset(self): + self.skipTest('Test requires actual hardware, skipping...') s = cs.servers.get(SERVER_ID) self.assertEqual(s.id, SERVER_ID) s.reset() @@ -83,6 +87,7 @@ self.assertEqual(s.active, True) def test_attach_detach_volume(self): + self.skipTest('Test requires actual hardware, skipping...') volume_id = self.create_volume() server = cs.servers.list()[0] server.detach_volume() @@ -93,6 +98,7 @@ cs.volumes.delete(volume_id) def test_set_tagged_vlan(self): + self.skipTest('Test requires actual hardware, skipping...') server = cs.servers.list()[0] server.unset_tagged_vlan(TAGGED_VLAN_ID) server = server.refresh(10) @@ -102,6 +108,7 @@ server.unset_tagged_vlan(TAGGED_VLAN_ID) def test_unset_tagged_vlan(self): + self.skipTest('Test requires actual hardware, skipping...') server = cs.servers.list()[0] server.unset_tagged_vlan(TAGGED_VLAN_ID) server = server.refresh(10) @@ -112,6 +119,7 @@ self.assertTrue(TAGGED_VLAN_ID not in server.nic['0']['taggedVlan']) def test_unset_untagged_vlan(self): + self.skipTest('Test requires actual hardware, skipping...') server = cs.servers.list()[0] server.unset_untagged_vlan(UNTAGGED_VLAN_ID) server = server.refresh(10) @@ -123,6 +131,7 @@ server.nic['0']['untaggedVlan']) def test_set_untagged_vlan(self): + self.skipTest('Test requires actual hardware, skipping...') server = cs.servers.list()[0] server.unset_untagged_vlan(UNTAGGED_VLAN_ID) server = server.refresh(10) Index: python-seamicroclient-0.1.0/seamicroclient/tests/functional/v2/test_pools.py =================================================================== --- python-seamicroclient-0.1.0.orig/seamicroclient/tests/functional/v2/test_pools.py 2014-03-28 13:04:29.165328793 -0400 +++ python-seamicroclient-0.1.0/seamicroclient/tests/functional/v2/test_pools.py 2014-03-28 13:04:37.125328997 -0400 @@ -23,22 +23,26 @@ class PoolsTest(utils.TestCase): def test_list_pool(self): + self.skipTest('Test requires actual hardware, skipping...') pool_list = cs.pools.list() self.assertTrue(len(pool_list) > 0) def test_list_pool_with_filter(self): + self.skipTest('Test requires actual hardware, skipping...') filters = {'id': 'p6-'} for pool in cs.pools.list(filters): for k, v in filters.iteritems(): self.assertIn(v, getattr(pool, k)) def test_list_pool_with_filter_no_match(self): + self.skipTest('Test requires actual hardware, skipping...') filters = {'id': str(uuid.uuid4())} for pool in cs.pools.list(filters): for k, v in filters.iteritems(): self.assertNotIn(getattr(pool, k), v) def test_get_pool(self): + self.skipTest('Test requires actual hardware, skipping...') pool_id = cs.pools.list()[0].id pool = cs.pools.get(pool_id) self.assertEqual(pool.id, pool_id) debian/patches/fix-tests.patch0000664000000000000000000000355112325516766013607 0ustar Index: python-seamicroclient-0.2.1/seamicroclient/tests/test_http.py =================================================================== --- python-seamicroclient-0.2.1.orig/seamicroclient/tests/test_http.py 2014-04-22 12:49:58.919080598 -0400 +++ python-seamicroclient-0.2.1/seamicroclient/tests/test_http.py 2014-04-22 12:50:59.559082151 -0400 @@ -66,11 +66,15 @@ resp, body = cl.get("/hi") headers = {'Accept': 'application/json', 'User-Agent': 'python-seamicroclient'} + #url = "http://example.com/hi?username=%s&password=%s" % (cl.user, + # cl.password), + url = "http://example.com/hi?username=%s&password=%s" % (cl.user, + cl.password) + method = "GET" mock_request.assert_called_with( - "GET", - "http://example.com/hi?username=%s&password=%s" % (cl.user, - cl.password), - headers=headers) + url=url, + headers=headers, + method=method) # Automatic JSON parsing self.assertEqual(body, {"hi": "there"}) @@ -86,11 +90,13 @@ headers = {'Content-Type': 'application/json', 'Accept': 'application/json', 'User-Agent': 'python-seamicroclient'} + url = "http://example.com/hi" + method = "POST" mock_request.assert_called_with( - "POST", - "http://example.com/hi", + url=url, headers=headers, - data=json.dumps(body)) + data=json.dumps(body), + method=method) test_post_call() debian/patches/series0000664000000000000000000000004112325513242012026 0ustar skip-tests.patch fix-tests.patch debian/gbp.conf0000664000000000000000000000024012310516541010601 0ustar [DEFAULT] upstream-branch = master debian-branch = debian/unstable upstream-tag = %(version)s compression = xz [git-buildpackage] export-dir = ../build-area/ debian/rules0000775000000000000000000000146012315322445010252 0ustar #!/usr/bin/make -f PYTHONS:=$(shell pyversions -vr) PYTHON3S:=$(shell py3versions -vr) UPSTREAM_GIT = git://github.com/seamicro/python-seamicroclient.git -include /usr/share/openstack-pkg-tools/pkgos.make export OSLO_PACKAGE_VERSION=$(VERSION) %: dh $@ --buildsystem=python_distutils --with python2 #,python3 override_dh_install: set -e && for pyvers in $(PYTHONS); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python-seamicroclient; \ done # set -e && for pyvers in $(PYTHON3S); do \ # python$$pyvers setup.py install --install-layout=deb \ # --root $(CURDIR)/debian/python3-seamicroclient; \ # done ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) override_dh_auto_test: set -e && for pyvers in $(PYTHONS); do \ testr init && testr run; \ done endif debian/watch0000664000000000000000000000015412321302542010213 0ustar version=3 https://pypi.python.org/packages/source/p/python-seamicroclient/python-seamicroclient-(.*).tar.gz debian/copyright0000664000000000000000000000175712310516541011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-seamicroclient Source: https://github.com/seamicro/python-seamicroclient Files: debian/* Copyright: (c) 2013, Thomas Goirand License: Apache-2 Files: * Copyright: (c) 2013, Rohan Kanade License: Apache-2 License: Apache-2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian-based systems the full text of the Apache version 2.0 license can be found in /usr/share/common-licenses/Apache-2.0. debian/compat0000664000000000000000000000000212310516541010364 0ustar 9