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 regression on assert command for tool tests #3088

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

rolnico
Copy link
Member

@rolnico rolnico commented Jun 28, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
Bug fix

What is the current behavior?
Due to #2777, a regression appeared: it was not anymore possible to use an assertCommand with an output and/or error message containing a regex since only strict string comparison were now available

What is the new behavior (if this is a feature change)?

  • The old assertCommand is back (but deprecated), adapted to the modifications from Refactor assert command #2777;
  • A new assertCommandMatchTextOrRegex method was introduced, doing the same thing but with a clearer name.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

rolnico added 2 commits June 28, 2024 10:49
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
@rolnico rolnico requested a review from olperr1 June 28, 2024 09:08
@rolnico rolnico self-assigned this Jun 28, 2024
rolnico added 2 commits June 28, 2024 11:20
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
Copy link

@olperr1 olperr1 merged commit 90e4c30 into main Jun 28, 2024
7 checks passed
@olperr1 olperr1 deleted the nro/fix_regression_assertCommand branch June 28, 2024 09:53
olperr1 pushed a commit that referenced this pull request Jul 1, 2024
* revert deletion of assertCommand method to avoid regression
* deprecate method

Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
(cherry picked from commit 90e4c30)
geofjamg pushed a commit that referenced this pull request Sep 18, 2024
* revert deletion of assertCommand method to avoid regression
* deprecate method

Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
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