-
Notifications
You must be signed in to change notification settings - Fork 626
HDDS-8450. Dedicated acceptance test suite for s3a #6458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
4e645cd
f0fc477
a34ecd9
5e0146d
add9ce2
3ffb95c
288fcd2
da2dc75
45be98e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #!/usr/bin/env bash | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you 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. | ||
|
|
||
| # shellcheck source=/dev/null | ||
| source "$COMPOSE_DIR/../testlib.sh" | ||
|
|
||
| start_docker_env | ||
|
|
||
| if [[ ${SECURITY_ENABLED} == "true" ]]; then | ||
| execute_robot_test s3g kinit.robot | ||
| # TODO get secret | ||
|
errose28 marked this conversation as resolved.
Outdated
|
||
| else | ||
| AWS_ACCESS_KEY_ID=s3a-contract | ||
| AWS_SECRET_ACCESS_KEY=unsecure | ||
| fi | ||
|
|
||
| OZONE_S3G_ADDRESS=http://localhost:9878 | ||
|
|
||
| execute_command_in_container s3g ozone sh bucket create --layout OBJECT_STORE "/s3v/obs-bucket" | ||
| execute_command_in_container s3g ozone sh bucket create --layout LEGACY "/s3v/leg-bucket" | ||
| execute_command_in_container s3g ozone sh bucket create --layout FILE_SYSTEM_OPTIMIZED "/s3v/fso-bucket" | ||
|
|
||
| export AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY OZONE_S3G_ADDRESS | ||
|
|
||
| for bucket in obs-bucket leg-bucket fso-bucket; do | ||
| execute_s3a_tests "$bucket" | ||
| done | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/usr/bin/env bash | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you 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. | ||
|
|
||
| #suite:s3a | ||
|
|
||
| COMPOSE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
| export COMPOSE_DIR | ||
|
|
||
| export SECURITY_ENABLED=false | ||
|
|
||
| source "$COMPOSE_DIR/../common/s3a-test.sh" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,8 @@ if [[ "${OZONE_WITH_COVERAGE}" == "true" ]]; then | |
| cp /tmp/jacoco-combined.exec "$SCRIPT_DIR"/result | ||
| fi | ||
|
|
||
| generate_report "acceptance" "${ALL_RESULT_DIR}" "${XUNIT_RESULT_DIR}" | ||
|
|
||
| if [[ "${OZONE_ACCEPTANCE_SUITE:-}" != "s3a" ]]; then | ||
| generate_report "acceptance" "${ALL_RESULT_DIR}" "${XUNIT_RESULT_DIR}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe add a comment or rename this method to clarify that this method only applies to tests run with Robot.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generalized
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although the overall job passes, there is still a failure because Looks like
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Side note, will this also be a problem if devs run
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for pointing out the problem with
When running
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, my question is more generally: what is the expected way to run all acceptance tests locally and manually? Ideally running Maybe that's ok for now and we can handle that in a follow up task, since there's probably not many people running all the tests this way.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Actually, they will also try to run We can avoid that by further separating the two kinds of tests.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm ok to handle this in a follow up task if you want. It works fine in CI and I don't think many people are running the tests this way.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Slightly changed |
||
| fi | ||
|
|
||
| exit $RESULT | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| <?xml version="1.0"?> | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you 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. | ||
| --> | ||
| <configuration> | ||
|
|
||
| <property> | ||
| <name>fs.s3a.endpoint</name> | ||
| <value>${test.fs.s3a.endpoint}</value> | ||
| </property> | ||
|
|
||
| <property> | ||
| <name>fs.contract.test.fs.s3a</name> | ||
| <value>${custom.fs.s3a.name}</value> | ||
| </property> | ||
|
|
||
| <property> | ||
| <name>test.fs.s3a.name</name> | ||
| <value>${custom.fs.s3a.name}</value> | ||
| </property> | ||
|
|
||
| <property> | ||
| <name>test.fs.s3a.sts.enabled</name> | ||
| <value>false</value> | ||
| </property> | ||
|
|
||
| <property> | ||
| <name>fs.s3a.path.style.access</name> | ||
| <value>true</value> | ||
| </property> | ||
|
|
||
| <property> | ||
| <name>fs.s3a.directory.marker.retention</name> | ||
| <value>keep</value> | ||
| </property> | ||
|
|
||
| </configuration> |
Uh oh!
There was an error while loading. Please reload this page.