Skip to content

[Tests-Only] Implement guzzle6 in acceptance tests#36999

Merged
individual-it merged 1 commit into
masterfrom
use-guzzle6-for-acceptance-tests
Feb 24, 2020
Merged

[Tests-Only] Implement guzzle6 in acceptance tests#36999
individual-it merged 1 commit into
masterfrom
use-guzzle6-for-acceptance-tests

Conversation

@phil-davis

@phil-davis phil-davis commented Feb 21, 2020

Copy link
Copy Markdown
Contributor

Description

These acceptance test changes have been taken from old Guzzle PR #32537 and then worked on to work in the current core master. One of the main things to re-engineer was the "batch mode" creation of users by the acceptance tests. That had been added in master using Guzzle5 batch features, which changed for Guzzzle6.

This is a squashed version of PR #36946 - I left that PR with 12 commits just in case I need to go back and pick out parts of the changes that I did along the way getting this to work.

The main things here are:

  1. In vendor-bin/behat/composer.json change guzzlehttp/guzzle from 5.3 to 6.5

When this is merged, the apps will also need to use guzzle6 with behat for acceptance tests. So every app that has acceptance tests will need to have guzzle changed to 6.5 in vendor-bin/behat/composer.json - therefore the timing of the core merge here needs to be done when we can straight away submit the needed app PRs.

owncloud/activity#837 contains a demonstration that it works for the activity app.

Related Issue

How Has This Been Tested?

CI and lots of local acceptance test runs

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

codecov Bot commented Feb 21, 2020

Copy link
Copy Markdown

Codecov Report

Merging #36999 into master will decrease coverage by 0.33%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #36999      +/-   ##
============================================
- Coverage     64.75%   64.41%   -0.34%     
  Complexity    19138    19138              
============================================
  Files          1270     1270              
  Lines         74912    74877      -35     
  Branches       1329     1329              
============================================
- Hits          48507    48231     -276     
- Misses        26014    26255     +241     
  Partials        391      391              
Flag Coverage Δ Complexity Δ
#javascript 54.17% <ø> (ø) 0.00 <ø> (ø) ⬆️
#phpunit 65.55% <ø> (-0.20%) 19138.00 <ø> (ø)
Impacted Files Coverage Δ Complexity Δ
lib/private/DB/PostgreSqlMigrator.php 0.00% <0.00%> (-100.00%) 4.00% <0.00%> (ø%)
...ilder/ExpressionBuilder/PgSqlExpressionBuilder.php 0.00% <0.00%> (-88.89%) 3.00% <0.00%> (ø%)
...ivate/Files/ObjectStore/HomeObjectStoreStorage.php 0.00% <0.00%> (-86.67%) 8.00% <0.00%> (ø%)
lib/private/DB/AdapterPgSql.php 0.00% <0.00%> (-85.72%) 2.00% <0.00%> (ø%)
lib/private/Files/Storage/Wrapper/Availability.php 10.38% <0.00%> (-40.26%) 80.00% <0.00%> (ø%)
lib/private/Files/ObjectStore/NoopScanner.php 68.75% <0.00%> (-18.75%) 6.00% <0.00%> (ø%)
lib/private/Preview/MP3.php 45.16% <0.00%> (-12.91%) 13.00% <0.00%> (ø%)
lib/private/Autoloader.php 80.48% <0.00%> (-12.20%) 20.00% <0.00%> (ø%)
...b/private/Files/ObjectStore/ObjectStoreStorage.php 66.20% <0.00%> (-11.04%) 105.00% <0.00%> (ø%)
lib/private/App/Platform.php 21.73% <0.00%> (-8.70%) 9.00% <0.00%> (ø%)
... and 19 more

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 0cddc94...2336aa8. Read the comment docs.

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