Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for runChecks (0.12 sec)

  1. platforms/core-configuration/declarative-dsl-provider/src/test/kotlin/org/gradle/internal/declarativedsl/settings/SettingsBlockCheckTest.kt

            val result = pluginsSchema.runChecks(
                """
                pluginManagement { }
                pluginManagement { }
                plugins { }
                """.trimIndent()
            )
    
            assertTrue(result.isEmpty())
        }
    
        @Test
        fun `reports all order violations for plugins blocks`() {
            val result = pluginsSchema.runChecks(
                """
                foo()
                bar()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/upgrade/preflight.go

    			client: client,
    			f:      checkUnsupportedPlugins,
    		},
    		&CoreDNSCheck{
    			name:   "CoreDNSMigration",
    			client: client,
    			f:      checkMigration,
    		},
    	}
    
    	return preflight.RunChecks(migrationChecks, os.Stderr, ignorePreflightErrors)
    }
    
    // checkUnsupportedPlugins checks if there are any plugins included in the current configuration
    // that are unsupported for migration.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 25 13:53:28 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/preflight/checks.go

    			imagePullPolicy: cfg.NodeRegistration.ImagePullPolicy,
    			imagePullSerial: serialPull,
    		},
    	}
    	return RunChecks(checks, os.Stderr, ignorePreflightErrors)
    }
    
    // RunChecks runs each check, displays its warnings/errors, and once all
    // are processed will exit if any errors occurred.
    func RunChecks(checks []Checker, ww io.Writer, ignorePreflightErrors sets.Set[string]) error {
    	var errsBuffer bytes.Buffer
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/preflight/checks_test.go

    	}
    	for _, rt := range tokenTest {
    		buf := new(bytes.Buffer)
    		actual := RunChecks(rt.p, buf, sets.New[string]())
    		if (actual == nil) != rt.expected {
    			t.Errorf(
    				"failed RunChecks:\n\texpected: %t\n\t  actual: %t",
    				rt.expected,
    				(actual == nil),
    			)
    		}
    		if buf.String() != rt.output {
    			t.Errorf(
    				"failed RunChecks:\n\texpected: %s\n\t  actual: %s",
    				rt.output,
    				buf.String(),
    			)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/upgrade/health.go

    			name:   "ControlPlaneNodesReady",
    			client: client,
    			f:      controlPlaneNodesReady,
    		},
    		&healthCheck{
    			name: "StaticPodManifest",
    			f:    staticPodManifestHealth,
    		},
    	}
    
    	return preflight.RunChecks(healthChecks, os.Stderr, ignoreChecksErrors)
    }
    
    // createJob is a check that verifies that a Job can be created in the cluster
    func createJob(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration) error {
    	const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 09:18:02 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/go/printer/printer_test.go

    }
    
    // checkEqual compares a and b.
    func checkEqual(aname, bname string, a, b []byte) error {
    	if bytes.Equal(a, b) {
    		return nil
    	}
    	return errors.New(string(diff.Diff(aname, a, bname, b)))
    }
    
    func runcheck(t *testing.T, source, golden string, mode checkMode) {
    	src, err := os.ReadFile(source)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    
    	res, err := format(src, mode)
    	if err != nil {
    		t.Error(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top