blob: 445ca60ae2719b158bec3bb545d30c51700bfba5 [file] [log] [blame]
Mh Raiesb71cb7f2014-03-28 10:51:31 +05301# 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
15from tempest.api.baremetal import base
16from tempest import test
17
18
19class 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']])