mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
cli: namespace tests should be run on oss
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
//go:build ent
|
||||
// +build ent
|
||||
|
||||
package agent
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
//go:build ent
|
||||
// +build ent
|
||||
|
||||
package command
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
//go:build ent
|
||||
// +build ent
|
||||
|
||||
package command
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
//go:build ent
|
||||
// +build ent
|
||||
|
||||
package command
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
//go:build ent
|
||||
// +build ent
|
||||
|
||||
package command
|
||||
|
||||
import (
|
||||
@@ -10,10 +7,7 @@ import (
|
||||
"github.com/mitchellh/cli"
|
||||
)
|
||||
|
||||
func TestNamespaceListCommand_Implements(t *testing.T) {
|
||||
t.Parallel()
|
||||
var _ cli.Command = &NamespaceListCommand{}
|
||||
}
|
||||
var _ cli.Command = (*NamespaceListCommand)(nil)
|
||||
|
||||
func TestNamespaceListCommand_Fails(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
10
command/namespace_status_oss_test.go
Normal file
10
command/namespace_status_oss_test.go
Normal file
@@ -0,0 +1,10 @@
|
||||
//go:build !ent
|
||||
// +build !ent
|
||||
|
||||
package command
|
||||
|
||||
import "github.com/hashicorp/nomad/api"
|
||||
|
||||
func testQuotaSpec() *api.QuotaSpec {
|
||||
panic("not implemented - enterprise only")
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
//go:build ent
|
||||
// +build ent
|
||||
|
||||
package command
|
||||
|
||||
import (
|
||||
@@ -77,6 +74,10 @@ func TestNamespaceStatusCommand_Good_Quota(t *testing.T) {
|
||||
srv, client, url := testServer(t, true, nil)
|
||||
defer srv.Shutdown()
|
||||
|
||||
if !srv.Enterprise {
|
||||
t.Skip("Skipping enterprise-only quota test")
|
||||
}
|
||||
|
||||
ui := cli.NewMockUi()
|
||||
cmd := &NamespaceStatusCommand{Meta: Meta{Ui: ui}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user