-
Notifications
You must be signed in to change notification settings - Fork 227
[tests-only][full-ci] Test: Run sharingNgLinkShare suite in K8s #11851
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
base: master
Are you sure you want to change the base?
Conversation
b29f989 to
1cdeb96
Compare
571d51f to
70c89ea
Compare
.drone.star
Outdated
| (waitForClamavService() if params["antivirusNeeded"] else []) + | ||
| (waitForEmailService() if params["emailNeeded"] else []) + | ||
| (waitK3sCluster() + deployOcis() + waitForOcis(ocis_url = ocis_url) + ociswrapper() + waitForOciswrapper() if run_on_k8s else ocisServer(storage, extra_server_environment = params["extraServerEnvironment"], with_wrapper = True, tika_enabled = params["tikaNeeded"], volumes = ([stepVolumeOcisStorage]))) + | ||
| (waitK3sCluster() + prepareOcisDeployment() + setupOcisConfigMaps() + deployOcis() + waitForOcis(ocis_url = ocis_url) + ociswrapper() + waitForOciswrapper() if run_on_k8s else ocisServer(storage, extra_server_environment = params["extraServerEnvironment"], with_wrapper = True, tika_enabled = params["tikaNeeded"], volumes = ([stepVolumeOcisStorage]))) + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need this for core api tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prepareOcisDeployment()- Builds ociswrapper (for@env-configtests) and enables basic auth (forcoreApiAuthtests)setupOcisConfigMaps()- Creates theocisnamespace (required before Helm deployment)
251d117 to
8819392
Compare
8819392 to
f89da82
Compare
|
| # Only create banned password ConfigMap for sharingNgLinkShare suite | ||
| if suite_name == "sharingNgLinkShare": | ||
| commands.append( | ||
| "kubectl create configmap -n ocis sharing-banned-passwords --from-file=banned-password-list.txt=%s/tests/config/drone/banned-password-list.txt" % dirs["base"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we reuse existing configmap instead of creating a new sharing-banned-passwords?
sharing-banned-passwords-frontend
sharing-banned-passwords-sharing



Description
Changes Made:
1. Modified
.drone.star- Split deployment into 3 steps:prepareOcisDeployment()(golang image):sedpatches tosharing/deployment.yaml:setupOcisConfigMaps()(k3d image with kubectl):tests/config/drone/banned-password-list.txt/etc/ocis/config/drone/banned-password-list.txtin sharing poddeployOcis()(golang image with Helm):2. Modified
tests/acceptance/bootstrap/OcisConfigContext.php:/etc/ocis/to relative paths instead of using absolute paths from test container because: Test usesconfig/drone/banned-password-list.txt→ K8s mounts to/etc/ocis/config/drone/banned-password-list.txtPassing CI: https://drone.owncloud.com/owncloud/ocis/49533/18
https://drone.owncloud.com/owncloud/ocis/49644/15/10
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: