-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added possibility to print system boundaries
- Loading branch information
Showing
8 changed files
with
169 additions
and
55 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
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,44 @@ | ||
Feature: Boundaries | ||
As a DevOps, | ||
I want to see the boundaries of a system | ||
so that I know how to interact with it. | ||
|
||
Scenario: Exposed ports | ||
Given a file named "compose.yml" with: | ||
""" | ||
version: "2" | ||
services: | ||
service: | ||
ports: | ||
- 8080 | ||
""" | ||
When I run `bin/compose_plantuml --boundaries compose.yml` | ||
Then it should pass with exactly: | ||
""" | ||
skinparam componentStyle uml2 | ||
rectangle system { | ||
[service] | ||
} | ||
[service] --> 8080 | ||
""" | ||
|
||
Scenario: Alias Ports | ||
Given a file named "compose.yml" with: | ||
""" | ||
version: "2" | ||
services: | ||
service: | ||
ports: | ||
- 8080:80 | ||
""" | ||
When I run `bin/compose_plantuml --boundaries compose.yml` | ||
Then it should pass with exactly: | ||
""" | ||
skinparam componentStyle uml2 | ||
rectangle system { | ||
[service] | ||
} | ||
[service] --> 8080 : 80 | ||
""" |
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,28 @@ | ||
Feature: Validation | ||
As a DevOps, | ||
I want to have error messages for invalid compose input | ||
so that I'm sure it works if it does not return an error. | ||
|
||
Scenario: Requires Version | ||
Given a file named "compose.yml" with: | ||
""" | ||
foo: | ||
image: bar | ||
""" | ||
When I run `bin/compose_plantuml --link-graph compose.yml` | ||
Then it should fail with: | ||
""" | ||
docker-compose version exception: version not present | ||
""" | ||
|
||
Scenario: Requires Version 2 | ||
Given a file named "compose.yml" with: | ||
""" | ||
version: 1 | ||
""" | ||
When I run `bin/compose_plantuml --link-graph compose.yml` | ||
Then it should fail with exactly: | ||
""" | ||
docker-compose version exception: need version 2, but got 1 | ||
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.