Skip to content

Commit

Permalink
Merge pull request #9 from theseion/add-isolated-and-tags
Browse files Browse the repository at this point in the history
feat: add fields "isolated" and "tags"
  • Loading branch information
theseion authored May 10, 2024
2 parents 48cda85 + e716635 commit c45ce9d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ type FTWTestMeta struct {
// - name: Version
// value: "\"v1\""
Version string `yaml:"version,omitempty"`

// description: |
// Tags is list of strings that can be used for arbitrary grouping of tests.
// examples:
// - name: Tags
// value: ["PHP", "bug-123"]
Tags []string `yaml:"tags,omitempty"`
}

// Test is an individual test case. One test can have multiple stages.
Expand Down Expand Up @@ -111,6 +118,13 @@ type Test struct {
// examples:
// - value: ExampleStages
Stages []Stage `yaml:"stages"`

// description: |
// Tags is list of strings that can be used for arbitrary grouping of tests.
// examples:
// - name: Tags
// value: ["PHP", "bug-123"]
Tags []string `yaml:"tags,omitempty"`
}

// IdString prints the human readable ID of a test in the format
Expand Down Expand Up @@ -279,6 +293,16 @@ type Input struct {
//
// Deprecated: use `encoded_request`
RAWRequest string `yaml:"raw_request,omitempty" koanf:"raw_request,omitempty"`

// description: |
// Isolated specifies that the test is expected to trigger a single rule only.
// If the rule triggers any other rule than the (single) one specified in
// expect_ids, the test fill be considered a failure.
// Default: false
// examples:
// - name: Isolated
// value: true
Isolated bool `yaml:"isolated,omitempty" koanf:"isolated, omitempty"`
}

// Output is the response expected from the test
Expand Down

0 comments on commit c45ce9d

Please sign in to comment.