Skip to content

Commit

Permalink
generating dot new files (make test-update)
Browse files Browse the repository at this point in the history
  • Loading branch information
shireenf-ibm committed Nov 27, 2023
1 parent 8235e39 commit 0277197
Show file tree
Hide file tree
Showing 22 changed files with 1,051 additions and 871 deletions.
10 changes: 6 additions & 4 deletions pkg/cli/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,12 @@ func TestCommands(t *testing.T) {
"dot",
},
expectedOutput: "digraph {\n" +
"\t\"default/checkoutservice[Deployment]\" [label=\"default/checkoutservice[Deployment]\" color=\"blue\" fontcolor=\"blue\"]\n" +
"\t\"default/emailservice[Deployment]\" [label=\"default/emailservice[Deployment]\" color=\"blue\" fontcolor=\"blue\"]\n" +
"\t\"default/checkoutservice[Deployment]\" -> \"default/emailservice[Deployment]\"" +
" [label=\"TCP 8080\" color=\"gold2\" fontcolor=\"darkgreen\"]\n" +
"\tsubgraph cluster_default {\n" +
"\t\t\"checkoutservice\" [label=\"checkoutservice\" color=\"blue\" fontcolor=\"blue\"]\n" +
"\t\t\"emailservice\" [label=\"emailservice\" color=\"blue\" fontcolor=\"blue\"]\n" +
"\t\tlabel=\"default\"\n" +
"\t}\n" +
"\t\"checkoutservice\" -> \"emailservice\" [label=\"TCP 8080\" color=\"gold2\" fontcolor=\"darkgreen\"]\n" +
"}",
exact: true,
isErr: false,
Expand Down
64 changes: 38 additions & 26 deletions tests/acs-security-demos/connlist_output.dot
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
digraph {
"backend/catalog[Deployment]" [label="backend/catalog[Deployment]" color="blue" fontcolor="blue"]
"backend/checkout[Deployment]" [label="backend/checkout[Deployment]" color="blue" fontcolor="blue"]
"backend/notification[Deployment]" [label="backend/notification[Deployment]" color="blue" fontcolor="blue"]
"backend/recommendation[Deployment]" [label="backend/recommendation[Deployment]" color="blue" fontcolor="blue"]
"backend/reports[Deployment]" [label="backend/reports[Deployment]" color="blue" fontcolor="blue"]
"backend/shipping[Deployment]" [label="backend/shipping[Deployment]" color="blue" fontcolor="blue"]
"frontend/asset-cache[Deployment]" [label="frontend/asset-cache[Deployment]" color="blue" fontcolor="blue"]
"frontend/webapp[Deployment]" [label="frontend/webapp[Deployment]" color="blue" fontcolor="blue"]
"payments/gateway[Deployment]" [label="payments/gateway[Deployment]" color="blue" fontcolor="blue"]
"payments/mastercard-processor[Deployment]" [label="payments/mastercard-processor[Deployment]" color="blue" fontcolor="blue"]
"payments/visa-processor[Deployment]" [label="payments/visa-processor[Deployment]" color="blue" fontcolor="blue"]
"{ingress-controller}" [label="{ingress-controller}" color="blue" fontcolor="blue"]
"backend/checkout[Deployment]" -> "backend/notification[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"backend/checkout[Deployment]" -> "backend/recommendation[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"backend/checkout[Deployment]" -> "payments/gateway[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"backend/recommendation[Deployment]" -> "backend/catalog[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"backend/reports[Deployment]" -> "backend/catalog[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"backend/reports[Deployment]" -> "backend/recommendation[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"frontend/webapp[Deployment]" -> "backend/checkout[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"frontend/webapp[Deployment]" -> "backend/recommendation[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"frontend/webapp[Deployment]" -> "backend/reports[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"frontend/webapp[Deployment]" -> "backend/shipping[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"payments/gateway[Deployment]" -> "payments/mastercard-processor[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"payments/gateway[Deployment]" -> "payments/visa-processor[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"{ingress-controller}" -> "frontend/asset-cache[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"{ingress-controller}" -> "frontend/webapp[Deployment]" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
subgraph cluster_backend {
"catalog" [label="catalog" color="blue" fontcolor="blue"]
"checkout" [label="checkout" color="blue" fontcolor="blue"]
"notification" [label="notification" color="blue" fontcolor="blue"]
"recommendation" [label="recommendation" color="blue" fontcolor="blue"]
"reports" [label="reports" color="blue" fontcolor="blue"]
"shipping" [label="shipping" color="blue" fontcolor="blue"]
label="backend"
}
subgraph cluster_frontend {
"asset-cache" [label="asset-cache" color="blue" fontcolor="blue"]
"webapp" [label="webapp" color="blue" fontcolor="blue"]
label="frontend"
}
subgraph cluster_ingress_controller_ns {
"{ingress-controller}" [label="{ingress-controller}" color="blue" fontcolor="blue"]
label="ingress-controller-ns"
}
subgraph cluster_payments {
"gateway" [label="gateway" color="blue" fontcolor="blue"]
"mastercard-processor" [label="mastercard-processor" color="blue" fontcolor="blue"]
"visa-processor" [label="visa-processor" color="blue" fontcolor="blue"]
label="payments"
}
"checkout" -> "gateway" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"checkout" -> "notification" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"checkout" -> "recommendation" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"gateway" -> "mastercard-processor" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"gateway" -> "visa-processor" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"recommendation" -> "catalog" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"reports" -> "catalog" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"reports" -> "recommendation" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"webapp" -> "checkout" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"webapp" -> "recommendation" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"webapp" -> "reports" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"webapp" -> "shipping" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"{ingress-controller}" -> "asset-cache" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
"{ingress-controller}" -> "webapp" [label="TCP 8080" color="gold2" fontcolor="darkgreen"]
}
Binary file modified tests/acs-security-demos/connlist_output.dot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0277197

Please sign in to comment.