diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 5c610e98a..2608f211e 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -18,6 +18,9 @@ jobs: - TestInstallWithDisabledAddons - TestHostPreflight steps: + - name: Install binutils + run: | + apt install -y binutils - name: Move Docker aside run: | sudo systemctl stop docker diff --git a/Makefile b/Makefile index febfb4903..164ff3c9d 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,9 @@ pkg/goods/bins/embedded-cluster/kubectl-preflight: tar -xzf output/tmp/preflight/preflight.tar.gz -C output/tmp/preflight mv output/tmp/preflight/preflight pkg/goods/bins/embedded-cluster/kubectl-preflight +license.yaml: + cp e2e/test-license.yaml license.yaml + .PHONY: embed-license embed-license: embedded-cluster-linux-amd64 license.yaml mkdir -p output/tmp @@ -133,14 +136,14 @@ vet: static-linux-amd64 static go vet ./... .PHONY: e2e-tests -e2e-tests: embedded-cluster-linux-amd64 +e2e-tests: embed-license mkdir -p output/tmp rm -rf output/tmp/id_rsa* ssh-keygen -t rsa -N "" -C "Integration Test Key" -f output/tmp/id_rsa go test -timeout 45m -parallel 1 -failfast -v ./e2e .PHONY: e2e-test -e2e-test: embedded-cluster-linux-amd64 +e2e-test: embed-license mkdir -p output/tmp rm -rf output/tmp/id_rsa* ssh-keygen -t rsa -N "" -C "Integration Test Key" -f output/tmp/id_rsa diff --git a/e2e/test-license.yaml b/e2e/test-license.yaml new file mode 100644 index 000000000..20f93c6d3 --- /dev/null +++ b/e2e/test-license.yaml @@ -0,0 +1,27 @@ +apiVersion: kots.io/v1beta1 +kind: License +metadata: + name: embeddedclusterintegrationtests +spec: + appSlug: embedded-cluster-smoke-test-app + channelID: 2Xt5IoImUY2W8eo5DWZEdtA5Yr1 + channelName: Stable + customerName: Embedded Cluster Integration Tests + endpoint: https://replicated.app + entitlements: + expires_at: + description: License Expiration + signature: {} + title: Expiration + value: "" + valueType: String + isGitOpsSupported: true + isHelmVmDownloadEnabled: true + isKotsInstallEnabled: true + isNewKotsUiEnabled: true + isSemverRequired: true + isSnapshotSupported: true + licenseID: 2Xt5q15MDpLvaO15UZ5XhKxBqB1 + licenseSequence: 1 + licenseType: prod + signature: eyJsaWNlbnNlRGF0YSI6ImV5SmhjR2xXWlhKemFXOXVJam9pYTI5MGN5NXBieTkyTVdKbGRHRXhJaXdpYTJsdVpDSTZJa3hwWTJWdWMyVWlMQ0p0WlhSaFpHRjBZU0k2ZXlKdVlXMWxJam9pWlcxaVpXUmtaV1JqYkhWemRHVnlhVzUwWldkeVlYUnBiMjUwWlhOMGN5SjlMQ0p6Y0dWaklqcDdJbXhwWTJWdWMyVkpSQ0k2SWpKWWREVnhNVFZOUkhCTWRtRlBNVFZWV2pWWWFFdDRRbkZDTVNJc0lteHBZMlZ1YzJWVWVYQmxJam9pY0hKdlpDSXNJbU4xYzNSdmJXVnlUbUZ0WlNJNklrVnRZbVZrWkdWa0lFTnNkWE4wWlhJZ1NXNTBaV2R5WVhScGIyNGdWR1Z6ZEhNaUxDSmhjSEJUYkhWbklqb2laVzFpWldSa1pXUXRZMngxYzNSbGNpMXpiVzlyWlMxMFpYTjBMV0Z3Y0NJc0ltTm9ZVzV1Wld4SlJDSTZJakpZZERWSmIwbHRWVmt5VnpobGJ6VkVWMXBGWkhSQk5WbHlNU0lzSW1Ob1lXNXVaV3hPWVcxbElqb2lVM1JoWW14bElpd2liR2xqWlc1elpWTmxjWFZsYm1ObElqb3hMQ0psYm1Sd2IybHVkQ0k2SW1oMGRIQnpPaTh2Y21Wd2JHbGpZWFJsWkM1aGNIQWlMQ0psYm5ScGRHeGxiV1Z1ZEhNaU9uc2laWGh3YVhKbGMxOWhkQ0k2ZXlKMGFYUnNaU0k2SWtWNGNHbHlZWFJwYjI0aUxDSmtaWE5qY21sd2RHbHZiaUk2SWt4cFkyVnVjMlVnUlhod2FYSmhkR2x2YmlJc0luWmhiSFZsSWpvaUlpd2lkbUZzZFdWVWVYQmxJam9pVTNSeWFXNW5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