- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 428 for Pytest (0.14 sec)
-
cmd/bucket-encryption_test.go
}, } for i, tc := range testCases { _, err := validateBucketSSEConfig(bytes.NewReader([]byte(tc.inputXML))) if tc.shouldPass && err != nil { t.Fatalf("Test case %d: Expected to succeed but got %s", i+1, err) } if !tc.shouldPass { if err == nil || err != nil && err.Error() != tc.expectedErr.Error() { t.Fatalf("Test case %d: Expected %s but got %s", i+1, tc.expectedErr, err) } } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 14 07:59:05 GMT 2021 - 2.1K bytes - Viewed (0) -
cmd/object-api-getobjectinfo_test.go
{"test-getobjectinfo", "", ObjectInfo{}, ObjectNameInvalid{Bucket: "test-getobjectinfo", Object: ""}, false}, {"test-getobjectinfo", "", ObjectInfo{}, ObjectNameInvalid{Bucket: "test-getobjectinfo", Object: ""}, false}, // Test cases with non-existing object name with existing bucket (Test number 9-11). {"test-getobjectinfo", "Africa", ObjectInfo{}, ObjectNotFound{Bucket: "test-getobjectinfo", Object: "Africa"}, false},
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Dec 23 15:46:00 GMT 2022 - 5.6K bytes - Viewed (0) -
cmd/object_api_suite_test.go
if err != nil { t.Fatalf("%s: <ERROR> %s", instanceType, err) } if len(bytesBuffer1.Bytes()) != len(content) { t.Errorf("%s: Expected content length to be `%d`, but instead found `%d`", instanceType, len(content), len(bytesBuffer1.Bytes())) } var bytesBuffer2 bytes.Buffer _, err = obj.PutObject(context.Background(), "bucket", "object", mustGetPutObjReader(t, readerNoEOF, length, "", ""), opts)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 32.3K bytes - Viewed (0) -
cmd/data-usage_test.go
FailedSize: 3, FailedCount: 5, PendingCount: 6, }, }, } want.replace("abucket/dir2", "", *e) var buf bytes.Buffer err = want.serializeTo(&buf) if err != nil { t.Fatal(err) } t.Log("serialized size:", buf.Len(), "bytes") var got dataUsageCache err = got.deserialize(&buf) if err != nil { t.Fatal(err) } if got.Info.LastUpdate.IsZero() {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Mar 27 15:10:40 GMT 2024 - 14.1K bytes - Viewed (0) -
cmd/httprange_test.go
errExpected bool }{ {"bytes=0-", false}, {"bytes=1-", false}, {"bytes=0-9", false}, {"bytes=1-10", false}, {"bytes=1-1", false}, {"bytes=2-5", false}, {"bytes=-5", false}, {"bytes=-1", false}, {"bytes=-1000", false}, {"bytes=", true}, {"bytes= ", true}, {"byte=", true}, {"bytes=A-B", true}, {"bytes=1-B", true}, {"bytes=B-1", true},
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun May 05 16:56:21 GMT 2024 - 3.7K bytes - Viewed (0) -
cmd/sts-handlers_test.go
baseTestCases := []TestSuiteCommon{ // Init and run test on ErasureSD backend with signature v4. {serverType: "ErasureSD", signer: signerV4}, // Init and run test on ErasureSD backend, with tls enabled. {serverType: "ErasureSD", signer: signerV4, secure: true}, // Init and run test on Erasure backend. {serverType: "Erasure", signer: signerV4}, // Init and run test on ErasureSet backend.
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) -
internal/bucket/versioning/versioning_test.go
excluded: false, }, } for i, test := range tests { if v.PrefixSuspended(test.prefix) != test.excluded { if test.excluded { t.Fatalf("Test %d: Expected prefix %s to be excluded from versioning", i+1, test.prefix) } else { t.Fatalf("Test %d: Expected prefix %s to have versioning enabled", i+1, test.prefix) } } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun May 08 05:06:44 GMT 2022 - 8.8K bytes - Viewed (0) -
internal/s3select/json/reader_test.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package json import ( "bytes" "io" "os" "path/filepath" "testing" "github.com/minio/minio/internal/s3select/sql" ) func TestNewReader(t *testing.T) { files, err := os.ReadDir("testdata") if err != nil { t.Fatal(err)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 2.5K bytes - Viewed (0) -
internal/event/arn_test.go
data, err := xml.Marshal(testCase.arn) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if !reflect.DeepEqual(data, testCase.expectedData) { t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data)) } } } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.8K bytes - Viewed (0) -
buildscripts/minio-iam-ldap-upgrade-import-test.sh
go install github.com/minio/mc@latest fi if [ ! -x ./minio.${OLD_VERSION} ]; then echo "Downloading minio.${OLD_VERSION} binary" curl -o minio.${OLD_VERSION} ${OLD_BINARY_LINK} chmod +x minio.${OLD_VERSION} fi if [ -z "$_MINIO_LDAP_TEST_SERVER" ]; then export _MINIO_LDAP_TEST_SERVER=localhost:1389 echo "Using default LDAP endpoint: $_MINIO_LDAP_TEST_SERVER" fi rm -rf /tmp/data }
Shell Script - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 25 15:49:53 GMT 2024 - 3.4K bytes - Viewed (0)