Skip to content

Commit

Permalink
[KOGITO-1212] Refactor CR & CLI tests (apache#185)
Browse files Browse the repository at this point in the history
* Refactored and factorized cr & cli steps/framework

* updates
  • Loading branch information
radtriste authored and MarianMacik committed Oct 3, 2023
1 parent a9468e1 commit 59763a7
Show file tree
Hide file tree
Showing 35 changed files with 625 additions and 683 deletions.
60 changes: 0 additions & 60 deletions bddframework/features/cli/cli_deploy_quarkus_service.feature

This file was deleted.

42 changes: 0 additions & 42 deletions bddframework/features/cli/cli_deploy_springboot_service.feature

This file was deleted.

20 changes: 0 additions & 20 deletions bddframework/features/cli/cli_install_dataindex.feature

This file was deleted.

47 changes: 0 additions & 47 deletions bddframework/features/cli/cli_install_jobsservice.feature

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions bddframework/features/cr/install_kogitoinfra.feature

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,33 +1,46 @@
@cr
@quarkus
Feature: CR: Deploy quarkus service
Feature: Deploy quarkus service

Background:
Given Namespace is created

Scenario Outline: CR deploy drools-quarkus-example service
Scenario Outline: Deploy drools-quarkus-example service without persistence
Given Kogito Operator is deployed

When Deploy quarkus example service "drools-quarkus-example" with native <native>
When "<installer>" deploy quarkus example service "drools-quarkus-example" with native "<native>"

Then Kogito application "drools-quarkus-example" has 1 pods running within <minutes> minutes
And HTTP GET request on service "drools-quarkus-example" with path "persons/all" is successful within 2 minutes

Examples: Non Native
| native | minutes |
| "disabled" | 10 |
@cr
Examples: CR Non Native
| installer | native | minutes |
| CR | false | 10 |

@cr
@native
Examples: Native
| native | minutes |
| "enabled" | 20 |
Examples: CR Native
| installer | native | minutes |
| CR | true | 20 |

@smoke
@cli
Examples: CLI Non Native
| installer | native | minutes |
| CLI | false | 10 |

@cli
@native
Examples: CLI Native
| installer | native | minutes |
| CLI | true | 20 |

#####

@persistence
Scenario Outline: CR deploy jbpm-quarkus-example service with persistence
Scenario Outline: Deploy jbpm-quarkus-example service with persistence
Given Kogito Operator is deployed with Infinispan operator
And Deploy quarkus example service "jbpm-quarkus-example" with persistence enabled and native <native>
And "<installer>" deploy quarkus example service "jbpm-quarkus-example" with native "<native>" and persistence
And Kogito application "jbpm-quarkus-example" has 1 pods running within <minutes> minutes
And HTTP GET request on service "jbpm-quarkus-example" with path "orders" is successful within 3 minutes
And HTTP POST request on service "jbpm-quarkus-example" with path "orders" and body:
Expand All @@ -47,25 +60,42 @@ Feature: CR: Deploy quarkus service

Then HTTP GET request on service "jbpm-quarkus-example" with path "orders" should return an array of size 1 within 2 minutes

Examples: Non Native
| native | minutes |
| "disabled" | 10 |
@cr
Examples: CR Non Native
| installer | native | minutes |
| CR | false | 10 |

# Disabled as long as https://issues.redhat.com/browse/KOGITO-842 is not solved
@disabled
@cr
@native
Examples:
| native | minutes |
| "enabled" | 20 |
Examples: CR Native
| installer | native | minutes |
| CR | true | 20 |

@cli
Examples: CLI Non Native
| installer | native | minutes |
| CLI | false | 10 |

# Disabled as long as https://issues.redhat.com/browse/KOGITO-842 is not solved
@disabled
@cli
@native
Examples: CLI Native
| installer | native | minutes |
| CLI | true | 20 |

#####

# Disabled as long as https://issues.redhat.com/browse/KOGITO-1163 and https://issues.redhat.com/browse/KOGITO-1166 is not solved
@disabled
Scenario Outline: CR deploy timer-quarkus-example service with Jobs service
@cr
@jobsservice
Scenario Outline: Deploy timer-quarkus-example service with Jobs service
Given Kogito Operator is deployed
And Deploy Kogito Jobs Service with 1 replicas
And Deploy quarkus example service "timer-quarkus-example" with native <native>
And "CR" install Kogito Jobs Service with 1 replicas
And "CR" deploy quarkus example service "timer-quarkus-example" with native "<native>"
And Kogito application "timer-quarkus-example" has 1 pods running within <minutes> minutes

When HTTP POST request on service "timer-quarkus-example" is successful within 2 minutes with path "timer" and body:
Expand All @@ -79,11 +109,11 @@ Feature: CR: Deploy quarkus service

Examples: Non Native
| native | minutes |
| "disabled" | 10 |
| false | 10 |

# Disabled as long as https://issues.redhat.com/browse/KOGITO-1179 is not solved
@disabled
@native
Examples:
Examples: Native
| native | minutes |
| "enabled" | 20 |
| true | 20 |
Loading

0 comments on commit 59763a7

Please sign in to comment.