1. 07 Aug, 2013 2 commits
    • Thomas Thrainer's avatar
      Enable pylint and PEP8 for test support code · bd39b6bb
      Thomas Thrainer authored
      
      
      The test support code is mainly written from scratch, so in order to
      ensure to keep the code quality high, enable pylint and PEP8 checks
      for it.
      
      Due to some specialities of the test code, a dedicate pylintrc-test file
      is created which configures pylint for test code.
      
      Those differences include:
       - lowercase functions are allowed if the first word is test, assert or
         main
       - lowercase methods are allowed if the first word(s) is test, assert,
         runTests, setUp or tearDown
       - R0201 (method could be a function) is disabled
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      bd39b6bb
    • Thomas Thrainer's avatar
      Initial version of cmdlib test framework · 3efa7659
      Thomas Thrainer authored
      
      
      The initial version of the cmdlib test framework is able to execute LU's
      with the following components mocked:
      
       * Configuration
       * IAllocator interface
       * Lock manager
       * MCPU processor
       * RPC runner
      
      A base test class is provided which makes it easy to execute opcodes and
      to perform asserts on the output.
      
      Tests for the LUTestDelay logical unit demonstrate the functionality of
      the test framework.
      
      The framework is not yet fully complete, further work will be done as
      the tests are written.
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      3efa7659
  2. 19 Dec, 2012 1 commit
  3. 16 Nov, 2012 1 commit
    • Michael Hanselmann's avatar
      rapi: Add new user option for querying · 5e12acfe
      Michael Hanselmann authored
      
      
      This was requested in issue 301. Before this patch, requests to
      “/2/query/*” and “/2/instances/*/console” would require authentication
      with a user with write access. Since that is not strictly necessary, a
      new user option named “read” is added.
      
      Console information can also be retrieved as a normal query, therefore
      the change applies there too.
      
      This was the first user option to be added after “write”, therefore
      quite a few changes were necessary. Documentation, including NEWS, is
      updated as well.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      5e12acfe
  4. 04 Jan, 2010 1 commit
  5. 19 Dec, 2008 1 commit
    • Michael Hanselmann's avatar
      ganeti-rapi: Implement HTTP authentication · b5b67ef9
      Michael Hanselmann authored
      Passwords are stored in "$localstatedir/lib/ganeti/rapi_users". User
      options specify the access permissions of a user (see docstring for
      ganeti.http.ReadPasswordFile), for which only "write" is supported
      to grant write access. Every other user has read-only access.
      
      Reviewed-by: amishchenko
      b5b67ef9
  6. 11 Jul, 2008 1 commit
  7. 10 Oct, 2007 1 commit
    • Iustin Pop's avatar
      Remove the shebang from modules · 2f31098c
      Iustin Pop authored
      Since modules are not directly executables, remove the shebang from
      them. This helps with lintian warnings.
      
      Also make the autogenerated _autoconf.py contain two comment lines at
      the beginning, like the other modules.
      
      Reviewed-by: ultrotter
      2f31098c
  8. 16 Jul, 2007 1 commit