Skip to content

Commit

Permalink
e2e: Do not expect default bundle in config file
Browse files Browse the repository at this point in the history
If user provides a bundle, it will be recorded in config (unless they
place it in cache dir). Otherwise it will not be recorded in
config. Account for this in e2e checks.
  • Loading branch information
jsliacan authored and anjannath committed Jul 10, 2023
1 parent d801b78 commit 0ab0245
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,9 @@ func RemoveBundleFromCache(presetName string) error {
func ConfigFileInCRCHomeContainsKeyMatchingValue(format string, configFile string, condition string, keyPath string, expectedValue string) error {

if expectedValue == "current bundle" {
if !userProvidedBundle {
return ConfigFileInCRCHomeContainsKey("JSON", "crc.json", "does not contain", "bundle")
}
expectedValue = fmt.Sprintf(".*%s", bundleName)
}
configPath := filepath.Join(util.CRCHome, configFile)
Expand Down

0 comments on commit 0ab0245

Please sign in to comment.