Skip to content

Commit

Permalink
fix auto migration test (airbytehq#8970)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens authored Dec 20, 2021
1 parent 1c525c0 commit b920dc8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,12 @@ private static void assertSourceDefinitionInformation(final ApiClient apiClient)
} else if (sourceDefinitionRead.getSourceDefinitionId().toString().equals("decd338e-5647-4c0b-adf4-da0e75f5a750")) {
final String[] tagBrokenAsArray = sourceDefinitionRead.getDockerImageTag().replace(".", ",").split(",");
assertEquals(3, tagBrokenAsArray.length);
assertTrue(Integer.parseInt(tagBrokenAsArray[0]) >= 0);
assertTrue(Integer.parseInt(tagBrokenAsArray[1]) >= 3);
assertTrue(Integer.parseInt(tagBrokenAsArray[2]) >= 4);
// todo (cgardens) - this is very brittle. depending on when this connector gets updated in
// source_definitions.yaml this test can start to break. for now just doing quick fix, but we should
// be able to do an actual version comparison like we do with AirbyteVersion.
assertTrue(Integer.parseInt(tagBrokenAsArray[0]) >= 0, "actual tag: " + sourceDefinitionRead.getDockerImageTag());
assertTrue(Integer.parseInt(tagBrokenAsArray[1]) >= 3, "actual tag: " + sourceDefinitionRead.getDockerImageTag());
assertTrue(Integer.parseInt(tagBrokenAsArray[2]) >= 0, "actual tag: " + sourceDefinitionRead.getDockerImageTag());
assertTrue(sourceDefinitionRead.getName().contains("Postgres"));
foundPostgresSourceDefinition = true;
}
Expand Down

0 comments on commit b920dc8

Please sign in to comment.