2017-03-16 2 views
0

Ich füge einige Komponententests für mein Paket "kubernetes-cluster" hinzu, folgen Tomcat Package (siehe: https://github.com/openstack/murano-apps/blob/master/Tomcat/package/Classes/TomcatTest.yaml).warum murano-test-runner mit keystone verbinden?

und dann führen Sie es mit dem Befehl (ohne --config-file, - os-Auth-URL, ohne murano.conf in Pfad/etc/murano /):

murano-test-runner -v io.murano.apps.docker.kubernetes.KuryrCluster io.murano.test.KuryrClusterTest -l /my-packages and core-library/local/path 

Ich habe die Fehlermeldung:

2017-03-16 07:39:49.978 | 2017-03-16 07:42:50.773 1697 ERROR murano.cmd.test_runner [-] Command failed: 'NoneType' object has no attribute 'replace' 
2017-03-16 07:39:49.978 | Traceback (most recent call last): 
2017-03-16 07:39:49.978 | File "/home/jenkins/workspace/murano-programming-language-unit-test/.tox/murano-test-runner/lib/python2.7/site-packages/murano/cmd/test_runner.py", line 374, in main 
2017-03-16 07:39:49.978 |  exit_code = test_runner.run_tests() 
2017-03-16 07:39:49.978 | File "/home/jenkins/workspace/murano-programming-language-unit-test/.tox/murano-test-runner/lib/python2.7/site-packages/murano/cmd/test_runner.py", line 213, in run_tests 
2017-03-16 07:39:49.978 |  ks_opts = self._validate_keystone_opts(self.args) 
2017-03-16 07:39:49.978 | File "/home/jenkins/workspace/murano-programming-language-unit-test/.tox/murano-test-runner/lib/python2.7/site-packages/murano/cmd/test_runner.py", line 195, in _validate_keystone_opts 
2017-03-16 07:39:49.979 |  ks_opts[param] = ks_opts[param].replace('v2.0', 'v3') 
2017-03-16 07:39:49.979 | AttributeError: 'NoneType' object has no attribute 'replace' 
2017-03-16 07:39:49.979 | 
2017-03-16 07:39:49.979 | Command failed: 'NoneType' object has no attribute 'replace' 

ich will nur meine Unit-Tests in muranoPL richtig schreiben überprüfen oder nicht, wie PEP8 oder py27. Kann ich tox -e murano-test-runner wie tox -e py27 ohne Verbindung zu Keystone-Server und Neutronenserver ausführen? Wenn nicht, warum? wenn ich kann, wie? Schein Keystoneclient und Neutronenclient? oder andere Wege? jemand kann mir helfen? Vielen Dank.

Antwort

0

ich spotten:

keystoneclient.v3.Client(and deal with auth_uri.replace('v2.0', 'v3') AttributeError Exception) murano.engine.system.net_explorer.NetworkExplorer._get_client

dann murano-Test-Läufer ohne laufen kann config-setzt os- * oder config-Datei

Verwandte Themen