Commit Graph

448 Commits

Author SHA1 Message Date
Monty Taylor 9fb2743fc4 Retire stackforge/openstack-sdk-php 2015-10-17 16:04:03 -04:00
Jenkins 4536bbc166 Merge "Adding URL class for better encapsulation" 2014-10-13 15:11:24 +00:00
Jenkins 3d32bcf59a Merge "Removing unnecessary line and switching to tilde operator" 2014-08-08 21:07:56 +00:00
Jamie Hannaford ee4547c942 Adding URL class for better encapsulation
Because a lot of work is done with URIs, proper encapsulation is
necessary. By using an OO approach, we have greater flexibility, ease of
use, clarity and power - as apposed to dealing with string manipulation
all the time.

Change-Id: I3db0712aeadd65f70a599d11b4bc257ad464d0d0
2014-06-23 11:12:13 +02:00
Jamie Hannaford e8228ea2fc Re-formatting and adding Rackspace to Copyright headers
Previously, all work submitted by Rackspace employees were done with
"Copyright OpenStack Foundation" headers. This was done because we were
uncertain about the correct legal solution; since then, we have been
instructed to label all our work with "Rackspace US, Inc." copyrights
instead. This commit does that and reformats the docblock to a more
consistent style. Other PHP projects like Symfony, Composer, Doctrine,
etc. all do this.

Change-Id: I3e03b624d889a7a687ce630feef918ef9a24d015
2014-06-20 16:42:52 +02:00
Jamie Hannaford 3c5bd1fa3c Remove red herring test
Currently we have a stand-alone script that tests authentication using
CLI commands. This does not integrate with our test suite. We already have
phpunit test files which test authentication, so we should be consistent with our approach.

Change-Id: I8779aa75a269f25a704652d752c6f58c5dc62176
2014-06-20 16:27:09 +02:00
Jenkins 3376804252 Merge "Removing unused bootstrap files" 2014-06-20 14:03:13 +00:00
Jamie Hannaford fd9699ab0e Removing unnecessary line and switching to tilde operator
The `guzzlehttp/guzzle' package will automatically pull in the streams
dependency by itself, so we do not need to list it as an additional
dependency. Also switching to tilde operators since it makes it clear that we're
following semantic versioning.

Change-Id: I8b45184242fc538ea2d92275d9e0e4137e744f70
2014-06-16 13:55:42 +02:00
Jamie Hannaford aadca1dd21 Removing unused bootstrap files
Change-Id: I2cf526029b0f23f1babb0cfe6819dc37dc5b58e2
2014-06-13 11:55:25 +02:00
Jamie Hannaford b54de957d4 Delete custom autoloader
Change-Id: Ib63e4aa7507987e89ed9ed63f0130d4f8d3e5c90
2014-06-12 11:22:27 +02:00
Jenkins 061a3b784a Merge "Removing top-level bin and script dirs" 2014-06-10 14:33:26 +00:00
Jamie Hannaford 3de5e4749b Upgrading arrays to 5.4 short syntax
Change-Id: I1a238996a3a8ab56fa0282cddc51c06f5c9bd139
2014-06-10 07:07:48 +00:00
Jamie Hannaford c91e2932aa Refactors ClientInterface and Guzzle adapter.
This patch achieves three interrelated changes

1. an update to the ClientInterface, making it more efficient and
consistent with other HTTP libraries. PSR-FIG messages have also been
added as separate classes, rather than lumped as one. Guzzle
functionality has also been moved to its own namespace;

2. the refactoring of `GuzzleClient` to `GuzzleAdapter`, including
relevant changes needed for the interface change (1). We now have
ADAPTERS that bridge our interfaces with Guzzle's - making that
difference much clearer, extensible, less tightly coupled and less
brittle;

3. moving "bad request" error handling into its own dedicated space,
based on how the new Adapter functionality (2). Previously the client
tried to do all the exception logic - but this is not strictly its
responsibility. This logic has been shipped out to a base
RequestException which instantiates one of its children exception based
on the HTTP status code.

Although I have attempted to keep the scope of this patch to a minimum,
as granular as possible, because the interface is a core internal API,
various other files need to be modified to reflect the change. In terms
of the other two changes, these are inextricably linked to the interface
change, so cannot be teased out into their own patches.

Change-Id: Ibc1b50cec125c11d32ee6e4f0dbb395fcaea864e
2014-06-05 10:09:03 +02:00
Jamie Hannaford dd7ca470e4 Removing top-level bin and script dirs
Change-Id: I4d73aa91d5aa56c34a7917b58c183ad9b893a044
2014-06-05 09:57:11 +02:00
Sam Choi bcdcba06f7 Removed all deprecated functionality and updated docs and tests as needed.
Implements blueprint remove-deprecated

Change-Id: If363d7d551e00ad23e317f29f267a2bfb02a7785
2014-05-30 16:17:30 -07:00
Jenkins 3b63d64d4f Merge "Fixing bug 1302141" 2014-05-29 11:27:45 +00:00
Matt Farina b55f529dc8 Adding the support section to composer.json.
Change-Id: I49438565c7e0393cab29301f761edb6366b219e9
2014-05-21 16:10:03 -04:00
Sam Choi 87a7e4b7a3 Fixing bug 1302141
Change-Id: I13f77af373d60f86bd9976831fc8eea2f656a4c7
2014-05-20 21:26:05 -07:00
Jenkins 7035fa4ade Merge "Fixes an issue with Rackspace tenant IDs and Swift regions. Also fixes tests that simply do not work with certain Rackspace/OpenStack implementations." 2014-05-08 13:50:48 +00:00
Jamie Hannaford f908955eda Fixes an issue with Rackspace tenant IDs and Swift regions. Also fixes tests that simply do not work with certain Rackspace/OpenStack implementations.
Closes-Bug: 1312678
Change-Id: I794db05f612874748fd05a3c38dceb7552699071
2014-05-07 19:23:31 +02:00
Jamie Hannaford 2e0a364be9 Remove 'credits' file from codebase because it's not necessary or standard
Change-Id: Ibe2ae92145bd3c8b2ccc7d9cc8b7ae4371e297d9
2014-04-30 11:03:22 +02:00
Matt Farina 153e6e8b67 Updated the directory and namespace structure to support
multiple API verstions for each service. This included
updating the directory structure for the tests and moving
the Common files to a Common namespace.

Implements blueprint multiple-api-versions

Change-Id: I9f9dfc4ef8f4172243519772a9af86dd92690fcf
2014-04-29 12:02:47 -04:00
Jamie Hannaford 30713abaa6 Modifying gitignore to include common project files which should be ignored, and removing patterns that are too local (or deprecated) for main project
Change-Id: I4d5b5304c359f95f6e78d968e1162c8b76a54f24
2014-04-22 14:08:48 +02:00
Sam Choi 9b3b642ca3 Converted all instances of TRUE, FALSE, and NULL to be lowercase.
Partially implements blueprint psr-2.

Change-Id: If755a437b39378d9ccfc8fbb3c834c644d8025a1
2014-04-17 21:34:06 -07:00
Sam Choi e5c695f72a Partially implements blueprint psr-2
Change-Id: Ifd8b7237f650f0f18fa58ab0e870eb2774c776fc
2014-04-17 20:12:47 -07:00
Matt Farina 948eb89ba8 Migrating the transport layer to use the proposed FIG PSR for http
messages and to use Guzzle 4 as the default transport layer.

implements blueprint guzzle-transport
Closes-Bug: 1277535

Change-Id: I287587b75f42bb48e945335a7b734cadaedc684f
2014-04-15 15:36:49 -04:00
Sam Choi 8bf3e43764 IdentityServices and docs converted to PHPDoc.
Partially implements blueprint phpdoc and completes the blueprint.

Change-Id: Ieb13ad4379d62daf4cb78ed56559adf9aca2f59c
2014-04-10 02:12:36 -07:00
Matt Farina 260eef8195 Removing HP key/secret auth as this should only cover OpenStack
functionality.

Change-Id: I24a10eeb55fc6d4eee56c71b5e06dcb59b034f8c
Closes-Bug: 1298413
2014-04-07 16:33:26 -04:00
Sam Choi afdafbb959 All remaining files converted from doxygen to PHPDoc, besides IdentityServices.
Partially implements blueprint phpdoc.

Change-Id: I838ff99a2b4bb22745c1272a7b20358f802b61ed
2014-04-07 13:02:39 -07:00
Jenkins 38ae1ae3e8 Merge "Object Storage directory has been converted from doxygen to PHPDoc. Partially implements blueprint phpdoc." 2014-04-07 18:46:24 +00:00
Sam Choi bf922f3abd Object Storage directory has been converted from doxygen to PHPDoc.
Partially implements blueprint phpdoc.

Change-Id: I46e1f0bb2a585bb17260f3841007a8d82c6cad95
2014-04-04 12:15:43 -07:00
Matt Farina e74180781b Fixing a bug where PHPUnit is not included in the require-dev to run
the test suite. PHPUnit 4 added and the test suite passes.

Change-Id: I57f9860127d0a0ac037e31776e5d8a6f233a350e
Closes-Bug: 1295358
2014-04-04 12:37:19 -04:00
Jenkins 670d1e9e6e Merge "Migrated from PSR-0 to PSR-4." 2014-03-27 01:21:31 +00:00
Shaunak Kashyap 5ccf7629b0 Converting CHANGELOG.md to CHANGELOG.rst
Change-Id: Ic51c2eec91bbd5feaf02d1d32690a588208510b5
2014-03-25 22:37:46 -04:00
Matt Farina e98864df10 Migrated from PSR-0 to PSR-4.
Change-Id: I3043fd9b6094d9897f4e2addc7ad94dce39df62e
implements: blueprint psr-4
2014-03-25 17:05:04 -04:00
Jenkins e151559602 Merge "Removing legacy Makefile for bug 1295312" 2014-03-25 17:19:43 +00:00
Sam Choi bd7e1255ce Removing legacy Makefile for bug 1295312
Change-Id: I11cb4c610f96440e45c5558384e5444ae22d9edd
2014-03-20 12:07:08 -07:00
Jenkins 175d47ae4b Merge "Separating the autoloader out. It only needs to be used when composer is not available." 2014-03-14 22:55:18 +00:00
Matt Farina ace50582d3 Separating the autoloader out. It only needs to be used when composer is not available.
Change-Id: Ib56039f250ce57b87b0ad6f3d2855f6a2f829977
2014-03-12 15:53:56 -04:00
Matt Farina 6fb21ee7ec Updated composer namespace.
Change-Id: I4335c11846a13518b125a0004e9f425752b867b7
2014-02-07 12:19:28 -05:00
Monty Taylor d0945eba6e Add gitreview file. 2014-02-04 17:56:49 +00:00
Matt Farina 5a40c6bfa5 Moving from MIT license to Apache 2. 2014-02-04 12:47:58 -05:00
Matt Farina 468112a909 Updated the PHP stream transport layer for connection close to make it the default rather than enforced for just http > 1.0 and added some documentation. 2014-01-21 17:04:39 -05:00
Matt Farina 1310cf062f Correcting some semantic errors in the rst readme file. 2013-12-20 15:22:39 -05:00
Matt Farina 72407511b9 Converted the readme to RST to be consistent with openstack documentation. 2013-12-20 15:05:39 -05:00
Matt Farina c4f6c995fc Converted the readme to RST to be consistent with openstack documentation. 2013-12-20 15:01:27 -05:00
Matt Farina 1f7531eb32 Updating author handling for composer and the credits. 2013-12-20 14:57:53 -05:00
Matt Farina 0b6c5eb585 Removing the service catalog count assertions from the token rescoping tests. An unscoped token can have one or more services available and this doesn't directly relate to these tests. 2013-12-03 18:08:20 -05:00
Matt Farina d7394f3e35 Adding a phpunit config file. Temp commenting out the curl tests because they fail on some systems in a manner that stops the test suite from running. There is an issue for this to be worked out. 2013-12-03 17:53:13 -05:00
Matt Farina 5d3031ac4f updated some doc urls to FIXME so they can be filled in after we know a new location. 2013-10-01 16:53:54 -04:00