b37b6f3703
* Add add default values for isogen subcommand keys * Introduce container interface * Implement docker driver * Add stdin support to container interface * Implement volume mount for container Change-Id: Ide0ecd474b1ccce358bdc9c85ef0006f230490b5
22 lines
445 B
Go
22 lines
445 B
Go
package container
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNewContainer(t *testing.T) {
|
|
ctx := context.Background()
|
|
_, actualErr := NewContainer(&ctx, "test_drv", "")
|
|
expectedErr := ErrContainerDrvNotSupported{Driver: "test_drv"}
|
|
errS := fmt.Sprintf(
|
|
"Call NewContainer should have returned error %s, got %s",
|
|
expectedErr,
|
|
actualErr,
|
|
)
|
|
assert.Equal(t, actualErr, expectedErr, errS)
|
|
}
|