[Bug 1328579] Re: network-manager template needs to be adjusted for newer NM versions

Matej 1328579 at bugs.launchpad.net
Fri Aug 8 15:06:54 UTC 2014


matej at wycliff: python-dbusmock-0.11.1 (master %)$ python setup.py test
running test
running egg_info
writing python_dbusmock.egg-info/PKG-INFO
writing top-level names to python_dbusmock.egg-info/top_level.txt
writing dependency_links to python_dbusmock.egg-info/dependency_links.txt
reading manifest file 'python_dbusmock.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_dbusmock.egg-info/SOURCES.txt'
running build_ext
test_add_object (test_api.TestAPI)
add a new object ... ok
test_add_object_existing (test_api.TestAPI)
try to add an existing object ... ok
test_add_object_with_methods (test_api.TestAPI)
add a new object with methods ... ok
test_array_arg (test_api.TestAPI)
array argument ... ok
test_dbus_get_log (test_api.TestAPI)
query call logs over D-BUS ... ok
test_dbus_get_method_calls (test_api.TestAPI)
query method call logs over D-BUS ... ok
test_dbus_method_called (test_api.TestAPI)
subscribe to MethodCalled signal ... ok
test_dict_arg (test_api.TestAPI)
dictionary argument ... ok
test_introspection_methods (test_api.TestAPI)
dynamically added methods appear in introspection ... ok
test_introspection_properties (test_api.TestAPI)
dynamically added properties appear in introspection ... ok
test_methods_on_other_interfaces (test_api.TestAPI)
methods on other interfaces ... ok
test_methods_same_name (test_api.TestAPI)
methods with same name on different interfaces ... ok
test_methods_type_mismatch (test_api.TestAPI)
calling methods with wrong arguments ... ok
test_noarg_noret (test_api.TestAPI)
no arguments, no return value ... ok
test_objects_map (test_api.TestAPI)
access global objects map ... ok
test_onearg_noret (test_api.TestAPI)
one argument, no return value ... ok
test_onearg_ret (test_api.TestAPI)
one argument, code for return value ... ok
test_properties (test_api.TestAPI)
add and change properties ... ok
test_reset (test_api.TestAPI)
resetting to pristine state ... ok
test_signals (test_api.TestAPI)
emitting signals ... ok
test_signals_type_mismatch (test_api.TestAPI)
emitting signals with wrong arguments ... ok
test_twoarg_ret (test_api.TestAPI)
two arguments, code for return value ... ok
test_mock_terminates_with_bus (test_api.TestCleanup)
Spawned mock processes exit when bus goes down ... ok
test_ctor (test_api.TestSubclass)
Override DBusMockObject constructor ... ok
test_none_props (test_api.TestSubclass)
object with None properties argument ... ok
test_local (test_api.TestTemplates)
Load a local template *.py file ... ok
test_local_nonexisting (test_api.TestTemplates) ... ok
test_object_manager (test_api.TestTemplates)
Template with ObjectManager API ... ok
test_reset (test_api.TestTemplates)
Reset() puts the template back to pristine state ... ok
test_static_method (test_api.TestTemplates)
Static method in a template ... ok
which: no bluez-test-adapter in (/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7)
which: no bluez-test-device in (/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7)
test_connect_disconnect (test_bluez4.TestBlueZ4) ... SKIP: bluez 4 not installed
test_no_adapters (test_bluez4.TestBlueZ4) ... SKIP: bluez 4 not installed
test_no_devices (test_bluez4.TestBlueZ4) ... SKIP: bluez 4 not installed
test_one_adapter (test_bluez4.TestBlueZ4) ... SKIP: bluez 4 not installed
test_one_device (test_bluez4.TestBlueZ4) ... SKIP: bluez 4 not installed
which: no bluetoothctl in (/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7)
which: no pbap-client in (/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/home/matej/repos/ringojs/bin:/home/matej/repos/jetpack/bin:/home/matej/.local/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7:/usr/sbin:/sbin:/home/matej/repos/ringojs/bin:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/tools:/home/matej/archiv/knihovna/repos/android-sdk-linux_x86/platform-tools:/home/matej/archiv/knihovna/repos/android-ndk-r7)
test_no_adapters (test_bluez5.TestBlueZ5) ... SKIP: bluetoothctl not installed
test_no_devices (test_bluez5.TestBlueZ5) ... SKIP: bluetoothctl not installed
test_one_adapter (test_bluez5.TestBlueZ5) ... SKIP: bluetoothctl not installed
test_one_device (test_bluez5.TestBlueZ5) ... SKIP: bluetoothctl not installed
test_pairing_device (test_bluez5.TestBlueZ5) ... SKIP: bluetoothctl not installed
test_everything (test_bluez5.TestBlueZObex) ... SKIP: pbap-client not installed (copy it from bluez/test)
test_help (test_cli.TestCLI) ... ok
test_no_args (test_cli.TestCLI) ... ok
test_object_manager (test_cli.TestCLI) ... ok
test_session_bus (test_cli.TestCLI) ... ok
test_system_bus (test_cli.TestCLI) ... ok
test_template_system (test_cli.TestCLI) ... ok
test_pep8 (test_code.StaticCodeTests) ... ok
test_pyflakes (test_code.StaticCodeTests) ... ok
test_one_active_session (test_consolekit.TestConsoleKit) ... SKIP: ck-list-sessions not installed
test_default_state (test_gnome_screensaver.TestGnomeScreensaver)
Not locked by default ... ok
test_lock (test_gnome_screensaver.TestGnomeScreensaver)
Lock() ... ok
test_set_active (test_gnome_screensaver.TestGnomeScreensaver)
SetActive() ... ok
test_empty (test_logind.TestLogind) ... ok
test_properties (test_logind.TestLogind) ... ok
test_session (test_logind.TestLogind) ... ok
test_eth_and_wifi (test_networkmanager.TestNetworkManager) ... ok
test_one_eth_connected (test_networkmanager.TestNetworkManager) ... ok
test_one_eth_disconnected (test_networkmanager.TestNetworkManager) ... ok
test_one_wifi_with_accesspoints (test_networkmanager.TestNetworkManager) ... ok
test_two_eth (test_networkmanager.TestNetworkManager) ... ok
test_two_wifi_with_accesspoints (test_networkmanager.TestNetworkManager) ... ERROR
test_wifi_with_connection (test_networkmanager.TestNetworkManager) ... ok
test_wifi_without_access_points (test_networkmanager.TestNetworkManager) ... ok
test_close (test_notification_daemon.TestNotificationDaemon)
CloseNotification() and NotificationClosed() signal ... ok
test_id (test_notification_daemon.TestNotificationDaemon)
ID handling ... ok
test_no_options (test_notification_daemon.TestNotificationDaemon)
notify-send with no options ... ok
test_options (test_notification_daemon.TestNotificationDaemon)
notify-send with some options ... ok
test_get_operators_for_two_modems (test_ofono.TestOfono)
Add second modem, list operators on both ... SKIP: ofono scripts not available, set $OFONO_SCRIPT_DIR
test_hangup_all (test_ofono.TestOfono)
multiple outgoing voice calls ... SKIP: ofono scripts not available, set $OFONO_SCRIPT_DIR
test_list_modems (test_ofono.TestOfono)
Manager.GetModems() ... SKIP: ofono scripts not available, set $OFONO_SCRIPT_DIR
test_list_operators (test_ofono.TestOfono)
list operators ... SKIP: ofono scripts not available, set $OFONO_SCRIPT_DIR
test_outgoing_call (test_ofono.TestOfono)
outgoing voice call ... SKIP: ofono scripts not available, set $OFONO_SCRIPT_DIR
test_second_modem (test_ofono.TestOfono)
Add a second modem ... SKIP: ofono scripts not available, set $OFONO_SCRIPT_DIR
test_allow_unknown (test_polkitd.TestPolkit) ... ok
test_default (test_polkitd.TestPolkit) ... ok
test_set_allowed (test_polkitd.TestPolkit) ... ok
test_changing_local_rtc (test_timedated.TestTimedated) ... ok
test_changing_ntp (test_timedated.TestTimedated) ... ok
test_changing_timezone (test_timedated.TestTimedated) ... ok
test_default_local_rtc (test_timedated.TestTimedated) ... ok
test_default_ntp (test_timedated.TestTimedated) ... ok
test_default_timezone (test_timedated.TestTimedated) ... ok
test_09_properties (test_upower.TestUPower)
0.9 API specific properties ... ok
test_charging_battery (test_upower.TestUPower) ... ok
test_discharging_battery (test_upower.TestUPower) ... ok
test_no_devices (test_upower.TestUPower) ... ok
test_no_display_device (test_upower.TestUPower) ... ok
test_one_ac (test_upower.TestUPower) ... ok
test_suspend (test_upower.TestUPower) ... ok
test_display_device_default (test_upower.TestUPower1) ... SKIP: 1.0 client API specific test
test_enumerate (test_upower.TestUPower1) ... SKIP: 1.0 client API specific test
test_no_devices (test_upower.TestUPower1) ... SKIP: 1.0 client API specific test
test_properties (test_upower.TestUPower1)
1.0 API specific properties ... SKIP: 1.0 client API specific test
test_setup_display_device (test_upower.TestUPower1) ... SKIP: 1.0 client API specific test

======================================================================
ERROR: test_two_wifi_with_accesspoints (test_networkmanager.TestNetworkManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/matej/build/Extras/python-dbusmock/python-dbusmock-0.11.1/tests/test_networkmanager.py", line 146, in test_two_wifi_with_accesspoints
    universal_newlines=True)
  File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['nmcli', '--nocheck', 'dev', 'wifi']' returned non-zero exit status -11

----------------------------------------------------------------------
Ran 95 tests in 25.726s

FAILED (errors=1, skipped=23)
matej at wycliff: python-dbusmock-0.11.1 (master %)$ nmcli --nocheck dev wifi
*  SSID                           MODE    CHAN  RATE     SIGNAL  BARS  SECURITY         
   CTU_FA_Employees               Infra   1     54 MB/s  100     ▂▄▆█  WPA2 802.1X      
   eduroam                        Infra   1     54 MB/s  99      ▂▄▆█  WPA1 WPA2 802.1X 
   wififce                        Infra   1     54 MB/s  30      ▂___  WPA2             
   CTU_FA_Other                   Infra   1     54 MB/s  100     ▂▄▆█  WPA2             
   CTU_FA_TZB                     Infra   1     54 MB/s  97      ▂▄▆█  WPA2             
   CTU_FA_TZB                     Infra   116   54 MB/s  90      ▂▄▆█  WPA2             
   CTU_FA_Employees               Infra   116   54 MB/s  90      ▂▄▆█  WPA2 802.1X      
   CTU_FA_Other                   Infra   116   54 MB/s  84      ▂▄▆█  WPA2             
   CTU-FA-Students                Infra   116   54 MB/s  90      ▂▄▆█  WPA2             
   eduroam                        Infra   116   54 MB/s  90      ▂▄▆█  WPA1 WPA2 802.1X 
   wififce                        Infra   116   54 MB/s  90      ▂▄▆█  WPA2             
   CTU-FA-Students                Infra   1     54 MB/s  100     ▂▄▆█  WPA2             
   CTU_FA_Employees               Infra   44    54 MB/s  70      ▂▄▆_  WPA2 802.1X      
   CTU-FA-Students                Infra   44    54 MB/s  70      ▂▄▆_  WPA2             
   CTU_FA_TZB                     Infra   44    54 MB/s  70      ▂▄▆_  WPA2             
   eduroam                        Infra   44    54 MB/s  70      ▂▄▆_  WPA1 WPA2 802.1X 
   CTU_FA_Other                   Infra   44    54 MB/s  69      ▂▄▆_  WPA2             
   wififce                        Infra   100   54 MB/s  52      ▂▄__  WPA2             
   CTU_FA_Employees               Infra   100   54 MB/s  52      ▂▄__  WPA2 802.1X      
   CTU_FA_Other                   Infra   100   54 MB/s  52      ▂▄__  WPA2             
   CTU-FA-Students                Infra   100   54 MB/s  52      ▂▄__  WPA2             
   eduroam                        Infra   6     54 MB/s  55      ▂▄__  WPA1 WPA2 802.1X 
   CTU_FA_TZB                     Infra   100   54 MB/s  52      ▂▄__  WPA2             
   eduroam                        Infra   100   54 MB/s  52      ▂▄__  WPA1 WPA2 802.1X 
   CTU_FA_Other                   Infra   6     54 MB/s  59      ▂▄▆_  WPA2             
   CTU_FA_TZB                     Infra   6     54 MB/s  57      ▂▄▆_  WPA2             
   CTU_FA_Employees               Infra   6     54 MB/s  55      ▂▄__  WPA2 802.1X      
   CTU-FA-Students                Infra   6     54 MB/s  59      ▂▄▆_  WPA2             
   CTU-FA-Students                Infra   11    54 MB/s  49      ▂▄__  WPA2             
   CTU_FA_TZB                     Infra   11    54 MB/s  49      ▂▄__  WPA2             
   CTU_FA_Employees               Infra   11    54 MB/s  52      ▂▄__  WPA2 802.1X      
   CTU-FA-Students                Infra   56    54 MB/s  37      ▂▄__  WPA2             
   CTU_FA_Employees               Infra   56    54 MB/s  35      ▂▄__  WPA2 802.1X      
   CTU_FA_TZB                     Infra   56    54 MB/s  37      ▂▄__  WPA2             
   eduroam                        Infra   56    54 MB/s  29      ▂___  WPA1 WPA2 802.1X 
   CTU_FA_Other                   Infra   56    54 MB/s  34      ▂▄__  WPA2             
   CTU_FA_Employees               Infra   140   54 MB/s  32      ▂▄__  WPA2 802.1X      
   wififce                        Infra   40    54 MB/s  30      ▂___  WPA2             
   CTU_FA_TZB                     Infra   140   54 MB/s  30      ▂___  WPA2             
   CTU_FA_Other                   Infra   140   54 MB/s  30      ▂___  WPA2             
   CTU-FA-Students                Infra   140   54 MB/s  30      ▂___  WPA2             
   eduroam                        Infra   140   54 MB/s  30      ▂___  WPA1 WPA2 802.1X 
   wififce                        Infra   140   54 MB/s  30      ▂___  WPA2             
   CTU_FA_Employees               Infra   40    54 MB/s  29      ▂___  WPA2 802.1X      
   CTU-FA-Students                Infra   40    54 MB/s  32      ▂▄__  WPA2             
   eduroam                        Infra   40    54 MB/s  27      ▂___  WPA1 WPA2 802.1X 
   wififce                        Infra   56    54 MB/s  29      ▂___  WPA2             
   CTU_FA_Other                   Infra   11    54 MB/s  45      ▂▄__  WPA2             
   eduroam                        Infra   11    54 MB/s  55      ▂▄__  WPA1 WPA2 802.1X 
   eduroam                        Infra   6     54 MB/s  34      ▂▄__  WPA1 WPA2 802.1X 
   wififce                        Infra   6     54 MB/s  34      ▂▄__  WPA2             
   CTU_FA_TZB                     Infra   11    54 MB/s  30      ▂___  WPA2             
   wififce                        Infra   11    54 MB/s  40      ▂▄__  WPA2             
   wififce                        Infra   44    54 MB/s  59      ▂▄▆_  WPA2             
   wififce                        Infra   11    54 MB/s  54      ▂▄__  WPA2             
   CTU_FA_Employees               Infra   104   54 MB/s  22      ▂___  WPA2 802.1X      
   CTU-FA-Students                Infra   11    54 MB/s  35      ▂▄__  WPA2             
   CTU_FA_TZB                     Infra   104   54 MB/s  24      ▂___  WPA2             
   CTU_FA_Other                   Infra   36    54 MB/s  25      ▂___  WPA2             
   CTU-FA-Students                Infra   36    54 MB/s  24      ▂___  WPA2             
   CTU-FA-Students                Infra   1     54 MB/s  30      ▂___  WPA2             
   CTU_FA_Other                   Infra   40    54 MB/s  30      ▂___  WPA2             
   CTU_FA_TZB                     Infra   40    54 MB/s  24      ▂___  WPA2             
*  wififce                        Infra   6     54 MB/s  56      ▂▄▆_  WPA2             
   eduroam                        Infra   11    54 MB/s  32      ▂▄__  WPA1 WPA2 802.1X 
   CTU-FA-Students                Infra   6     54 MB/s  37      ▂▄__  WPA2             
   CTU_FA_Employees               Infra   36    54 MB/s  19      ▂___  WPA2 802.1X      
   CTU_FA_TZB                     Infra   36    54 MB/s  25      ▂___  WPA2             
   CTU_FA_Other                   Infra   104   54 MB/s  20      ▂___  WPA2             
   CTU_FA_TZB                     Infra   6     54 MB/s  37      ▂▄__  WPA2             
   CTU_FA_TZB                     Infra   6     54 MB/s  22      ▂___  WPA2             
   CTU_FA_Employees               Infra   11    54 MB/s  34      ▂▄__  WPA2 802.1X      
   CTU_FA_Other                   Infra   1     54 MB/s  29      ▂___  WPA2             
   CTU_FA_Employees               Infra   1     54 MB/s  35      ▂▄__  WPA2 802.1X      
   CTU_FA_Employees               Infra   6     54 MB/s  37      ▂▄__  WPA2 802.1X      
   CTU_FA_TZB                     Infra   1     54 MB/s  29      ▂___  WPA2             
   eduroam                        Infra   1     54 MB/s  29      ▂___  WPA1 WPA2 802.1X 
   wififce                        Infra   1     54 MB/s  32      ▂▄__  WPA2             
   CTU_FA_Other                   Infra   11    54 MB/s  30      ▂___  WPA2             
   eduroam                        Infra   6     54 MB/s  25      ▂___  WPA1 WPA2 802.1X 
   wififce                        Infra   36    54 MB/s  25      ▂___  WPA2             
   CTU-FA-Students                Infra   132   54 MB/s  20      ▂___  WPA2             
   CTU_FA_Employees               Infra   132   54 MB/s  22      ▂___  WPA2 802.1X      
   eduroam                        Infra   132   54 MB/s  19      ▂___  WPA1 WPA2 802.1X 
   --                             Infra   5     54 MB/s  25      ▂___  WPA2             
   SPA_AP                         Infra   13    54 MB/s  22      ▂___  WPA1             
   PD10080225804Name00800D040144  Ad-Hoc  4     54 MB/s  22      ▂___  WEP              
   CTU_FA_TZB                     Infra   1     54 MB/s  37      ▂▄__  WPA2             
   eduroam                        Infra   1     54 MB/s  35      ▂▄__  WPA1 WPA2 802.1X 
   wififce                        Infra   1     54 MB/s  34      ▂▄__  WPA2             
   CTU-FA-Students                Infra   1     54 MB/s  34      ▂▄__  WPA2             
   CTU_FA_TZB                     Infra   48    54 MB/s  24      ▂___  WPA2             
   wififce                        Infra   48    54 MB/s  24      ▂___  WPA2             
   CTU-FA-Students                Infra   48    54 MB/s  22      ▂___  WPA2             
   CTU-FA-Students                Infra   104   54 MB/s  22      ▂___  WPA2             
   wififce                        Infra   104   54 MB/s  22      ▂___  WPA2             
   AsfaltNET                      Infra   2     54 MB/s  24      ▂___  WPA1 WPA2        
   CTU_FA_Other                   Infra   1     54 MB/s  29      ▂___  WPA2             
   wififce                        Infra   6     54 MB/s  25      ▂___  WPA2             
   CTU_FA_TZB                     Infra   11    54 MB/s  20      ▂___  WPA2             
matej at wycliff: python-dbusmock-0.11.1 (master %)$ echo $?
0
matej at wycliff: python-dbusmock-0.11.1 (master %)$

-- 
You received this bug notification because you are a member of Network-
manager, which is subscribed to NetworkManager.
https://bugs.launchpad.net/bugs/1328579

Title:
  network-manager template needs to be adjusted for newer NM versions

To manage notifications about this bug go to:
https://bugs.launchpad.net/network-manager/+bug/1328579/+subscriptions



More information about the Ubuntu-reviews mailing list