-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from release-engineering/fixdelete
Fix and Improve the DeleteCommand
- Loading branch information
Showing
12 changed files
with
82 additions
and
41 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
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
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,15 +1,17 @@ | ||
[ INFO] Loading items from pub:https://fakepub.com?task-id=12345 | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ DEBUG] Marking AMI ami-rhcos1 as invisible on RHSM for the provider ACN. | ||
[ DEBUG] Listing all images from rhsm, https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ DEBUG] Searching for product sample_product_HOURLY for provider ACN in rhsm | ||
[ DEBUG] Fetching product from https://rhsm.com/v1/internal/cloud_access_providers/amazon/provider_image_groups | ||
[ DEBUG] 5 Products(AWS provider) in rhsm: RHEL_HA(awstest), SAP(awstest), rhcos(ACN), sample_product(fake), sample_product_HOURLY(ACN) | ||
[ INFO] Attempting to update the existing image ami-rhcos1 in rhsm | ||
[ INFO] Existing image ami-rhcos1 succesfully updated in rhsm | ||
[ INFO] Deleting ami-aws1 in account aws-na | ||
[ INFO] Delete finished for ami-aws1 in account aws-na | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ DEBUG] Marking AMI ami-aws1 as invisible on RHSM for the provider AmiProduct. | ||
[ DEBUG] Searching for product sample_product for provider AmiProduct in rhsm | ||
[ INFO] sample_product not found in RHSM | ||
[ INFO] Deleting ami-aws1 in account aws-na | ||
[ INFO] Delete finished for ami-aws1 in account aws-na | ||
[ INFO] Collecting results | ||
[ INFO] Delete completed |
8 changes: 5 additions & 3 deletions
8
tests/logs/delete/test_delete/test_delete_ami_id_not_found_rhsm.txt
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,14 +1,16 @@ | ||
[ INFO] Loading items from pub:https://fakepub.com?task-id=12345 | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ DEBUG] Marking AMI ami-rhcos1 as invisible on RHSM for the provider ACN. | ||
[ DEBUG] Listing all images from rhsm, https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ DEBUG] Searching for product sample_product_HOURLY for provider ACN in rhsm | ||
[ DEBUG] Fetching product from https://rhsm.com/v1/internal/cloud_access_providers/amazon/provider_image_groups | ||
[ DEBUG] 5 Products(AWS provider) in rhsm: RHEL_HA(awstest), SAP(awstest), rhcos(ACN), sample_product(fake), sample_product_HOURLY(ACN) | ||
[ INFO] Attempting to update the existing image ami-rhcos1 in rhsm | ||
[ INFO] Existing image ami-rhcos1 succesfully updated in rhsm | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ DEBUG] Marking AMI ami-aws1 as invisible on RHSM for the provider AmiProduct. | ||
[ WARNING] AMI image: ami-aws1 not found, skipping update in rhsm. | ||
[ INFO] Deleting ami-aws1 in account aws-na | ||
[ INFO] Delete finished for ami-aws1 in account aws-na | ||
[ WARNING] AMI image: ami-aws1 not found, skipping update in rhsm. | ||
[ INFO] Collecting results | ||
[ INFO] Delete completed |
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,10 +1,18 @@ | ||
[ INFO] Loading items from pub:https://fakepub.com?task-id=12345 | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ DEBUG] Marking AMI ami-rhcos1 as invisible on RHSM for the provider ACN. | ||
[ DEBUG] Listing all images from rhsm, https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ DEBUG] Searching for product sample_product_HOURLY for provider ACN in rhsm | ||
[ DEBUG] Fetching product from https://rhsm.com/v1/internal/cloud_access_providers/amazon/provider_image_groups | ||
[ DEBUG] 5 Products(AWS provider) in rhsm: RHEL_HA(awstest), SAP(awstest), rhcos(ACN), sample_product(fake), sample_product_HOURLY(ACN) | ||
[ INFO] Attempting to update the existing image ami-rhcos1 in rhsm | ||
[ ERROR] Failed updating image ami-rhcos1 | ||
# Raised: 400 Client Error: None for url: https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ WARNING] Failed to mark ami-rhcos1 invisible on RHSM: 400 Client Error: None for url: https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ DEBUG] Marking AMI ami-aws1 as invisible on RHSM for the provider AmiProduct. | ||
[ DEBUG] Searching for product sample_product for provider AmiProduct in rhsm | ||
[ INFO] sample_product not found in RHSM | ||
[ INFO] Deleting ami-aws1 in account aws-na | ||
[ INFO] Delete finished for ami-aws1 in account aws-na | ||
[ INFO] Collecting results | ||
[ INFO] Delete completed |
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,12 +1,14 @@ | ||
[ INFO] Loading items from pub:https://fakepub.com?task-id=12345 | ||
[ INFO] Would have deleted: ami-rhcos1 in build rhcos-x86_64-414.92.202405201754-0 | ||
[ DEBUG] Marking AMI ami-rhcos1 as invisible on RHSM for the provider ACN. | ||
[ DEBUG] Listing all images from rhsm, https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ DEBUG] Searching for product sample_product_HOURLY for provider ACN in rhsm | ||
[ DEBUG] Fetching product from https://rhsm.com/v1/internal/cloud_access_providers/amazon/provider_image_groups | ||
[ DEBUG] 5 Products(AWS provider) in rhsm: RHEL_HA(awstest), SAP(awstest), rhcos(ACN), sample_product(fake), sample_product_HOURLY(ACN) | ||
[ INFO] Would have updated image ami-rhcos1 in rhsm | ||
[ INFO] Would have deleted: ami-aws1 in build sample_product-1.0.1-1-x86_64 | ||
[ INFO] Would have deleted: ami-rhcos1 in build rhcos-x86_64-414.92.202405201754-0 | ||
[ DEBUG] Marking AMI ami-aws1 as invisible on RHSM for the provider AmiProduct. | ||
[ DEBUG] Searching for product sample_product for provider AmiProduct in rhsm | ||
[ INFO] sample_product not found in RHSM | ||
[ INFO] Would have deleted: ami-aws1 in build sample_product-1.0.1-1-x86_64 | ||
[ INFO] Collecting results | ||
[ INFO] Delete completed |
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,3 +1,10 @@ | ||
[ INFO] Loading items from pub:https://fakepub.com?task-id=12345 | ||
[ DEBUG] Marking AMI ami-rhcos1 as invisible on RHSM for the provider ACN. | ||
[ DEBUG] Listing all images from rhsm, https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ DEBUG] Searching for product sample_product_HOURLY for provider ACN in rhsm | ||
[ DEBUG] Fetching product from https://rhsm.com/v1/internal/cloud_access_providers/amazon/provider_image_groups | ||
[ DEBUG] 5 Products(AWS provider) in rhsm: RHEL_HA(awstest), SAP(awstest), rhcos(ACN), sample_product(fake), sample_product_HOURLY(ACN) | ||
[ INFO] Attempting to update the existing image ami-rhcos1 in rhsm | ||
[ INFO] Existing image ami-rhcos1 succesfully updated in rhsm | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
# Raised: Random exception |
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,3 +1,9 @@ | ||
[ INFO] Loading items from pub:https://fakepub.com?task-id=12345 | ||
[ DEBUG] Marking AMI ami-aws1 as invisible on RHSM for the provider AmiProduct. | ||
[ DEBUG] Listing all images from rhsm, https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ DEBUG] Searching for product sample_product for provider AmiProduct in rhsm | ||
[ DEBUG] Fetching product from https://rhsm.com/v1/internal/cloud_access_providers/amazon/provider_image_groups | ||
[ DEBUG] 5 Products(AWS provider) in rhsm: RHEL_HA(awstest), SAP(awstest), rhcos(ACN), sample_product(fake), sample_product_HOURLY(ACN) | ||
[ INFO] sample_product not found in RHSM | ||
[ INFO] Deleting ami-aws1 in account aws-na | ||
# Raised: Random exception |
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,12 +1,13 @@ | ||
[ INFO] Loading items from pub:https://fakepub.com?task-id=12345 | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ DEBUG] Marking AMI ami-rhcos1 as invisible on RHSM for the provider ACN. | ||
[ DEBUG] Listing all images from rhsm, https://rhsm.com/v1/internal/cloud_access_providers/amazon/amis | ||
[ DEBUG] Searching for product sample_product_HOURLY for provider ACN in rhsm | ||
[ DEBUG] Fetching product from https://rhsm.com/v1/internal/cloud_access_providers/amazon/provider_image_groups | ||
[ DEBUG] 5 Products(AWS provider) in rhsm: RHEL_HA(awstest), SAP(awstest), rhcos(ACN), sample_product(fake), sample_product_HOURLY(ACN) | ||
[ INFO] Attempting to update the existing image ami-rhcos1 in rhsm | ||
[ INFO] Existing image ami-rhcos1 succesfully updated in rhsm | ||
[ INFO] Deleting ami-rhcos1 in account aws-china-storage | ||
[ INFO] Delete finished for ami-rhcos1 in account aws-china-storage | ||
[ INFO] Skipped: ami-aws1 in build sample_product-1.0.1-1-x86_64 | ||
[ INFO] Collecting results | ||
[ INFO] Delete completed |