Skip to content

Random UUID#43

Open
jmckee46 wants to merge 2 commits intotmornini:masterfrom
jmckee46:random-uuid
Open

Random UUID#43
jmckee46 wants to merge 2 commits intotmornini:masterfrom
jmckee46:random-uuid

Conversation

@jmckee46
Copy link
Collaborator

@jmckee46 jmckee46 commented Jun 5, 2019

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.

@tmornini
Copy link
Owner

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

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

@jmckee46
Copy link
Collaborator Author

ok, done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants