diff --git a/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareConstants.java b/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareConstants.java index 6213c36..ed00d6c 100644 --- a/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareConstants.java +++ b/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareConstants.java @@ -14,7 +14,7 @@ private AttributionDataShareConstants() { public static final String FILE_PATH = "/tmp/"; public static final String REQ_FILE_NAME = "P.AB2D.NGD.REQ."; public static final String REQ_FILE_NAME_PATTERN = "'D'yyMMdd.'T'hhmmsss"; - public static final String REQ_FILE_FORMAT = ".OUT.txt"; + public static final String REQ_FILE_FORMAT = ".OUT"; public static final String FIRST_LINE = "HDR_BENEDATAREQ_"; public static final String LAST_LINE = "TLR_BENEDATAREQ_"; diff --git a/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareHandler.java b/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareHandler.java index 8700aef..9b3f84f 100644 --- a/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareHandler.java +++ b/attribution-data-file-share/src/main/java/gov/cms/ab2d/attributionDataShare/AttributionDataShareHandler.java @@ -21,7 +21,7 @@ public class AttributionDataShareHandler implements RequestStreamHandler { // Writes out a file to the FILE_PATH. - // I.E: "P.AB2D.NGD.REQ.D240209.T1122001.OUT.txt" + // I.E: "P.AB2D.NGD.REQ.D240209.T1122001.OUT" public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException { LambdaLogger logger = context.getLogger(); diff --git a/optout/src/main/java/gov/cms/ab2d/optout/OptOutConstants.java b/optout/src/main/java/gov/cms/ab2d/optout/OptOutConstants.java index 64a5329..f515986 100644 --- a/optout/src/main/java/gov/cms/ab2d/optout/OptOutConstants.java +++ b/optout/src/main/java/gov/cms/ab2d/optout/OptOutConstants.java @@ -10,7 +10,7 @@ public class OptOutConstants { public static final String ACCESS_TOKEN = "dev/TestLambdaToken"; public static final String ENDPOINT = "https://s3.amazonaws.com"; public static final String TEST_ENDPOINT = "http://127.0.0.1:8001"; - public static final String TEST_FILE_NAME = "P#EFT.ON.NGD.AB2D.RSP.D240123.T1122001.txt"; + public static final String TEST_FILE_NAME = "optOutDummy.txt"; public static final String BFD_S3_BUCKET_NAME = "ab2d-opt-out-temp-349849222861-us-east-1"; public static final Region S3_REGION = Region.US_EAST_1; public static final String HEADER_RESP = "HDR_BENEDATARSP"; @@ -25,7 +25,7 @@ public class OptOutConstants { public static final String LINE_SEPARATOR = System.getProperty("line.separator"); public static final String CONF_FILE_NAME = "P.AB2D.NGD.CONF."; public static final String CONF_FILE_NAME_PATTERN = "'D'yyMMdd.'T'hhmmsss"; - public static final String CONF_FILE_FORMAT = ".OUT.txt"; + public static final String CONF_FILE_FORMAT = ".OUT"; public static final String UPDATE_STATEMENT = "UPDATE public.coverage\n" + "SET opt_out_flag = ?, effective_date = current_timestamp\n" + "WHERE current_mbi = ? OR historic_mbis LIKE CONCAT( '%',?,'%')"; diff --git a/optout/src/test/java/gov/cms/ab2d/optout/OptOutHandlerTest.java b/optout/src/test/java/gov/cms/ab2d/optout/OptOutHandlerTest.java index a8d12f4..3d148c9 100644 --- a/optout/src/test/java/gov/cms/ab2d/optout/OptOutHandlerTest.java +++ b/optout/src/test/java/gov/cms/ab2d/optout/OptOutHandlerTest.java @@ -33,7 +33,7 @@ public class OptOutHandlerTest { @BeforeAll static void beforeAll() throws URISyntaxException { when(sqsEvent.getRecords()).thenReturn(Collections.singletonList(sqsMessage)); - when(sqsMessage.getBody()).thenReturn("P#EFT.ON.NGD.AB2D.RSP.D240123.T1122001.txt"); + when(sqsMessage.getBody()).thenReturn("optOutDummy.txt"); when(handler.processorInit(anyString(), any(LambdaLogger.class))).thenReturn(OPT_OUT_PROCESSOR); } diff --git a/optout/src/test/java/gov/cms/ab2d/optout/OptOutProcessorTest.java b/optout/src/test/java/gov/cms/ab2d/optout/OptOutProcessorTest.java index bb46b48..77e6a31 100644 --- a/optout/src/test/java/gov/cms/ab2d/optout/OptOutProcessorTest.java +++ b/optout/src/test/java/gov/cms/ab2d/optout/OptOutProcessorTest.java @@ -55,7 +55,6 @@ void afterEach() { } @Test - void processTest(){ optOutProcessing.isRejected = false; optOutProcessing.process(); diff --git a/optout/src/test/resources/P#EFT.ON.NGD.AB2D.RSP.D240123.T1122001.txt b/optout/src/test/resources/optOutDummy.txt similarity index 100% rename from optout/src/test/resources/P#EFT.ON.NGD.AB2D.RSP.D240123.T1122001.txt rename to optout/src/test/resources/optOutDummy.txt