Skip to content

Commit

Permalink
test(main): add e2e test and controller test
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu committed Oct 2, 2024
1 parent 436d0c1 commit f6b9244
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
- name: Verify sealos
run: |
wget https://github.com/labring/sealos/releases/download/v5.0.0/sealos_5.0.0_linux_amd64.tar.gz
tar -zxvf sealos_5.0.0_linux_amd64.tar.gz /tmp/sealos
sudo chmod a+x /tmp/sealos
sudo mv /tmp/sealos /usr/bin/
tar -zxvf sealos_5.0.0_linux_amd64.tar.gz sealos
sudo chmod a+x sealos
sudo mv sealos /usr/bin/
sudo sealos version
- name: Remove containerd && docker
uses: labring/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions e2e/automq_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ var _ = BeforeSuite(func() {
usingCluster := false
By("bootstrapping test environment")
testEnv = &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")},
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
ErrorIfCRDPathMissing: true,
UseExistingCluster: &usingCluster,
// The BinaryAssetsDirectory is only required if you want to run the tests directly
// without call the makefile target test. If not informed it will look for the
// default path defined in controller-runtime which is /usr/local/kubebuilder/.
// Note that you must have the required binaries setup under the bin directory to perform
// the tests directly. When we run make test it will be setup and used automatically.
BinaryAssetsDirectory: filepath.Join("..", "..", "bin", "k8s",
BinaryAssetsDirectory: filepath.Join("..", "bin", "k8s",
fmt.Sprintf("1.28.0-%s-%s", runtime.GOOS, runtime.GOARCH)),
}

Expand Down

0 comments on commit f6b9244

Please sign in to comment.