INNER CODE UNIT · Go

TestClean

int128/kubelogin · integration_test/clean_test.go:15

func TestClean(t *testing.T) {
	tokenCacheDir := t.TempDir()

	cmd := di.NewCmdForHeadless(clock.Fake(time.Now()), os.Stdin, os.Stdout, logger.New(t), httpdriver.Zero(t))
	exitCode := cmd.Run(context.TODO(), []string{
		"kubelogin",
		"clean",
		"--token-cache-dir", tokenCacheDir,
	}, "HEAD")
	if exitCode != 0 {
		t.Errorf("exit status wants 0 but %d", exitCode)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…