Skip to content
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 @@ -106,20 +106,27 @@ public void testDataJobDeploymentCrud() throws Exception {
.andExpect(status().isUnauthorized());

// Execute job upload with proper user
MvcResult jobUploadResult =
var jobUploadResult =
mockMvc
.perform(
post(String.format(
"/data-jobs/for-team/%s/jobs/%s/sources", TEST_TEAM_NAME, testJobName))
.with(user("user"))
.content(jobZipBinary)
.contentType(MediaType.APPLICATION_OCTET_STREAM))
.andExpect(status().isOk())
.andReturn();
.andReturn()
.getResponse();

if (jobUploadResult.getStatus() != 200) {
throw new Exception(
"status is "
+ jobUploadResult.getStatus()
+ "\nbody is "
+ jobUploadResult.getContentAsString());
}

DataJobVersion testDataJobVersion =
new ObjectMapper()
.readValue(jobUploadResult.getResponse().getContentAsString(), DataJobVersion.class);
new ObjectMapper().readValue(jobUploadResult.getContentAsString(), DataJobVersion.class);
Assertions.assertNotNull(testDataJobVersion);

String testJobVersionSha = testDataJobVersion.getVersionSha();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
datajobs.builder.registrySecret=integration-test-docker-pull-secret
datajobs.builder.registrySecret.content.testOnly=${BUILDER_TEST_REGISTRY_SECRET}
datajobs.builder.image=${DOCKER_REGISTRY_URL}/versatiledatakit/job-builder:1.3.3
datajobs.builder.image=${DOCKER_REGISTRY_URL}/versatiledatakit/job-builder-private:1.3.3
datajobs.deployment.dataJobBaseImage=ghcr.io/versatile-data-kit-dev/dp/versatiledatakit/data-job-base-python-3.7:latest