1. 16 Jul, 2015 1 commit
  2. 10 Jul, 2015 7 commits
  3. 09 Jul, 2015 1 commit
  4. 07 Jul, 2015 2 commits
  5. 06 Jul, 2015 3 commits
  6. 02 Jul, 2015 1 commit
  7. 01 Jul, 2015 1 commit
  8. 29 Jun, 2015 3 commits
  9. 23 Jun, 2015 1 commit
  10. 22 Jun, 2015 1 commit
  11. 16 Jun, 2015 2 commits
  12. 15 Jun, 2015 1 commit
  13. 05 Jun, 2015 1 commit
  14. 29 May, 2015 1 commit
  15. 13 May, 2015 1 commit
  16. 12 May, 2015 1 commit
  17. 06 May, 2015 4 commits
  18. 27 Apr, 2015 1 commit
  19. 23 Apr, 2015 3 commits
    • 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
    • Klaus Aehlig's avatar
      Add a utility function for extracting exclusion tags · 3b7c4c4d
      Klaus Aehlig authored
      In order to be able to verify exclusion tag violations in cluster
      verify, we need to decide which tags are exclusion tags. So add
      two python utility functions: one for extracting exclusion prefixes
      from from the cluster tags and one testing if a tag starts with
      one of a set of given prefixes.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      3b7c4c4d
    • Klaus Aehlig's avatar
      Move htools tag constants to a separate module · 09872d39
      Klaus Aehlig authored
      In this way, we can export some of those constants via
      Ganeti/Constants.hs to the python world while still keeping
      all the special htools prefixes togehter in an HTools module.
      (Note that Ganeti/Constants.hs cannot depend on
      Ganeti/HTools/Tags.hs as this would cause a cylic dependency.)
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      09872d39
  20. 22 Apr, 2015 2 commits
  21. 20 Apr, 2015 2 commits