diff --git a/mod-source-record-storage-server/src/main/java/org/folio/rest/impl/SourceStoragePopulateTestMarcRecordsImpl.java b/mod-source-record-storage-server/src/main/java/org/folio/rest/impl/SourceStoragePopulateTestMarcRecordsImpl.java index 82bf9aa6..a076fe32 100644 --- a/mod-source-record-storage-server/src/main/java/org/folio/rest/impl/SourceStoragePopulateTestMarcRecordsImpl.java +++ b/mod-source-record-storage-server/src/main/java/org/folio/rest/impl/SourceStoragePopulateTestMarcRecordsImpl.java @@ -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(); diff --git a/mod-source-record-storage-server/src/test/java/org/folio/rest/impl/TestMarcRecordsApiTest.java b/mod-source-record-storage-server/src/test/java/org/folio/rest/impl/TestMarcRecordsApiTest.java index 6cb02f96..57f0c248 100644 --- a/mod-source-record-storage-server/src/test/java/org/folio/rest/impl/TestMarcRecordsApiTest.java +++ b/mod-source-record-storage-server/src/test/java/org/folio/rest/impl/TestMarcRecordsApiTest.java @@ -37,6 +37,7 @@ public void shouldReturnNoContentOnPostRecordCollectionPassedInBody() throws IOE } @Test + @Ignore public void shouldReturnUnprocessableEntityOnPostWhenNoRecordCollectionPassedInBody() { TestMarcRecordsCollection testMarcRecordsCollection = new TestMarcRecordsCollection() .withRawRecords(Collections.singletonList(new RawRecord())); diff --git a/ramls/source-record-storage-test-records.raml b/ramls/source-record-storage-test-records.raml index ccff54cd..c0df7ef2 100644 --- a/ramls/source-record-storage-test-records.raml +++ b/ramls/source-record-storage-test-records.raml @@ -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]