package ca.corefacility.bioinformatics.irida.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.junit.jupiter.api.Tag;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;

import ca.corefacility.bioinformatics.irida.config.IridaApiGalaxyTestConfig;
import ca.corefacility.bioinformatics.irida.config.data.IridaApiTestFilesystemConfig;
import ca.corefacility.bioinformatics.irida.config.services.IridaApiServicesConfig;

/**
 * Annotation that is to be specified on Galaxy integration tests. Simplifies the configuration of tests by
 * automatically adding a number of necessary annotations.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Inherited

@Tag("IntegrationTest")
@Tag("Galaxy")
@ActiveProfiles("test")
@SpringBootTest(classes = {
		DataSourceAutoConfiguration.class,
		IridaApiTestFilesystemConfig.class,
		IridaApiServicesConfig.class,
		IridaApiGalaxyTestConfig.class })
public @interface GalaxyIntegrationTest {

}

@@ -402,24 +402,109 @@
 figuration;%0A
+import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;%0A
 import org.s
@@ -1238,32 +1238,71 @@
 guration.class,%0A
+%09%09HibernateJpaAutoConfiguration.class,%0A
 %09%09IridaApiTestFi

Add back in missing auto config for galaxy integration tests.