diff --git a/tests/commands/abort_multipart_upload.sh b/tests/commands/abort_multipart_upload.sh index f40b753..3fb255f 100644 --- a/tests/commands/abort_multipart_upload.sh +++ b/tests/commands/abort_multipart_upload.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + abort_multipart_upload() { record_command "abort-multipart-upload" "client:s3api" if [ $# -ne 3 ]; then diff --git a/tests/commands/complete_multipart_upload.sh b/tests/commands/complete_multipart_upload.sh index 47f4e96..c10657a 100644 --- a/tests/commands/complete_multipart_upload.sh +++ b/tests/commands/complete_multipart_upload.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + complete_multipart_upload() { if [[ $# -ne 4 ]]; then log 2 "'complete multipart upload' command requires bucket, key, upload ID, parts list" diff --git a/tests/commands/copy_object.sh b/tests/commands/copy_object.sh index 233490a..2829765 100644 --- a/tests/commands/copy_object.sh +++ b/tests/commands/copy_object.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + copy_object() { if [ $# -ne 4 ]; then echo "copy object command requires command type, source, bucket, key" diff --git a/tests/commands/create_bucket.sh b/tests/commands/create_bucket.sh index cdd31ef..e046d53 100644 --- a/tests/commands/create_bucket.sh +++ b/tests/commands/create_bucket.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/report.sh # create an AWS bucket diff --git a/tests/commands/create_multipart_upload.sh b/tests/commands/create_multipart_upload.sh index 594eec8..a3468db 100644 --- a/tests/commands/create_multipart_upload.sh +++ b/tests/commands/create_multipart_upload.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # initialize a multipart upload # params: bucket, key # return 0 for success, 1 for failure diff --git a/tests/commands/delete_bucket.sh b/tests/commands/delete_bucket.sh index 5eb0170..9c7ddb9 100644 --- a/tests/commands/delete_bucket.sh +++ b/tests/commands/delete_bucket.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # param: bucket name # fail if params are bad, or bucket exists and user is unable to delete bucket delete_bucket() { diff --git a/tests/commands/delete_bucket_policy.sh b/tests/commands/delete_bucket_policy.sh index fa83940..92ad93a 100644 --- a/tests/commands/delete_bucket_policy.sh +++ b/tests/commands/delete_bucket_policy.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + delete_bucket_policy() { record_command "delete-bucket-policy" "client:$1" if [[ $# -ne 2 ]]; then diff --git a/tests/commands/delete_bucket_tagging.sh b/tests/commands/delete_bucket_tagging.sh index 7bab807..7846de1 100644 --- a/tests/commands/delete_bucket_tagging.sh +++ b/tests/commands/delete_bucket_tagging.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + delete_bucket_tagging() { record_command "delete-bucket-tagging" "client:$1" if [ $# -ne 2 ]; then diff --git a/tests/commands/delete_object.sh b/tests/commands/delete_object.sh index 311b3f1..64b400c 100644 --- a/tests/commands/delete_object.sh +++ b/tests/commands/delete_object.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # params: client, bucket, key delete_object() { log 6 "delete_object" diff --git a/tests/commands/delete_object_tagging.sh b/tests/commands/delete_object_tagging.sh index 1c4a23f..c642ced 100644 --- a/tests/commands/delete_object_tagging.sh +++ b/tests/commands/delete_object_tagging.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + delete_object_tagging() { record_command "delete-object-tagging" "client:$1" if [[ $# -ne 3 ]]; then diff --git a/tests/commands/delete_objects.sh b/tests/commands/delete_objects.sh index cb9ad52..b540282 100644 --- a/tests/commands/delete_objects.sh +++ b/tests/commands/delete_objects.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + delete_objects() { record_command "delete-objects" "client:s3api" if [[ $# -ne 3 ]]; then diff --git a/tests/commands/get_bucket_acl.sh b/tests/commands/get_bucket_acl.sh index c4edc4c..9705b44 100644 --- a/tests/commands/get_bucket_acl.sh +++ b/tests/commands/get_bucket_acl.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_bucket_acl() { record_command "get-bucket-acl" "client:$1" if [ $# -ne 2 ]; then diff --git a/tests/commands/get_bucket_location.sh b/tests/commands/get_bucket_location.sh index 37fcb75..cffaf21 100644 --- a/tests/commands/get_bucket_location.sh +++ b/tests/commands/get_bucket_location.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_bucket_location() { record_command "get-bucket-location" "client:$1" if [[ $# -ne 2 ]]; then diff --git a/tests/commands/get_bucket_ownership_controls.sh b/tests/commands/get_bucket_ownership_controls.sh index 0258579..0cdd87d 100644 --- a/tests/commands/get_bucket_ownership_controls.sh +++ b/tests/commands/get_bucket_ownership_controls.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_bucket_ownership_controls() { record_command "get-bucket-ownership-controls" "client:s3api" if [[ $# -ne 1 ]]; then diff --git a/tests/commands/get_bucket_policy.sh b/tests/commands/get_bucket_policy.sh index ffbd92e..35172be 100644 --- a/tests/commands/get_bucket_policy.sh +++ b/tests/commands/get_bucket_policy.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_bucket_policy() { record_command "get-bucket-policy" "client:$1" if [[ $# -ne 2 ]]; then diff --git a/tests/commands/get_bucket_tagging.sh b/tests/commands/get_bucket_tagging.sh index 6c3cf61..af634f4 100644 --- a/tests/commands/get_bucket_tagging.sh +++ b/tests/commands/get_bucket_tagging.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # params: client, bucket # export 'tags' on success, return 1 for error get_bucket_tagging() { diff --git a/tests/commands/get_bucket_versioning.sh b/tests/commands/get_bucket_versioning.sh index c3f9c80..4ae3c61 100644 --- a/tests/commands/get_bucket_versioning.sh +++ b/tests/commands/get_bucket_versioning.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_bucket_versioning() { record_command "get-bucket-versioning" "client:s3api" if [[ $# -ne 2 ]]; then diff --git a/tests/commands/get_object.sh b/tests/commands/get_object.sh index f63e7c2..e8936b7 100644 --- a/tests/commands/get_object.sh +++ b/tests/commands/get_object.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_object() { record_command "get-object" "client:$1" if [ $# -ne 4 ]; then diff --git a/tests/commands/get_object_attributes.sh b/tests/commands/get_object_attributes.sh index 8beb347..0a1cf59 100644 --- a/tests/commands/get_object_attributes.sh +++ b/tests/commands/get_object_attributes.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_object_attributes() { record_command "get-object-attributes" "client:s3api" if [[ $# -ne 2 ]]; then diff --git a/tests/commands/get_object_legal_hold.sh b/tests/commands/get_object_legal_hold.sh index e4fd8f5..a691c24 100644 --- a/tests/commands/get_object_legal_hold.sh +++ b/tests/commands/get_object_legal_hold.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_object_legal_hold() { if [[ $# -ne 2 ]]; then log 2 "'get object legal hold' command requires bucket, key" diff --git a/tests/commands/get_object_lock_configuration.sh b/tests/commands/get_object_lock_configuration.sh index 72b43c5..c8c7258 100644 --- a/tests/commands/get_object_lock_configuration.sh +++ b/tests/commands/get_object_lock_configuration.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_object_lock_configuration() { record_command "get-object-lock-configuration" "client:s3api" if [[ $# -ne 1 ]]; then diff --git a/tests/commands/get_object_retention.sh b/tests/commands/get_object_retention.sh index 7cc27b4..82fc122 100644 --- a/tests/commands/get_object_retention.sh +++ b/tests/commands/get_object_retention.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_object_retention() { record_command "get-object-retention" "client:s3api" if [[ $# -ne 2 ]]; then diff --git a/tests/commands/get_object_tagging.sh b/tests/commands/get_object_tagging.sh index 613858a..c07b956 100644 --- a/tests/commands/get_object_tagging.sh +++ b/tests/commands/get_object_tagging.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + get_object_tagging() { record_command "get-object-tagging" "client:$1" if [ $# -ne 3 ]; then diff --git a/tests/commands/head_bucket.sh b/tests/commands/head_bucket.sh index 19531a2..cbf62c6 100644 --- a/tests/commands/head_bucket.sh +++ b/tests/commands/head_bucket.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/report.sh # params: client, bucket name diff --git a/tests/commands/head_object.sh b/tests/commands/head_object.sh index 751ddf2..9b2a95d 100644 --- a/tests/commands/head_object.sh +++ b/tests/commands/head_object.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + head_object() { record_command "head-object" "client:$1" if [ $# -ne 3 ]; then diff --git a/tests/commands/list_buckets.sh b/tests/commands/list_buckets.sh index 4acc4d8..0562b8e 100644 --- a/tests/commands/list_buckets.sh +++ b/tests/commands/list_buckets.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + list_buckets() { log 6 "list_buckets" record_command "list-buckets" "client:$1" diff --git a/tests/commands/list_multipart_uploads.sh b/tests/commands/list_multipart_uploads.sh index 0dd948e..434ead2 100644 --- a/tests/commands/list_multipart_uploads.sh +++ b/tests/commands/list_multipart_uploads.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + list_multipart_uploads() { record_command "list-multipart-uploads" "client:s3api" if [[ $# -ne 1 ]]; then diff --git a/tests/commands/list_object_versions.sh b/tests/commands/list_object_versions.sh index d72fca3..ef4affd 100644 --- a/tests/commands/list_object_versions.sh +++ b/tests/commands/list_object_versions.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + list_object_versions() { record_command "list-object-versions" "client:s3api" if [[ $# -ne 1 ]]; then diff --git a/tests/commands/list_objects.sh b/tests/commands/list_objects.sh index bbef2a1..3c8ecda 100644 --- a/tests/commands/list_objects.sh +++ b/tests/commands/list_objects.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # args: client, bucket name # return 0 if able to list, 1 if not list_objects() { diff --git a/tests/commands/list_objects_v2.sh b/tests/commands/list_objects_v2.sh index dd2799f..ecfd468 100644 --- a/tests/commands/list_objects_v2.sh +++ b/tests/commands/list_objects_v2.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # list objects in bucket, v2 # param: bucket # export objects on success, return 1 for failure diff --git a/tests/commands/list_parts.sh b/tests/commands/list_parts.sh index c351d04..752ac96 100644 --- a/tests/commands/list_parts.sh +++ b/tests/commands/list_parts.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + list_parts() { if [[ $# -ne 3 ]]; then log 2 "'list-parts' command requires bucket, key, upload ID" diff --git a/tests/commands/put_bucket_acl.sh b/tests/commands/put_bucket_acl.sh index 27f5717..0d80106 100644 --- a/tests/commands/put_bucket_acl.sh +++ b/tests/commands/put_bucket_acl.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/util_file.sh put_bucket_acl_s3api() { diff --git a/tests/commands/put_bucket_ownership_controls.sh b/tests/commands/put_bucket_ownership_controls.sh index 889cca2..5b94c0f 100644 --- a/tests/commands/put_bucket_ownership_controls.sh +++ b/tests/commands/put_bucket_ownership_controls.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # fail if unable to put bucket ownership controls put_bucket_ownership_controls() { log 6 "put_bucket_ownership_controls" diff --git a/tests/commands/put_bucket_policy.sh b/tests/commands/put_bucket_policy.sh index a8c77ad..f6b7214 100644 --- a/tests/commands/put_bucket_policy.sh +++ b/tests/commands/put_bucket_policy.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_bucket_policy() { record_command "put-bucket-policy" "client:$1" if [[ $# -ne 3 ]]; then diff --git a/tests/commands/put_bucket_tagging.sh b/tests/commands/put_bucket_tagging.sh index 1be73f1..9f89e05 100644 --- a/tests/commands/put_bucket_tagging.sh +++ b/tests/commands/put_bucket_tagging.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_bucket_tagging() { log 6 "put_bucket_tagging" if [ $# -ne 4 ]; then diff --git a/tests/commands/put_bucket_versioning.sh b/tests/commands/put_bucket_versioning.sh index 377fb51..a8881cc 100644 --- a/tests/commands/put_bucket_versioning.sh +++ b/tests/commands/put_bucket_versioning.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_bucket_versioning() { record_command "put-bucket-versioning" "client:s3api" if [[ $# -ne 3 ]]; then diff --git a/tests/commands/put_object.sh b/tests/commands/put_object.sh index 83f49ae..258e271 100644 --- a/tests/commands/put_object.sh +++ b/tests/commands/put_object.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/report.sh put_object() { diff --git a/tests/commands/put_object_legal_hold.sh b/tests/commands/put_object_legal_hold.sh index dda27bf..e1f25a8 100644 --- a/tests/commands/put_object_legal_hold.sh +++ b/tests/commands/put_object_legal_hold.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_object_legal_hold() { record_command "put-object-legal-hold" "client:s3api" if [[ $# -ne 3 ]]; then diff --git a/tests/commands/put_object_lock_configuration.sh b/tests/commands/put_object_lock_configuration.sh index 87ac782..6f92d76 100644 --- a/tests/commands/put_object_lock_configuration.sh +++ b/tests/commands/put_object_lock_configuration.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_object_lock_configuration() { if [[ $# -ne 4 ]]; then log 2 "'put-object-lock-configuration' command requires bucket name, enabled, mode, period" diff --git a/tests/commands/put_object_retention.sh b/tests/commands/put_object_retention.sh index ab5396e..6f50300 100644 --- a/tests/commands/put_object_retention.sh +++ b/tests/commands/put_object_retention.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_object_retention() { record_command "put-object-retention" "client:s3api" if [[ $# -ne 4 ]]; then diff --git a/tests/commands/put_object_tagging.sh b/tests/commands/put_object_tagging.sh index d54c1ea..7ba84c7 100644 --- a/tests/commands/put_object_tagging.sh +++ b/tests/commands/put_object_tagging.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_object_tagging() { if [ $# -ne 5 ]; then log 2 "'put-object-tagging' command missing command type, object name, file, key, and/or value" diff --git a/tests/commands/put_public_access_block.sh b/tests/commands/put_public_access_block.sh index 676999b..6f4777d 100644 --- a/tests/commands/put_public_access_block.sh +++ b/tests/commands/put_public_access_block.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + put_public_access_block() { if [[ $# -ne 2 ]]; then log 2 "'put_public_access_block' command requires bucket, access block list" diff --git a/tests/commands/select_object_content.sh b/tests/commands/select_object_content.sh index 6c9ef3d..05671b1 100644 --- a/tests/commands/select_object_content.sh +++ b/tests/commands/select_object_content.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + select_object_content() { record_command "select-object-content" "client:s3api" if [[ $# -ne 7 ]]; then diff --git a/tests/commands/upload_part.sh b/tests/commands/upload_part.sh index 8b0aacd..e2ceded 100644 --- a/tests/commands/upload_part.sh +++ b/tests/commands/upload_part.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + upload_part() { if [ $# -ne 5 ]; then log 2 "upload multipart part function must have bucket, key, upload ID, file name, part number" diff --git a/tests/commands/upload_part_copy.sh b/tests/commands/upload_part_copy.sh index 1a35821..9f57291 100644 --- a/tests/commands/upload_part_copy.sh +++ b/tests/commands/upload_part_copy.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + upload_part_copy() { record_command "upload-part-copy" "client:s3api" if [ $# -ne 5 ]; then diff --git a/tests/env.sh b/tests/env.sh index c906d4f..bd59a7b 100644 --- a/tests/env.sh +++ b/tests/env.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + load ./bats-support/load load ./bats-assert/load diff --git a/tests/logger.sh b/tests/logger.sh index 7d65a8e..6365a2e 100644 --- a/tests/logger.sh +++ b/tests/logger.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # levels: 1 - crit, 2 - err, 3 - warn, 4 - info, 5 - debug, 6 - trace export LOG_LEVEL_INT=4 diff --git a/tests/remove_static.sh b/tests/remove_static.sh index a3f9d43..0a77255 100755 --- a/tests/remove_static.sh +++ b/tests/remove_static.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/setup.sh source ./tests/util.sh diff --git a/tests/report.sh b/tests/report.sh index f026c10..01049cf 100644 --- a/tests/report.sh +++ b/tests/report.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + check_and_create_database() { # Define SQL commands to create a table SQL_CREATE_TABLE="CREATE TABLE IF NOT EXISTS entries ( diff --git a/tests/run.sh b/tests/run.sh index 2043c7f..a1df0c4 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # Function to display help information show_help() { echo "Usage: $0 [option...]" diff --git a/tests/run_all.sh b/tests/run_all.sh index 80b62a9..07de901 100755 --- a/tests/run_all.sh +++ b/tests/run_all.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + if [[ -z "$VERSITYGW_TEST_ENV" ]] && [[ $BYPASS_ENV_FILE != "true" ]]; then echo "Error: VERSITYGW_TEST_ENV parameter must be set, or BYPASS_ENV_FILE must be set to true" exit 1 diff --git a/tests/setup.sh b/tests/setup.sh index f2b3a15..2894947 100644 --- a/tests/setup.sh +++ b/tests/setup.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/env.sh source ./tests/report.sh source ./tests/setup_mc.sh diff --git a/tests/setup_mc.sh b/tests/setup_mc.sh index 9cbec37..1fb734d 100644 --- a/tests/setup_mc.sh +++ b/tests/setup_mc.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + check_for_alias() { local alias_result aliases=$(mc alias list) diff --git a/tests/setup_static.sh b/tests/setup_static.sh index 665f958..b0f09dc 100755 --- a/tests/setup_static.sh +++ b/tests/setup_static.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/setup.sh source ./tests/util.sh source ./tests/commands/create_bucket.sh diff --git a/tests/teardown_static.sh b/tests/teardown_static.sh index 0705352..5158851 100755 --- a/tests/teardown_static.sh +++ b/tests/teardown_static.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/setup.sh source ./tests/util.sh diff --git a/tests/test_aws_root_inner.sh b/tests/test_aws_root_inner.sh index 048ed32..4c6bf85 100755 --- a/tests/test_aws_root_inner.sh +++ b/tests/test_aws_root_inner.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/commands/delete_objects.sh source ./tests/commands/list_objects_v2.sh source ./tests/commands/list_parts.sh diff --git a/tests/test_common.sh b/tests/test_common.sh index 4ed364a..8e1793a 100644 --- a/tests/test_common.sh +++ b/tests/test_common.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/setup.sh source ./tests/util.sh source ./tests/util_file.sh diff --git a/tests/test_mc.sh b/tests/test_mc.sh index 084d571..2f6cfc6 100755 --- a/tests/test_mc.sh +++ b/tests/test_mc.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/test_common.sh source ./tests/setup.sh source ./tests/util_bucket_create.sh diff --git a/tests/test_s3.sh b/tests/test_s3.sh index 1edb43c..b34b0f3 100755 --- a/tests/test_s3.sh +++ b/tests/test_s3.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/test_common.sh source ./tests/util_file.sh diff --git a/tests/test_s3api.sh b/tests/test_s3api.sh index ba262b8..64b2473 100755 --- a/tests/test_s3api.sh +++ b/tests/test_s3api.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + load ./bats-support/load load ./bats-assert/load diff --git a/tests/test_s3api_policy.sh b/tests/test_s3api_policy.sh index 1a9cb93..468eca4 100644 --- a/tests/test_s3api_policy.sh +++ b/tests/test_s3api_policy.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/util_multipart.sh source ./tests/util_tags.sh source ./tests/commands/get_bucket_tagging.sh diff --git a/tests/test_s3cmd.sh b/tests/test_s3cmd.sh index f68bb12..c0f451f 100755 --- a/tests/test_s3cmd.sh +++ b/tests/test_s3cmd.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/setup.sh source ./tests/test_common.sh source ./tests/util.sh diff --git a/tests/test_user_aws.sh b/tests/test_user_aws.sh index f96b1b1..e58c3b2 100755 --- a/tests/test_user_aws.sh +++ b/tests/test_user_aws.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/test_user_common.sh source ./tests/util_users.sh source ./tests/commands/get_object.sh diff --git a/tests/test_user_common.sh b/tests/test_user_common.sh index 8a03fd9..82dd4c0 100755 --- a/tests/test_user_common.sh +++ b/tests/test_user_common.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/setup.sh source ./tests/util_users.sh source ./tests/util.sh diff --git a/tests/test_user_s3cmd.sh b/tests/test_user_s3cmd.sh index 838af32..237d0eb 100755 --- a/tests/test_user_s3cmd.sh +++ b/tests/test_user_s3cmd.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/test_user_common.sh export RUN_S3CMD=true diff --git a/tests/util.sh b/tests/util.sh index 36ba9a6..097e913 100644 --- a/tests/util.sh +++ b/tests/util.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/util_bucket_create.sh source ./tests/util_mc.sh source ./tests/logger.sh diff --git a/tests/util_aws.sh b/tests/util_aws.sh index 5c7cdca..e2ff67b 100644 --- a/tests/util_aws.sh +++ b/tests/util_aws.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + abort_all_multipart_uploads() { if [[ $# -ne 1 ]]; then echo "abort all multipart uploads command missing bucket name" diff --git a/tests/util_bucket_create.sh b/tests/util_bucket_create.sh index 2193847..6914f00 100644 --- a/tests/util_bucket_create.sh +++ b/tests/util_bucket_create.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/util_mc.sh source ./tests/logger.sh diff --git a/tests/util_config.sh b/tests/util_config.sh index 751c3c2..a3b6c74 100644 --- a/tests/util_config.sh +++ b/tests/util_config.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + setup_two_buckets() { setup_bucket "$BUCKET_ONE_NAME" || local setup_result_one=$? if [[ $setup_result_one -eq 0 ]]; then diff --git a/tests/util_file.sh b/tests/util_file.sh index 5b45b6c..0ba1e6b 100644 --- a/tests/util_file.sh +++ b/tests/util_file.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bats +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/logger.sh # create a test file and export folder. do so in temp folder diff --git a/tests/util_lock_config.sh b/tests/util_lock_config.sh index e3413bb..7893d9d 100644 --- a/tests/util_lock_config.sh +++ b/tests/util_lock_config.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # params: bucket name, expected enabled value, expected governance mode, expected days # return 0 for success, 1 for failure get_and_check_object_lock_config() { diff --git a/tests/util_mc.sh b/tests/util_mc.sh index 517d65d..045861c 100644 --- a/tests/util_mc.sh +++ b/tests/util_mc.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # use mc tool to delete bucket and contents # params: bucket name # return 0 for success, 1 for failure diff --git a/tests/util_multipart.sh b/tests/util_multipart.sh index 7bdc361..86fa61d 100644 --- a/tests/util_multipart.sh +++ b/tests/util_multipart.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + create_upload_and_test_parts_listing() { if [ $# -ne 2 ]; then log 2 "'create_upload_and_test_parts_listing' requires test file, policy_file" diff --git a/tests/util_policy.sh b/tests/util_policy.sh index 5dad18d..8ab4323 100644 --- a/tests/util_policy.sh +++ b/tests/util_policy.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + check_for_empty_policy() { if [[ $# -ne 2 ]]; then echo "check for empty policy command requires command type, bucket name" diff --git a/tests/util_tags.sh b/tests/util_tags.sh index 4725abf..b09ac4c 100644 --- a/tests/util_tags.sh +++ b/tests/util_tags.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # params: username, password, bucket, expected key, expected value # return 0 for success, 1 for failure get_and_check_bucket_tags_with_user() { diff --git a/tests/util_users.sh b/tests/util_users.sh index 9cb5b00..945ebc5 100644 --- a/tests/util_users.sh +++ b/tests/util_users.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + setup_user() { log 6 "setup_user" if [[ $# -ne 3 ]]; then diff --git a/tests/versity.sh b/tests/versity.sh index f23a20c..a4c86ad 100644 --- a/tests/versity.sh +++ b/tests/versity.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2024 Versity Software +# This file is licensed under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + source ./tests/util_file.sh start_versity_process() {