1. 09 3月, 2017 2 次提交
  2. 08 3月, 2017 21 次提交
  3. 07 3月, 2017 12 次提交
  4. 06 3月, 2017 5 次提交
    • J
      Test virSystemd APIs twice to check the cache effects · 9b1bd138
      Ján Tomko 提交于
      Test virSystemd APIs twice to check the cache effects.
      9b1bd138
    • J
      Cache the presence of machine1 service · f10bd740
      Ján Tomko 提交于
      After the system has been booted, it should not change.
      
      Cache the return value of virSystemdHasMachined.
      Allow starting and terminating machines with just one
      DBus call, instead of three, reducing the chance of
      the call timing out.
      
      Also introduce a small function for resetting the cache
      to be used in tests.
      f10bd740
    • J
      Use macros for testing virSystemd APIs · 27cdbcb9
      Ján Tomko 提交于
      This hides the unused third parameter from every line
      and prepares for resetting the environment after each test
      case in the future.
      27cdbcb9
    • J
      Unify checking for machine1 systemd service · 18c145a0
      Ján Tomko 提交于
      Both virSystemdTerminateMachine and virSystemdCreateMachine
      propagate the error to tell between a non-systemd system
      and a hard error.
      
      In virSystemdGetMachineNameByPID both are treated the same,
      but an error is ignored by the callers.
      
      Split out the checks into a separate function.
      18c145a0
    • J
      test: Make common test*ObjFindByUUID helpers · 39df53b9
      John Ferlan 提交于
      Make common helpers testNetworkObjFindByUUID and testStoragePoolObjFindByUUID
      which will replace the repeated patter for each to find objects by UUID.
      
      As a bonus, the error message processing will also provide the failed uuidstr
      rather than a generic error message.
      39df53b9