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

[Tests-Only] Simplify adminSetsServerParameterToUsingAPI #37585

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

phil-davis
Copy link
Contributor

Description

Acceptance test step adminSetsServerParameterToUsingAPI() has code to switch the "current user" to admin before calling modifyAppConfig(). But modifyAppConfig() already always uses the admin username anyway (because it asks the testing app to set the parameter, and the testing app only takes requests with admin auth).

There is no need to to switch the "current user" to admin and then switch it back. Simplify the code.

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

@codecov
Copy link

codecov bot commented Jun 24, 2020

Codecov Report

Merging #37585 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37585   +/-   ##
=========================================
  Coverage     64.70%   64.70%           
  Complexity    19353    19353           
=========================================
  Files          1281     1281           
  Lines         75611    75611           
  Branches       1333     1333           
=========================================
  Hits          48924    48924           
  Misses        26295    26295           
  Partials        392      392           
Flag Coverage Δ Complexity Δ
#javascript 54.03% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.88% <ø> (ø) 19353.00 <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39947cc...bb7e9ff. Read the comment docs.

@phil-davis phil-davis merged commit f570e04 into master Jun 24, 2020
@delete-merged-branch delete-merged-branch bot deleted the simplify-adminSetsServerParameterToUsingAPI branch June 24, 2020 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants