Skip to content

Commit 1977ec2

Browse files
committed
Exclude _internal APIs from test generation
1 parent fa9f5d4 commit 1977ec2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

internal/build/cmd/generate/commands/gentests/model.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ func NewTestSuite(fpath string, payloads []TestPayload) TestSuite {
193193
}
194194
case "do":
195195
for _, vvv := range vv.(map[interface{}]interface{}) {
196+
key := utils.MapKeys(vvv)[0]
197+
if strings.HasPrefix(key, "_internal") {
198+
ts.Skip = true
199+
}
196200
steps = append(steps, NewAction(vvv))
197201
}
198202
case "is_true", "is_false", "match", "lt", "gt", "lte", "gte":

internal/build/cmd/generate/commands/gentests/skips.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ var skipFiles = []string{
5555
"search.aggregation/350_variable_width_histogram.yml",
5656
"cluster.desired_nodes/10_basic.yml", // incompatible $ stash replacement
5757
"api_key/12_grant.yml", // incompatible $ stash replacement, need bearer token integration
58-
"user_profile/10_basic.yml", // internal
59-
"health/10_basic.yml", // internal
60-
"health/20_component.yml", // internal
61-
"health/30_feature.yml", // internal
62-
"health/40_useractions.yml", // internal
63-
"health/40_diagnosis.yml", // internal
64-
"cluster.desired_nodes/20_dry_run.yml", // internal
6558
}
6659

6760
// TODO: Comments into descriptions for `Skip()`

0 commit comments

Comments
 (0)