test: fix e2e test
package com.aws.greengrass.integrationtests.e2e.deployment;
import com.aws.greengrass.componentmanager.KernelConfigResolver;
+import com.aws.greengrass.componentmanager.exceptions.NoAvailableComponentVersionException;
import com.aws.greengrass.dependency.State;
import com.aws.greengrass.deployment.DeploymentService;
import com.aws.greengrass.deployment.DeviceConfiguration;
@@ -46,7 +47,6 @@ import software.amazon.awssdk.services.greengrassv2.model.CreateDeploymentRespon
import software.amazon.awssdk.services.greengrassv2.model.DeploymentComponentUpdatePolicy;
import software.amazon.awssdk.services.greengrassv2.model.DeploymentConfigurationValidationPolicy;
import software.amazon.awssdk.services.greengrassv2.model.DeploymentPolicies;
-import software.amazon.awssdk.services.greengrassv2data.model.ResourceNotFoundException;
import software.amazon.awssdk.services.iot.model.DescribeJobExecutionRequest;
import software.amazon.awssdk.services.iot.model.JobExecutionStatus;
@@ -302,7 +302,7 @@ class DeploymentE2ETest extends BaseE2ETestCase {
@Test
void GIVEN_blank_kernel_WHEN_deployment_has_conflicts_THEN_job_should_fail_and_return_error(
ExtensionContext context) throws Exception {
- ignoreExceptionUltimateCauseOfType(context, ResourceNotFoundException.class);
+ ignoreExceptionUltimateCauseOfType(context, NoAvailableComponentVersionException.class);
// New deployment contains dependency conflicts
CreateDeploymentRequest createDeploymentRequest = CreateDeploymentRequest.builder().components(
@@ -331,7 +331,7 @@ class DeploymentE2ETest extends BaseE2ETestCase {
@Test
void GIVEN_blank_kernel_WHEN_deployment_has_components_that_dont_exist_THEN_job_should_fail_and_return_error(
ExtensionContext context) throws Exception {
- ignoreExceptionUltimateCauseOfType(context, ResourceNotFoundException.class);
+ ignoreExceptionUltimateCauseOfType(context, NoAvailableComponentVersionException.class);
// New deployment contains dependency conflicts
CreateDeploymentRequest createDeploymentRequest = CreateDeploymentRequest.builder().components(
