Skip to content

Commit 4613d07

Browse files
committed
CR
1 parent 5e8eb3a commit 4613d07

File tree

2 files changed

+28
-30
lines changed

2 files changed

+28
-30
lines changed

pkg/commonvpc/common_test_functionality.go

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,33 @@ const (
2929
)
3030

3131
const (
32-
examplesDir = "examples/"
33-
inputDir = "input/"
34-
outDir = "out/"
35-
)
32+
examplesDir = "examples/"
33+
inputDir = "input/"
34+
outDir = "out/"
35+
errString = "err: %s"
36+
carriageReturn = "\r"
3637

37-
const errString = "err: %s"
38-
const carriageReturn = "\r"
38+
ActualOutFilePrefix = "out_"
39+
InputFilePrefix = "input_"
40+
suffixOutFileWithGrouping = "_with_grouping"
41+
suffixOutFileWithoutLbAbstraction = "_no_lbAbstract"
42+
suffixOutFileDebugSubnet = "_analysisPerSubnetSeparately"
43+
suffixOutFileSubnetsLevel = "subnetsBased_withPGW"
44+
suffixOutFileSubnetsLevelNoPGW = "subnetsBased_withoutPGW"
45+
suffixOutFileDiffSubnets = "subnetsDiff"
46+
suffixOutFileDiffEndpoints = "endpointsDiff"
47+
suffixOutFileExplain = "explain"
48+
suffixOutFileDetail = "_detail"
49+
txtOutSuffix = ".txt"
50+
mdOutSuffix = ".md"
51+
JSONOutSuffix = ".json"
52+
drawioOutSuffix = ".drawio"
53+
archDrawioOutSuffix = "_arch.drawio"
54+
svgOutSuffix = ".svg"
55+
archSvgOutSuffix = "_arch.svg"
56+
htmlOutSuffix = ".html"
57+
archHTMLOutSuffix = "_arch.html"
58+
)
3959

4060
/*
4161
tests for the entire flow:
@@ -61,30 +81,6 @@ type VpcTestCommon struct {
6181
VpcList []string
6282
}
6383

64-
const (
65-
ActualOutFilePrefix = "out_"
66-
InputFilePrefix = "input_"
67-
suffixOutFileWithGrouping = "_with_grouping"
68-
suffixOutFileWithoutLbAbstraction = "_no_lbAbstract"
69-
suffixOutFileDebugSubnet = "_analysisPerSubnetSeparately"
70-
suffixOutFileSubnetsLevel = "subnetsBased_withPGW"
71-
suffixOutFileSubnetsLevelNoPGW = "subnetsBased_withoutPGW"
72-
suffixOutFileDiffSubnets = "subnetsDiff"
73-
suffixOutFileDiffEndpoints = "endpointsDiff"
74-
suffixOutFileExplain = "explain"
75-
suffixOutFileDetail = "_detail"
76-
txtOutSuffix = ".txt"
77-
mdOutSuffix = ".md"
78-
JSONOutSuffix = ".json"
79-
secJSONOutSuffix = "_2nd.json"
80-
drawioOutSuffix = ".drawio"
81-
archDrawioOutSuffix = "_arch.drawio"
82-
svgOutSuffix = ".svg"
83-
archSvgOutSuffix = "_arch.svg"
84-
htmlOutSuffix = ".html"
85-
archHTMLOutSuffix = "_arch.html"
86-
)
87-
8884
// getTestFileName returns expected file name and actual file name, for the relevant use case
8985
func getTestFileName(testName string,
9086
uc vpcmodel.OutputUseCase,

pkg/commonvpc/semantic_diff_test_functionality.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
"github.com/stretchr/testify/require"
1515
)
1616

17+
const secJSONOutSuffix = "_2nd.json"
18+
1719
type VpcDiffTest struct {
1820
VpcTestCommon
1921
InputConfig2nd string // 2nd input file for diff

0 commit comments

Comments
 (0)