Skip to content

Commit

Permalink
Adjust replay tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailshilkov committed Nov 30, 2024
1 parent 7ca3905 commit f25e195
Show file tree
Hide file tree
Showing 16 changed files with 84 additions and 45 deletions.
1 change: 1 addition & 0 deletions dynamic/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ func TestConfigure(t *testing.T) {
}),
}, noParallel, expect(autogold.Expect(`{
"acceptResources": true,
"supportsAutonamingConfiguration": true,
"supportsPreview": true
}`)))(t)

Expand Down
6 changes: 4 additions & 2 deletions pkg/pf/tests/provider_check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ func TestCheck(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -238,7 +239,8 @@ func TestCheck(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down
15 changes: 10 additions & 5 deletions pkg/pf/tests/provider_configure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ func TestConfigureToCreate(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -527,7 +528,8 @@ func TestConfigureBooleans(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}
}`)
}
Expand Down Expand Up @@ -610,7 +612,8 @@ func TestJSONNestedConfigure(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}
}`)
}
Expand All @@ -635,7 +638,8 @@ func TestJSONNestedConfigureWithSecrets(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -687,7 +691,8 @@ func TestConfigureWithSecrets(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down
6 changes: 4 additions & 2 deletions pkg/pf/tests/provider_read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ func TestReadFromRefresh(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -433,7 +434,8 @@ func TestRefreshSupportsCustomID(t *testing.T) {
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-delete-preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-delete-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-empty-preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-empty-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-initial-preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-initial-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-replace-preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
3 changes: 2 additions & 1 deletion pkg/pf/tests/testdata/genrandom/random-replace-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
24 changes: 16 additions & 8 deletions pkg/pf/tests/testdata/updateprogram.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -376,7 +377,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -558,7 +560,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -844,7 +847,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -1099,7 +1103,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -1200,7 +1205,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -1536,7 +1542,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down Expand Up @@ -1839,7 +1846,8 @@
},
"response": {
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
},
"metadata": {
"kind": "resource",
Expand Down
21 changes: 14 additions & 7 deletions pkg/tfbridge/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,8 @@ func TestCheckCallback(t *testing.T) {
}
},
"response": {
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -1932,7 +1933,8 @@ func TestConfigure(t *testing.T) {
"acceptResources": true
},
"response": {
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}
}`)
})
Expand Down Expand Up @@ -3668,7 +3670,8 @@ func TestMaxItemsOneConflictsWith(t *testing.T) {
"variables": {}
},
"response": {
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -3701,7 +3704,8 @@ func TestMaxItemsOneConflictsWith(t *testing.T) {
"variables": {}
},
"response": {
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -3767,7 +3771,8 @@ func TestMinMaxItemsOneOptional(t *testing.T) {
"variables": {}
},
"response": {
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -3798,7 +3803,8 @@ func TestMinMaxItemsOneOptional(t *testing.T) {
"variables": {}
},
"response": {
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down Expand Up @@ -3872,7 +3878,8 @@ func TestComputedMaxItemsOneNotSpecified(t *testing.T) {
"variables": {}
},
"response": {
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}
},
{
Expand Down
9 changes: 6 additions & 3 deletions pkg/x/muxer/tests/muxer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ func TestConfigure(t *testing.T) {
"c": "3"
}
}`, `{
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}`, nil,
part(0, `{
"args": {
Expand All @@ -146,7 +147,8 @@ func TestConfigure(t *testing.T) {
}
}`, `{
"acceptSecrets": true,
"supportsPreview": true
"supportsPreview": true,
"supportsAutonamingConfiguration": true
}`, nil),
part(1, `{
"args": {
Expand All @@ -156,7 +158,8 @@ func TestConfigure(t *testing.T) {
}
}`, `{
"supportsPreview": true,
"acceptResources": true
"acceptResources": true,
"supportsAutonamingConfiguration": true
}`, nil),
))
}
Expand Down
Loading

0 comments on commit f25e195

Please sign in to comment.