コード例 #1
0
ファイル: docker_test.go プロジェクト: ejholmes/captain
func TestBuildImageError(t *testing.T) {
	app := App{Build: "test/noCaptainYML/Dockerfile.error", Image: "captain_test"}
	res := buildImage(app, "latest")
	assert.NotNil(t, res, "Docker build should return an error")
}
コード例 #2
0
ファイル: docker_test.go プロジェクト: lunohq/captain
func TestTagNonexistingImage(t *testing.T) {
	app := App{Image: "golang"}
	res := tagImage(app, "nonexist", "testing")
	assert.NotNil(t, res, "Docker tag should return an error")
	println()
}
コード例 #3
0
ファイル: config_test.go プロジェクト: ejholmes/captain
func TestNewConfigInferringValues(t *testing.T) {
	options.config = "test/noCaptainYML/captain.yml"
	c := NewConfig(options, false)
	assert.NotNil(t, c, "Should return infered configuration")
}
コード例 #4
0
ファイル: config_test.go プロジェクト: ejholmes/captain
func TestNewConfig(t *testing.T) {
	options.config = "test/Simple/captain.yml"
	c := NewConfig(options, false)
	assert.NotNil(t, c, "Should return captain.yml configuration")
}
コード例 #5
0
ファイル: config_test.go プロジェクト: ejholmes/captain
func TestReadConfig(t *testing.T) {
	options.config = "test/Simple/captain.yml"
	c := readConfig(configFile(options))
	assert.NotNil(t, c, "Should return configuration")
}
コード例 #6
0
ファイル: config_test.go プロジェクト: lunohq/captain
func TestNewConfig(t *testing.T) {
	c := NewConfig("", "test/Simple/captain.yml", false)
	assert.NotNil(t, c, "Should return captain.yml configuration")
}