Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Hongxin Liang <[email protected]>
  • Loading branch information
honnix committed May 16, 2023
1 parent db387cd commit 271647f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/util/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ func TestSetupFlyteDir(t *testing.T) {
assert.Nil(t, SetupFlyteDir())
}

func TestPrintSandboxMessage(t *testing.T) {
func TestPrintSandboxStartMessage(t *testing.T) {
t.Run("Print Sandbox Message", func(t *testing.T) {
PrintSandboxStartMessage(SandBoxConsolePort, docker.SandboxKubeconfig, false)
})
}

func TestPrintSandboxTeardownMessage(t *testing.T) {
t.Run("Print Sandbox Message", func(t *testing.T) {
PrintSandboxTeardownMessage(SandBoxConsolePort, docker.SandboxKubeconfig)
})
}

func TestSendRequest(t *testing.T) {
t.Run("Successful get request", func(t *testing.T) {
response, err := SendRequest("GET", "https://github.com", nil)
Expand Down

0 comments on commit 271647f

Please sign in to comment.