diff options
Diffstat (limited to 'src/logicalfile/test/test_base.py')
-rw-r--r-- | src/logicalfile/test/test_base.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/logicalfile/test/test_base.py b/src/logicalfile/test/test_base.py new file mode 100644 index 0000000..80315df --- /dev/null +++ b/src/logicalfile/test/test_base.py @@ -0,0 +1,44 @@ +# Copyright (C) 2013 Red Hat, Inc. All rights reserved. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# Authors: Jan Synacek <jsynacek@redhat.com> + +import pywbem +import os +import socket +import unittest + +class LogicalFileTestBase(unittest.TestCase): + """ + Base class for all LogicalFile tests. + """ + + SYSTEM_CLASS_NAME = "Linux_ComputerSystem" + SYSTEM_NAME = socket.getfqdn() + + @classmethod + def setUpClass(cls): + cls.url = os.environ.get("LMI_CIMOM_URL", "https://localhost:5989") + cls.username = os.environ.get("LMI_CIMOM_USERNAME", "root") + cls.password = os.environ.get("LMI_CIMOM_PASSWORD", "") + cls.wbemconnection = pywbem.WBEMConnection(cls.url, (cls.username, cls.password)) + cls.testdir = os.environ.get("LMI_LOGICALFILE_TESTDIR", "/var/tmp/logicalfile-tests") + + def setUp(self): + pass + + def tearDown(self): + pass |