Skip to content

Commit

Permalink
doc: add property to check if running on AWS network
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAure committed Nov 4, 2024
1 parent 166e59a commit 94efa5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
public static final String OS_ZOS = "os.name=z/OS";
public static final String OS_IBMI = "os.name=OS/400";

// Network system properties
public static final String NETWORK_AWS = "global.network.location=AWS";

String[] value();

}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public class FATRunner extends BlockJUnit4ClassRunner {

public static final boolean ARM_ARCHITECTURE = System.getProperty("os.arch").equals("aarch64") || System.getProperty("os.arch").equals("arm");

public static final boolean AWS_NETWORK = System.getProperty("global.network.location", "UNKNOWN").equalsIgnoreCase("AWS");

private static final int MAX_FFDC_LINES = 1000;
private static final boolean DISABLE_FFDC_CHECKING = Boolean.getBoolean("disable.ffdc.checking");

Expand All @@ -97,6 +99,7 @@ public class FATRunner extends BlockJUnit4ClassRunner {

static {
Log.info(c, "<clinit>", "Is this FAT running locally? fat.test.localrun=" + FAT_TEST_LOCALRUN);
Log.info(c, "<clinit>", "Is this FAT running on AWS network? " + AWS_NETWORK);
Log.info(c, "<clinit>", "Using filters " + Arrays.toString(testFiltersToApply));
}

Expand Down

0 comments on commit 94efa5d

Please sign in to comment.