This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{groovy}} | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.List; | |
import org.hibernate.Session; | |
import org.hibernate.jdbc.Work; | |
import org.slf4j.Logger; | |
import org.xwiki.model.reference.DocumentReference; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lorem ## pip install python-lorem | |
import random | |
import os | |
SENTENCES = 5 | |
LOOPS = 1000 | |
if __name__ == '__main__': | |
path = '/home/urli/Github/xwiki-commons/xwiki-commons-core/xwiki-commons-diff/xwiki-commons-diff-display/src/test/resources/integrationsloop/' | |
files = ['current.txt', 'next.txt', 'previous.txt'] | |
for i in range(LOOPS): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To be pasted on .bashrc to be used in XWiki Docker modules when trying to test a specific CI configuration | |
# e.g. mvn clean install $mariaDBJettyFirefox | |
# Those configurations might not be up-to-date, check https://github.com/xwiki/xwiki-jenkins-pipeline/blob/master/vars/dockerConfigurations.groovy#L61 to be sure. | |
export mysqlTomcatChrome="-Dxwiki.test.ui.database=mysql -Dxwiki.test.ui.databaseTag=8.0 -Dxwiki.test.ui.jdbcVersion=pom -Dxwiki.test.ui.servletEngine=tomcat -Dxwiki.test.ui.servletEngineTag=9-jdk11 -Dxwiki.test.ui.browser=chrome" | |
export mariaDBJettyFirefox="-Dxwiki.test.ui.database=mariadb -Dxwiki.test.ui.databaseTag=10.5 -Dxwiki.test.ui.jdbcVersion=pom -Dxwiki.test.ui.servletEngine=jetty -Dxwiki.test.ui.servletEngineTag=9-jre11 -Dxwiki.test.ui.browser=firefox" | |
export postgresTomcatChrome="-Dxwiki.test.ui.database=postgresql -Dxwiki.test.ui.databaseTag=12.3 -Dxwiki.test.ui.jdbcVersion=pom -Dxwiki.test.ui.servletEngine=tomcat -Dxwiki.test.ui.servletEngineTag=9-jdk11 -Dxwiki.test.ui.browser=chrome |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07:21:01.745 [main] INFO o.x.t.d.i.j.XWikiDockerExtension - (*) Starting test [savePage] | |
07:21:03.027 [tc-okhttp-stream-379679629] INFO o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 2019-06-14 07:21:03,026 [http://xwikiweb:8080/xwiki/bin/delete/EditIT/savePage/WebHome?form_token=rEJbYLklC1WpA7pVEYwNCw&confirm=1] WARN c.x.x.s.XWikiHibernateStore - Thread [31] Exec [401484243] Starting loading [xwiki:EditIT.savePage.WebHome] with content [] | |
07:21:03.271 [tc-okhttp-stream-379679629] INFO o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 2019-06-14 07:21:03,270 [http://xwikiweb:8080/xwiki/bin/delete/EditIT/savePage/WebHome?form_token=rEJbYLklC1WpA7pVEYwNCw&confirm=1] WARN c.x.x.s.XWikiHibernateStore - Thread [31] Exec [1064699883] Starting loading [xwiki:EditIT.savePage.WebHome] with content [] | |
07:21:03.281 [tc-okhttp-stream-379679629] INFO o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 2019-06-14 07:21:03,280 [http://xwikiweb:8080/xwiki/bin/view/EditIT/savePage/] WARN c.x.x.s.XWikiHibernateSto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
@Order(13) | |
public void savePage(TestUtils setup, TestReference testReference) | |
{ | |
Random random = new Random(); | |
String title = testReference.getLastSpaceReference().getName(); | |
setup.deletePage(testReference); | |
String content1, content2; | |
setup.createPage(testReference, "", title); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
PROFILES=snapshot | |
DISTRIB_HOME=/home/urli/Github/xwiki-platform/xwiki-platform-distribution | |
DISTRIB_CONF=/home/urli/xwiki/conf | |
cd $DISTRIB_HOME | |
mvn clean install -pl xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-jetty-hsqldb -am -P$PROFILES -DskipTests -Dxwiki.enforcer.skip=true -Dxwiki.checkstyle.skip=true -Dxwiki.revapi.skip=true -Dxwiki.spoon.skip=true -Dxwiki.enforcer.no-legacy-dependencies.skip=true --fail-at-end | |
cd xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-jetty-hsqldb/target/ | |
unzip xwiki-platform-distribution-*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.#----------------------------------------------------- | |
.input|xwiki/2.0 | |
.#----------------------------------------------------- | |
{{figure}} | |
{{figureCaption}}caption{{/figureCaption}} | |
whatever1 | |
whatever2 | |
{{/figure}} | |
.#----------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Detailed information: | |
Error number 9002 in 11: CSRF validation failed when saving. Try 'Save & View' instead! | |
com.xpn.xwiki.XWikiException: Error number 9002 in 11: CSRF validation failed when saving. Try 'Save & View' instead! | |
at com.xpn.xwiki.web.SaveAndContinueAction.handleCSRFValidationFailure(SaveAndContinueAction.java:134) | |
at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:187) | |
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:458) | |
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:209) | |
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/lib/jvm/java-8-jdk/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/opt/intellij-idea-ultimate-edition/lib/idea_rt.jar=44681:/opt/intellij-idea-ultimate-edition/bin -Dfile.encoding=UTF-8 -classpath /opt/intellij-idea-ultimate-edition/lib/idea_rt.jar:/opt/intellij-idea-ultimate-edition/plugins/junit/lib/junit-rt.jar:/opt/intellij-idea-ultimate-edition/plugins/junit/lib/junit5-rt.jar:/usr/lib/jvm/java-8-jdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-jdk/jre/lib/deploy.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-jdk/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-jdk/jre/lib/javaws.jar:/u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Comparing [fr.inria.gforge.spoon:spoon-core:jar:5.4.0] against [fr.inria.gforge.spoon:spoon-core:jar:5.5.0-SNAPSHOT] (including their transitive dependencies). | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 03:46 min | |
[INFO] Finished at: 2016-12-15T11:11:20+01:00 | |
[INFO] Final Memory: 36M/528M | |
[INFO] ------------------------------------------------------------------------ | |
Exception in thread "main" java.util.ServiceConfigurationError: org.revapi.java.spi.Check: Provider org.revapi.java.checks.fields.FieldMovedInHierarchy could not be instantiated | |
at java.util.ServiceLoader.fail(ServiceLoader.java:232) |
NewerOlder