Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 620 for validate (0.21 sec)

  1. internal/config/identity/ldap/config.go

    	// this point as necessary configuration is available.
    	if !isEnableFlagExplicitlySet && !l.LDAP.Enabled {
    		l.LDAP.Enabled = true
    	}
    	// Validate and test configuration.
    	valResult := l.LDAP.Validate()
    	if !valResult.IsOk() {
    		// Set to false if configuration fails to validate.
    		l.LDAP.Enabled = false
    		return l, valResult
    	}
    
    	return l, nil
    }
    
    // GetConfigList - returns a list of LDAP configurations.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  2. internal/bucket/replication/replication.go

    			config.Rules[i].DeleteReplication = DeleteReplication{
    				Status: Disabled,
    			}
    		}
    	}
    	return &config, nil
    }
    
    // Validate - validates the replication configuration
    func (c Config) Validate(bucket string, sameTarget bool) error {
    	// replication config can't have more than 1000 rules
    	if len(c.Rules) > 1000 {
    		return errReplicationTooManyRules
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. tests/test_ws_router.py

        pass  # pragma: no cover
    
    
    async def ws_dependency_validate(x_missing: str = Header()):
        pass  # pragma: no cover
    
    
    @router.websocket("/depends-validate/")
    async def router_ws_depends_validate(
        websocket: WebSocket, data=Depends(ws_dependency_validate)
    ):
        pass  # pragma: no cover
    
    
    class CustomError(Exception):
        pass
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/transition.go

    	var trw transitionWrapper
    	err := d.DecodeElement(&trw, &startElement)
    	if err != nil {
    		return err
    	}
    	*t = Transition(trw)
    	t.set = true
    	return nil
    }
    
    // Validate - validates the "Transition" element
    func (t Transition) Validate() error {
    	if !t.set {
    		return nil
    	}
    
    	if !t.IsDateNull() && t.Days > 0 {
    		return errTransitionInvalid
    	}
    
    	if t.StorageClass == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 10 17:07:49 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/pathmap/AdminPathmapAction.java

                    form.crudMode = CrudMode.CREATE;
                });
            });
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            final String id = form.id;
            pathMappingService.getPathMapping(id).ifPresent(entity -> {
                copyBeanToBean(entity, form, op -> {});
            }).orElse(() -> {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 13K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/duplicatehost/AdminDuplicatehostAction.java

                    form.crudMode = CrudMode.CREATE;
                });
            });
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            final String id = form.id;
            duplicateHostService.getDuplicateHost(id).ifPresent(entity -> {
                copyBeanToBean(entity, form, op -> {});
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/boostdoc/AdminBoostdocAction.java

                    form.crudMode = CrudMode.CREATE;
                });
            });
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            final String id = form.id;
            boostDocumentRuleService.getBoostDocumentRule(id).ifPresent(entity -> {
                copyBeanToBean(entity, form, op -> {});
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginValidatorTest.java

            descriptor.setArtifactId("maven-it-plugin");
            descriptor.setVersion("0.1");
            List<String> errors = new ArrayList<>();
            mavenPluginValidator.validate(plugin, descriptor, errors);
            assertTrue(errors.isEmpty());
        }
    
        @Test
        void testInvalidGroupId() {
            Artifact plugin = new DefaultArtifact(
                    "org.apache.maven.its.plugins",
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    	}
    
    	// Validate that the client from sts creds can access the bucket.
    	c.mustListObjects(ctx, minioClient, bucket)
    
    	// Validate that a bucket can be created
    	bucket2 := getRandomBucketName()
    	err = minioClient.MakeBucket(ctx, bucket2, minio.MakeBucketOptions{})
    	if err != nil {
    		c.Fatalf("bucket creat error: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  10. internal/event/target/nsq_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			n := NSQArgs{
    				Enable:      tt.fields.Enable,
    				NSQDAddress: tt.fields.NSQDAddress,
    				Topic:       tt.fields.Topic,
    			}
    			if err := n.Validate(); (err != nil) != tt.wantErr {
    				t.Errorf("NSQArgs.Validate() error = %v, wantErr %v", err, tt.wantErr)
    			}
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.2K bytes
    - Viewed (0)
Back to top