You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Altered tests to improve tests using TestContainers
This set of changes has the following effects:
1) Makes a distinction between which sample files are local and which
ones must be on the remote machine (previously, everything was set up
for a local machine).
2) Understands that remote machines may be Windows or Linux
3) Contains files for creating a container containing the required
sample files.
* Enum representing the different target types for AEM instances in the
7
+
* integration tests. Each enum value corresponds to a specific environment
8
+
* where AEM is expected to run, along with the path to the sample files used in
9
+
* the tests.
10
+
*/
11
+
publicenumAemTargetType {
12
+
LOCAL(Path.of("..", "test_containers", "ff_it_files").toAbsolutePath()), // Running on local machine (assumes that the port is TEST_MACHINE_PORT)
13
+
REMOTE_WINDOWS(Path.of("/Adobe", "ff_it_files")), // Running on remote Windows machine (assumes that machine name is TEST_MACHINE_NAME and port is TEST_MACHINE_PORT)
14
+
REMOTE_LINUX(Path.of("/opt", "adobe", "ff_it_files")), // Running on remote Linux machine (assumes that machine name is TEST_MACHINE_NAME and port is TEST_MACHINE_PORT)
15
+
TESTCONTAINERS(Path.of("/opt", "adobe", "ff_it_files")); // Running on local testcontainers image (gets port from TestContainers)
16
+
17
+
privatefinalPathsamplesPath; // Location where sample files are stored for this AEM target type.
18
+
19
+
privateAemTargetType(PathsamplesPath) {
20
+
this.samplesPath = samplesPath;
21
+
}
22
+
23
+
/**
24
+
* Returns the path to the samples directory for this AEM target type.
Copy file name to clipboardExpand all lines: rest-services/it.tests/src/test/java/com/_4point/aem/docservices/rest_services/it_tests/client/af/RenderAdaptiveFormTest.java
Copy file name to clipboardExpand all lines: rest-services/it.tests/src/test/java/com/_4point/aem/docservices/rest_services/it_tests/client/assembler/AssembleDocumentsTest.java
0 commit comments