This repository has been archived by the owner on Dec 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding services parameters in methods. (#6)
* Modify Makefile to allow branch with '/'. * Add possibility to start/stop part of services described in docker-compose file, Add pause/unpause methods to start without creating and stop without deleting services. * Fix comments * Fix case in comments * Modify pause/unpause method names to be more homogenous with Docker command names.
- Loading branch information
Showing
6 changed files
with
68 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ dist | |
.gopath | ||
*.test | ||
vendor | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
hello: | ||
image: busybox | ||
command: top | ||
other: | ||
image: busybox | ||
command: top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package composeit | ||
|
||
import ( | ||
"testing" | ||
|
||
compose "github.com/libkermit/compose/testing" | ||
) | ||
|
||
func TestServicesProject(t *testing.T) { | ||
project := compose.CreateProject(t, "services", "../assets/services.yml") | ||
project.Start(t, "hello") | ||
|
||
container := project.Container(t, "hello") | ||
if container.Name != "/services_hello_1" { | ||
t.Fatalf("expected name '/services_hello_1', got %s", container.Name) | ||
} | ||
|
||
//"No container found for '%s' service | ||
project.NoContainer(t, "other") | ||
|
||
project.Stop(t, "hello") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters