diff --git a/Releasing.md b/Releasing.md new file mode 100644 index 00000000..6e9dd75e --- /dev/null +++ b/Releasing.md @@ -0,0 +1,10 @@ +# Creating a release + +We currently don't deploy this to maven central (though that'd be nice), so we just create a release on GitHub. +Steps: + +- Run workflow "Set Version" to set non-snapshot version +- Run workflow "Build and Deploy Github Package" +- Run workflow "Build and Deploy to Docker Hub" +- Set master branch to the new version tag +- Run workflow "Set Version" to set snapshot version diff --git a/src/test/java/net/stoerr/chatgpt/codevengine/UrlActionIT.java b/src/test/java/net/stoerr/chatgpt/codevengine/UrlActionIT.java index f13cc494..a5e2cc80 100644 --- a/src/test/java/net/stoerr/chatgpt/codevengine/UrlActionIT.java +++ b/src/test/java/net/stoerr/chatgpt/codevengine/UrlActionIT.java @@ -4,7 +4,6 @@ import static org.hamcrest.CoreMatchers.is; import org.hamcrest.CoreMatchers; -import org.junit.Ignore; import org.junit.Test; public class UrlActionIT extends AbstractActionIT { @@ -45,15 +44,12 @@ public void testUrlWithoutProtocol() throws Exception { } @Test - @Ignore("The URL doesn't work anymore.") - // FIXME(hps,24/08/13) use the test.pdf checked in public void testPdfUrl() throws Exception { TbUtils.logInfo("\nUrlActionIT.testPdfUrl"); - String pdfUrl = "https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf"; + String pdfUrl = "https://codevelopergptengine.stoerr.net/test/test.pdf"; String response = checkResponse("/fetchUrlTextContent?url=" + pdfUrl, "GET", null, 200, null); - collector.checkThat(response, CoreMatchers.containsString("markdown for text/html content of ")); - collector.checkThat(response, CoreMatchers.containsString("INTERNET PROTOCOL")); - collector.checkThat(response, CoreMatchers.containsString("September 1981")); + collector.checkThat(response, CoreMatchers.containsString("text content of application/pdf content of ")); + collector.checkThat(response, CoreMatchers.containsString("This is a test PDF")); } @Test