-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Like the existing e2e version skew tests, this PR adds version skew integration tests. It runs the latest release integrations tests on a matrix of latest release/master and control plane/daprd. There is also a patching mechanism to account for things like accepted breaking changes and error string matching. Like master, the current placement/actor tests are currently failing. Invoked via `/test-version-skew`. Signed-off-by: joshvanl <me@joshvanl.dev>
- Loading branch information
Showing
4 changed files
with
219 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
...ersion-skew-test-patches/integration/release-1.12/0001-go-verison-tls-error-message.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/tests/integration/suite/daprd/serviceinvocation/http/httpendpoints.go b/tests/integration/suite/daprd/serviceinvocation/http/httpendpoints.go | ||
index 1bb56944f..18bb9c63a 100644 | ||
--- a/tests/integration/suite/daprd/serviceinvocation/http/httpendpoints.go | ||
+++ b/tests/integration/suite/daprd/serviceinvocation/http/httpendpoints.go | ||
@@ -209,7 +209,7 @@ func (h *httpendpoints) Run(t *testing.T, ctx context.Context) { | ||
t.Run("bad PKI", func(t *testing.T) { | ||
invokeTests(t, http.StatusInternalServerError, func(t *testing.T, body string) { | ||
assert.Contains(t, body, `"errorCode":"ERR_DIRECT_INVOKE"`) | ||
- assert.Contains(t, body, "tls: bad certificate") | ||
+ assert.Contains(t, body, "remote error: tls: unknown certificate authority") | ||
}, h.daprd2) | ||
}) | ||
} |
28 changes: 28 additions & 0 deletions
28
...ion-skew-test-patches/integration/release-1.12/0002-match-metadata-verison-for-1.12.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/tests/integration/suite/daprd/metadata/metadata.go b/tests/integration/suite/daprd/metadata/metadata.go | ||
index 5e5a86452..0cccd8bd8 100644 | ||
--- a/tests/integration/suite/daprd/metadata/metadata.go | ||
+++ b/tests/integration/suite/daprd/metadata/metadata.go | ||
@@ -19,6 +19,7 @@ import ( | ||
"fmt" | ||
"io" | ||
"net/http" | ||
+ "strings" | ||
"testing" | ||
"time" | ||
|
||
@@ -82,11 +83,13 @@ func validateResponse(t *testing.T, appID string, appPort int, body io.Reader) { | ||
require.NoError(t, err) | ||
|
||
require.Equal(t, appID, bodyMap["id"]) | ||
- require.Equal(t, "edge", bodyMap["runtimeVersion"]) | ||
+ require.True(t, "edge" == bodyMap["runtimeVersion"].(string) || | ||
+ strings.HasPrefix(bodyMap["runtimeVersion"].(string), "1.12.")) | ||
|
||
extended, ok := bodyMap["extended"].(map[string]interface{}) | ||
require.True(t, ok) | ||
- require.Equal(t, "edge", extended["daprRuntimeVersion"]) | ||
+ require.True(t, "edge" == extended["daprRuntimeVersion"].(string) || | ||
+ strings.HasPrefix(extended["daprRuntimeVersion"].(string), "1.12.")) | ||
|
||
appConnectionProperties, ok := bodyMap["appConnectionProperties"].(map[string]interface{}) | ||
require.True(t, ok) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters