Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for testprofile (0.46 sec)

  1. pkg/registry/core/pod/strategy_test.go

    				api.DeprecatedAppArmorAnnotationKeyPrefix + "init": api.DeprecatedAppArmorAnnotationValueLocalhostPrefix + testProfile,
    				api.DeprecatedAppArmorAnnotationKeyPrefix + "ctr":  api.DeprecatedAppArmorAnnotationValueLocalhostPrefix + testProfile,
    			}, pod.Annotations)
    		},
    	}, {
    		description: "Pod field localhost but profile is nil",
    		pod: &api.Pod{
    			Spec: api.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/test/testflag.go

    	// directory, but 'go test' defaults it to the working directory of the 'go'
    	// command. Set it explicitly if it is needed due to some other flag that
    	// requests output.
    	if testProfile() != "" && !outputDirSet {
    		injectedFlags = append(injectedFlags, "-test.outputdir="+testOutputDir.getAbs())
    	}
    
    	// If the user is explicitly passing -help or -h, show output
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/test/test.go

    	testBlockProfile, testCPUProfile, testMemProfile, testMutexProfile, testTrace string // profiling flag that limits test to one package
    
    	testODir = false
    )
    
    // testProfile returns the name of an arbitrary single-package profiling flag
    // that is set, if any.
    func testProfile() string {
    	switch {
    	case testBlockProfile != "":
    		return "-blockprofile"
    	case testCPUProfile != "":
    		return "-cpuprofile"
    	case testMemProfile != "":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  4. pkg/apis/core/validation/validation_test.go

    			return
    		}
    	}
    }
    
    func TestValidateSeccompAnnotationAndField(t *testing.T) {
    	const containerName = "container"
    	testProfile := "test"
    
    	for _, test := range []struct {
    		description string
    		pod         *core.Pod
    		validation  func(*testing.T, string, field.ErrorList, *v1.Pod)
    	}{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/net/URLUtilTest.java

            assertEquals("zip", URLUtil.toCanonicalProtocol("zip"));
            assertEquals("file", URLUtil.toCanonicalProtocol("file"));
        }
    
        /**
         * @throws Exception
         */
        public void testToFile() throws Exception {
            final File file = new File("Program Files/hoge.txt");
            final URL url = file.toURI().toURL();
            assertEquals(file.getAbsoluteFile(), URLUtil.toFile(url));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. pkg/security/apparmor/helpers_test.go

    			}
    			if test.podProfile != nil {
    				pod.Spec.SecurityContext = &v1.PodSecurityContext{
    					AppArmorProfile: test.podProfile.DeepCopy(),
    				}
    			}
    
    			actual := GetProfile(&pod, &container)
    			assert.Equal(t, test.expectedProfile, actual)
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 18:46:31 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. pkg/security/apparmor/helpers.go

    			return value != v1.DeprecatedAppArmorBetaProfileNameUnconfined
    		}
    	}
    	return false
    }
    
    // GetProfileName returns the name of the profile to use with the container.
    func GetProfile(pod *v1.Pod, container *v1.Container) *v1.AppArmorProfile {
    	if !utilfeature.DefaultFeatureGate.Enabled(features.AppArmorFields) {
    		return getProfileFromPodAnnotations(pod.Annotations, container.Name)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 18:46:32 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. pkg/security/apparmor/validate.go

    		return v.validateHostErr
    	}
    
    	var retErr error
    	podutil.VisitContainers(&pod.Spec, podutil.AllContainers, func(container *v1.Container, containerType podutil.ContainerType) bool {
    		profile := GetProfile(pod, container)
    		if profile == nil {
    			return true
    		}
    
    		// TODO(#64841): This would ideally be part of validation.ValidateAppArmorProfileFormat, but
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:22:50 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. src/cmd/pprof/pprof.go

    	}
    	fmt.Fprintln(os.Stderr, "Fetching profile over HTTP from", sourceURL)
    	if duration > 0 {
    		fmt.Fprintf(os.Stderr, "Please wait... (%v)\n", duration)
    	}
    	p, err := getProfile(sourceURL, timeout)
    	return p, sourceURL, err
    }
    
    func getProfile(source string, timeout time.Duration) (*profile.Profile, error) {
    	url, err := url.Parse(source)
    	if err != nil {
    		return nil, err
    	}
    
    	var tlsConfig *tls.Config
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/helpers.go

    		ProfileType: runtimeapi.SecurityProfile_Unconfined,
    	}, nil
    }
    
    func getAppArmorProfile(pod *v1.Pod, container *v1.Container) (*runtimeapi.SecurityProfile, string, error) {
    	profile := apparmor.GetProfile(pod, container)
    	if profile == nil {
    		return nil, "", nil
    	}
    
    	var (
    		securityProfile   *runtimeapi.SecurityProfile
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top