Bug 73575

Summary: webkitpy doesn't provide a way to parse htdigest files
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Tools / TestsAssignee: Adam Roben (:aroben) <aroben>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dbates, ddkilzer, eric, ojan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 73353    
Attachments:
Description Flags
Patch eric: review+

Description Adam Roben (:aroben) 2011-12-01 10:48:50 PST
webkitpy doesn't provide a way to parse htdigest files
Comment 1 Adam Roben (:aroben) 2011-12-01 10:51:34 PST
Created attachment 117444 [details]
Patch
Comment 2 Eric Seidel (no email) 2011-12-01 11:06:53 PST
Comment on attachment 117444 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=117444&action=review

You are an amazing man, Dr. Roben.  Amazing man.

> Tools/Scripts/webkitpy/common/net/htdigestparser.py:41
> +    @staticmethod
> +    def parse_file(digest_file):

I'm not sure I would have bothered to make it static, but in this case I don't think it matters.  (I'm very anti-static methods these days, as I've been bitten by their non-mockability in the last year trying to test all of webkitpy.)
Comment 3 Adam Roben (:aroben) 2011-12-01 11:24:48 PST
(In reply to comment #2)
> (From update of attachment 117444 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=117444&action=review
> 
> You are an amazing man, Dr. Roben.  Amazing man.

Aw shucks.

> > Tools/Scripts/webkitpy/common/net/htdigestparser.py:41
> > +    @staticmethod
> > +    def parse_file(digest_file):
> 
> I'm not sure I would have bothered to make it static, but in this case I don't think it matters.  (I'm very anti-static methods these days, as I've been bitten by their non-mockability in the last year trying to test all of webkitpy.)

OK, I'll make it non-static.

Thanks for reviewing!
Comment 4 Adam Roben (:aroben) 2011-12-01 14:03:35 PST
Committed r101694: <http://trac.webkit.org/changeset/101694>