|
34 | 34 | import static org.junit.jupiter.api.Assertions.assertTrue; |
35 | 35 |
|
36 | 36 | /** |
37 | | - * Convenience program for inserting a new author into the kafka-test-content database to facilitate testing the |
38 | | - * source connector on the authors TDE. This reuses the test plumbing so we don't have to collect host/port/etc |
39 | | - * information, but it adjusts the DatabaseClient config to use port 8018 instead of 8019 so that documents are |
40 | | - * inserted into the kafka-test-content database instead of kafka-test-test-content. |
| 37 | + * Convenience program for inserting a new author into the data-hub-STAGING |
| 38 | + * database to facilitate testing the |
| 39 | + * source connector on the authors TDE. This reuses the test plumbing so we |
| 40 | + * don't have to collect host/port/etc |
| 41 | + * information, but it adjusts the DatabaseClient config to use port 8010 |
| 42 | + * instead of 8011 so that documents are |
| 43 | + * inserted into the data-hub-STAGING database instead of data-hub-FINAL. |
41 | 44 | */ |
42 | 45 | class InsertAuthorsTest extends AbstractIntegrationTest { |
43 | 46 |
|
44 | 47 | // Only intended for inserting new authors with a user-provided ID. Can easily expand this to make the data more |
45 | 48 | // random and/or controlled by the user. |
46 | 49 | private final static String CITATIONS_DOC = "<Citations>\n" + |
47 | | - " <Citation>\n" + |
48 | | - " <ID>%%AUTHOR_ID%%</ID>\n" + |
49 | | - " <Article>\n" + |
50 | | - " <Journal>\n" + |
51 | | - " <ISSN>61296-004</ISSN>\n" + |
52 | | - " <JournalIssue>\n" + |
53 | | - " <Volume>44</Volume>\n" + |
54 | | - " <PubDate>\n" + |
55 | | - " <Date>2022-07-13</Date>\n" + |
56 | | - " <Year>2022</Year>\n" + |
57 | | - " <Month>07</Month>\n" + |
58 | | - " <Day>13</Day>\n" + |
59 | | - " <Time>09:00:00</Time>\n" + |
60 | | - " </PubDate>\n" + |
61 | | - " </JournalIssue>\n" + |
62 | | - " </Journal>\n" + |
63 | | - " <AuthorList>\n" + |
64 | | - " <Author>\n" + |
65 | | - " <LastName>LastName%%AUTHOR_ID%%</LastName>\n" + |
66 | | - " <ForeName>ForeName%%AUTHOR_ID%%</ForeName>\n" + |
67 | | - " </Author>\n" + |
68 | | - " </AuthorList>\n" + |
69 | | - " </Article>\n" + |
70 | | - " </Citation>\n" + |
71 | | - "</Citations>\n"; |
| 50 | + " <Citation>\n" + |
| 51 | + " <ID>%%AUTHOR_ID%%</ID>\n" + |
| 52 | + " <Article>\n" + |
| 53 | + " <Journal>\n" + |
| 54 | + " <ISSN>61296-004</ISSN>\n" + |
| 55 | + " <JournalIssue>\n" + |
| 56 | + " <Volume>44</Volume>\n" + |
| 57 | + " <PubDate>\n" + |
| 58 | + " <Date>2022-07-13</Date>\n" + |
| 59 | + " <Year>2022</Year>\n" + |
| 60 | + " <Month>07</Month>\n" + |
| 61 | + " <Day>13</Day>\n" + |
| 62 | + " <Time>09:00:00</Time>\n" + |
| 63 | + " </PubDate>\n" + |
| 64 | + " </JournalIssue>\n" + |
| 65 | + " </Journal>\n" + |
| 66 | + " <AuthorList>\n" + |
| 67 | + " <Author>\n" + |
| 68 | + " <LastName>LastName%%AUTHOR_ID%%</LastName>\n" + |
| 69 | + " <ForeName>ForeName%%AUTHOR_ID%%</ForeName>\n" + |
| 70 | + " </Author>\n" + |
| 71 | + " </AuthorList>\n" + |
| 72 | + " </Article>\n" + |
| 73 | + " </Citation>\n" + |
| 74 | + "</Citations>\n"; |
72 | 75 |
|
73 | 76 | @Autowired |
74 | 77 | SimpleTestConfig testConfig; |
|
0 commit comments