Mh Raies | b71cb7f | 2014-03-28 10:51:31 +0530 | [diff] [blame] | 1 | # Copyright 2014 NEC Corporation. All rights reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | from tempest.api.baremetal import base |
| 16 | from tempest import test |
| 17 | |
| 18 | |
| 19 | class TestDrivers(base.BaseBaremetalTest): |
| 20 | """Tests for drivers.""" |
| 21 | |
| 22 | @test.attr(type="smoke") |
| 23 | def test_list_drivers(self): |
| 24 | resp, drivers = self.client.list_drivers() |
| 25 | self.assertEqual('200', resp['status']) |
| 26 | self.assertIn('fake', [d['name'] for d in drivers['drivers']]) |