Files
athens/pkg/module/all_test.go
Marwan Sulaiman dfb7887080 Allow Athens to Propagate Authentication to Mod Download (#1650)
* Allow Athens to Propagate Authentication to Mod Download

* update readme

* add pattern matching to auth propagation

* Propagate authentication to pre declared static host

* quote redis test

* fix flaky redis error message

* fix config tests

* fix config tests

* Update config.dev.toml

Co-authored-by: Ted Wexler <ted@stuckinacan.com>

* gofmt

Co-authored-by: Ted Wexler <ted@stuckinacan.com>
2020-07-30 17:06:53 -04:00

36 lines
821 B
Go

package module
import (
"testing"
"github.com/gobuffalo/envy"
"github.com/spf13/afero"
"github.com/stretchr/testify/suite"
)
const (
// these values need to point to a real repository that has a tag
// github.com/NYTimes/gizmo is a example of a path that needs to be encoded so we can cover that case as well
repoURI = "github.com/NYTimes/gizmo"
version = "v0.1.4"
privateRepoURI = "github.com/athens-artifacts/private"
privateRepoVersion = "v0.0.1"
)
type ModuleSuite struct {
suite.Suite
fs afero.Fs
goBinaryName string
env []string
}
func (m *ModuleSuite) SetupTest() {
m.fs = afero.NewMemMapFs()
}
func TestModules(t *testing.T) {
goBinaryPath := envy.Get("GO_BINARY_PATH", "go")
suite.Run(t, &ModuleSuite{goBinaryName: goBinaryPath, env: []string{"GOPROXY=direct"}})
}