http-spec icon indicating copy to clipboard operation
http-spec copied to clipboard

Random UUID

Open jmckee46 opened this issue 5 years ago • 2 comments

Problem: I had the need to use http-spec on a post using a random uuid so I can re-run the tests whenever I want. I also then needed an auth header based on the created random uuid.

Solution: I created two new substitutions ⧈random-uuid⧈, and ⧈random-uuid-auth-header⧈. ⧈random-uuid⧈ simply creates a new random uuid. ⧈random-uuid-auth-header⧈ creates a new auth header based on ⧈random-uuid⧈ and the static password "random-uuid-password" then base64 encodes it.

This pull request also converts the tests to the -scheme and -hostname format and fixed various testing errors.

jmckee46 avatar Jun 05 '19 21:06 jmckee46

I like ⧈random-uuid⧈ but I'm not a fan of ⧈random-uuid-auth-header⧈

Please make another PR with just ⧈random-uuid⧈ 😄

tmornini avatar Jun 22 '19 01:06 tmornini

ok, done

jmckee46 avatar Jun 23 '19 00:06 jmckee46