Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Azure Remote Rendering tests by adding now missing dependencies and changed conversion error messages #39403

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/remoterendering/azure-mixedreality-remoterendering",
"Tag": "java/remoterendering/azure-mixedreality-remoterendering_24a8dbb81a"
"Tag": "java/remoterendering/azure-mixedreality-remoterendering_2fbd5a57df"
}
22 changes: 22 additions & 0 deletions sdk/remoterendering/azure-mixedreality-remoterendering/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
<version>1.11.19</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-vertx</artifactId>
<version>1.0.0-beta.16</version> <!-- {x-version-update;com.azure:azure-core-http-vertx;dependency} -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing test scope

<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
Expand Down Expand Up @@ -89,4 +95,20 @@
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>java12plus</id>
<activation>
<jdk>[12,)</jdk>
</activation>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-jdk-httpclient</artifactId>
<version>1.0.0-beta.11</version> <!-- {x-version-update;com.azure:azure-core-http-jdk-httpclient;dependency} -->
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ public void failedConversionMissingAssetTest(HttpClient httpClient) {

assertEquals(AssetConversionStatus.FAILED, conversion.getStatus());
assertNotNull(conversion.getError());
// Invalid input provided. Check logs in output container for details.
assertTrue(conversion.getError().getMessage().toLowerCase(Locale.ROOT).contains("invalid input"));
assertTrue(conversion.getError().getMessage().toLowerCase(Locale.ROOT).contains("logs"));
assertEquals(conversion.getError().getCode(), "InputContainerError");
// Message: "Could not find the asset file in the storage account. Please make sure all paths and names are correct and the file is uploaded to storage."
assertNotNull(conversion.getError().getMessage());
assertTrue(conversion.getError().getMessage().toLowerCase(Locale.ROOT).contains("could not find the asset file in the storage account"));
})
.verifyComplete();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ public void failedConversionMissingAssetTest(HttpClient httpClient) {

assertEquals(AssetConversionStatus.FAILED, conversion.getStatus());
assertNotNull(conversion.getError());
// Invalid input provided. Check logs in output container for details.
assertTrue(conversion.getError().getMessage().toLowerCase(Locale.ROOT).contains("invalid input"));
assertTrue(conversion.getError().getMessage().toLowerCase(Locale.ROOT).contains("logs"));
assertEquals(conversion.getError().getCode(), "InputContainerError");
// Message: "Could not find the asset file in the storage account. Please make sure all paths and names are correct and the file is uploaded to storage."
assertNotNull(conversion.getError().getMessage());
assertTrue(conversion.getError().getMessage().toLowerCase(Locale.ROOT).contains("could not find the asset file in the storage account"));
}

@ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class RemoteRenderingTestBase extends TestProxyTestBase {
private final String serviceEndpoint = Configuration.getGlobalConfiguration().get("REMOTERENDERING_ARR_SERVICE_ENDPOINT");

// NOT REAL ACCOUNT DETAILS
private final String playbackAccountId = "f5b3e69f-1e1b-46a5-a718-aea58a7a0f8e";
private final String playbackAccountId = "40831821-9a8b-4f81-b85f-018809a1f727";
private final String playbackAccountDomain = "mixedreality.azure.com";
private final String playbackAccountKey = "Sanitized";
private final String playbackStorageAccountName = "sdkTest";
Expand Down
Loading