github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/test/integration/pjfile_int_test.go (about)

     1  package integration
     2  
     3  import (
     4  	"strings"
     5  	"testing"
     6  
     7  	"github.com/ActiveState/cli/internal/testhelpers/suite"
     8  
     9  	"github.com/ActiveState/cli/internal/testhelpers/e2e"
    10  	"github.com/ActiveState/cli/internal/testhelpers/tagsuite"
    11  )
    12  
    13  type PjFileIntegrationTestSuite struct {
    14  	tagsuite.Suite
    15  }
    16  
    17  func (suite *PjFileIntegrationTestSuite) TestDeprecation() {
    18  	suite.OnlyRunForTags(tagsuite.Projects)
    19  	ts := e2e.New(suite.T(), false)
    20  	defer ts.Close()
    21  
    22  	ts.PrepareActiveStateYAML(strings.TrimSpace(`
    23  project: https://platform.activestate.com/ActiveState-CLI/test
    24  platforms:
    25    - name: Linux64Label
    26  languages:
    27    - name: Go
    28      constraints:
    29          platform: Windows10Label,Linux64Label
    30  `))
    31  
    32  	cp := ts.SpawnWithOpts(
    33  		e2e.OptArgs("scripts"),
    34  	)
    35  	cp.ExpectExitCode(1)
    36  	ts.IgnoreLogErrors()
    37  }
    38  
    39  func TestPjFileIntegrationTestSuite(t *testing.T) {
    40  	suite.Run(t, new(PjFileIntegrationTestSuite))
    41  }