Age | Commit message (Expand) | Author | Files | Lines |
2016-08-17 | Use virtio driver for fuel-master NIC |  Michal Skalski | 1 | -1/+1 |
2016-08-11 | Pass host cpu flags to compute guests |  Michal Skalski | 1 | -0/+3 |
2016-08-10 | Merge "Revert "Pass host cpu flags to compute guests"" |  Michal Skalski | 1 | -3/+0 |
2016-08-10 | Revert "Pass host cpu flags to compute guests" |  Michal Skalski | 1 | -3/+0 |
2016-08-10 | Merge "Provide access to mgmt network from host level" |  Michal Skalski | 1 | -0/+1 |
2016-08-10 | Pass host cpu flags to compute guests |  Michal Skalski | 1 | -0/+3 |
2016-08-10 | Provide access to mgmt network from host level |  Michal Skalski | 1 | -0/+1 |
2016-08-02 | Add function#!/usr/bin/env python
##############################################################################
# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# Unittest for yardstick.benchmark.contexts.node
import os
import unittest
from yardstick.benchmark.contexts import node
class NodeContextTestCase(unittest.TestCase):
NODES_SAMPLE = "nodes_sample.yaml"
NODES_DUPLICATE_SAMPLE = "nodes_duplicate_sample.yaml"
def setUp(self):
self.test_context = node.NodeContext()
def test_construct(self):
self.assertIsNone(self.test_context.name)
self.assertIsNone(self.test_context.file_path)
self.assertEqual(self.test_context.nodes, [])
self.assertEqual(self.test_context.controllers, [])
self.assertEqual(self.test_context.computes, [])
self.assertEqual(self.test_context.baremetals, [])
def test_unsuccessful_init(self):
attrs = {
'name': 'foo',
'file': self._get_file_abspath("error_file")
}
self.assertRaises(SystemExit, self.test_context.init, attrs)
def test_successful_init(self):
attrs = {
'name': 'foo',
'file': self._get_file_abspath(self.NODES_SAMPLE)
}
self.test_context.init(attrs)
self.assertEqualMoved the noha virtual templates |  Stefan K. Berg | 10 | -0/+1242 |
2015-11-27 | Restructcture of the directory layout |  Jonas Bjurel | 24 | -0/+5143 |