-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proof that cloudtest can work with two kind clusters on githubactions
Signed-off-by: Denis Tingajkin <denis.tingajkin@xored.com>
- Loading branch information
1 parent
c1b9b66
commit 1679496
Showing
9 changed files
with
129 additions
and
80 deletions.
There are no files selected for viewing
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,60 @@ | ||
--- | ||
version: 1.0 | ||
root: "./.results" | ||
timeout: 600 | ||
shuffle-enabled: true | ||
statistics: | ||
enabled: true | ||
interval: 30 | ||
|
||
providers: | ||
- name: "kind-1" | ||
kind: "shell" | ||
instances: 1 | ||
node-count: 3 | ||
retry: 1 | ||
enabled: true | ||
timeout: 300 | ||
env: | ||
- KIND_CLUSTER_NAME=cloudtest-kind-$(rands10) | ||
scripts: | ||
start: | | ||
kind create cluster --name ${KIND_CLUSTER_NAME} --config cluster-config.yaml --wait 120s | ||
config: | | ||
sh -c "kind get kubeconfig --name ${KIND_CLUSTER_NAME} > \"${KIND_CLUSTER_NAME}-kubeconfig\" && echo \"${KIND_CLUSTER_NAME}-kubeconfig\"" | ||
stop: | | ||
kind delete cluster --name ${KIND_CLUSTER_NAME} | ||
- name: "kind-2" | ||
kind: "shell" | ||
instances: 1 | ||
node-count: 3 | ||
retry: 1 | ||
enabled: true | ||
timeout: 300 | ||
env: | ||
- KIND_CLUSTER_NAME=cloudtest-kind-$(rands10) | ||
scripts: | ||
start: | | ||
kind create cluster --name ${KIND_CLUSTER_NAME} --config cluster-config.yaml --wait 120s | ||
config: | | ||
sh -c "kind get kubeconfig --name ${KIND_CLUSTER_NAME} > \"${KIND_CLUSTER_NAME}-kubeconfig\" && echo \"${KIND_CLUSTER_NAME}-kubeconfig\"" | ||
stop: | | ||
kind delete cluster --name ${KIND_CLUSTER_NAME} | ||
reporting: | ||
junit-report: "./.results/junit.xml" | ||
executions: | ||
- name: "Sample go tests" | ||
env: | ||
- MY_ENV_VAR="test" | ||
root: . | ||
source: | ||
tags: | ||
- interdomain | ||
timeout: 60 | ||
cluster-count: 2 | ||
cluster-selector: | ||
- kind-1 | ||
- kind-2 | ||
cluster-env: | ||
- KUBECONFIG_CLUSTER_1 | ||
- KUBECONFIG_CLUSTER_2 |
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
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
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
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
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,11 @@ | ||
// +build interdomain | ||
|
||
package integration_k8s_kind | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestHelloWorld(t *testing.T) { | ||
println("Hello World!") | ||
} |
Oops, something went wrong.