tests for a swift server and a corresponding fake
Bug #1302470 reported by
Vincent Ladeuil
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu CI Engine |
Fix Released
|
High
|
Vincent Ladeuil |
Bug Description
We already have test for the data store against a real deployment.
We need a fake for tests that needs to store objects in swift without a real deployment.
The tests should focus on the data store API we use in the components.
Setting up a local swift server is not worth the effort.
Related branches
lp:~vila/uci-engine/1302470-fake-swift
- Evan (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 175 lines (+166/-0)2 files modifiedci-utils/ci_utils/tests/fixtures.py (+80/-0)
ci-utils/ci_utils/tests/test_fixtures.py (+86/-0)
Changed in uci-engine: | |
status: | Triaged → Fix Committed |
Changed in uci-engine: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
"S4" does this for the Amazon S3 API:
https:/ /bazaar. launchpad. net/~ubuntuone- pqm-team/ ubuntuone- servers/ ubuntuone- s3/view/ head:/s4/ s4/s4.py
Perhaps we could use it as a basis for creating a fake of the Swift API, rather than teaching our usage of the Swift API to use the S3 compatibility API instead.