-
Notifications
You must be signed in to change notification settings - Fork 35
Adding test AKS workflow to v0.32 #1052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| #!/bin/bash | ||
|
|
||
| # ------------------------------------------------------------ | ||
| # Copyright 2023 The Radius Authors. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # ------------------------------------------------------------ | ||
|
|
||
| set -e | ||
|
|
||
| echo "Cleaning up cluster" | ||
|
|
||
| # Delete all test resources in queuemessages. | ||
| if kubectl get crd queuemessages.ucp.dev >/dev/null 2>&1; then | ||
| echo "delete all resources in queuemessages.ucp.dev" | ||
| kubectl delete queuemessages.ucp.dev -n radius-system --all | ||
| fi | ||
|
|
||
| # Testing deletion of deployment.apps. | ||
|
|
||
| # Delete all test resources in resources without proxy resource. | ||
| if kubectl get crd resources.ucp.dev >/dev/null 2>&1; then | ||
| echo "delete all resources in resources.ucp.dev" | ||
| resources=$(kubectl get resources.ucp.dev -n radius-system --no-headers -o custom-columns=":metadata.name") | ||
| for r in $resources; do | ||
| echo "delete resource: $r" | ||
| kubectl delete resources.ucp.dev $r -n radius-system --ignore-not-found=true | ||
| done | ||
| fi | ||
|
|
||
| # Delete all test namespaces. | ||
| # Any namespace that is not in the list below will be deleted. | ||
| echo "Delete all test namespaces" | ||
| namespaces=$(kubectl get namespace | | ||
| grep -vE '(radius-system|kube-system|kube-public|kube-node-lease|gatekeeper-system|default|dapr-system|cert-manager)' | | ||
| awk '{print $1}') | ||
| for ns in $namespaces; do | ||
| if [ -z "$ns" ]; then | ||
| break | ||
| fi | ||
| echo "deleting namespaces: $ns" | ||
| kubectl delete namespace $ns --ignore-not-found=true | ||
| done |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { defineConfig, devices } from '@playwright/test'; | ||
| import { defineConfig, devices } from "@playwright/test"; | ||
|
|
||
| /** | ||
| * Read environment variables from file. | ||
|
|
@@ -10,7 +10,7 @@ import { defineConfig, devices } from '@playwright/test'; | |
| * See https://playwright.dev/docs/test-configuration. | ||
| */ | ||
| export default defineConfig({ | ||
| testDir: './tests', | ||
| testDir: "./tests", | ||
| /* Run tests in files in parallel */ | ||
| fullyParallel: true, | ||
| /* Fail the build on CI if you accidentally left test.only in the source code. */ | ||
|
|
@@ -20,31 +20,34 @@ export default defineConfig({ | |
| /* Opt out of parallel tests on CI. */ | ||
| workers: process.env.CI ? 1 : undefined, | ||
| /* Reporter to use. See https://playwright.dev/docs/test-reporters */ | ||
| reporter: 'html', | ||
| reporter: "html", | ||
| /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ | ||
| use: { | ||
| /* Base URL to use in actions like `await page.goto('/')`. */ | ||
| // baseURL: 'http://127.0.0.1:3000', | ||
|
|
||
| /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ | ||
| trace: 'on-first-retry', | ||
| trace: "on-first-retry", | ||
| }, | ||
|
|
||
| /* Configure projects for major browsers */ | ||
| projects: [ | ||
| { | ||
| name: 'chromium', | ||
| use: { ...devices['Desktop Chrome'] }, | ||
| name: "chromium", | ||
| use: { ...devices["Desktop Chrome"] }, | ||
| }, | ||
|
|
||
| { | ||
| name: 'firefox', | ||
| use: { ...devices['Desktop Firefox'] }, | ||
| name: "firefox", | ||
| use: { ...devices["Desktop Firefox"] }, | ||
| }, | ||
|
|
||
| { | ||
| name: 'webkit', | ||
| use: { ...devices['Desktop Safari'] }, | ||
| name: "webkit", | ||
| use: { ...devices["Desktop Safari"] }, | ||
| }, | ||
| ], | ||
| timeout: 1 * 60 * 1000, | ||
| expect: { | ||
| timeout: 30 * 1000, | ||
| }, | ||
|
Comment on lines
+49
to
+52
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would like @youngbupark to take a look here
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll review this for Young Bu since he's out right now. |
||
| }); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally this should match the version of node. We're using 16.x in the pipelines.