@@ -0,0 +1,1867 @@
+package cz.sparko.boxitory.test.integration;%0A%0Aimport org.springframework.test.context.TestPropertySource;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.io.File;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0Aimport java.nio.file.Files;%0Aimport java.util.List;%0A%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;%0Aimport static org.testng.Assert.assertEquals;%0Aimport static org.testng.Assert.assertFalse;%0Aimport static org.testng.Assert.assertTrue;%0A%0A@TestPropertySource(properties = %7B%0A        %22box.checksum=md5%22,%0A        %22box.checksum_persist=false%22%0A%7D)%0Apublic class DontPersistChecksumTest extends AbstractIntegrationTest %7B%0A    private static final String VM = %22vm%22;%0A    private static final String BOX = %22vm_1_vb.box%22;%0A    private static final String CHECKSUM_FILE = %22vm_1_vb.box.md5%22;%0A%0A    private File vmDir;%0A%0A    @Override%0A    void createFolderStructure() throws IOException %7B%0A        super.createFolderStructure();%0A        vmDir = createDirInRepository(VM);%0A        File box = createFile(vmDir.getPath() + File.separator + BOX);%0A        try (FileWriter fw = new FileWriter(box)) %7B%0A            fw.write(%22blabol%22);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void givenMd5WithPersist_whenGetBox_thenFileWithChecksumIsStored() throws Exception %7B%0A        File checksumFile = new File(vmDir + File.separator + CHECKSUM_FILE);%0A        assertFalse(checksumFile.exists());%0A%0A        mockMvc.perform(get(%22/%22 + VM))%0A                .andDo(print())%0A                .andExpect(jsonPath(%22$.versions%5B0%5D.providers%5B0%5D.checksum%22, is(%22f34835fa588de624b2782bd5307c344c%22)));%0A%0A        assertFalse(checksumFile.exists());%0A    %7D%0A%7D%0A

disable checksum persist e2e test