Bump hacking to 0.9.x series
Change-Id: I0547e6eea4fc5000275ebe19fe60d6f53670cc7a
This commit is contained in:
parent
ee522c7e9a
commit
f93a56d19e
@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import simplejson
|
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
|
import simplejson
|
||||||
|
|
||||||
from os_cloud_config.cmd.utils import _clients
|
from os_cloud_config.cmd.utils import _clients
|
||||||
from os_cloud_config.cmd.utils import environment
|
from os_cloud_config.cmd.utils import environment
|
||||||
|
@ -25,8 +25,8 @@ class InitKeystoneTest(base.TestCase):
|
|||||||
|
|
||||||
@mock.patch('os_cloud_config.cmd.init_keystone.initialize')
|
@mock.patch('os_cloud_config.cmd.init_keystone.initialize')
|
||||||
@mock.patch.object(sys, 'argv', ['init-keystone', '-o', 'hostname', '-t',
|
@mock.patch.object(sys, 'argv', ['init-keystone', '-o', 'hostname', '-t',
|
||||||
'token', '-e', 'admin@example.com', '-p', 'password',
|
'token', '-e', 'admin@example.com', '-p',
|
||||||
'-u', 'root'])
|
'password', '-u', 'root'])
|
||||||
def test_script(self, initialize_mock):
|
def test_script(self, initialize_mock):
|
||||||
init_keystone.main()
|
init_keystone.main()
|
||||||
initialize_mock.assert_called_once_with(
|
initialize_mock.assert_called_once_with(
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import mock
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import mock
|
||||||
|
|
||||||
from os_cloud_config.cmd import setup_endpoints
|
from os_cloud_config.cmd import setup_endpoints
|
||||||
from os_cloud_config.tests import base
|
from os_cloud_config.tests import base
|
||||||
|
|
||||||
@ -27,7 +28,8 @@ class SetupEndpointsTest(base.TestCase):
|
|||||||
sys, 'argv',
|
sys, 'argv',
|
||||||
['setup-endpoints', '-s', '{"nova": {"password": "123"}}',
|
['setup-endpoints', '-s', '{"nova": {"password": "123"}}',
|
||||||
'-p', '192.0.2.28', '-r', 'EC'])
|
'-p', '192.0.2.28', '-r', 'EC'])
|
||||||
@mock.patch.dict('os.environ', {'OS_USERNAME': 'admin',
|
@mock.patch.dict('os.environ', {
|
||||||
|
'OS_USERNAME': 'admin',
|
||||||
'OS_PASSWORD': 'password',
|
'OS_PASSWORD': 'password',
|
||||||
'OS_TENANT_NAME': 'admin',
|
'OS_TENANT_NAME': 'admin',
|
||||||
'OS_AUTH_URL': 'http://localhost:5000'})
|
'OS_AUTH_URL': 'http://localhost:5000'})
|
||||||
|
@ -15,12 +15,13 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from six.moves.urllib.parse import urlparse
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from keystoneclient.openstack.common.apiclient import exceptions
|
from keystoneclient.openstack.common.apiclient import exceptions
|
||||||
import keystoneclient.v2_0.client as ksclient
|
import keystoneclient.v2_0.client as ksclient
|
||||||
|
from six.moves.urllib.parse import urlparse
|
||||||
|
|
||||||
from os_cloud_config.utils import clients
|
from os_cloud_config.utils import clients
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -18,9 +18,10 @@ import time
|
|||||||
|
|
||||||
from ironicclient.openstack.common.apiclient import exceptions as ironicexp
|
from ironicclient.openstack.common.apiclient import exceptions as ironicexp
|
||||||
from novaclient.openstack.common.apiclient import exceptions as novaexc
|
from novaclient.openstack.common.apiclient import exceptions as novaexc
|
||||||
from os_cloud_config.cmd.utils import _clients as clients
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from os_cloud_config.cmd.utils import _clients as clients
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
# 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.
|
|
@ -12,10 +12,10 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from keystoneclient.openstack.common.apiclient import exceptions
|
||||||
import keystoneclient.v2_0.client as ksclient
|
import keystoneclient.v2_0.client as ksclient
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from keystoneclient.openstack.common.apiclient import exceptions
|
|
||||||
from os_cloud_config import keystone
|
from os_cloud_config import keystone
|
||||||
from os_cloud_config.tests import base
|
from os_cloud_config.tests import base
|
||||||
|
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
|
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
|
from ironicclient.openstack.common.apiclient import exceptions as ironicexp
|
||||||
import mock
|
import mock
|
||||||
|
from novaclient.openstack.common.apiclient import exceptions as novaexc
|
||||||
from testtools import matchers
|
from testtools import matchers
|
||||||
|
|
||||||
from ironicclient.openstack.common.apiclient import exceptions as ironicexp
|
|
||||||
from novaclient.openstack.common.apiclient import exceptions as novaexc
|
|
||||||
from os_cloud_config import nodes
|
from os_cloud_config import nodes
|
||||||
from os_cloud_config.tests import base
|
from os_cloud_config.tests import base
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# The order of packages is significant, because pip processes them in the order
|
# The order of packages is significant, because pip processes them in the order
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
hacking>=0.8.0,<0.9
|
hacking>=0.9.2,<0.10
|
||||||
|
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
discover
|
discover
|
||||||
|
Loading…
Reference in New Issue
Block a user