Commit Graph

8 Commits (f416aa695544fafe09a7be02f34cebc0f4d718b4)

Author SHA1 Message Date
Davanum Srinivas 17c5711c55 Remove imports from oslo namespaces
Oslo team is recommending everyone to use the direct imports and
not use the Oslo namespaces. So switch all our code to use oslo_*
instead of "from oslo." or "import oslo" or "from oslo"

NOTE: some of the tests still have mocks referring to oslo.utils
@mock.patch('oslo.utils.timeutils.utcnow')
as the tests break otherwise. We should do this later.

Closes-bug: #1419385
Change-Id: I8e3fbeb833cddc3f55674a0e781ffe69d5033ad4
2015-02-08 02:59:30 +00:00
Hongbin Lu c645023c70 Port parsable error middleware from Ironic
Partial-Bug: 1411871
Change-Id: Ibe67d06f0d3a685dc08b896d466dfa94513c5d10
2015-01-17 04:46:32 +00:00
OTSUKA, Yuanying c6c606b277 Split up extracting auth.py file
The auth.py file does a couple of things, It contains keystone authentication
and to set request context. So this split up to two files.
After this commit, request hook should be included in hooks.py.

Related-Bug: #1406539
Change-Id: I1754da40383976e48f6fd4ca23911717f918f9bb
2014-12-30 23:02:29 +09:00
Steven Dake 07359cbf55 Remove unnecessary model init call
there is no need to model.init with versioned objects.

Change-Id: I7c13ab7c34f1dcfd351fbd29be032477aff6e13a
2014-12-02 15:04:34 -07:00
Steven Dake 6df4c09281 Set max limit as required by versioned objects
max_limit is an api option which must be set for use by versioned
objects.

Change-Id: I242a811b1fae299d09f22377101a140575923e63
2014-12-02 15:04:34 -07:00
Steven Dake a6e2e42115 Authenticate all API calls
There are no PUBLIC_ENDPOINTS in our ReST API.  THis was copied from
Solum which does have some public endpoints.  As a result, just remove
all of the public endpoints.  Now auth is done on every API call.

Also it is helpful to install the authentication wrapper.

Change-Id: I197f690ef6f2ea0756503ee2d44fb721e840f256
2014-11-25 15:53:36 -07:00
Steven Dake 14707dd546 Create a ReST API entrypoint
This creates a server entrypoint for running the Pecan+WSME
infrastructure.

Change-Id: I58bdeea7971f0f562e3d7a5542740283cb910a7b
2014-11-18 14:01:20 -07:00
digambar 9bd22e2c77 Initial commit from github (squashed)
These were the commits from github repo(s)

  84d943e Initial commit
  3d15bd1 Created the pecan project for containers for API
  b49297b Added rest functionality to the v2 apis
  227e1dd Added rest functionality to the v2 apis
  39500ae Added the base API call like POST, GET, PUT & DELETE.
  e404e94 adding wsme support to pecan
  f90f540 Added wsme support to the magnum apis
  c879329 added changes to api
  24ebc32 Fixed the bugs in the container apis
  01725ef Rename dir from containers to magnum
  1a1375a Add requirements and test-requirements
  f957e2e Add ASL2.0 license
  8f4c0ee Move tests to the proper location
  48dd100 Move setup files to proper directory
  86cc435 Fix the setup so the installation is sanitary
  b766d59 Make the installation and tox testing work
  c477236 This is a new project - start with v1 for api
  cf20cac Remove pep8 errors
  d23b325 Merge with code generated using OpenStack cookie-cutter
  b6b9f34 Ability to run pecan serve from command line

Had to update requirements.txt to get jobs working

Change-Id: I068389412d023c258bda40dfbdff5a40f2e7d175
Co-Authored-By: Digambar Patil <digambarpat@gmail.com>
Co-Authored-By: Steven Dake <sdake@redhat.com>
2014-11-18 09:23:37 -05:00