Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for filedata (0.37 sec)

  1. src/cmd/go/internal/test/test.go

    		// -c or profiling flag: create action to copy binary to ./test.out.
    		target := filepath.Join(base.Cwd(), testBinary+cfg.ExeSuffix)
    		isNull := false
    
    		if testO != "" {
    			target = testO
    
    			if testODir {
    				if filepath.IsAbs(target) {
    					target = filepath.Join(target, testBinary+cfg.ExeSuffix)
    				} else {
    					target = filepath.Join(base.Cwd(), target, testBinary+cfg.ExeSuffix)
    				}
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			}
    		})
    	}
    }
    
    func TestKMSvsEnablement(t *testing.T) {
    	testCases := []struct {
    		name        string
    		filePath    string
    		expectedErr string
    	}{
    		{
    			name:        "config with kmsv2 and kmsv1, KMSv2=true, KMSv1=false, should fail when feature is disabled",
    			filePath:    "testdata/valid-configs/kms/multiple-providers-mixed.yaml",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  3. cmd/kubelet/app/server.go

    	}
    	// Walk through the drop-in directory and update the configuration for each file
    	if err := filepath.WalkDir(kubeletDropInConfigDir, func(path string, info fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if !info.IsDir() && filepath.Ext(info.Name()) == dropinFileExtension {
    			dropinConfigJSON, err := loadDropinConfigFileIntoJSON(path)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  4. src/net/http/fs_test.go

    		t.Skipf("skipping; failed to run strace: %v", err)
    	}
    
    	filename := fmt.Sprintf("1kb-%d", os.Getpid())
    	filepath := path.Join(os.TempDir(), filename)
    
    	if err := os.WriteFile(filepath, bytes.Repeat([]byte{'a'}, 1<<10), 0755); err != nil {
    		t.Fatal(err)
    	}
    	defer os.Remove(filepath)
    
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/manager_test.go

    }
    
    func tmpSocketDir() (socketDir, socketName, pluginSocketName string, err error) {
    	socketDir, err = os.MkdirTemp("", "device_plugin")
    	if err != nil {
    		return
    	}
    	socketName = filepath.Join(socketDir, "server.sock")
    	pluginSocketName = filepath.Join(socketDir, "device-plugin.sock")
    	os.MkdirAll(socketDir, 0755)
    	return
    }
    
    func TestNewManagerImpl(t *testing.T) {
    	socketDir, socketName, _, err := tmpSocketDir()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  6. pkg/volume/testing/testing.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package testing
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	goruntime "runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    	"k8s.io/klog/v2"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/utils/exec"
    	testingexec "k8s.io/utils/exec/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    	// Fetch TLS key and pem files from test-data/ directory.
    	//	dir, _ := os.Getwd()
    	//	testDataDir := filepath.Join(filepath.Dir(dir), "test-data")
    	//
    	//	pemFile := filepath.Join(testDataDir, "server.pem")
    	//	keyFile := filepath.Join(testDataDir, "server.key")
    	cer, err := tls.X509KeyPair(cert, key)
    	if err != nil {
    		t.Fatalf("Failed to load certificate: %v", err)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    func loadObjects(dir string) []*unstructured.Unstructured {
    	result := []*unstructured.Unstructured{}
    	err := filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		} else if d.IsDir() {
    			return nil
    		} else if filepath.Ext(d.Name()) != ".yaml" {
    			return nil
    		}
    		// Read the file in as []byte
    		data, err := os.ReadFile(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  9. tests/integration/ambient/baseline_test.go

    		// Create a copy to avoid races, as tests are run in parallel
    		c := c
    		testName := strings.TrimSuffix(c.ConfigFile, filepath.Ext(c.ConfigFile))
    		t.NewSubTest(testName).Run(func(t framework.TestContext) {
    			// Apply the policy.
    			cfg := t.ConfigIstio().File(c.Namespace.Name(), filepath.Join("testdata", c.ConfigFile))
    			retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_container.go

    limitations under the License.
    */
    
    package kuberuntime
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"io"
    	"math/rand"
    	"net/url"
    	"os"
    	"path/filepath"
    	"regexp"
    	goruntime "runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	crierror "k8s.io/cri-api/pkg/errors"
    
    	"github.com/opencontainers/selinux/go-selinux"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
Back to top