-
Notifications
You must be signed in to change notification settings - Fork 2.9k
ci(cloud-sql): skip failing tests #10179
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
import javax.sql.DataSource; | ||
import org.junit.AfterClass; | ||
import org.junit.BeforeClass; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
|
||
|
||
|
@@ -102,6 +103,7 @@ public static void dropTable() throws SQLException { | |
} | ||
|
||
@Test | ||
@Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/8794") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve maintainability and avoid duplicating the issue URL, consider defining it as a For example: private static final String SKIP_FAILING_TESTS_ISSUE = "https://github.com/GoogleCloudPlatform/java-docs-samples/issues/8794";
// ...
@Ignore(SKIP_FAILING_TESTS_ISSUE) |
||
public void testGetTemplateData() throws Exception { | ||
TemplateData templateData = new IndexServlet().getTemplateData(pool); | ||
|
||
|
@@ -111,6 +113,7 @@ public void testGetTemplateData() throws Exception { | |
} | ||
|
||
@Test | ||
@Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/8794") | ||
public void testServletPost() throws Exception { | ||
HttpServletRequest request = mock(HttpServletRequest.class); | ||
HttpServletResponse response = mock(HttpServletResponse.class); | ||
|
@@ -129,4 +132,4 @@ public void testServletPost() throws Exception { | |
writer.flush(); | ||
assertTrue(stringWriter.toString().contains("Vote successfully cast for")); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
import javax.sql.DataSource; | ||
import org.junit.AfterClass; | ||
import org.junit.BeforeClass; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
|
||
|
||
|
@@ -111,6 +112,7 @@ public static void dropTable() throws SQLException { | |
|
||
|
||
@Test | ||
@Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/8794") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve maintainability and avoid duplicating the issue URL, consider defining it as a For example: private static final String SKIP_FAILING_TESTS_ISSUE = "https://github.com/GoogleCloudPlatform/java-docs-samples/issues/8794";
// ...
@Ignore(SKIP_FAILING_TESTS_ISSUE) |
||
public void testGetTemplateData() throws Exception { | ||
TemplateData templateData = new IndexServlet().getTemplateData(pool); | ||
|
||
|
@@ -120,6 +122,7 @@ public void testGetTemplateData() throws Exception { | |
} | ||
|
||
@Test | ||
@Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/8794") | ||
public void testServletPost() throws Exception { | ||
HttpServletRequest request = mock(HttpServletRequest.class); | ||
HttpServletResponse response = mock(HttpServletResponse.class); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve maintainability and avoid duplicating the issue URL, consider defining it as a
private static final String
constant. This constant can then be used here and for the other ignored test on line 115.For example: