Skip to content

[tests-only][full-ci]Refactor closed issue related scenarios - #40392

Merged
SwikritiT merged 2 commits into
masterfrom
refactorExpectedFailureClosedIssue
Oct 18, 2022
Merged

SwikritiT merged 2 commits into
masterfrom
refactorExpectedFailureClosedIssue

Conversation

@amrita-shrestha

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

Copy link
Copy Markdown
Contributor

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, grgprarup and saw-jan 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 from a8daac9 to 161f70f Compare September 30, 2022 07:19
@amrita-shrestha
amrita-shrestha force-pushed the refactorExpectedFailureClosedIssue branch from 64a2be1 to 4fdfb71 Compare October 12, 2022 06:55
@amrita-shrestha
amrita-shrestha force-pushed the refactorExpectedFailureClosedIssue branch 2 times, most recently from be367d5 to 7f5f119 Compare October 12, 2022 10:39

@kiranparajuli589 kiranparajuli589 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

rest lgtm 👍

@kiranparajuli589 kiranparajuli589 left a comment

Copy link
Copy Markdown
Contributor

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 738f89b to a302f53 Compare October 18, 2022 06:09
@amrita-shrestha
amrita-shrestha force-pushed the refactorExpectedFailureClosedIssue branch from a302f53 to acda461 Compare October 18, 2022 08:05
@amrita-shrestha
amrita-shrestha force-pushed the refactorExpectedFailureClosedIssue branch from acda461 to eab5338 Compare October 18, 2022 09:15

@saw-jan saw-jan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud

Copy link
Copy Markdown

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

@SwikritiT
SwikritiT requested a review from phil-davis October 18, 2022 09:40

@grgprarup grgprarup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@SwikritiT
SwikritiT merged commit f969b50 into master Oct 18, 2022
@delete-merged-branch
delete-merged-branch Bot deleted the refactorExpectedFailureClosedIssue branch October 18, 2022 10:45
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