Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 489 for _validate (0.06 sec)

  1. tests/test_tutorial/test_security/test_tutorial005.py

    
    def test_incorrect_token():
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    def test_incorrect_token_type():
        response = client.get(
            "/users/me", headers={"Authorization": "Notexistent testtoken"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlFilterService.java

            }
            insertAll(urlFilterList, OpType.INDEX);
            invalidateSet.forEach(s -> excludeFilterCache.invalidate(s));
        }
    
        @Override
        public void delete(final String sessionId) {
            deleteBySessionId(sessionId);
            includeFilterCache.invalidate(sessionId);
            excludeFilterCache.invalidate(sessionId);
        }
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/transition_test.go

    		},
    	}
    
    	for i, tc := range trTests {
    		var tr Transition
    		err := xml.Unmarshal([]byte(tc.input), &tr)
    		if err != nil {
    			t.Fatalf("%d: xml unmarshal failed with %v", i+1, err)
    		}
    		if err = tr.Validate(); err != tc.err {
    			t.Fatalf("%d: Invalid transition %v: err %v", i+1, tr, err)
    		}
    	}
    
    	ntrTests := []struct {
    		input string
    		err   error
    	}{
    		{
    			input: `<NoncurrentVersionTransition>
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 01 18:58:17 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. internal/bucket/replication/sourceselectioncriteria.go

    func (s SourceSelectionCriteria) IsValid() bool {
    	return s.ReplicaModifications.Status == Enabled || s.ReplicaModifications.Status == Disabled
    }
    
    // Validate source selection criteria
    func (s SourceSelectionCriteria) Validate() error {
    	if (s == SourceSelectionCriteria{}) {
    		return nil
    	}
    	if !s.IsValid() {
    		return errInvalidSourceSelectionCriteria
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/noncurrentversion.go

    }
    
    // IsDaysNull returns true if days field is null
    func (n NoncurrentVersionExpiration) IsDaysNull() bool {
    	return n.NoncurrentDays == ExpirationDays(0)
    }
    
    // Validate returns an error with wrong value
    func (n NoncurrentVersionExpiration) Validate() error {
    	if !n.set {
    		return nil
    	}
    	val := int(n.NoncurrentDays)
    	switch {
    	case val == 0 && n.NewerNoncurrentVersions == 0:
    		// both fields can't be zero
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  6. internal/event/config.go

    		return &ErrUnsupportedConfiguration{}
    	}
    
    	*conf = Config(parsedConfig)
    
    	return nil
    }
    
    // Validate - checks whether config has valid values or not.
    func (conf Config) Validate(region string, targetList *TargetList) error {
    	for _, queue := range conf.QueueList {
    		if err := queue.Validate(region, targetList); err != nil {
    			return err
    		}
    	}
    
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

        }
    
        @Test
        void populatePropertiesCanContainEqualsSign() throws Exception {
            // Arrange
            CliRequest request = new CliRequest(new String[] {"-Dw=x=y", "validate"}, null);
    
            // Act
            cli.cli(request);
            cli.properties(request);
    
            // Assert
            assertThat(request.getUserProperties().getProperty("w"), is("x=y"));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/relatedquery/AdminRelatedqueryAction.java

                    form.crudMode = CrudMode.CREATE;
                });
            });
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            final String id = form.id;
            relatedQueryService.getRelatedQuery(id).ifPresent(entity -> {
                copyBeanToBean(entity, form, copyOp -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/dict/stemmeroverride/AdminDictStemmeroverrideAction.java

        //                                                                      ==============
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index(final SearchForm form) {
            validate(form, messages -> {}, this::asDictIndexHtml);
            stemmerOverridePager.clear();
            return asHtml(path_AdminDictStemmeroverride_AdminDictStemmeroverrideJsp).renderWith(data -> {
                searchPaging(data, form);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java

                    });
                    form.crudMode = CrudMode.CREATE;
                });
            });
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            final String id = form.id;
            dataConfigService.getDataConfig(id).ifPresent(entity -> {
                copyBeanToBean(entity, form, copyOp -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top