Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for token auth #67

Merged
merged 2 commits into from Mar 7, 2018

Conversation

@nightfury1204
Copy link
Member

commented Feb 27, 2018

No description provided.

@nightfury1204 nightfury1204 requested a review from tamalsaha Feb 27, 2018

if err != nil {
t.Error(err)
func stringArraytoBytes(in []string) []byte {
out := ""

This comment has been minimized.

Copy link
@tamalsaha

tamalsaha Mar 6, 2018

Member

[]byte(strings.Join(in, "\n")) ?

srv := Server{}

for pos, testData := range dataset {
t.Run(fmt.Sprintf("scenario 1 testcase #%v", pos), func(t *testing.T) {

This comment has been minimized.

Copy link
@tamalsaha

tamalsaha Mar 6, 2018

Member

Give it a descriptive name so we know what you are testing here

@tamalsaha tamalsaha merged commit 0a0d1c7 into master Mar 7, 2018

@tamalsaha tamalsaha deleted the token-auth-test branch Mar 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.