You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/11/24 17:49:28 UTC
[GitHub] [beam] ibzib commented on a change in pull request #15375: [BEAM-12733] Fix failing integration tests for Java Recommendation AI
ibzib commented on a change in pull request #15375:
URL: https://github.com/apache/beam/pull/15375#discussion_r756308977
##########
File path: sdks/java/extensions/ml/src/test/java/org/apache/beam/sdk/extensions/ml/RecommendationAICatalogItemIT.java
##########
@@ -41,14 +46,17 @@
@RunWith(JUnit4.class)
public class RecommendationAICatalogItemIT {
- @Rule public TestPipeline testPipeline = TestPipeline.create();
+ @Rule public static TestPipeline testPipeline = TestPipeline.create();
+ static String projectId = testPipeline.getOptions().as(GcpOptions.class).getProject();
Review comment:
```suggestion
private static String projectId = testPipeline.getOptions().as(GcpOptions.class).getProject();
```
##########
File path: sdks/java/extensions/ml/src/test/java/org/apache/beam/sdk/extensions/ml/RecommendationAICatalogItemIT.java
##########
@@ -92,6 +98,23 @@ public void importCatalogItems() {
testPipeline.run().waitUntilFinish();
}
+ @AfterClass
+ public static void tearDownAfterClass() throws Exception {
+ try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
+ String parent = CatalogName.of("apache-beam-testing", "global", "default_catalog").toString();
Review comment:
```suggestion
String parent = CatalogName.of(projectId, "global", "default_catalog").toString();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org