Commit Graph

59 Commits

Author SHA1 Message Date
OpenDev Sysadmins b5648fb0b3 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:33 +00:00
Dean Troyer f8471e4334 Final CTI update
Adds build, install targets, updates test* targets

Change-Id: Id7394568e4c99c7a56f3c48a6a2a8150c034719e
2017-03-24 11:18:10 -05:00
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
Dean Troyer 5620f4d381 Update for CTI ps4
Update the Makefile targets for current CTI proposal.

Change-Id: If1c881df259fbac94e8289cd8373d6b20c789484
2017-03-10 14:54:38 -06: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 753e96dd4a Fix unit tests
* OpenStack CI (Zuul?) puts repos under test in a repo named for the
  running job rather than the actual repo name, Go doesn't like ths.
  Get the actual package name from glide.yaml to build the golang
  workspace rather than the current directory.
* Only install glide on OS/X if it is not already found
* Hack out a bunch of the volume v3 stuff that I should not have merged
  before the unit job was working...the revert fails now too, so this
  is just a fine mess that I am going to clean up now.

Change-Id: I66b359fc1bfd91e686ef0b3f068e582b009e1ea5
2017-01-18 10:52:41 -06:00
Dean Troyer 82c7e3bc0f Add crud operation of volume API v3
Currently the volume API v2 only supports query volumes and it's
necessary for openstack-goclient to provide CRUD operation of
volume for some projects.

Change-Id: Ie4a0e9f70d6fbe748ebdab1aa0a651c0d59ef244
2017-01-17 16:46:31 +00:00
Dean Troyer 34a783684a Use glide for dependencies
Use the new tools/test-setup.sh for bootstrapping our
dev/test environment

Change-Id: Ic5c9d89d4a6d89f8a4b138fc9c814452fc6ff104
2017-01-17 10:17:33 -06:00
Dean Troyer 9b52de086d Add bindep support
Adds make targets bindep and .bindep (install bindep into a venv)

Change-Id: Ie497d917e9149e56d8a1ed2570896b8b812da283
2016-12-22 09:42:59 -06: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
Fangzhou Xu 784256a823 fix AccessToken struct -> User json Unmarshal
Change-Id: I4e07da36a46285c68c94ee2857a9e8f85b161e92
2016-09-01 17:15:05 -07:00
Krasilnikov Maxim c8dab92a7c Added support 206 http code
GetObject query with Range header return 206 status code

Change-Id: I4d29b8aab2e0f4e000cc0a32872a758b0c5bb1c3
2016-08-08 17:25:13 +00: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
Jenkins 63a095c4c0 Merge "handle CMS pem format easier" 2016-05-05 18:00:05 +00:00
Jenkins 9e449b15f3 Merge "Add Debug handling to examples/config.json" 2016-05-05 17:59:07 +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
Fangzhou Xu b37df29f9e handle CMS pem format easier
Change-Id: Iea34f049fe84e7454380b9184082930085f792d0
2016-05-05 10:17:03 -07:00
Dean Troyer f28f20343d Add Debug handling to examples/config.json
Change-Id: Ie94a22ed804686dc0b08206fcd4ccc9b03ad65c1
2016-05-05 11:11:42 -05:00
Dean Troyer 4141ca3ed3 Actually encode JSON in RequestJSON90
Change-Id: I1e56927d3c100be1b59f00aaabd705bc3c38cd7b
2016-05-05 10:38:43 -05:00
Dean Troyer e7fceb0b4d Add Session.RequestJSON(), Session.GetJSON() and Session.PostJSON()
Change-Id: Iba573c8bb1cdfdd42b1c51dd997343937eb29a1b
2016-05-05 09:32:04 -05:00
Jenkins 11e0970660 Merge "Update .gitreview for new namespace" 2016-05-05 13:05:01 +00:00
Jenkins 9ab4a3edbe Merge "add keystone middleware for token validation" 2016-05-05 13:04:32 +00:00
arkxu 657e32bbd4 add keystone middleware for token validation
Change-Id: If3478342eaafbb61e6f99841d4930b9858dd23ac
2016-05-04 19:56:01 -07:00
Dean Troyer da8d7aedba Final StackForge cleanups
Change-Id: Ie52d5d6ec565d5bb538abde08518b4e9c48f3909
2016-05-04 16:51:37 -05:00
arkxu 16ac1f84b2 failure fast if not 200 when authenticating
Change-Id: Ibe1c38f632d1f0155830f00354de2135ee5aceb6
2016-04-25 15:56:57 -07:00
arkxu 452642dade fix the session_test
It was broken.

Change-Id: I03a51a6cc30c3bcc6d6ae778973b7fe374fe3272
2016-04-23 00:04:50 -07:00
Fangzhou Xu 1bc5f497bb change from stackforge to openstack
Change-Id: I232a8c125d1b1c5de30df47a255c294afb1b9b64
2016-04-21 20:08:28 -07:00
Jeremy Stanley c131ae5f35 Update .gitreview for new namespace
Change-Id: I35d82b8dee822d8a41f6d77990fbac13172e5c7a
2015-10-17 22:29:19 +00: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 ef7386d2c4 Rename session package to openstack
Change-Id: I711c4190836b98d415d6cbe85d6f28e05537013f
2015-04-18 01:33:32 -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
Dean Troyer 124ac5cc92 Docs revision for current status
* Update README to add a note about the reorg in progress
* Rename misc to uitl
* Add openstack directory

Change-Id: I3f318116b1406fa862715236cc9001dea0f9231c
2015-04-18 01:24:36 -05:00
Jeremy Stanley 03e6c8f314 Workflow documentation is now in infra-manual
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: Ic002517ad2152ceece49365f02b66e36cd5e2253
2014-12-05 03:30:45 +00: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
Matt Farina 03aa5209e0 Adding sublime project files to the gitignore.
Change-Id: Ib9c10ae5c8c5aa90b44a45526ff17290d31e5d9d
2014-10-09 14:46:58 -04: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
Jenkins 5f5601e718 Merge "Updated the test documentation to point to the examples rather than the removed integration tests." 2014-06-05 15:20:47 +00:00
Jenkins 521bc88e10 Merge "Adding the appropriate license and copyright statements." 2014-06-05 15:20:41 +00:00
Jenkins a2b1973f74 Merge "Moves the integration tests to be acceptance tests and examples for object store." 2014-06-05 15:20:30 +00:00
Jenkins d936961fff Merge "Moves the integration tests to be acceptance tests and examples for identity." 2014-06-05 15:20:20 +00:00
Matt Farina 6932dc0a7b Updated the test documentation to point to the examples rather
than the removed integration tests.

implements blueprint acceptance-tests

Change-Id: I7b894a38fc7fb460fe98fe18f00f6541de55c16b
2014-05-29 17:13:18 -04:00