github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/acceptance/compose_test.go (about)

     1  // Copyright 2019 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  package acceptance
    12  
    13  import (
    14  	"os/exec"
    15  	"path/filepath"
    16  	"testing"
    17  )
    18  
    19  func TestComposeGSS(t *testing.T) {
    20  	out, err := exec.Command(
    21  		"docker-compose",
    22  		"--no-ansi",
    23  		"-f", filepath.Join("compose", "gss", "docker-compose.yml"),
    24  		"up",
    25  		"--build",
    26  		"--exit-code-from", "psql",
    27  	).CombinedOutput()
    28  	if err != nil {
    29  		t.Log(string(out))
    30  		t.Fatal(err)
    31  	}
    32  }
    33  
    34  func TestComposeFlyway(t *testing.T) {
    35  	out, err := exec.Command(
    36  		"docker-compose",
    37  		"-f", filepath.Join("compose", "flyway", "docker-compose.yml"),
    38  		"up",
    39  		"--force-recreate",
    40  		"--exit-code-from", "flyway",
    41  	).CombinedOutput()
    42  	if err != nil {
    43  		t.Log(string(out))
    44  		t.Fatal(err)
    45  	}
    46  }