Closed Bug 982946 Opened 10 years ago Closed 10 years ago

API verification for reg and node servers

Categories

(Cloud Services :: Server: Other, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bobm, Assigned: rfkelly)

References

Details

(Whiteboard: [qa+])

Attachments

(1 file, 1 obsolete file)

Please provide a simple method to verify a running reg server.
Attached file test_user_api.py (obsolete) —
I was going to try to re-use the existing functional test suite, in a similar way to what we do for syncstorage.  Turns out that was a giant rat-hole.  Instead let's just use a simple purpose-built script like the attached.

This script verifiers the user API so it should be usable for reg and sreg, and by extension for testing a node-assignment server.  :bobm let's work together tomorrow to try this out, and I'll look into building something similar for account-portal.
Noting here that the URL should probably default assume that reg lives at http://localhost/user/1.0.
Hardware: x86 → All
Attached file test_user_api.py
Updating the script based on our initial attempt to use it.

This new version will give a better error message if captchas are enabled, is less picky about the format of a node assignment, and allows an optional node-assignement server to be specified as a separate URL.

This should help us to work around the difficulties with our deployment setup, where node-assignent is done by a separate service and manged via url-munging in zeus.  Run it something like:

     ./bin/python test_user_api.py http://reg.server.url http://node.server.url

Bob, we'll probably have to tweak a few details when we go to run this in practice, but I'm hopeful this can give you a solid test script for the two services.
Assignee: nobody → rfkelly
Attachment #8390317 - Attachment is obsolete: true
Attachment #8392656 - Flags: review?(bobm)
Summary: API verification for reg server → API verification for reg and node servers
Comment on attachment 8392656 [details]
test_user_api.py

Nodes passing all tests.
Attachment #8392656 - Flags: review?(bobm) → review+
Committed as syncreg/tests/live.py in http://hg.mozilla.org/services/server-reg/rev/6f87fab21817
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Verified in hg code.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: