- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 583 for cases (0.02 sec)
-
docs/en/docs/deployment/concepts.md
Of course, there are some cases where there's no problem in running the previous steps multiple times, in that case, it's a lot easier to handle. /// tip Also, keep in mind that depending on your setup, in some cases you **might not even need any previous steps** before starting your application. In that case, you wouldn't have to worry about any of this. 🤷 ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Sep 18 16:09:57 UTC 2024 - 17.8K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
}, { version: versionInvalid2, errMsg: fmt.Errorf("could not parse Malformed version: %v", versionInvalid2.GitVersion), isValid: false, }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) { got, err := extractKubernetesVersion(c.version) if c.errMsg != err && c.isValid { t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 21:50:50 UTC 2024 - 6.5K bytes - Viewed (0) -
docs/en/docs/how-to/custom-request-and-route.md
## Use cases Some use cases include: * Converting non-JSON request bodies to JSON (e.g. <a href="https://msgpack.org/index.html" class="external-link" target="_blank">`msgpack`</a>). * Decompressing gzip-compressed request bodies. * Automatically logging all request bodies. ## Handling custom request body encodings Let's see how to make use of a custom `Request` subclass to decompress gzip requests.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 22:39:38 UTC 2024 - 4.3K bytes - Viewed (0) -
cmd/iam-object-store_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "testing" ) func TestSplitPath(t *testing.T) { cases := []struct { path string secondIndex bool expectedListKey, expectedItem string }{ {"format.json", false, "format.json", ""},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 23:40:37 UTC 2024 - 2K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
You probably want to test the external provider once, but not necessarily call it for every test that runs. In this case, you can override the dependency that calls that provider, and use a custom dependency that returns a mock user, only for your tests. ### Use the `app.dependency_overrides` attribute For these cases, your **FastAPI** application has an attribute `app.dependency_overrides`, it is a simple `dict`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.9K bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
} } } func TestIptablesHostRules(t *testing.T) { cases := []struct { name string config func(cfg *Config) }{ { "hostprobe", func(cfg *Config) { }, }, } probeSNATipv4 := netip.MustParseAddr("169.254.7.127") probeSNATipv6 := netip.MustParseAddr("fd16:9254:7127:1337:ffff:ffff:ffff:ffff") for _, tt := range cases { for _, ipv6 := range []bool{false, true} {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/object-api-multipart_test.go
}, {bucketName: "a", objName: "obj", PartID: 1, expectedError: fmt.Errorf("%s", "Bucket name invalid: a")}, // Test case - 5. // Case with invalid object names. {bucketName: bucket, PartID: 1, expectedError: fmt.Errorf("%s", "Object name invalid: minio-bucket/")}, // Test case - 6. // Valid object and bucket names but non-existent bucket.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 09:42:21 UTC 2024 - 88.8K bytes - Viewed (0) -
docs/en/docs/how-to/separate-openapi-schemas.md
## Do not Separate Schemas Now, there are some cases where you might want to have the **same schema for input and output**. Probably the main use case for this is if you already have some autogenerated client code/SDKs and you don't want to update all the autogenerated client code/SDKs yet, you probably will want to do it at some point, but maybe not right now.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 16:43:54 UTC 2024 - 4.2K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
}, Annotations: map[string]string{ annotation.SidecarStatus.Name: `{"revision":"test-anno"}`, }, }, }, expectedRevision: "test-anno", }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.name), func(t *testing.T) { assert.Equal(t, c.expectedRevision, extractRevisionFromPod(c.pod)) }) } } func Test_getNamespaces(t *testing.T) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
# Dependencies in path operation decorators In some cases you don't really need the return value of a dependency inside your *path operation function*. Or the dependency doesn't return a value. But you still need it to be executed/solved. For those cases, instead of declaring a *path operation function* parameter with `Depends`, you can add a `list` of `dependencies` to the *path operation decorator*.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K bytes - Viewed (0)