Commit Graph
51 Commits
Author SHA1 Message Date
Harshavardhana a289dae750 fix: support 'mc put --if-not-exists' (#4963)
Also allow 'mc get --version-id'
2024-06-18 14:15:26 -07:00
Harshavardhana ac55cd1023 remote flaky bucket_replication test for now 2024-05-30 10:00:02 -07:00
Harshavardhana fdb36acbb1 fix: test regression since #4920 (#4928)
use mc_cmd always inside `functional-tests.sh`

Bonus: run shell formatting
2024-05-09 10:04:24 -07:00
Shubhendu 2fb9e21122 Added test for bucket replication (#4920)
Make sure proxying of DEL markers doesnt happen to remote site
while stat calls.

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
2024-05-09 01:40:35 -07:00
David Legrand f740a6d40b Functional tests: add a parameter for the full site cleaning test (#4877)
fixes #4876 

The latest `mc rb` test cleans all the site data, and on the demo site, 
there are sometimes WORM files put in by some users, which leads to 
a failure. This test should only be run on sites where the user knows he can
clean everything without errors.
2024-03-30 08:29:28 -07:00
David Legrand 795ed1eb49 Fix functional-tests.sh file generation under macOS (#4875)
Fixes #4874 

`head -c 0` leads to an `head: illegal byte count -- 0` error under macOS. We should also provide the input with `-i` parameter (it's ok under GNU/Linux too)
2024-03-16 03:01:31 -07:00
Sveinn 87d6cd2d4f Validation optimization - reduce HEAD calls during cp and mv operations (#4710) 2023-10-12 11:30:11 -07:00
r-sc dea3058aa1 Improve consistency in mc cmds (#4609) 2023-06-23 11:12:07 -07:00
Harshavardhana 252421354c update functional tests for admin_users with 'policy commands' (#4508) 2023-03-19 20:49:16 -07:00
Anis Elleuch 19952de324 Fix client-s3 Stat() for prefix with parallel lower prefixes (#4069)
client-s3.Stat() does not properly detect a prefix when there is another
lower one,

e.g: Stat() of 'dir/' fails when there is 'dir-name/' in the same parent
prefix.
2022-04-28 12:50:01 -07:00
Anis Elleuch 0f31ce23b9 mv: Fix regression when checking lock in target bucket (#4015)
A recent commit changed the behavior of client-s3.GetObjectLockConfig()
without properly checking the behavior of the callers introducing a bug
during mv command where the target is an S3 server.

Add some tests for the mc mv command as well.
2022-03-11 15:10:02 -08:00
Aditya Manthramurthy 3177a62819 Add functional tests to test sanity of users in internal IDP (#3838) 2021-10-18 08:41:14 -07:00
Anis Elleuch 6b329ce01f rb: Fix side wide removal of an alias (#3796)
* rb: Fix side wide removal of an alias

rb --force --dangerous should remove all buckets under an alias. This
PR fixes a recent regression.
2021-10-06 09:56:57 -07:00
Harshavardhana 1402987ccb change license to AGPLv3 2021-05-11 17:45:08 -07:00
Anis Elleuch fca6cb2815 cp: Add unit test for copying directories (#3540)
Add unit tests to copy a directory in S3 with and without a trailing
slash.
2020-12-18 09:19:36 -08:00
Harshavardhana 217f5fcbae rename obd->health - keep the alias for now (#3429)
Also additionally fix colorjson usage
2020-09-30 13:10:29 -07:00
Nugine 3776dff20f fix: make assert_failure exit properly (#3415) 2020-09-22 10:41:53 -07:00
Harshavardhana 93209e842c re-implement metadata handling to preserve nanosecs as well (#3402) 2020-09-12 10:20:03 -07:00
Anis Elleuch 85cce08a85 cat: Fix a regression when copying from stdin (#3381)
`mc cat >/tmp/output` is not working properly due to mc cat versioning
changes, this commit fixes the issue to make mc cat works as expected.

It also adds a unit test for it.
2020-08-27 10:31:53 -07:00
poornas ff9731a0d2 fix functional test test_copy_object_with_sse_rewrite (#3369)
`mc rm` on sse-c encrypted object needs encrypt-key flag passed.
2020-08-19 14:22:48 -07:00
ebozduman a75dca16bd fix: cp preserve ownership issue (#3202) 2020-05-07 09:00:48 -07:00
Ashish Kumar Sinha 42898064f2 Add options to preserve filesystem attributes (#2938) 2019-10-30 00:35:25 -07:00
Harshavardhana 57a9c6fab2 Fix mc functional tests to work with new changed behavior (#2901)
- mc rm doesn't fail for SSE-C encrypted objects because
  we use multi-object delete - this behavior is S3 compatible
- changes needed to ensure that keys are set appropriately
  when doing server side copy.
2019-09-20 04:48:02 +05:30
Ashish Kumar Sinha 1582b1cf35 Add support for passing non-printable charachter as key (#2851) 2019-08-29 16:57:04 -07:00
Harshavardhana 81eb54d146 Fix broken functional tests (#2843) 2019-07-30 14:28:13 -07:00
Harshavardhana aa3c9f58df Remove port 9000 for play.min.io (#2817)
Most corporate environments block port 9000,
since we already allow access from port 80 and
port 443 just default to https port instead.
2019-07-10 21:16:45 +01:00
ebozduman 83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
Anis Elleuch ecfd4526a3 tests: Clean per test created buckets (#2717)
In addition to the general bucket name created for functinal tests,
some tests inside this latter creates separated buckets but remove
them using rm command which does not support removing buckets anymore.
2019-03-13 10:38:18 -07:00
Ashish Kumar Sinha 2e612b23d6 Add metadata in mc copy (#2671)
Example : mc cp --attr key1=value1,key2=value2 
play/mybucket/burningman2011/ ~/latest/
2019-03-11 12:47:28 +05:30
Anis Elleuch b72d2d9cc5 tests: Use rb instead of rm to clean test bucket (#2708)
rm command is not able to remove buckets anymore, so use the new rb
command instead.
2019-03-07 09:04:32 -08:00
Harshavardhana b3229507a9 Fix functional tests to use --older-than (#2706)
Change missed in previous PR 1761b338f9
2019-03-06 02:33:07 -08:00
Harshavardhana 733d3c5d54 Avoid making Stat calls on listing (#2650) 2019-01-22 16:02:56 +05:30
Harshavardhana e3b84ac010 With bracket characters in URL, curl requires globbing turned off (#2627)
This PR fixes an issue present when curl commands
are used with IPv6 SERVER_ENDPOINTs
2018-12-17 20:38:27 -08:00
Harshavardhana d541a7f6ef Add support for IPv6 endpoint in functional tests (#2622) 2018-12-12 17:43:48 -08:00
Harshavardhana f3eaa54a32 Breaking change --config-folder is now --config-dir (#2620) 2018-12-05 14:10:36 -08:00
Harshavardhana 5117f74fce Allow empty objects to be uploaded (#2613) 2018-11-28 17:14:07 +05:30
Harshavardhana b7e87b623d Add admin users (#2554) 2018-10-16 14:54:25 -07:00
Anis Elleuch 743d72ea1a fix: Disable localization to enforce bytewise sorting in functional tests (#2453) 2018-05-30 09:40:42 +05:30
Anis Elleuch 10059459f3 tests: Fix test_find comparaison test (#2455)
`mc find alias/bucket` without trailing slash is actually printing 'alias/bucket' as
first element in the output, the thing which is not taken into consideration in test_find
test. This commit will ask `mc find` to list 'alias/bucket/' instead to have a similar
output as gnu `ls` cmd.
2018-05-29 18:12:27 -07:00
poornas fe82b0381c change encryption key parsing to allow spaces in sse-c key (#2408)
Also vendoring in minio-go updates
2018-03-14 02:47:14 -07:00
poornas 0ede95b65e add encrypt option to cp, mirror,pipe,stat, cat and rm commands (#2400) 2018-03-08 17:18:41 +05:30
Nitish Tiwari ea580b0b65 Add storage-class support (#2403)
This PR adds storage-class support for mc cp and mirror command.
Storage class values are passed via the -storage-class or
--sc flag.

Fixes #1859
2018-03-03 10:28:53 -08:00
kannappanr 336e7f58bf Add negative test for presigned post policy (#2302)
Append objectname to the URL and make sure that it fails.

This is related to code coverage in minio/minio#5142
2017-12-01 10:05:31 +05:30
kannappanr 093ab6b034 Add success log in "config host add" tests (#2306)
Change the function name "fail" to "show_on_failure"
Add another function called "show_on_success" to handle certain
failure assert scenarios
Add missing Log success message for "test_config_host_add" and
"test_config_host_add_error" functions.

Fixes #2305
2017-11-14 18:44:13 -08:00
Bala FA 79a51e9afc fix JSON format error in functional test (#2294)
Previously `error` field is not populated properly due to double
formatting error message into JSON string.  This patch fixes the issue
by avoid second time formatting in `printf` command.
2017-10-24 12:21:25 -07:00
Harshavardhana aa8d5ed0cc Add newS3Config helper to auto-probe signature type. (#2292) 2017-10-20 13:51:56 -07:00
Harshavardhana 7ad9a36b9d Add find basic functional test (#2284) 2017-10-13 13:51:12 +05:30
Bala FA 07e810fd51 Ignore test_watch_object() for mint in functional test (#2267) 2017-10-03 10:31:47 -07:00
Bala FA be710ecb52 rename assert functions for correct meaning in functional tests (#2266) 2017-10-02 13:22:03 -07:00
A. Elleuch 4810ab8727 tests: Add negative put object & make bucket tests (#2262)
Add new negative tests to functional tests. For that purpose, two functions are
introduced. assert_success makes sure that the passed command returns 0 exit code
and raise an error otherwise. assert_failure makes sure that the passed
command fails and raises an error otherwise.
2017-10-01 11:24:35 -07:00