Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for fileContent (0.22 sec)

  1. cni/pkg/install/cniconfig_test.go

    			outFilename:     "regular.conf",
    			fileContents: `
    {
    	"cniVersion": "0.3.1",
    	"name": "istio-cni",
    	"type": "istio-cni"
    }`,
    		},
    		{
    			name:            "another regular file",
    			dir:             tempDir,
    			expectedFailure: false,
    			inFilename:      "regular2.conf",
    			outFilename:     "regular.conf",
    			fileContents: `
    {
    	"cniVersion": "0.3.1",
    	"name": "istio-cni",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/config/joinconfiguration_test.go

    	}
    	defer os.RemoveAll(tmpdir)
    
    	// cfgFiles is in cluster_test.go
    	var tests = []struct {
    		name         string
    		fileContents string
    		expectErr    bool
    	}{
    		{
    			name:      "empty file causes error",
    			expectErr: true,
    		},
    		{
    			name: "Invalid v1beta3 causes error",
    			fileContents: dedent.Dedent(`
    				apiVersion: kubeadm.k8s.io/v1beta3
    				kind: JoinConfiguration
    			`),
    			expectErr: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 09:17:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/valueProviders/fileContentsDo/kotlin/build.gradle.kts

    val config = providers.fileContents(layout.projectDirectory.file("some.conf"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 91 bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/config/resetconfiguration_test.go

    	}
    	defer os.RemoveAll(tmpdir)
    
    	var tests = []struct {
    		name         string
    		fileContents string
    		expectErr    bool
    	}{
    		{
    			name:      "empty file causes error",
    			expectErr: true,
    		},
    		{
    			name: "Invalid v1beta4 causes error",
    			fileContents: dedent.Dedent(`
    				apiVersion: kubeadm.k8s.io/unknownVersion
    				kind: ResetConfiguration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 06 13:21:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/config/cluster_test.go

    		},
    		{
    			name:          "invalid - no node",
    			fileContents:  kubeletConfFiles["configWithEmbeddedCert"],
    			expectedError: true,
    		},
    	}
    
    	for _, rt := range tests {
    		t.Run(rt.name, func(t2 *testing.T) {
    			cfgPath := filepath.Join(tmpdir, kubeadmconstants.KubeletKubeConfigFileName)
    			if len(rt.fileContents) > 0 {
    				err := os.WriteFile(cfgPath, rt.fileContents, 0644)
    				if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/config/upgradeconfiguration_test.go

    		cfgPath      string
    		fileContents string
    		want         *kubeadmapi.UpgradeConfiguration
    		wantErr      bool
    	}{
    		{
    			name:    "Config file does not exists",
    			cfgPath: "tmp",
    			want:    nil,
    			wantErr: true,
    		},
    		{
    			name:         "Config file format is basic text",
    			cfgPath:      filePath,
    			want:         nil,
    			fileContents: "some-text",
    			wantErr:      true,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. hack/verify-flags/excluded-flags.txt

    check_leaked_resources
    check_node_count
    check_version_skew
    concurrent_rc_syncs
    file_content
    file_mode
    file_owner
    file_perm
    fs_type
    gke_context
    max_in_flight
    max_par
    new_file_0644
    new_file_0660
    new_file_0666
    new_file_0777
    pods_per_node
    test_args
    up_to
    upgrade_args
    valid_flag
    retry_time
    file_content_in_loop
    break_on_expected_content
    Premium_LRS
    VCP_STRESS_ITERATIONS
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 11 09:42:14 UTC 2023
    - 379 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/valueProviders/fileContentsDo/groovy/build.gradle

    def config = providers.fileContents(layout.projectDirectory.file('some.conf'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 91 bytes
    - Viewed (0)
  9. src/mime/multipart/writer_test.go

    	"mime"
    	"net/textproto"
    	"strings"
    	"testing"
    )
    
    func TestWriter(t *testing.T) {
    	fileContents := []byte("my file contents")
    
    	var b bytes.Buffer
    	w := NewWriter(&b)
    	{
    		part, err := w.CreateFormFile("myfile", "my-file.txt")
    		if err != nil {
    			t.Fatalf("CreateFormFile: %v", err)
    		}
    		part.Write(fileContents)
    		err = w.WriteField("key", "val")
    		if err != nil {
    			t.Fatalf("WriteField: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheConfigurationsContinuousIntegrationTest.groovy

                    def retentionFileProperty = settings.services.get(ObjectFactory).fileProperty().fileValue(retentionFile)
                    def retentionTimeStampProvider = settings.providers.fileContents(retentionFileProperty).asText.map { it as long }
                    settings.caches {
                        markingStrategy = MarkingStrategy.NONE
                        cleanup = Cleanup.DISABLED
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top