s3tests.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. name: "Ceph S3 tests"
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. concurrency:
  8. group: ${{ github.head_ref }}/s3tests
  9. cancel-in-progress: true
  10. permissions:
  11. contents: read
  12. defaults:
  13. run:
  14. working-directory: docker
  15. jobs:
  16. s3tests:
  17. name: Ceph S3 tests
  18. runs-on: ubuntu-22.04
  19. container:
  20. image: docker.io/kmlebedev/ceph-s3-tests:0.0.2
  21. timeout-minutes: 30
  22. steps:
  23. - name: Check out code into the Go module directory
  24. uses: actions/checkout@v4
  25. - name: Set up Go 1.x
  26. uses: actions/setup-go@v5
  27. with:
  28. go-version-file: 'go.mod'
  29. id: go
  30. - name: Run Ceph S3 tests
  31. timeout-minutes: 15
  32. env:
  33. S3TEST_CONF: /__w/seaweedfs/seaweedfs/docker/compose/s3tests.conf
  34. shell: bash
  35. run: |
  36. cd /__w/seaweedfs/seaweedfs/weed
  37. go install -buildvcs=false
  38. set -x
  39. nohup weed -v 0 server -filer -filer.maxMB=64 -s3 -ip.bind 0.0.0.0 \
  40. -master.raftHashicorp -master.electionTimeout 1s -master.volumeSizeLimitMB=1024 \
  41. -volume.max=100 -volume.preStopSeconds=1 -s3.port=8000 -metricsPort=9324 \
  42. -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=true -s3.config=../docker/compose/s3.json &
  43. sleep 10
  44. cd /s3-tests
  45. tox -- \
  46. s3tests_boto3/functional/test_s3.py::test_bucket_list_empty \
  47. s3tests_boto3/functional/test_s3.py::test_bucket_list_distinct \
  48. s3tests_boto3/functional/test_s3.py::test_bucket_list_many \
  49. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_many \
  50. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_prefix \
  51. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_prefix_ends_with_delimiter \
  52. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_alt \
  53. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_prefix_underscore \
  54. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_percentage \
  55. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_whitespace \
  56. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_dot \
  57. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_unreadable \
  58. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_empty \
  59. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_none \
  60. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_not_exist \
  61. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_basic \
  62. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_basic \
  63. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_alt \
  64. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_alt \
  65. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_prefix_not_exist \
  66. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_prefix_not_exist \
  67. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_delimiter_not_exist \
  68. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_delimiter_not_exist \
  69. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_prefix_delimiter_not_exist \
  70. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_prefix_delimiter_not_exist \
  71. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_fetchowner_notempty \
  72. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_basic \
  73. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_basic \
  74. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_alt \
  75. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_alt \
  76. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_empty \
  77. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_empty \
  78. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_none \
  79. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_none \
  80. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_not_exist \
  81. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_not_exist \
  82. s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_unreadable \
  83. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_unreadable \
  84. s3tests_boto3/functional/test_s3.py::test_bucket_list_maxkeys_one \
  85. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_maxkeys_one \
  86. s3tests_boto3/functional/test_s3.py::test_bucket_list_maxkeys_zero \
  87. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_maxkeys_zero \
  88. s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_none \
  89. s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_empty \
  90. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_continuationtoken \
  91. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_both_continuationtoken_startafter \
  92. s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_unreadable \
  93. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_startafter_unreadable \
  94. s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_not_in_list \
  95. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_startafter_not_in_list \
  96. s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_after_list \
  97. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_startafter_after_list \
  98. s3tests_boto3/functional/test_s3.py::test_bucket_list_objects_anonymous_fail \
  99. s3tests_boto3/functional/test_s3.py::test_bucket_listv2_objects_anonymous_fail \
  100. s3tests_boto3/functional/test_s3.py::test_bucket_list_long_name \
  101. s3tests_boto3/functional/test_s3.py::test_bucket_list_special_prefix \
  102. s3tests_boto3/functional/test_s3.py::test_bucket_delete_notexist \
  103. s3tests_boto3/functional/test_s3.py::test_bucket_create_delete \
  104. s3tests_boto3/functional/test_s3.py::test_object_read_not_exist \
  105. s3tests_boto3/functional/test_s3.py::test_multi_object_delete \
  106. s3tests_boto3/functional/test_s3.py::test_multi_objectv2_delete \
  107. s3tests_boto3/functional/test_s3.py::test_object_head_zero_bytes \
  108. s3tests_boto3/functional/test_s3.py::test_object_write_check_etag \
  109. s3tests_boto3/functional/test_s3.py::test_object_write_cache_control \
  110. s3tests_boto3/functional/test_s3.py::test_object_write_expires \
  111. s3tests_boto3/functional/test_s3.py::test_object_write_read_update_read_delete \
  112. s3tests_boto3/functional/test_s3.py::test_object_metadata_replaced_on_put \
  113. s3tests_boto3/functional/test_s3.py::test_object_write_file \
  114. s3tests_boto3/functional/test_s3.py::test_post_object_invalid_date_format \
  115. s3tests_boto3/functional/test_s3.py::test_post_object_no_key_specified \
  116. s3tests_boto3/functional/test_s3.py::test_post_object_missing_signature \
  117. s3tests_boto3/functional/test_s3.py::test_post_object_condition_is_case_sensitive \
  118. s3tests_boto3/functional/test_s3.py::test_post_object_expires_is_case_sensitive \
  119. s3tests_boto3/functional/test_s3.py::test_post_object_missing_expires_condition \
  120. s3tests_boto3/functional/test_s3.py::test_post_object_missing_conditions_list \
  121. s3tests_boto3/functional/test_s3.py::test_post_object_upload_size_limit_exceeded \
  122. s3tests_boto3/functional/test_s3.py::test_post_object_missing_content_length_argument \
  123. s3tests_boto3/functional/test_s3.py::test_post_object_invalid_content_length_argument \
  124. s3tests_boto3/functional/test_s3.py::test_post_object_upload_size_below_minimum \
  125. s3tests_boto3/functional/test_s3.py::test_post_object_empty_conditions \
  126. s3tests_boto3/functional/test_s3.py::test_get_object_ifmatch_good \
  127. s3tests_boto3/functional/test_s3.py::test_get_object_ifnonematch_good \
  128. s3tests_boto3/functional/test_s3.py::test_get_object_ifmatch_failed \
  129. s3tests_boto3/functional/test_s3.py::test_get_object_ifnonematch_failed \
  130. s3tests_boto3/functional/test_s3.py::test_get_object_ifmodifiedsince_good \
  131. s3tests_boto3/functional/test_s3.py::test_get_object_ifmodifiedsince_failed \
  132. s3tests_boto3/functional/test_s3.py::test_get_object_ifunmodifiedsince_failed \
  133. s3tests_boto3/functional/test_s3.py::test_bucket_head \
  134. s3tests_boto3/functional/test_s3.py::test_bucket_head_notexist \
  135. s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated \
  136. s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated_bucket_acl \
  137. s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated_object_acl \
  138. s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated_object_gone \
  139. s3tests_boto3/functional/test_s3.py::test_object_raw_get_x_amz_expires_out_range_zero \
  140. s3tests_boto3/functional/test_s3.py::test_object_anon_put \
  141. s3tests_boto3/functional/test_s3.py::test_object_put_authenticated \
  142. s3tests_boto3/functional/test_s3.py::test_bucket_recreate_overwrite_acl \
  143. s3tests_boto3/functional/test_s3.py::test_bucket_recreate_new_acl \
  144. s3tests_boto3/functional/test_s3.py::test_buckets_create_then_list \
  145. s3tests_boto3/functional/test_s3.py::test_buckets_list_ctime \
  146. s3tests_boto3/functional/test_s3.py::test_list_buckets_invalid_auth \
  147. s3tests_boto3/functional/test_s3.py::test_list_buckets_bad_auth \
  148. s3tests_boto3/functional/test_s3.py::test_bucket_create_naming_good_contains_period \
  149. s3tests_boto3/functional/test_s3.py::test_bucket_create_naming_good_contains_hyphen \
  150. s3tests_boto3/functional/test_s3.py::test_bucket_list_special_prefix \
  151. s3tests_boto3/functional/test_s3.py::test_object_copy_zero_size \
  152. s3tests_boto3/functional/test_s3.py::test_object_copy_same_bucket \
  153. s3tests_boto3/functional/test_s3.py::test_object_copy_to_itself \
  154. s3tests_boto3/functional/test_s3.py::test_object_copy_diff_bucket \
  155. s3tests_boto3/functional/test_s3.py::test_object_copy_canned_acl \
  156. s3tests_boto3/functional/test_s3.py::test_object_copy_bucket_not_found \
  157. s3tests_boto3/functional/test_s3.py::test_object_copy_key_not_found \
  158. s3tests_boto3/functional/test_s3.py::test_multipart_copy_small \
  159. s3tests_boto3/functional/test_s3.py::test_multipart_copy_without_range \
  160. s3tests_boto3/functional/test_s3.py::test_multipart_copy_special_names \
  161. s3tests_boto3/functional/test_s3.py::test_multipart_copy_multiple_sizes \
  162. s3tests_boto3/functional/test_s3.py::test_multipart_get_part \
  163. s3tests_boto3/functional/test_s3.py::test_multipart_upload \
  164. s3tests_boto3/functional/test_s3.py::test_multipart_upload_empty \
  165. s3tests_boto3/functional/test_s3.py::test_multipart_upload_multiple_sizes \
  166. s3tests_boto3/functional/test_s3.py::test_multipart_upload_contents \
  167. s3tests_boto3/functional/test_s3.py::test_multipart_upload_overwrite_existing_object \
  168. s3tests_boto3/functional/test_s3.py::test_multipart_upload_size_too_small \
  169. s3tests_boto3/functional/test_s3.py::test_multipart_resend_first_finishes_last \
  170. s3tests_boto3/functional/test_s3.py::test_multipart_upload_resend_part \
  171. s3tests_boto3/functional/test_s3.py::test_multipart_upload_missing_part \
  172. s3tests_boto3/functional/test_s3.py::test_multipart_upload_incorrect_etag \
  173. s3tests_boto3/functional/test_s3.py::test_abort_multipart_upload \
  174. s3tests_boto3/functional/test_s3.py::test_list_multipart_upload \
  175. s3tests_boto3/functional/test_s3.py::test_atomic_read_1mb \
  176. s3tests_boto3/functional/test_s3.py::test_atomic_read_4mb \
  177. s3tests_boto3/functional/test_s3.py::test_atomic_read_8mb \
  178. s3tests_boto3/functional/test_s3.py::test_atomic_write_1mb \
  179. s3tests_boto3/functional/test_s3.py::test_atomic_write_4mb \
  180. s3tests_boto3/functional/test_s3.py::test_atomic_write_8mb \
  181. s3tests_boto3/functional/test_s3.py::test_atomic_dual_write_1mb \
  182. s3tests_boto3/functional/test_s3.py::test_atomic_dual_write_4mb \
  183. s3tests_boto3/functional/test_s3.py::test_atomic_dual_write_8mb \
  184. s3tests_boto3/functional/test_s3.py::test_atomic_multipart_upload_write \
  185. s3tests_boto3/functional/test_s3.py::test_ranged_request_response_code \
  186. s3tests_boto3/functional/test_s3.py::test_ranged_big_request_response_code \
  187. s3tests_boto3/functional/test_s3.py::test_ranged_request_skip_leading_bytes_response_code \
  188. s3tests_boto3/functional/test_s3.py::test_ranged_request_return_trailing_bytes_response_code \
  189. s3tests_boto3/functional/test_s3.py::test_copy_object_ifmatch_good \
  190. s3tests_boto3/functional/test_s3.py::test_copy_object_ifnonematch_failed \
  191. s3tests_boto3/functional/test_s3.py::test_lifecycle_set \
  192. s3tests_boto3/functional/test_s3.py::test_lifecycle_get \
  193. s3tests_boto3/functional/test_s3.py::test_lifecycle_set_filter