~thrrgilag/woodstock

woodstock/access_token_test.go -rw-r--r-- 423 bytes
62b10b5cMorgan McMillian Update for new project location and module name 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package woodstock

import (
	"os"
	"testing"
	"time"
)

const Delay = 5 * time.Second

type Config struct {
	ClientID    string
	AccessToken string
}

func GetConfig() (config Config, err error) {
	config.ClientID = os.Getenv("PNUT_CLIENT_ID")
	config.AccessToken = os.Getenv("PNUT_ACCESS_TOKEN")
	return
}

func TestAccessToken(t *testing.T) {
	// TODO sort out a proper set of auth tests
	t.Logf("skipping for now...")
}