Skip to content

Commit

Permalink
MODSOURMAN-1203 Deprecate /source-storage/populate-test-marc-records …
Browse files Browse the repository at this point in the history
…endpoint
  • Loading branch information
dmytrokrutii committed Aug 27, 2024
1 parent eb32c66 commit 2a20acf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
* @deprecated This class will no longer be used to create test data
*/
@Deprecated
public class SourceStoragePopulateTestMarcRecordsImpl implements SourceStoragePopulateTestMarcRecords {

private static final Logger LOG = LogManager.getLogger();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void shouldReturnNoContentOnPostRecordCollectionPassedInBody() throws IOE
}

@Test
@Ignore
public void shouldReturnUnprocessableEntityOnPostWhenNoRecordCollectionPassedInBody() {
TestMarcRecordsCollection testMarcRecordsCollection = new TestMarcRecordsCollection()
.withRawRecords(Collections.singletonList(new RawRecord()));
Expand Down
1 change: 1 addition & 0 deletions ramls/source-record-storage-test-records.raml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ traits:
validate: !include raml-storage/raml-util/traits/validation.raml

/source-storage/populate-test-marc-records:
deprecated: true
post:
description: A non-production endpoint to populate MARC records for testing purposes. Available only in case deployment tenant parameter "loadSample" is set to true
is: [validate]
Expand Down

0 comments on commit 2a20acf

Please sign in to comment.