Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Backdrop sends Bearer token to Stagecraft #255

Merged
merged 1 commit into from
Mar 18, 2014

Commits on Mar 18, 2014

  1. Backdrop sends Bearer token to Stagecraft

    The `/data-sets` endpoint in Stagecraft is protected by a shared bearer token.
    Backdrop must send the token when it requests data set metadata from
    Stagecraft
    
    - In `BucketRepository`, send HTTP requests to Stagecraft instead of
      looking inside Mongo's `buckets` collection.
    - Selectively handle HTTP 404 from Stagecraft - only `/data-sets/<name>`
      can legitimately return a 404, all other HTTP errors must bubble up.
    - Fix `/data-sets/` vs `/data-sets` URL in fake Stagecraft
    - Added logging on Stagecraft HTTP responses and their JSON content to
      make them easier to diagnose.
    - Quite a lot of test refactoring - move unit tests that shouldn't have
      been put into integration tests for BucketRepository
    
    Related to https://www.pivotaltracker.com/story/show/67103208
    [#67103208]
    jcbashdown authored and Paul M Furley committed Mar 18, 2014
    Configuration menu
    Copy the full SHA
    a3b4593 View commit details
    Browse the repository at this point in the history