Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 1 | # Copyright 2013 Huawei Technologies Co.,LTD. |
| 2 | # All Rights Reserved. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 5 | # not use this file except in compliance with the License. You may obtain |
| 6 | # a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | # License for the specific language governing permissions and limitations |
| 14 | # under the License. |
| 15 | |
Masayuki Igawa | d938876 | 2015-01-20 14:56:42 +0900 | [diff] [blame] | 16 | from tempest_lib import exceptions as lib_exc |
| 17 | |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 18 | from tempest.api.compute import base |
| 19 | from tempest.common import tempest_fixtures as fixtures |
Fei Long Wang | d39431f | 2015-05-14 11:30:48 +1200 | [diff] [blame] | 20 | from tempest.common.utils import data_utils |
Masayuki Igawa | 394d8d9 | 2014-03-04 17:21:56 +0900 | [diff] [blame] | 21 | from tempest import test |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 22 | |
| 23 | |
| 24 | class AggregatesAdminNegativeTestJSON(base.BaseV2ComputeAdminTest): |
| 25 | |
| 26 | """ |
| 27 | Tests Aggregates API that require admin privileges |
| 28 | """ |
| 29 | |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 30 | @classmethod |
Rohan Kanade | 60b7309 | 2015-02-04 17:58:19 +0530 | [diff] [blame] | 31 | def setup_clients(cls): |
| 32 | super(AggregatesAdminNegativeTestJSON, cls).setup_clients() |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 33 | cls.client = cls.os_adm.aggregates_client |
| 34 | cls.user_client = cls.aggregates_client |
Rohan Kanade | 60b7309 | 2015-02-04 17:58:19 +0530 | [diff] [blame] | 35 | |
| 36 | @classmethod |
| 37 | def resource_setup(cls): |
| 38 | super(AggregatesAdminNegativeTestJSON, cls).resource_setup() |
Ken'ichi Ohmichi | 4937f56 | 2015-03-23 00:15:01 +0000 | [diff] [blame] | 39 | cls.aggregate_name_prefix = 'test_aggregate' |
| 40 | cls.az_name_prefix = 'test_az' |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 41 | |
ghanshyam | e1bd29e | 2015-08-18 16:47:24 +0900 | [diff] [blame] | 42 | hosts_all = cls.os_adm.hosts_client.list_hosts()['hosts'] |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 43 | hosts = map(lambda x: x['host_name'], |
| 44 | filter(lambda y: y['service'] == 'compute', hosts_all)) |
| 45 | cls.host = hosts[0] |
| 46 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 47 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 48 | @test.idempotent_id('86a1cb14-da37-4a70-b056-903fd56dfe29') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 49 | def test_aggregate_create_as_user(self): |
| 50 | # Regular user is not allowed to create an aggregate. |
| 51 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
Masayuki Igawa | 6b1cd29 | 2015-02-16 11:11:55 +0900 | [diff] [blame] | 52 | self.assertRaises(lib_exc.Forbidden, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 53 | self.user_client.create_aggregate, |
Yuiko Takada | f93d248 | 2014-01-30 16:25:08 +0000 | [diff] [blame] | 54 | name=aggregate_name) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 55 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 56 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 57 | @test.idempotent_id('3b8a1929-3793-4e92-bcb4-dfa572ee6c1d') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 58 | def test_aggregate_create_aggregate_name_length_less_than_1(self): |
| 59 | # the length of aggregate name should >= 1 and <=255 |
Masayuki Igawa | 4b29e47 | 2015-02-16 10:41:54 +0900 | [diff] [blame] | 60 | self.assertRaises(lib_exc.BadRequest, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 61 | self.client.create_aggregate, |
Yuiko Takada | f93d248 | 2014-01-30 16:25:08 +0000 | [diff] [blame] | 62 | name='') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 63 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 64 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 65 | @test.idempotent_id('4c194563-543b-4e70-a719-557bbe947fac') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 66 | def test_aggregate_create_aggregate_name_length_exceeds_255(self): |
| 67 | # the length of aggregate name should >= 1 and <=255 |
| 68 | aggregate_name = 'a' * 256 |
Masayuki Igawa | 4b29e47 | 2015-02-16 10:41:54 +0900 | [diff] [blame] | 69 | self.assertRaises(lib_exc.BadRequest, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 70 | self.client.create_aggregate, |
Yuiko Takada | f93d248 | 2014-01-30 16:25:08 +0000 | [diff] [blame] | 71 | name=aggregate_name) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 72 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 73 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 74 | @test.idempotent_id('9c23a291-b0b1-487b-b464-132e061151b3') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 75 | def test_aggregate_create_with_existent_aggregate_name(self): |
| 76 | # creating an aggregate with existent aggregate name is forbidden |
| 77 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
David Kranz | 0a73517 | 2015-01-16 10:51:18 -0500 | [diff] [blame] | 78 | aggregate = self.client.create_aggregate(name=aggregate_name) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 79 | self.addCleanup(self.client.delete_aggregate, |
| 80 | aggregate['aggregate']['id']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 81 | |
Masayuki Igawa | d938876 | 2015-01-20 14:56:42 +0900 | [diff] [blame] | 82 | self.assertRaises(lib_exc.Conflict, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 83 | self.client.create_aggregate, |
Yuiko Takada | f93d248 | 2014-01-30 16:25:08 +0000 | [diff] [blame] | 84 | name=aggregate_name) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 85 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 86 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 87 | @test.idempotent_id('cd6de795-c15d-45f1-8d9e-813c6bb72a3d') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 88 | def test_aggregate_delete_as_user(self): |
| 89 | # Regular user is not allowed to delete an aggregate. |
| 90 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 91 | aggregate = (self.client.create_aggregate(name=aggregate_name) |
| 92 | ['aggregate']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 93 | self.addCleanup(self.client.delete_aggregate, aggregate['id']) |
| 94 | |
Masayuki Igawa | 6b1cd29 | 2015-02-16 11:11:55 +0900 | [diff] [blame] | 95 | self.assertRaises(lib_exc.Forbidden, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 96 | self.user_client.delete_aggregate, |
| 97 | aggregate['id']) |
| 98 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 99 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 100 | @test.idempotent_id('b7d475a6-5dcd-4ff4-b70a-cd9de66a6672') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 101 | def test_aggregate_list_as_user(self): |
| 102 | # Regular user is not allowed to list aggregates. |
Masayuki Igawa | 6b1cd29 | 2015-02-16 11:11:55 +0900 | [diff] [blame] | 103 | self.assertRaises(lib_exc.Forbidden, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 104 | self.user_client.list_aggregates) |
| 105 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 106 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 107 | @test.idempotent_id('557cad12-34c9-4ff4-95f0-22f0dfbaf7dc') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 108 | def test_aggregate_get_details_as_user(self): |
| 109 | # Regular user is not allowed to get aggregate details. |
| 110 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 111 | aggregate = (self.client.create_aggregate(name=aggregate_name) |
| 112 | ['aggregate']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 113 | self.addCleanup(self.client.delete_aggregate, aggregate['id']) |
| 114 | |
Masayuki Igawa | 6b1cd29 | 2015-02-16 11:11:55 +0900 | [diff] [blame] | 115 | self.assertRaises(lib_exc.Forbidden, |
Ken'ichi Ohmichi | 3de6d98 | 2015-04-13 00:20:41 +0000 | [diff] [blame] | 116 | self.user_client.show_aggregate, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 117 | aggregate['id']) |
| 118 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 119 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 120 | @test.idempotent_id('c74f4bf1-4708-4ff2-95a0-f49eaca951bd') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 121 | def test_aggregate_delete_with_invalid_id(self): |
| 122 | # Delete an aggregate with invalid id should raise exceptions. |
Masayuki Igawa | bfa0760 | 2015-01-20 18:47:17 +0900 | [diff] [blame] | 123 | self.assertRaises(lib_exc.NotFound, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 124 | self.client.delete_aggregate, -1) |
| 125 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 126 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 127 | @test.idempotent_id('3c916244-2c46-49a4-9b55-b20bb0ae512c') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 128 | def test_aggregate_get_details_with_invalid_id(self): |
| 129 | # Get aggregate details with invalid id should raise exceptions. |
Masayuki Igawa | bfa0760 | 2015-01-20 18:47:17 +0900 | [diff] [blame] | 130 | self.assertRaises(lib_exc.NotFound, |
Ken'ichi Ohmichi | 3de6d98 | 2015-04-13 00:20:41 +0000 | [diff] [blame] | 131 | self.client.show_aggregate, -1) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 132 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 133 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 134 | @test.idempotent_id('0ef07828-12b4-45ba-87cc-41425faf5711') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 135 | def test_aggregate_add_non_exist_host(self): |
| 136 | # Adding a non-exist host to an aggregate should raise exceptions. |
ghanshyam | e1bd29e | 2015-08-18 16:47:24 +0900 | [diff] [blame] | 137 | hosts_all = self.os_adm.hosts_client.list_hosts()['hosts'] |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 138 | hosts = map(lambda x: x['host_name'], hosts_all) |
| 139 | while True: |
Ken'ichi Ohmichi | 4937f56 | 2015-03-23 00:15:01 +0000 | [diff] [blame] | 140 | non_exist_host = data_utils.rand_name('nonexist_host') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 141 | if non_exist_host not in hosts: |
| 142 | break |
| 143 | |
| 144 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 145 | aggregate = (self.client.create_aggregate(name=aggregate_name) |
| 146 | ['aggregate']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 147 | self.addCleanup(self.client.delete_aggregate, aggregate['id']) |
| 148 | |
Masayuki Igawa | bfa0760 | 2015-01-20 18:47:17 +0900 | [diff] [blame] | 149 | self.assertRaises(lib_exc.NotFound, self.client.add_host, |
Ken'ichi Ohmichi | ec452b8 | 2015-07-15 04:59:51 +0000 | [diff] [blame] | 150 | aggregate['id'], host=non_exist_host) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 151 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 152 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 153 | @test.idempotent_id('7324c334-bd13-4c93-8521-5877322c3d51') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 154 | def test_aggregate_add_host_as_user(self): |
| 155 | # Regular user is not allowed to add a host to an aggregate. |
| 156 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 157 | aggregate = (self.client.create_aggregate(name=aggregate_name) |
| 158 | ['aggregate']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 159 | self.addCleanup(self.client.delete_aggregate, aggregate['id']) |
| 160 | |
Masayuki Igawa | 6b1cd29 | 2015-02-16 11:11:55 +0900 | [diff] [blame] | 161 | self.assertRaises(lib_exc.Forbidden, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 162 | self.user_client.add_host, |
Ken'ichi Ohmichi | ec452b8 | 2015-07-15 04:59:51 +0000 | [diff] [blame] | 163 | aggregate['id'], host=self.host) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 164 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 165 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 166 | @test.idempotent_id('19dd44e1-c435-4ee1-a402-88c4f90b5950') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 167 | def test_aggregate_add_existent_host(self): |
| 168 | self.useFixture(fixtures.LockFixture('availability_zone')) |
| 169 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 170 | aggregate = (self.client.create_aggregate(name=aggregate_name) |
| 171 | ['aggregate']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 172 | self.addCleanup(self.client.delete_aggregate, aggregate['id']) |
| 173 | |
Ken'ichi Ohmichi | ec452b8 | 2015-07-15 04:59:51 +0000 | [diff] [blame] | 174 | self.client.add_host(aggregate['id'], host=self.host) |
| 175 | self.addCleanup(self.client.remove_host, aggregate['id'], |
| 176 | host=self.host) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 177 | |
Masayuki Igawa | d938876 | 2015-01-20 14:56:42 +0900 | [diff] [blame] | 178 | self.assertRaises(lib_exc.Conflict, self.client.add_host, |
Ken'ichi Ohmichi | ec452b8 | 2015-07-15 04:59:51 +0000 | [diff] [blame] | 179 | aggregate['id'], host=self.host) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 180 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 181 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 182 | @test.idempotent_id('7a53af20-137a-4e44-a4ae-e19260e626d9') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 183 | def test_aggregate_remove_host_as_user(self): |
| 184 | # Regular user is not allowed to remove a host from an aggregate. |
| 185 | self.useFixture(fixtures.LockFixture('availability_zone')) |
| 186 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 187 | aggregate = (self.client.create_aggregate(name=aggregate_name) |
| 188 | ['aggregate']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 189 | self.addCleanup(self.client.delete_aggregate, aggregate['id']) |
Ken'ichi Ohmichi | ec452b8 | 2015-07-15 04:59:51 +0000 | [diff] [blame] | 190 | self.client.add_host(aggregate['id'], host=self.host) |
| 191 | self.addCleanup(self.client.remove_host, aggregate['id'], |
| 192 | host=self.host) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 193 | |
Masayuki Igawa | 6b1cd29 | 2015-02-16 11:11:55 +0900 | [diff] [blame] | 194 | self.assertRaises(lib_exc.Forbidden, |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 195 | self.user_client.remove_host, |
Ken'ichi Ohmichi | ec452b8 | 2015-07-15 04:59:51 +0000 | [diff] [blame] | 196 | aggregate['id'], host=self.host) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 197 | |
Sean Dague | 639f2fa | 2015-04-27 09:00:33 -0400 | [diff] [blame] | 198 | @test.attr(type=['negative']) |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 199 | @test.idempotent_id('95d6a6fa-8da9-4426-84d0-eec0329f2e4d') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 200 | def test_aggregate_remove_nonexistent_host(self): |
Ken'ichi Ohmichi | 4937f56 | 2015-03-23 00:15:01 +0000 | [diff] [blame] | 201 | non_exist_host = data_utils.rand_name('nonexist_host') |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 202 | aggregate_name = data_utils.rand_name(self.aggregate_name_prefix) |
ghanshyam | 2eb282d | 2015-08-04 15:05:19 +0900 | [diff] [blame] | 203 | aggregate = (self.client.create_aggregate(name=aggregate_name) |
| 204 | ['aggregate']) |
Lingxian Kong | bf2d517 | 2013-10-01 22:00:24 +0800 | [diff] [blame] | 205 | self.addCleanup(self.client.delete_aggregate, aggregate['id']) |
| 206 | |
Masayuki Igawa | bfa0760 | 2015-01-20 18:47:17 +0900 | [diff] [blame] | 207 | self.assertRaises(lib_exc.NotFound, self.client.remove_host, |
Ken'ichi Ohmichi | ec452b8 | 2015-07-15 04:59:51 +0000 | [diff] [blame] | 208 | aggregate['id'], host=non_exist_host) |