Skip to content

Commit

Permalink
remove bq unit tests (airbytehq#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens authored Oct 14, 2020
1 parent ff3a2db commit 000acdd
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -173,7 +172,7 @@ private void tearDownBigQuery() {
}

// todo - same test as csv destination
@Test
// @Test
void testSpec() throws IOException {
final ConnectorSpecification actual = new BigQueryDestination().spec();
final String resourceString = MoreResources.readResource("spec.json");
Expand All @@ -183,14 +182,14 @@ void testSpec() throws IOException {
}

// todo - same test as csv destination
@Test
// @Test
void testCheckSuccess() {
final StandardCheckConnectionOutput actual = new BigQueryDestination().check(config);
final StandardCheckConnectionOutput expected = new StandardCheckConnectionOutput().withStatus(Status.SUCCESS);
assertEquals(expected, actual);
}

@Test
// @Test
void testCheckFailure() {
((ObjectNode) config).put(BigQueryDestination.CONFIG_PROJECT_ID, "fake");
final StandardCheckConnectionOutput actual = new BigQueryDestination().check(config);
Expand All @@ -199,7 +198,7 @@ void testCheckFailure() {
assertEquals(expected, actual);
}

@Test
// @Test
void testWriteSuccess() throws Exception {
final DestinationConsumer<SingerMessage> consumer = new BigQueryDestination().write(config, CATALOG);

Expand All @@ -224,7 +223,7 @@ void testWriteSuccess() throws Exception {
}

@SuppressWarnings("ResultOfMethodCallIgnored")
@Test
// @Test
void testWriteFailure() throws Exception {
// hack to force an exception to be thrown from within the consumer.
final SingerMessage spiedMessage = spy(SINGER_MESSAGE_USERS1);
Expand Down

0 comments on commit 000acdd

Please sign in to comment.