1. 30 May, 2013 1 commit
    • Stavros Sachtouris's avatar
      Enrich/rename astakos client calls with endpoints · 528550d9
      Stavros Sachtouris authored
      Refs: #3874
      
      Kamaki.clients.astakos.AstakosClient is now a high-level client lib that
      offers access to token-authenticated astakos-aquired cached information.
      Users who need an astakos client should use the snf-astakosclient instead.
      
      Usage:
      
       astakos_cache = AstakosClient(<astakos/base/url/with/identity/api>)
       astakos_cache.authenticate(<token>)
       user_info = astakos_cache.user_info()
       compute_endpoints = astakos_cache.get_service_endpoints('compute', 'v2')
      
      Major changes:
      
      Modify ReST call from /im/authenticate to /tokens
      
      New methods as AstakosClient instance cache accessors:
       get_services
       get_service_details
       get_service_endpoints
      
      Method renaiming for existing AstakosClient instance cache accessors:
       info --> user_info
       user --> list_users
      528550d9
  2. 27 May, 2013 1 commit
  3. 04 Apr, 2013 1 commit
    • Stavros Sachtouris's avatar
      Redesign http connection module · c2b5da2f
      Stavros Sachtouris authored
      Merge everything to kamaki.clients
      
      Remove multiple hierarchies of connection classes (== abandon support for
          alternative connection methods, e.g. for requests from pypi)
      
      New connection classes are
      - RequestManager
      - ResponseManager
      Semantics:
          RequestManager constructor commits a request without performing it
            but it performs all sanity checks for url, path, method and params
          RequestManager.perform will perform the commited request, if called
          ResponseManager constructor needs a RequestManager instance
          ResponseManager.(various properties)
              request is pooled from a ContextManagerPool (objpool) when needed.
              Results are cached and used as long as the ResponseManager instance
              is alive
      
      Remove KamakiConnection/ResponseErrors, use ClientError wrapers for everything
      
      Remove the connection livetest
      
      TODO: Adjust unittests
      c2b5da2f
  4. 22 Mar, 2013 1 commit
    • Stavros Sachtouris's avatar
      Apply a simple naming convention for unit tests · 3c50df2e
      Stavros Sachtouris authored
      Naming convention:
      
      Actual functionality:
      
      In package kamaki.clients.pkg there is class C containing a method M
      Test it in a package kamaki.clients.pkg.test, with a class C + a method test_M
      Command line run:
          python ${kamaki}/kamaki/clients/pkg/test.py C M
      or
          python ${kamaki}/kamaki/clients/test.py C M
      
      In package kamaki.clients there is a module mod containing a method M
      Test it in a package kamaki.clients.mod, with a class Mod + a method test_M
      Command line run:
          python ${kamaki}/kamaki/clients/mod/test.py Mod M
      or
          python ${kamaki}/kamaki/clients/test.py Mod M
      3c50df2e
  5. 15 Mar, 2013 1 commit
  6. 12 Mar, 2013 1 commit
  7. 11 Mar, 2013 1 commit
  8. 06 Mar, 2013 1 commit
  9. 28 Feb, 2013 1 commit
  10. 27 Feb, 2013 2 commits
  11. 21 Feb, 2013 1 commit
  12. 11 Feb, 2013 2 commits
  13. 07 Feb, 2013 4 commits
  14. 04 Feb, 2013 2 commits
  15. 01 Feb, 2013 1 commit
  16. 11 Dec, 2012 4 commits
  17. 30 Nov, 2012 1 commit
  18. 06 Nov, 2012 1 commit
  19. 02 Nov, 2012 1 commit
  20. 26 Oct, 2012 1 commit
  21. 12 Sep, 2012 1 commit
  22. 29 Aug, 2012 1 commit
    • Stavros Sachtouris's avatar
      Major changes in client, fixed setup · 2f749e6e
      Stavros Sachtouris authored
      Seperate Client to Client and HTTPConnection
      The later is put in a separate package kamaki.client.connection
      It manages headers, params, method, url and data of a connection
      but the actuall http connection is not implemented at this
      abstract level
      There is an HTTPRequest class extention of HTTPConnection in the
      same package. It implements connection using requests package
      so basicaly it replicates the connection procedure that was used
      in kamaki so far.
      Minor modifications were nessacary at every client lib package
      
      Setup is now aware of gevent and commands package
      2f749e6e
  23. 10 Jul, 2012 1 commit
  24. 17 May, 2012 1 commit
  25. 09 May, 2012 3 commits
  26. 15 Feb, 2012 1 commit
  27. 05 Jan, 2012 1 commit
    • Giorgos Verigakis's avatar
      Major refactoring · eb3ca8ca
      Giorgos Verigakis authored
      Groundwork to support different APIs (synnefo and
      plankton).
      
      New configuration mechanism (kamaki config)
      eb3ca8ca
  28. 28 Sep, 2011 1 commit