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

support for logical AND in status check via 'mode' #1429

Merged
merged 8 commits into from
Mar 23, 2023

Conversation

shahzebsiddiqui
Copy link
Member

No description provided.

…o specify status check to be done as a 'or' 'and' which

will be a logical OR/AND.
add an example buildspec to demonstrate the example
…ks. We assign all status check into a dictionary as a lookup table.

Refactored the codebase for status check logic and added support for logical AND when using 'mode: and'
@shahzebsiddiqui shahzebsiddiqui linked an issue Mar 22, 2023 that may be closed by this pull request
# check regex against output or error stream based on regular expression
# defined in status property. Return value is a boolean
regex_match = regex_check(self)
# returncode_match is boolean to check if reference returncode matches return code from test
Copy link
Collaborator

@prathmesh4321 prathmesh4321 Mar 23, 2023

Choose a reason for hiding this comment

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

@shahzebsiddiqui You can remove this comment since we are not using the variable "returncode_match".

Copy link
Collaborator

@prathmesh4321 prathmesh4321 left a comment

Choose a reason for hiding this comment

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

@shahzebsiddiqui Please take a look at the above comment. Other than this the PR looks good to me !

@shahzebsiddiqui shahzebsiddiqui merged commit a36c67d into devel Mar 23, 2023
@shahzebsiddiqui shahzebsiddiqui deleted the status_check_mode branch March 23, 2023 17:04
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.

status check support with logical AND
3 participants