Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Disable pretty printing DSS overrides to save space (#655)
Browse files Browse the repository at this point in the history
Signed-off-by: Eamonn Mansour <47121388+eamansour@users.noreply.github.com>
  • Loading branch information
eamansour authored Oct 7, 2024
1 parent 70da23d commit c9aec98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import dev.galasa.framework.spi.IFrameworkRuns;
import dev.galasa.framework.spi.IRun;
import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.framework.spi.utils.GalasaGsonBuilder;

public class FrameworkRuns implements IFrameworkRuns {

Expand All @@ -55,12 +56,13 @@ public class FrameworkRuns implements IFrameworkRuns {

private final String RUN_PREFIX = "run.";

private static final GalasaGson gson = new GalasaGson();
private final GalasaGson gson = new GalasaGson();

public FrameworkRuns(IFramework framework) throws FrameworkException {
this.framework = framework;
this.dss = framework.getDynamicStatusStoreService("framework");
this.cps = framework.getConfigurationPropertyService("framework");
gson.setGsonBuilder(new GalasaGsonBuilder(false));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.Properties;
import java.util.Map.Entry;

import org.junit.BeforeClass;
import org.junit.Test;

import com.google.gson.JsonArray;
Expand All @@ -23,11 +24,17 @@
import dev.galasa.framework.spi.IRun;
import dev.galasa.framework.spi.IFrameworkRuns.SharedEnvironmentPhase;
import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.framework.spi.utils.GalasaGsonBuilder;

public class FrameworkRunsTest {

private static final GalasaGson gson = new GalasaGson();

@BeforeClass
public static void setUp() {
gson.setGsonBuilder(new GalasaGsonBuilder(false));
}

private String getExpectedOverridesJson(Properties properties) {
JsonArray overridesArray = new JsonArray();

Expand Down

0 comments on commit c9aec98

Please sign in to comment.