Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTrimURLPath (0.11 sec)

  1. pkg/kubelet/server/server_test.go

    	assert.Equal(t, http.StatusMethodNotAllowed, resp.StatusCode)
    	body, err = io.ReadAll(resp.Body)
    	require.NoError(t, err)
    	assert.Equal(t, expectedResponse, string(body))
    }
    
    func TestTrimURLPath(t *testing.T) {
    	tests := []struct {
    		path, expected string
    	}{
    		{"", ""},
    		{"//", ""},
    		{"/pods", "pods"},
    		{"pods", "pods"},
    		{"pods/", "pods"},
    		{"good/", "good"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top