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

gophercloud / gophercloud / 4691 / 3
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 05 Aug 2020 02:58PM UTC
Files 614
Run time 2min
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

05 Aug 2020 02:51PM UTC coverage: 79.512% (+0.1%) from 79.416%
COVERALLS_TOKEN=[secure] GO111MODULE=on

push

travis-ci

web-flow
Fix/create temp url escaping (#1994)

* Remove container and object escaping from CreateTempURL

- https://github.com/gophercloud/gophercloud/issues/1993
- URL MUST NOT be encoded prior to hashing
- From Swift docs - Do not URL-encode the path when you generate the HMAC-SHA1 signature

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Implement unit test for CreateTempURL

- This test should generate URL with consistent signature and expiry and
  then be asserted

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* refactoring: Statically define HTTP port in test

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Allow stubbing of time on package level for object-storage

This gives enough flexibility to stub time and perform unit tests

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Stub time to static value in test for function CreateTempURL

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Use complex object name with pseudo hierarchical path

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Update expected test results in accounts where TempUrlKey secret was added

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Use different persistent port as in other tests to avoid collisions

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Reset clock implementation in stubbed clock

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Add acceptance test for CreateTempURL

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Close response body manually rather than deferred

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Return byte array from bytes buffer in comparison

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Allow testing of CreateTempURL by passing time.Time as opts

- This way is less hacky than packaging time

Signed-off-by: Ondrej Vasko <ondrej.vaskoo@gmail.com>

* Use assert deep equals to comp... (continued)

19952 of 25093 relevant lines covered (79.51%)

31.31 hits per line

Source Files on job 4691.3 (COVERALLS_TOKEN=[secure] GO111MODULE=on)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3939
  • Travis Job 4691.3
  • e4a74d04 on github
  • Prev Job for COVERALLS_TOKEN=[secure] GO111MODULE=on on master (#4689.1)
  • Next Job for COVERALLS_TOKEN=[secure] GO111MODULE=on on master (#4692.1)
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