Commit Graph

25 Commits

Author SHA1 Message Date
Dean Troyer 5999092516 Fix gofmt issues
These were left these in to test the fmt job, clean it up!

Change-Id: I39f37a6c9a330a335ad5cd5c113c775615a51c9d
2017-03-23 19:46:33 -05:00
Dean Troyer 9871b73590 Convert examples into proper stand-alone commands
Change-Id: I334dd55fb5076a4d3f3b42770681ef6111ccc90f
2017-03-23 15:01:17 -05:00
Davanum Srinivas ce3bd97613 Sanitize the package names
* All files in the same directory should belong to
  the same package
* Avoid xyz/xyz_v123 format (example volume/volume_v2)
* Added a doc.go so we can support a different import
  path later:
    https://golang.org/doc/go1.4#canonicalimports
* Drop the trailing ".git" in the imports

Change-Id: If4a880c62a2142f7015ed693e07af239bbbcf8e5
2017-03-07 13:39:59 -05:00
Dean Troyer d38d3def62 Clean up source with go fmt
Change-Id: Iaa5382f2fd35764ba7e795c5ae8e5b9b780eac31
2016-12-14 18:30:42 -06:00
Dean Troyer d6e0b326e1 Makefile with unit tests
Skip examples in unit tests

Change-Id: I4e5673a33d45acaf13e3b08ff7b18d6bbf59a973
2016-12-14 18:26:53 -06:00
Dean Troyer bff51c47ce Fix up unit tests
* Fix objectstore unit tests to use Session
* Remove unused auth code
* Skip unit tests for validator (did these ever work?)
* Fix volume v2 location

Change-Id: Ib770c20a2798822c15f34e89c5c49f2a2814beb5
2016-12-14 18:26:35 -06:00
Jenkins 9c1196d0c6 Merge "Added Capability to get volumes and volumes with details" 2016-12-14 22:36:04 +00:00
wujian 3a6d72d71b Added Capability to get volumes and volumes with details
Partially implements blueprint volume

Change-Id: Ie7d6f0c6e137499e5837cf0a94ca612bc83512a4
2016-09-27 10:15:28 +08:00
wujian 301e6d4cb8 Authorization failed with project id
The keystone response 401 unauthorised ERROR when
use Project ID to get token.

Change-Id: I4f9b361d93127ae8fd6d44d45420095726c288b4
Closes-Bug: #1625967
2016-09-21 16:19:44 +08:00
Dean Troyer c803f9803f Use Session for auth
Change-Id: Ie1fae2b7aec29a8020393b32a92d71e87c2b55fe
2016-05-05 13:15:40 -05:00
Jenkins 58c3787968 Merge "Separate service catalog to prepare for v3" 2016-05-05 18:02:11 +00:00
Dean Troyer 753c52bf33 Separate service catalog to prepare for v3
* Move service catalog bits to openstack/service-catalog.go
* Add AuthRef.GetProject()
* Add sanity check to 00-authntication

Change-Id: I45b24a222527cd0117401146fe788ca6ba414980
2016-05-05 12:37:06 -05:00
Dean Troyer f28f20343d Add Debug handling to examples/config.json
Change-Id: Ie94a22ed804686dc0b08206fcd4ccc9b03ad65c1
2016-05-05 11:11:42 -05:00
Dean Troyer da8d7aedba Final StackForge cleanups
Change-Id: Ie52d5d6ec565d5bb538abde08518b4e9c48f3909
2016-05-04 16:51:37 -05:00
Fangzhou Xu 1bc5f497bb change from stackforge to openstack
Change-Id: I232a8c125d1b1c5de30df47a255c294afb1b9b64
2016-04-21 20:08:28 -07:00
Dean Troyer 9de84b3c5d Add auth package
Includes AuthOpts struct and AuthRef interface, plus an Identity v2
password auth implementation.

Note: the examples work, the objectstore_test is broken, will be fixed
along with additional session and auth tests.

Change-Id: I77b07c92586c37e855b466e18dea133a4a938aaa
2015-04-19 16:44:51 -05:00
Dean Troyer a279956280 Add Session as base REST interface
This is the initial implementation of a Session object that handles
the REST calls similar to the new Session in python-keystoneclient.
It will be expanded to utilize a callback to an appropriate authentication
handler to re-authenticate as required.

This is intended to replace CallAPI in the util/util package.

Change-Id: I585968cc584327427da3429ef7005dd909c8b8b0
2015-04-18 01:24:46 -05:00
Chris Robinson 219cc1c2c1 Added Capability to get images and images with details
new file:   examples/30-image-v1.go
	modified:   examples/config.json.dist
	modified:   examples/setup.go
	modified:   identity/v2/auth.go
	new file:   image/v1/image.go
	new file:   image/v1/image_test.go
	new file:   misc/rfc8601DateTime.go
	new file:   misc/rfc8601DateTime_test.go
	modified:   misc/util.go
	modified:   misc/util_test.go
	modified:   objectstorage/v1/objectstorage.go
	modified:   objectstorage/v1/objectstorage_test.go
	new file:   testUtil/testUtil.go

Partially implements blueprint image-v1

Change-Id: I6277a5c8915f45f4b7585855d836015ffd9e1c12
2014-10-27 14:09:26 -07:00
Jenkins 2b0046f805 Merge "Move the service handling to be versioned." 2014-06-11 19:50:07 +00:00
mattyw bbefc8b791 after errors in main we should return
Change-Id: Ibe1df859c2d03b1fd882a9dbf5fa468b85c1d089
2014-06-09 19:26:27 +01:00
Matt Farina 088f14907c Move the service handling to be versioned.
implements blueprint golang-multi-version

Change-Id: I77e31118a64140b5d1780725c0a35e2f5d55221c
2014-06-05 14:13:44 -04:00
Matt Farina 83c8761d52 Adding the appropriate license and copyright statements.
Change-Id: Iae495e0b7f6b3dae0de95d9fa3e6224311bff5e9
2014-05-29 17:09:57 -04:00
Matt Farina 0009b4bb71 Moves the integration tests to be acceptance tests
and examples for object store.

partially implements blueprint acceptance-tests

Change-Id: I94dbcc4b343af83ec0b6f65329ba45c920a1d939
2014-05-29 16:59:36 -04:00
Matt Farina c9f5825d62 Moves the integration tests to be acceptance tests
and examples for identity.

partially implements blueprint acceptance-tests

Change-Id: I724a45f74d1d929ef571ae25c06443c194615658
2014-05-29 14:09:58 -04:00
Matt Farina 7eef44f0c8 Adding examples that can optionally be used as acceptance tests.
Change-Id: Ie13680476865ece878a1c3486bbc3fd61c0d41b9
2014-05-22 10:01:03 -04:00