Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestLocalEndpoint (0.26 sec)

  1. pkg/kubelet/util/util_unix_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    )
    
    func TestLocalEndpoint(t *testing.T) {
    	tests := []struct {
    		path             string
    		file             string
    		expectError      bool
    		expectedFullPath string
    	}{
    		{
    			path:             "path",
    			file:             "file",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. pkg/kubelet/util/util_windows_test.go

    		{
    			originalpath:   "fileonly",
    			normalizedPath: "fileonly",
    		},
    	}
    
    	for _, test := range tests {
    		assert.Equal(t, test.normalizedPath, NormalizePath(test.originalpath))
    	}
    }
    
    func TestLocalEndpoint(t *testing.T) {
    	tests := []struct {
    		path             string
    		file             string
    		expectError      bool
    		expectedFullPath string
    	}{
    		{
    			path:             "/var/lib/kubelet/pod-resources",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top