Mock Version: 1.2.21 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/tendrl-common.spec'], printOutput=FalsechrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-3937/root'user='mockbuild'gid=135logger=env={'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOSTNAME': 'mock', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8'}timeout=0uid=1001shell=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/tendrl-common.spec'] with env {'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOSTNAME': 'mock', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8'} and shell False warning: Could not canonicalize hostname: copr-builder-97131519.novalocal Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/tendrl-common-0.0.1-2.el7.centos.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/tendrl-common.spec'], printOutput=FalsechrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-3937/root'user='mockbuild'gid=135logger=private_network=Trueenv={'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOSTNAME': 'mock', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8'}timeout=0uid=1001shell=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/tendrl-common.spec'] with env {'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOSTNAME': 'mock', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GINOcj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tendrl-common-0.0.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/tendrl-common-0.0.1.tar.gz + /usr/bin/tar -xvvf - drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/ drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/etc/ drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/etc/samples/ -rw-rw-r-- tim/tim 982 2016-11-09 09:37 tendrl-common-0.0.1/etc/samples/logging.yaml.timedrotation.sample -rw-rw-r-- tim/tim 806 2016-11-14 15:27 tendrl-common-0.0.1/etc/samples/tendrl_api_job.sample.json -rw-rw-r-- tim/tim 971 2016-11-09 09:37 tendrl-common-0.0.1/etc/samples/logging.yaml.journald.sample -rw-rw-r-- tim/tim 971 2016-11-09 09:37 tendrl-common-0.0.1/etc/samples/logging.yaml.syslog.sample -rw-rw-r-- tim/tim 4583 2016-11-13 22:48 tendrl-common-0.0.1/etc/samples/tendrl_definitions_generic-0.3.sample.yaml drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/etc/tendrl/ -rw-rw-r-- tim/tim 194 2016-11-14 15:27 tendrl-common-0.0.1/etc/tendrl/tendrl.conf.sample -rw-rw-r-- tim/tim 247 2016-11-18 09:05 tendrl-common-0.0.1/requirements.txt -rw-rw-r-- tim/tim 1081 2016-10-17 07:50 tendrl-common-0.0.1/ChangeLog -rw-rw-r-- tim/tim 168 2016-11-17 12:17 tendrl-common-0.0.1/MANIFEST.in -rw-rw-r-- tim/tim 220 2016-11-18 09:07 tendrl-common-0.0.1/PKG-INFO -rw-rw-r-- tim/tim 59 2016-11-18 09:07 tendrl-common-0.0.1/setup.cfg -rw-rw-r-- tim/tim 672 2016-11-17 12:17 tendrl-common-0.0.1/setup.py drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/ -rw-rw-r-- tim/tim 1634 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/SOURCES.txt -rw-rw-r-- tim/tim 1 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/dependency_links.txt -rw-rw-r-- tim/tim 1 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/not-zip-safe -rw-rw-r-- tim/tim 220 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/PKG-INFO -rw-rw-r-- tim/tim 7 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/top_level.txt -rw-rw-r-- tim/tim 7 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/namespace_packages.txt -rw-rw-r-- tim/tim 35 2016-11-18 09:07 tendrl-common-0.0.1/tendrl_common.egg-info/requires.txt -rw-rw-r-- tim/tim 225 2016-10-17 07:50 tendrl-common-0.0.1/AUTHORS -rw-rw-r-- tim/tim 26461 2016-09-22 09:16 tendrl-common-0.0.1/LICENSE drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/ drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/bridge_common/ drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/bridge_common/tests/ -rw-rw-r-- tim/tim 7615 2016-11-14 07:05 tendrl-common-0.0.1/tendrl/bridge_common/tests/test_val.py~ -rw-rw-r-- tim/tim 7617 2016-11-14 07:40 tendrl-common-0.0.1/tendrl/bridge_common/tests/test_val.py drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/bridge_common/definitions/ -rw-rw-r-- tim/tim 4451 2016-11-14 01:30 tendrl-common-0.0.1/tendrl/bridge_common/definitions/b.yaml -rw-rw-r-- tim/tim 18325 2016-11-14 07:43 tendrl-common-0.0.1/tendrl/bridge_common/definitions/v.py~ -rw-rw-r-- tim/tim 4583 2016-11-13 22:54 tendrl-common-0.0.1/tendrl/bridge_common/definitions/tendrl_definitions_generic-0.3.sample.yaml -rw-rw-r-- tim/tim 18379 2016-11-14 09:49 tendrl-common-0.0.1/tendrl/bridge_common/definitions/v.py -rw-rw-r-- tim/tim 56 2016-11-09 09:37 tendrl-common-0.0.1/tendrl/__init__.py drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/common/ drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/common/etcdobj/ -rw-rw-r-- tim/tim 0 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/etcdobj/__init__.py -rw-rw-r-- tim/tim 6617 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/etcdobj/fields.py -rw-rw-r-- tim/tim 6945 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/etcdobj/etcdobj.py -rw-rw-r-- tim/tim 738 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/config.py -rw-rw-r-- tim/tim 609 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/log.py -rw-rw-r-- tim/tim 1180 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/util.py -rw-rw-r-- tim/tim 0 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/__init__.py drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/common/tests/ -rw-rw-r-- tim/tim 673 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/test_config.py -rw-rw-r-- tim/tim 5598 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/test_fields.py -rw-rw-r-- tim/tim 0 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/__init__.py -rw-rw-r-- tim/tim 6932 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/test_validate_api.py -rw-rw-r-- tim/tim 2478 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/test_etcdobj.py -rw-rw-r-- tim/tim 61 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/test_log.py -rw-rw-r-- tim/tim 4211 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/sds_state_gluster.yaml drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/common/tests/hacking/ -rw-rw-r-- tim/tim 18541 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/hacking/checks.py -rw-rw-r-- tim/tim 0 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/hacking/__init__.py -rw-rw-r-- tim/tim 1893 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/hacking/README.rst -rw-rw-r-- tim/tim 2220 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/sds_state_node.yaml -rw-rw-r-- tim/tim 611 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/test_bridge_common.py -rw-rw-r-- tim/tim 1536 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/tests/README.rst drwxrwxr-x tim/tim 0 2016-11-18 09:07 tendrl-common-0.0.1/tendrl/common/definitions/ -rw-rw-r-- tim/tim 14739 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/definitions/validator.py -rw-rw-r-- tim/tim 0 2016-11-14 15:27 tendrl-common-0.0.1/tendrl/common/definitions/__init__.py -rw-rw-r-- tim/tim 773 2016-11-17 12:17 tendrl-common-0.0.1/README.rst + STATUS=0 + '[' 0 -ne 0 ']' + cd tendrl-common-0.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf tendrl-common.egg-info + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2S49bb + umask 022 + cd /builddir/build/BUILD + cd tendrl-common-0.0.1 + /usr/bin/python setup.py build running build running build_py creating build creating build/lib creating build/lib/tendrl copying tendrl/__init__.py -> build/lib/tendrl creating build/lib/tendrl/common copying tendrl/common/__init__.py -> build/lib/tendrl/common copying tendrl/common/util.py -> build/lib/tendrl/common copying tendrl/common/log.py -> build/lib/tendrl/common copying tendrl/common/config.py -> build/lib/tendrl/common creating build/lib/tendrl/common/definitions copying tendrl/common/definitions/__init__.py -> build/lib/tendrl/common/definitions copying tendrl/common/definitions/validator.py -> build/lib/tendrl/common/definitions creating build/lib/tendrl/common/etcdobj copying tendrl/common/etcdobj/etcdobj.py -> build/lib/tendrl/common/etcdobj copying tendrl/common/etcdobj/fields.py -> build/lib/tendrl/common/etcdobj copying tendrl/common/etcdobj/__init__.py -> build/lib/tendrl/common/etcdobj + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.aZIis3 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64 + cd tendrl-common-0.0.1 + /usr/bin/python setup.py install --single-version-externally-managed -O1 --root=/builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64 --record=INSTALLED_FILES running install running build running build_py running install_lib Skipping installation of /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/__init__.py (namespace package) copying tendrl/common/config.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common copying tendrl/common/log.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common copying tendrl/common/util.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common copying tendrl/common/__init__.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common copying tendrl/common/etcdobj/__init__.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/etcdobj copying tendrl/common/etcdobj/fields.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/etcdobj copying tendrl/common/etcdobj/etcdobj.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/etcdobj copying tendrl/common/definitions/validator.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/definitions copying tendrl/common/definitions/__init__.py -> /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/definitions byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/config.py to config.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/log.py to log.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/util.py to util.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/etcdobj/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/etcdobj/fields.py to fields.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/etcdobj/etcdobj.py to etcdobj.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/definitions/validator.py to validator.pyc byte-compiling /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl/common/definitions/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpGYJZye.py' /usr/bin/python -O /tmp/tmpGYJZye.py removing /tmp/tmpGYJZye.py running install_egg_info running egg_info writing requirements to tendrl_common.egg-info/requires.txt writing tendrl_common.egg-info/PKG-INFO writing namespace_packages to tendrl_common.egg-info/namespace_packages.txt writing top-level names to tendrl_common.egg-info/top_level.txt writing dependency_links to tendrl_common.egg-info/dependency_links.txt reading manifest file 'tendrl_common.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no directories found matching 'docs' writing manifest file 'tendrl_common.egg-info/SOURCES.txt' Copying tendrl_common.egg-info to /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info Installing /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7-nspkg.pth running install_scripts writing list of installed files to 'INSTALLED_FILES' + install -m 0755 --directory /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/var/log/tendrl/common + install -Dm 644 etc/tendrl/tendrl.conf.sample /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/tendrl/commons/tendrl.conf.sample + install -Dm 644 etc/samples/logging.yaml.timedrotation.sample /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/etc/tendrl/common_logging.yaml + install -Dm 644 etc/samples/logging.yaml.journald.sample etc/samples/logging.yaml.syslog.sample etc/samples/logging.yaml.timedrotation.sample /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/tendrl/commons/. + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/tendrl-common-0.0.1 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.EFTGKW + umask 022 + cd /builddir/build/BUILD + cd tendrl-common-0.0.1 + py.test -v tendrl/common/tests ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- py-1.4.27 -- pytest-2.7.0 -- /usr/bin/python rootdir: /builddir/build/BUILD/tendrl-common-0.0.1, inifile: collecting ... collected 12 items / 2 errors tendrl/common/tests/test_config.py::TestTendrlconfig::test_Tendrlconfig PASSED tendrl/common/tests/test_log.py::Test_log::test_log PASSED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_validate FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_atom FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_flow FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_getAtomsFromAtom FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_flowAttrs FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_checkJobRequiredAttr FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_apijob_with_wrong_datatype FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_apijob_without_required_arguments FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_apijob_with_wrong_argument_name FAILED tendrl/common/tests/test_validate_api.py::TestValidateJobApi::test_apijob_missing_argument FAILED ==================================== ERRORS ==================================== _____________ ERROR collecting tendrl/common/tests/test_etcdobj.py _____________ tendrl/common/tests/test_etcdobj.py:4: in from tendrl.common.tests.test_common import PytestEtcdObj E ImportError: No module named test_common _____________ ERROR collecting tendrl/common/tests/test_fields.py ______________ tendrl/common/tests/test_fields.py:4: in from tendrl.common.tests.test_common import TestBridge_common E ImportError: No module named test_common =================================== FAILURES =================================== _______________________ TestValidateJobApi.test_validate _______________________ self = def test_validate(self): # Success test glusterApiJob = { 'cluster_id': "49fa2adde8a6e98591f0f5cb4bc5f44d", "sds_name": "gluster", "sds_version": "3.2.0", "flow": "CreateGlusterVolume", "status": "processing", "parameters": { 'volname': 'Volume1', 'stripe_count': 10, 'brickdetails': ['/mnt/brick1', '/mnt/brick2']}, } > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError _________________________ TestValidateJobApi.test_atom _________________________ self = def test_atom(self): > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError _________________________ TestValidateJobApi.test_flow _________________________ self = def test_flow(self): > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError ___________________ TestValidateJobApi.test_getAtomsFromAtom ___________________ self = def test_getAtomsFromAtom(self): > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError ______________________ TestValidateJobApi.test_flowAttrs _______________________ self = def test_flowAttrs(self): > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError _________________ TestValidateJobApi.test_checkJobRequiredAttr _________________ self = def test_checkJobRequiredAttr(self): glusterApiJob = { 'cluster_id': "49fa2adde8a6e98591f0f5cb4bc5f44d", "sds_name": "gluster", "sds_version": "3.2.0", "flow": "CreateGlusterVolume", "status": "processing", "parameters": { 'stripe_count': 10, 'brickdetails': ['/mnt/brick1', '/mnt/brick2']}, } > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError ______________ TestValidateJobApi.test_apijob_with_wrong_datatype ______________ self = def test_apijob_with_wrong_datatype(self): glusterApiJob = { 'cluster_id': "49fa2adde8a6e98591f0f5cb4bc5f44d", "sds_name": "gluster", "sds_version": "3.2.0", "flow": "CreateGlusterVolume", "status": "processing", "parameters": { 'volname': 'Volume1', 'stripe_count': 10, 'brickdetails': ['/mnt/brick1', '/mnt/brick2']}, 'errors': {} } > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError __________ TestValidateJobApi.test_apijob_without_required_arguments ___________ self = def test_apijob_without_required_arguments(self): # Volume name not provided glusterApiJob = { 'cluster_id': "49fa2adde8a6e98591f0f5cb4bc5f44d", "sds_name": "gluster", "sds_version": "3.2.0", "flow": "CreateGlusterVolume", "status": "processing", "parameters": { 'stripe_count': 10, 'brickdetails': ['/mnt/brick1', '/mnt/brick2']}, } > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:134: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError ___________ TestValidateJobApi.test_apijob_with_wrong_argument_name ____________ self = def test_apijob_with_wrong_argument_name(self): # Invalid argument names passed which are not defined glusterApiJob = { 'cluster_id': "49fa2adde8a6e98591f0f5cb4bc5f44d", "sds_name": "gluster", "sds_version": "3.2.0", "flow": "CreateGlusterVolume", "status": "processing", "parameters": { 'myvolumename': 'testing', 'volname': "test", 'blabla': 100, 'stripe_count': 10, 'brickdetails': ['/mnt/brick1', '/mnt/brick2']}, 'errors': {} } > sdsoper = JobValidator(getSchemaFile("gluster")) tendrl/common/tests/test_validate_api.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'gluster' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError _______________ TestValidateJobApi.test_apijob_missing_argument ________________ self = def test_apijob_missing_argument(self): nodeApiJob = { 'cluster_id': "49fa2adde8a6e98591f0f5cb4bc5f44d", "node_name": "fqdn", "node_version": "3.2.0", "flow": "PackageInstall", "status": "processing", "parameters": {'name': 'abc', 'list': ["wget", "rpm-build"], 'conf_file': "/etc/abc.conf", 'state': True, 'enablerepo': ["a1", "a2", "a3"], 'disablerepo': []}, } > sdsoper = JobValidator(getSchemaFile("node")) tendrl/common/tests/test_validate_api.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ schemaName = 'node' def getSchemaFile(schemaName): localpath = os.path.dirname(__file__) path = os.path.join(localpath, "sds_state_" + schemaName + '.yaml') # return yaml.load(open(path)) > return util.loadSchema(path)[1] E KeyError: 1 tendrl/common/tests/test_validate_api.py:20: KeyError ================= 10 failed, 2 passed, 2 error in 0.47 seconds ================= Processing files: tendrl-common-0.0.1-2.el7.centos.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.MZOvfS Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.uya7KN + : + exit 0 + umask 022 + cd /builddir/build/BUILD + cd tendrl-common-0.0.1 + DOCDIR=/builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/doc/tendrl-common-0.0.1 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/doc/tendrl-common-0.0.1 + cp -pr README.rst /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/doc/tendrl-common-0.0.1 + exit 0 + umask 022 + cd /builddir/build/BUILD + cd tendrl-common-0.0.1 + LICENSEDIR=/builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/licenses/tendrl-common-0.0.1 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/licenses/tendrl-common-0.0.1 + cp -pr LICENSE /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64/usr/share/licenses/tendrl-common-0.0.1 + exit 0 warning: File listed twice: /usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info/PKG-INFO warning: File listed twice: /usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info/SOURCES.txt warning: File listed twice: /usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info/dependency_links.txt warning: File listed twice: /usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info/namespace_packages.txt warning: File listed twice: /usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info/not-zip-safe warning: File listed twice: /usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info/requires.txt warning: File listed twice: /usr/lib/python2.7/site-packages/tendrl_common-0.0.1-py2.7.egg-info/top_level.txt warning: File listed twice: /usr/share/tendrl/commons warning: File listed twice: /usr/share/tendrl/commons/tendrl.conf.sample Provides: tendrl-common = 0.0.1-2.el7.centos Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 2.7 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64 Wrote: /builddir/build/RPMS/tendrl-common-0.0.1-2.el7.centos.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.21RLuG + umask 022 + cd /builddir/build/BUILD + cd tendrl-common-0.0.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/tendrl-common-0.0.1-2.el7.centos.x86_64 + exit 0 Child return code was: 0