Skip to content

Commit

Permalink
Merge pull request #1186 from wzshiming/clean/test
Browse files Browse the repository at this point in the history
Remove old test
  • Loading branch information
wzshiming authored Jul 24, 2024
2 parents d890687 + 7eceae7 commit 8797104
Show file tree
Hide file tree
Showing 78 changed files with 3 additions and 5,210 deletions.
32 changes: 2 additions & 30 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,10 @@ jobs:
sudo mkdir -p /var/run/kubernetes
sudo chmod 777 /var/run/kubernetes
- name: Install kubectl and kustomize
shell: bash
run: |
./hack/requirements.sh kubectl kustomize
- name: Test Dry Run
if: ${{ matrix.os == 'ubuntu-latest' && matrix.kwokctl-runtime == 'binary' }}
- name: Install kubectl
shell: bash
run: |
./hack/e2e-test.sh kwokctl/kwokctl_with_dryrun
./hack/requirements.sh kubectl
- name: Test e2e dry run
if: ${{ matrix.os == 'ubuntu-latest' && matrix.kwokctl-runtime == 'binary' }}
Expand All @@ -268,14 +262,6 @@ jobs:
run: |
./hack/e2e-test.sh e2e/kwokctl/${{ matrix.kwokctl-runtime }} && rm -rf logs
- name: Test Export Logs
shell: bash
run: |
if [[ "${{ matrix.kwokctl-runtime }}" != 'ubuntu-latest' ]]; then
export SKIP_DRY_RUN=true
fi
./hack/e2e-test.sh kwokctl/kwokctl_${{ matrix.kwokctl-runtime }}_export_logs
- name: Test Workable
shell: bash
run: |
Expand All @@ -284,20 +270,6 @@ jobs:
fi
./hack/e2e-test.sh kwokctl/kwokctl_${{ matrix.kwokctl-runtime }}
- name: Test Snapshot
if: ${{ matrix.os != 'windows-latest' }} # TODO: fix snapshot test on windows
shell: bash
run: |
./hack/e2e-test.sh kwokctl/kwokctl_${{ matrix.kwokctl-runtime }}_snapshot
- name: Test Restart
shell: bash
run: |
if [[ "${{ matrix.kwokctl-runtime }}" != 'ubuntu-latest' ]]; then
export SKIP_DRY_RUN=true
fi
./hack/e2e-test.sh kwokctl/kwokctl_${{ matrix.kwokctl-runtime }}_restart
- name: Test Benchmark
if: ${{ matrix.os == 'ubuntu-latest' && matrix.kwokctl-runtime == 'binary' }}
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/dryrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func CaseDryrunWithExtra(clusterName string, kwokctlPath string, rootDir string,
f := features.New("Dry run with extra")
f = f.Assess("test cluster dryrun with extra", func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
absPath := "test/e2e/kwokctl/dryrun/testdata/" + clusterRuntime + "/create_cluster_with_extra.txt"
extraPath := path.Join(rootDir, "test/kwokctl/testdata/extra.yaml")
extraPath := path.Join(rootDir, "test/e2e/kwokctl/dryrun/testdata/extra.yaml")
args := []string{
"create", "cluster", "--dry-run", "--name", clusterName, "--timeout=30m",
"--wait=30m", "--quiet-pull", "--disable-qps-limits", "--runtime", clusterRuntime,
Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions test/kwokctl/audit-policy.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions test/kwokctl/fake-deployment.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions test/kwokctl/fake-node.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions test/kwokctl/kustomization.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions test/kwokctl/kwokctl_binary_export_logs.test.sh

This file was deleted.

31 changes: 0 additions & 31 deletions test/kwokctl/kwokctl_binary_restart.test.sh

This file was deleted.

31 changes: 0 additions & 31 deletions test/kwokctl/kwokctl_binary_snapshot.test.sh

This file was deleted.

31 changes: 0 additions & 31 deletions test/kwokctl/kwokctl_docker_export_logs.test.sh

This file was deleted.

31 changes: 0 additions & 31 deletions test/kwokctl/kwokctl_docker_restart.test.sh

This file was deleted.

31 changes: 0 additions & 31 deletions test/kwokctl/kwokctl_docker_snapshot.test.sh

This file was deleted.

Loading

0 comments on commit 8797104

Please sign in to comment.