Skip to content

Commit

Permalink
[KOGITO-8961][KSW-Operator] Split use case and test examples
Browse files Browse the repository at this point in the history
Signed-off-by: desmax74 <mdessi@redhat.com>
  • Loading branch information
desmax74 committed May 30, 2023
1 parent b250394 commit 6550f69
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,15 @@ func GetBaseServerlessWorkflowWithProdProfile(namespace string) *operatorapi.Kog
}

func GetBasePlatformWithCacheInReadyPhase(namespace string) *operatorapi.KogitoServerlessPlatform {
platform := GetKogitoServerlessPlatformInReadyPhase("../../config/samples/"+KogitoServerlessPlatformYamlCR, namespace)
buildStrategyOptions := map[string]string{"KanikoBuildCacheEnabled": "true"}
platform.Spec.BuildPlatform.BuildStrategyOptions = buildStrategyOptions
return platform
return getBasePlatformWithCacheInReadyPhaseNoPackage("../../config/samples/", namespace)
}

func GetBasePlatformWithCacheInReadyPhaseNoPackage(namespace string) *operatorapi.KogitoServerlessPlatform {
platform := GetKogitoServerlessPlatformInReadyPhase("../config/samples/"+KogitoServerlessPlatformYamlCR, namespace)
buildStrategyOptions := map[string]string{"KanikoBuildCacheEnabled": "true"}
platform.Spec.BuildPlatform.BuildStrategyOptions = buildStrategyOptions
return platform
return getBasePlatformWithCacheInReadyPhaseNoPackage("../config/samples/", namespace)
}

func GetBasePlatformWithCacheAndCustomizationInReadyPhase(namespace string) *operatorapi.KogitoServerlessPlatform {
platform := GetKogitoServerlessPlatformInReadyPhase("../../config/samples/"+KogitoServerlessPlatformWithCacheYamlCR, namespace)
func getBasePlatformWithCacheInReadyPhaseNoPackage(path string, namespace string) *operatorapi.KogitoServerlessPlatform {
platform := GetKogitoServerlessPlatformInReadyPhase(path+KogitoServerlessPlatformYamlCR, namespace)
buildStrategyOptions := map[string]string{"KanikoBuildCacheEnabled": "true"}
platform.Spec.BuildPlatform.BuildStrategyOptions = buildStrategyOptions
return platform
Expand Down

0 comments on commit 6550f69

Please sign in to comment.