Skip to content
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

[full-ci][tests-only] Refactor test codes for parallel deployment tests #39603

Closed
wants to merge 5 commits into from

Conversation

saw-jan
Copy link
Member

@saw-jan saw-jan commented Dec 17, 2021

Description

Made some refactoring in acceptance test codes for testing parallel deployment environment

Related Issue

Related to owncloud/ocis#2387

Motivation and Context

How Has This Been Tested?

  • CI

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@saw-jan saw-jan marked this pull request as ready for review December 17, 2021 08:50
// oCIS cannot handle '/apps/testing' endpoints
// so those requests must be redirected to oC10 server
// change server to oC10 if the request url has `/apps/testing`
if (strpos($url, "/apps/testing") !== false) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: in CI we always happen t have the testing app in the apps folder. Running locally, it can be in apps-external. But that should not make a difference to the API endpoint! So this should be fine.

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I will cherry-pick into PR #39514 and remove the bonus empty line as I do it.

@phil-davis
Copy link
Contributor

@saw-jan I have cherry-picked this into #39514 branch acceptance-test-changes-waiting-2021-11

I suggest that you switch to using that branch for test development in oCIS. And if more changes are needed, branch off from there and make a PR to that branch.

@phil-davis
Copy link
Contributor

Merged to master in #39612

@phil-davis phil-davis closed this Dec 22, 2021
@saw-jan saw-jan deleted the changes-for-parallel-deploy branch March 11, 2022 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants