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][full-ci]Refactor closed issue related scenarios #40392

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

amrita-shrestha
Copy link
Contributor

@amrita-shrestha amrita-shrestha commented Sep 29, 2022

Description

This PR refactor scenario in closed issue to work

Point to note

  • robots.txt file is generated at the time of ocis build in ocis but ore-exist in the core. Currently, we cache ocis binary only. That's why this scenario
    Scenario: robots.txt file should be accessible
    passes in the core but fails in ocis (This step checks the content of the robot.txt file in the services/web/assets/robot.txt path which is not cached currently).In CI, we store ocis binary in the cache. This scenario requests for robots.txt content through an API request. It was decided that we can check the content of robots.txt by passing value from step. If in the future robots.txt value changes then this scenario starts to fail.

  • As discussed in can't access public link resources with spaces webdav API ocis#3085 (comment), public-link will not be implemented using space WebDAV so removing it

Related Issue

Motivation and Context

How Has This Been Tested?

  • locally

Screenshots (if appropriate):

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

@amrita-shrestha amrita-shrestha self-assigned this Sep 29, 2022
@amrita-shrestha amrita-shrestha changed the title Refactor expected failure closed issue [tests-only][full-ci]Refactor closed issue related scenarios Sep 29, 2022
@owncloud owncloud deleted a comment from update-docs bot Sep 29, 2022
@amrita-shrestha amrita-shrestha requested review from SagarGi, SwikritiT, saw-jan and grgprarup and removed request for SagarGi September 30, 2022 03:59
@amrita-shrestha amrita-shrestha marked this pull request as ready for review September 30, 2022 04:09
@amrita-shrestha amrita-shrestha force-pushed the refactorExpectedFailureClosedIssue branch 2 times, most recently from be367d5 to 7f5f119 Compare October 12, 2022 10:39
Copy link
Contributor

@kiranparajuli589 kiranparajuli589 left a comment

Choose a reason for hiding this comment

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

rest lgtm 👍

tests/acceptance/features/bootstrap/WebDav.php Outdated Show resolved Hide resolved
Copy link
Contributor

@kiranparajuli589 kiranparajuli589 left a comment

Choose a reason for hiding this comment

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

Download API may end with 200(Complete) or 206(Partial). for these two cases, the downloaded content is different. the scenarios tries to cope with both cases,

  • if status code is 206, the content check step for status 200 is skipped and vice versa
  • content check step requires the status because it differs with the HTTP status received in the download request.

Please refactor you code accordingly. The step words a is bit confusing (at least for me). Adding some comments may help others coming here.

@amrita-shrestha amrita-shrestha force-pushed the refactorExpectedFailureClosedIssue branch 2 times, most recently from 1fdb2ff to 738f89b Compare October 18, 2022 04:25
@amrita-shrestha amrita-shrestha force-pushed the refactorExpectedFailureClosedIssue branch from a302f53 to acda461 Compare October 18, 2022 08:05
Copy link
Member

@saw-jan saw-jan left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Oct 18, 2022

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

Copy link
Contributor

@grgprarup grgprarup left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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.

7 participants