Skip to content

Commit

Permalink
removing test type (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid authored May 25, 2023
1 parent dfc7cdc commit bd3160c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/claim/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ type TestCaseDescription struct {
// Remediation is an optional suggested remediation for passing the test.
Remediation string `json:"remediation,omitempty" yaml:"remediation,omitempty"`

// Type is the type of the test (i.e., normative).
Type string `json:"type" yaml:"type"`

// BestPracticeReference is a helpful best practice references of the test case.
BestPracticeReference string `json:"BestPracticeReference" yaml:"BestPracticeReference"`

Expand All @@ -41,6 +38,7 @@ 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 map[string]string `json:"categoryclassification" yaml:"categoryclassification"`
/* an example to how it CategoryClassification would be
Expand All @@ -57,15 +55,14 @@ func formTestTags(tags ...string) string {
}

//nolint:lll
func BuildTestCaseDescription(testID, suiteName, description, remediation, testType, exception, reference string, qe bool, categoryclassification map[string]string, tags ...string) (TestCaseDescription, Identifier) {
func BuildTestCaseDescription(testID, suiteName, description, remediation, exception, reference string, qe bool, categoryclassification map[string]string, tags ...string) (TestCaseDescription, Identifier) {
aID := Identifier{
Tags: formTestTags(tags...),
Id: suiteName + "-" + testID,
Suite: suiteName,
}
aTCDescription := TestCaseDescription{}
aTCDescription.Identifier = aID
aTCDescription.Type = testType
aTCDescription.Description = description
aTCDescription.Remediation = remediation
aTCDescription.ExceptionProcess = exception
Expand Down

0 comments on commit bd3160c

Please sign in to comment.