Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add restricted module check #420

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions e2e/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ import (
)

func TestConformance(t *testing.T) {
if testing.Short() {
t.Skip()
}
t.Parallel()

ctx := context.Background()
Expand Down
25 changes: 25 additions & 0 deletions e2e/module_check_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package e2e_test

import (
"context"
"fmt"
"testing"

"github.com/noble-assets/noble/e2e"
"github.com/stretchr/testify/require"
)

func TestRestrictedModules(t *testing.T) {
t.Parallel()

ctx := context.Background()

nw := e2e.NobleSpinUp(t, ctx, false)
noble := nw.Chain.GetNode()
boojamya marked this conversation as resolved.
Show resolved Hide resolved

restrictedModules := []string{"circuit", "gov", "group"}

for _, module := range restrictedModules {
require.False(t, noble.HasCommand(ctx, "query", module), fmt.Sprintf("%s is a restricted module", module))
}
}