get.porter.sh/porter@v1.3.0/pkg/porter/schema_test.go (about)

     1  package porter
     2  
     3  import (
     4  	"context"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestPorter_PrintManifestSchema(t *testing.T) {
    11  	ctx := context.Background()
    12  	p := NewTestPorter(t)
    13  	defer p.Close()
    14  
    15  	err := p.PrintManifestSchema(ctx)
    16  	require.NoError(t, err)
    17  
    18  	p.CompareGoldenFile("testdata/schema.json", p.TestConfig.TestContext.GetOutput())
    19  }