-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add uats CI for bundle onm EKS (#276)
* Add tests for running UATs --------- Co-authored-by: Noha Ihab <[email protected]>
- Loading branch information
Showing
6 changed files
with
294 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"2.15": | ||
K8S_VERSION: "1.29" | ||
JUJU_VERSION: "3.4" | ||
JUJU_VERSION_WITH_PATCH: "3.4.4" | ||
UATS_BRANCH: "main" | ||
latest: | ||
K8S_VERSION: "1.29" | ||
JUJU_VERSION: "3.4" | ||
JUJU_VERSION_WITH_PATCH: "3.4.4" | ||
UATS_BRANCH: "main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
import sys | ||
import json | ||
|
||
# Parse the versions given as a comma-separated list and return a JSON array | ||
def parse_versions(input_versions): | ||
# Default version string if the input is empty | ||
if not input_versions: | ||
input_versions = "2.15,latest" | ||
else: | ||
# Remove whitespace between entries | ||
input_versions = input_versions.replace(" ", "") | ||
|
||
# Convert to JSON array | ||
json_array = json.dumps(input_versions.split(",")) | ||
return json_array | ||
|
||
if __name__ == "__main__": | ||
# Read the input of the Github Action from the environment variable | ||
input_versions = os.getenv('INPUT_BUNDLE_VERSION', '') | ||
json_array = parse_versions(input_versions) | ||
print(f"bundle_versions={json_array}") | ||
with open(os.environ['GITHUB_OUTPUT'], 'a') as output_file: | ||
output_file.write(f"bundle_versions={json_array}\n") | ||
|
Oops, something went wrong.