cli/pkg/cmd/attestation/verification/tuf_test.go
Meredith Lancaster b5f6bd5cfa GitHubTUFOptions no longer needs to return error
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-15 06:45:36 -06:00

17 lines
327 B
Go

package verification
import (
"os"
"testing"
"github.com/stretchr/testify/require"
)
func TestGitHubTUFOptions(t *testing.T) {
os.Setenv("CODESPACES", "true")
opts := GitHubTUFOptions()
require.Equal(t, GitHubTUFMirror, opts.RepositoryBaseURL)
require.NotNil(t, opts.Root)
require.True(t, opts.DisableLocalCache)
}