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

[Fix] indentation of the robotframework keyword #1001

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

jstourac
Copy link
Member

This indentation bug resulted in the test failure:

==============================================================================
Install "Embedded Operator" RHODS                                     | FAIL |
No keyword with name '${result} = Set Variable' found.
------------------------------------------------------------------------------
Verify Embedded RHODS Installation                                    | PASS |
------------------------------------------------------------------------------
Tests.Deploy.Operators.Rhods Operator.Embedded Operator               | FAIL |
2 tests, 1 passed, 1 failed

@@ -71,7 +71,7 @@
${result} = Run Keyword And Return Status
... Oc Get kind=ClusterServiceVersion namespace=${namespace} name=${current_csv_name}
ELSE
${result} = Set Variable False
${result} = Set Variable False

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead

The assignment sign is not consistent within the file. Expected '=' but got ' =' instead
Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, let's fix it in the future eventually since there are more occurrences of this in the file.

Copy link
Contributor

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
373 0 0 373 100

@jstourac
Copy link
Member Author

jstourac commented Oct 31, 2023

Beautiful - now we can demand every PR to pass the dryrun!

Your repo -> Settings -> branches -> Branch protection rules -> Add rule - https://stackoverflow.com/questions/60776412/github-actions-is-there-a-way-to-make-it-mandatory-for-pull-request-to-merge

Can we do it?

@jstourac jstourac self-assigned this Oct 31, 2023
This indentation bug resulted in the test failure:

```
==============================================================================
Install "Embedded Operator" RHODS                                     | FAIL |
No keyword with name '${result} = Set Variable' found.
------------------------------------------------------------------------------
Verify Embedded RHODS Installation                                    | PASS |
------------------------------------------------------------------------------
Tests.Deploy.Operators.Rhods Operator.Embedded Operator               | FAIL |
2 tests, 1 passed, 1 failed
```
Copy link
Contributor

@nehachopra27 nehachopra27 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jstourac jstourac added the enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) label Nov 2, 2023
Copy link

sonarqubecloud bot commented Nov 2, 2023

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
0.0% 0.0% Duplication

@jgarciao jgarciao requested review from jgarciao and removed request for jgarciao November 2, 2023 09:27
@jgarciao jgarciao merged commit 46a5345 into red-hat-data-services:master Nov 2, 2023
@jstourac jstourac deleted the fixDruRun branch November 2, 2023 09:31
jgarciao added a commit to jgarciao/ods-ci that referenced this pull request Nov 6, 2023
…s#1001)

This indentation bug resulted in the test failure:

```
==============================================================================
Install "Embedded Operator" RHODS                                     | FAIL |
No keyword with name '${result} = Set Variable' found.
------------------------------------------------------------------------------
Verify Embedded RHODS Installation                                    | PASS |
------------------------------------------------------------------------------
Tests.Deploy.Operators.Rhods Operator.Embedded Operator               | FAIL |
2 tests, 1 passed, 1 failed
```

Co-authored-by: Jorge <[email protected]>
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Nov 28, 2023
…s#1001)

This indentation bug resulted in the test failure:

```
==============================================================================
Install "Embedded Operator" RHODS                                     | FAIL |
No keyword with name '${result} = Set Variable' found.
------------------------------------------------------------------------------
Verify Embedded RHODS Installation                                    | PASS |
------------------------------------------------------------------------------
Tests.Deploy.Operators.Rhods Operator.Embedded Operator               | FAIL |
2 tests, 1 passed, 1 failed
```

Co-authored-by: Jorge <[email protected]>
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Jan 2, 2024
…s#1001)

This indentation bug resulted in the test failure:

```
==============================================================================
Install "Embedded Operator" RHODS                                     | FAIL |
No keyword with name '${result} = Set Variable' found.
------------------------------------------------------------------------------
Verify Embedded RHODS Installation                                    | PASS |
------------------------------------------------------------------------------
Tests.Deploy.Operators.Rhods Operator.Embedded Operator               | FAIL |
2 tests, 1 passed, 1 failed
```

Co-authored-by: Jorge <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants