1. 07 Jul, 2015 1 commit
  2. 06 Jul, 2015 3 commits
  3. 23 Jun, 2015 1 commit
  4. 22 Jun, 2015 1 commit
  5. 12 May, 2015 1 commit
  6. 06 May, 2015 4 commits
  7. 23 Apr, 2015 1 commit
    • Helga Velroyen's avatar
      Introduce (testutils) SSH file manager · b3465c03
      Helga Velroyen authored
      Testing the backend functions which update SSH keys is a
      pain and maintaining the tests even more. Therefore, this
      patch introduces a manager for all SSH key files of a
      clusters (ganeti_pub_keys and authorized_keys). It
      emulates all operations on these files for all nodes in
      the cluster.
      
      This has the following advantages:
      - One can query the state of the entire cluster in a
        consisten way, for example "Do all nodes have this
        master candidates' key?" instead of tediously evaluating
        a history of mock calls.
      - The file manager emulates both local changes in the
        master nodes' key files and changes on other nodes'
        key files using the ssh_update tool. This way, the
        state of the cluster ssh files is managed consistently
        no matter by what mechanism they were changed.
      - The file manager offers a couple of convenience
        functions to set up the test data and to query their
        state after test operation.
      
      Note that this might look like a lot of code, but it
      vastly simplifies the current unit tests and it will
      make future tests (for example for invalid calls) much
      more easier. As it is a test utility, it is properly
      documented to make it maintainable.
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      b3465c03
  8. 13 Apr, 2015 1 commit
  9. 24 Mar, 2015 2 commits
  10. 18 Mar, 2015 2 commits
  11. 16 Mar, 2015 1 commit
  12. 11 Mar, 2015 1 commit
    • Petr Pudlak's avatar
      Fix issues when generating 'lens' version definitions · 437d77c8
      Petr Pudlak authored
      The original version didn't work when the version was just 2 numbers,
      and also wasn't robust enough when there were multiple 'lens' versions
      installed.
      
      This patch fixes that, and always takes the last installed version, as
      reported by ghc-pkg.
      
      Starting with 2.14 there is a native cabal-based mechanism for
      generating these definitions, so the whole 'hs-lens-version' target
      should be dropped from the Makefile in that version.
      Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
      437d77c8
  13. 12 Feb, 2015 1 commit
  14. 10 Feb, 2015 1 commit
  15. 19 Jan, 2015 1 commit
  16. 14 Jan, 2015 1 commit
  17. 09 Jan, 2015 1 commit
    • Hrvoje Ribicic's avatar
      Remove the rapi-workload test suite · c0065e0f
      Hrvoje Ribicic authored
      The rapi-workload test suite was introduced in 2.10 to try and provide
      a chunk of workload which could be used to detect regressions in the
      RAPI functionality and format. It served its purpose, helping detect a
      few important regressions in time, but with the assistance of manual
      tools which were never automated. Automating them proved difficult, and
      probably infeasible.
      
      The flaws in the QA that caused the regressions were removed over time,
      and with 2.13 around the corner, it's time to shoot this horse. This
      patch removes the file, and a sole mention of it in the Makefile.
      Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
      c0065e0f
  18. 05 Dec, 2014 1 commit
  19. 01 Dec, 2014 1 commit
  20. 28 Nov, 2014 1 commit
    • Dimitris Aragiorgis's avatar
      utils: Introduce GetFreeSlot() function · a813462d
      Dimitris Aragiorgis authored
      Since this is a generic function that implements bitarray logic move
      it from kvm to utils so that it can be easily used across all modules.
      
      Make it raise errors.GenericError if it cannot find a free slot in
      the given bitarray.
      
      We add this function in a separate utils module (bitarrays) that can be
      extended in the future. Currently only the network module and the
      KVM hypervisor make use of bitarrays. This patch is a step forward
      unifying these pieces of code and make both use the same bitarray
      utility functions.
      
      Add unittest for bitarrays utils module.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      a813462d
  21. 19 Nov, 2014 2 commits
  22. 03 Nov, 2014 1 commit
  23. 31 Oct, 2014 1 commit
  24. 24 Oct, 2014 1 commit
  25. 22 Oct, 2014 2 commits
  26. 20 Oct, 2014 3 commits
  27. 15 Oct, 2014 2 commits
  28. 10 Oct, 2014 1 commit