• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gophercloud / gophercloud / 727
79%

Build:
DEFAULT BRANCH: master
Ran 08 Jun 2017 12:47PM UTC
Jobs 2
Files 293
Run time 55s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
727

push

travis-ci

jrperritt
Cinder Storage Pools API (#205)

* Cinder Storage Pools API

Adds in the ability to probe storage backends to get the current and maximum
pool utilization.  Useful for capacity planning based on committed-to metrics
and those as a result of thin-provisioning.

* jtopjian's comments from 25/11/16

* Update field source documentation

Additionally makes the distinction between required and optional fields based
on said documentation, adding in the optional fields

* Fix up CI header format failures

* Move Storage Pools to Block Storage Extension

* Jrperritt's Review Comments

Cleans up wine-induced typos.  Updated the unmarshall code, seems the integer case is
unnecessarily as go when unmarshalling a number defaults to float64, so has been
deleted.  As we default to 0.0 for total and free capacities I've folded the unknown
case into the default.  Testing code has been updated to include an 'integer' in the
JSON to ensure the assumptions hold.

* Add Pagination

* Tweak Unmarshalling

Rather than unmarshal the entire storage pool struct we only need cater for
the capabilities structure, the JSON unmarshalling code auto-magically takes
care of invoking the correct routines for us.

* Update Name and Location

Renamed to scheduler stats, relocated to v2 extension as it's not part of v1.

* Move Back To Generic Extension

* Alter JSON Unmarshalling

Makes all defaults silently return 0.0 if something is amiss.  Also thought it best to
share the duplicated code in the form of a separate function.

* Remove Capacity Parser Global

Unbeknownst to me symbol visibility across compilation units is controlled
by capitalization, guess I'm too old and used to C's static :)  This removes
the export.  Jrperritt preferred the functionality in the actual JSON code, I
wanted to reduce code duplication so what I gather is the most idiomatic go
is function literals/lambdas.

58 of 58 new or added lines in 3 files covered. (100.0%)

7551 of 10698 relevant lines covered (70.58%)

4.04 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
openstack/blockstorage/extensions/schedulerstats/requests.go
2
100.0
openstack/blockstorage/extensions/schedulerstats/results.go
Jobs
ID Job ID Ran Files Coverage
1 727.1 08 Jun 2017 12:47PM UTC 0
70.58
Travis Job 727.1
2 727.2 08 Jun 2017 12:48PM UTC 0
70.58
Travis Job 727.2
Source Files on build 727
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #727
  • 36954b33 on github
  • Prev Build on master (#715)
  • Next Build on master (#735)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc