-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adjust node_type check for get ami (#101)
- Loading branch information
Showing
6 changed files
with
36 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
""" | ||
|
||
__version__: str = "0.8.1" | ||
__version__: str = "0.8.2" |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "eksupgrade" | ||
version = "0.8.1" | ||
version = "0.8.2" | ||
description = "The Amazon EKS cluster upgrade utility" | ||
authors = ["EKS Upgrade Maintainers <[email protected]>"] | ||
readme = "README.md" | ||
|
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,20 @@ | ||
"""Test EKS Upgrade get image type specific logic.""" | ||
from typing import Optional | ||
|
||
import pytest | ||
|
||
from eksupgrade.src.eks_get_image_type import image_type | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"node_type,image_id", | ||
[ | ||
("windows server 2019 datacenter ", "ami-ekswin"), | ||
("windows server 2022", "ami-ekswin"), | ||
("amazon linux 2", "ami-ekslinux"), | ||
], | ||
) | ||
def test_image_type(ec2_client, region, node_type, image_id) -> None: | ||
"""Test the image_type method.""" | ||
ami_id: Optional[str] = image_type(node_type=node_type, image_id=image_id, region=region) | ||
assert ami_id |