mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
22 lines
560 B
Go
22 lines
560 B
Go
package server
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/laszlocph/drone-oss-08/model"
|
|
"github.com/laszlocph/drone-oss-08/remote/github"
|
|
)
|
|
|
|
func TestFetchGithub(t *testing.T) {
|
|
github, err := github.New(github.Opts{URL: "https://github.com"})
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
configFetcher := &configFetcher{
|
|
remote_: github,
|
|
user: &model.User{Token: "xxx"},
|
|
repo: &model.Repo{Owner: "laszlocph", Name: "drone-multipipeline", Config: ".drone"},
|
|
build: &model.Build{Commit: "89ab7b2d6bfb347144ac7c557e638ab402848fee"},
|
|
}
|
|
configFetcher.Fetch()
|
|
}
|