Closed Bug 733987 Opened 12 years ago Closed 12 years ago

Add remove API to test Sync HTTP server

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: gps, Assigned: gps)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Trivial patch to add extra functionality to test HTTP server to remove records completely from the server. I want this to make testing 404's easier. It's a lot easier than installing a custom HTTP handler.
Attachment #603940 - Flags: review?(rnewman)
Comment on attachment 603940 [details] [diff] [review]
Add ServerCollection.remove()

Review of attachment 603940 [details] [diff] [review]:
-----------------------------------------------------------------

::: services/sync/tests/unit/head_http_server.js
@@ +295,5 @@
>      return this.insertWBO(new ServerWBO(id, payload, modified));
>    },
>  
> +  /**
> +   * Removes a BSO entirely from the collection.

For consistency, either s/BSO/WBO until the next protocol version lands, or just say "object" instead.
Attachment #603940 - Flags: review?(rnewman) → review+
Not used anywhere, no QA needed.
Whiteboard: [fixed in services] → [fixed in services][qa-]
https://hg.mozilla.org/mozilla-central/rev/c90e6695df90
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services][qa-] → [qa-]
Target Milestone: --- → mozilla13
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: