diff --git a/pkg/claim/catalog.go b/pkg/claim/catalog.go index e2f9285..8dcd102 100644 --- a/pkg/claim/catalog.go +++ b/pkg/claim/catalog.go @@ -16,6 +16,21 @@ import ( "strings" ) +/* +{ + "ForTelco": "Mandatory", + "FarEdge" : "Optional", + "ForNonTelco": "Optional", + "ForVZ": "Mandatory" + }*/ +// struct for classification +type CategoryClassification struct { + FarEdge string + Telco string + NonTelco string + Extended string +} + // TestCaseDescription describes a JUnit test case. type TestCaseDescription struct { // Identifier is the unique test identifier. @@ -41,13 +56,15 @@ type TestCaseDescription struct { // Whether or not automated tests exist for the test case. Not to be rendered. Qe bool `json:"qe" yaml:"qe"` + // classification for each test case + Categoryclassification CategoryClassification `json:"Categoryclassification" yaml:"Categoryclassification"` } func formTestTags(tags ...string) string { return strings.Join(tags, ",") } -func BuildTestCaseDescription(testID, suiteName, description, remediation, testType, exception, reference string, qe bool, tags ...string) (TestCaseDescription, Identifier) { +func BuildTestCaseDescription(testID, suiteName, description, remediation, testType, exception, reference string, qe bool, categoryclassification CategoryClassification, tags ...string) (TestCaseDescription, Identifier) { aID := Identifier{ Tags: formTestTags(tags...), Id: suiteName + "-" + testID, @@ -62,5 +79,6 @@ func BuildTestCaseDescription(testID, suiteName, description, remediation, testT aTCDescription.BestPracticeReference = reference aTCDescription.Tags = strings.Join(tags, ",") aTCDescription.Qe = qe + aTCDescription.Categoryclassification = categoryclassification return aTCDescription, aID }