mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
* Reverting PR 1650 https://github.com/gomods/athens/pull/1650 was a big change to the authentication/authorization code, which we have decided to pull out and potentially move into a separate process/project Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net> * removing commented, unused code Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net> * removing more commented, unused code Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net> * removing more unused code Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
33 lines
729 B
Go
33 lines
729 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"
|
|
)
|
|
|
|
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"}})
|
|
}
|