From 71ef575110efc9595ce0b32a36665b7110c86f0a Mon Sep 17 00:00:00 2001 From: haim Date: Tue, 14 Jan 2025 11:25:53 +0200 Subject: [PATCH] get example1 --- cmd/main_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/main_test.go b/cmd/main_test.go index db9024e..3bfec67 100644 --- a/cmd/main_test.go +++ b/cmd/main_test.go @@ -38,46 +38,46 @@ func TestMain(t *testing.T) { }, { name: "anonymize-only", - args: "--resource-input-file examples/input/resources.json --resource-dump-file examples/output/resources_anon.json" + + args: "--resource-input-file examples/input/resources.json --resource-dump-file examples/output/resources_anon_only.json" + " --skip-analysis --anonymize", }, /*{ name: "anonymize-analyze", - args: "--resource-input-file examples/input/resources.json --resource-dump-file examples/output/resources.json" + + args: "--resource-input-file examples/input/resources.json --resource-dump-file examples/output/resources_anon.json" + " --anonymize --filename examples/output/analysis.svg -o svg", },*/ { name: "analyze-only", - args: "--resource-input-file examples/input/resources.json --filename examples/output/analysis.txt", + args: "--resource-input-file ../pkg/collector/data/json/Example1.json --filename examples/output/analysis-only.txt", }, { name: "analyze-topology-dot", - args: "--resource-input-file examples/input/resources.json --topology-dump-file" + + args: "--resource-input-file ../pkg/collector/data/json/Example1.json --topology-dump-file" + " examples/output/topology.dot --filename examples/output/analysis.dot -o dot", }, { name: "analyze-topology-json", - args: "--resource-input-file examples/input/resources.json --topology-dump-file" + + args: "--resource-input-file ../pkg/collector/data/json/Example1.json --topology-dump-file" + " examples/output/topology.json --filename examples/output/analysis.json -o json", }, { name: "analyze-topology-text", - args: "--resource-input-file examples/input/resources.json --topology-dump-file" + + args: "--resource-input-file ../pkg/collector/data/json/Example1.json --topology-dump-file" + " examples/output/topology.txt --filename examples/output/analysis.txt -o txt", }, /*{ name: "analyze-topology-svg", - args: "--resource-input-file examples/input/resources.json --topology-dump-file" + + args: "--resource-input-file ../pkg/collector/data/json/Example1.json --topology-dump-file" + " examples/output/topology.svg --filename examples/output/analysis.svg -o svg" + ` --output-filter="New Virtual Machine",New-VM-1`, },*/ { name: "collect-and-analyze", - args: "--resource-dump-file examples/output/resources2.json --filename examples/output/analysis2.txt", + args: "--resource-dump-file examples/output/collected-resources.json --filename examples/output/collected-analysis.txt", }, { - name: "collect-and-synthesize", - args: "--synthesize-dump-dir examples/output/synthesis", + name: "synthesize-only", + args: "--resource-input-file ../pkg/collector/data/json/Example1.json --synthesize-dump-dir examples/output/synthesis", }, } for _, tt := range tests {