Skip to content

Commit

Permalink
OSCI-6545 rev 1
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Stepanov <[email protected]>
  • Loading branch information
Andrei-Stepanov committed Mar 21, 2024
1 parent 166b93c commit 3ea1053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation_broker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ const schema_brew_build_complete = Joi.object({
* ^(supp-)?rhel-[89]\.\d+\.\d+(-alpha)?(-beta)?(-z)?(-llvm-toolset|-go-toolset|-rust-toolset|.+-stack)?-gate$
*/
const schema_brew_build_tag_is_gate_tag_brew_build = Joi.string().pattern(
/^(supp-)?rhel-([89]|10|11|12)\.\d+\.\d+(-alpha)?(-beta)?(-z)?(-llvm-toolset|-go-toolset|-rust-toolset|.+-stack)?-gate$/,
/^(supp-)?rhel-(8|9|10|11|12)\.\d+(\.\d+)?(-alpha)?(-beta)?(-z)?(-llvm-toolset|-go-toolset|-rust-toolset|.+-stack)?-gate$/,
);

/**
* ^(advanced-virt-[\w\.]+-)?(rhel-[89]\.\d+\.\d+(-alpha)?(-beta)?(-z)?-modules-gate)$
*/
const schema_brew_build_tag_is_gate_tag_redhat_module_build =
Joi.string().pattern(
/^(advanced-virt-[\w\.]+-)?(rhel-([89]|10|11|12)\.\d+\.\d+(-alpha)?(-beta)?(-z)?-modules-gate)$/,
/^(advanced-virt-[\w\.]+-)?(rhel-(8|9|10|11|12)\.\d+(\.\d+)?(-alpha)?(-beta)?(-z)?-modules-gate)$/,
);

export const schemaError = Joi.string().error(
Expand Down

0 comments on commit 3ea1053

Please sign in to comment.