Skip to content

Commit

Permalink
Add test for deployImage
Browse files Browse the repository at this point in the history
Added test for deployImage and used generated mock rather than
hand-crafted one

FAB-15666

Change-Id: I30d768fb082216027bc8257267cdc78d739c4c33
Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
mastersingh24 authored and sykesm committed Sep 24, 2019
1 parent bc2d289 commit 003c8c5
Show file tree
Hide file tree
Showing 3 changed files with 949 additions and 154 deletions.
2 changes: 2 additions & 0 deletions core/container/dockercontroller/dockercontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ type DockerVM struct {
BuildMetrics *BuildMetrics
}

//go:generate counterfeiter -o mock/dockerclient.go --fake-name DockerClient . dockerClient

// dockerClient represents a docker client
type dockerClient interface {
// CreateContainer creates a docker container, returns an error in case of failure
Expand Down
Loading

0 comments on commit 003c8c5

Please sign in to comment.