Skip to content

Commit

Permalink
Replace http protocol in site/category with secured one
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <odockal@redhat.com>
  • Loading branch information
odockal committed Feb 23, 2022
1 parent f653d06 commit 22dc4a3
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
4 changes: 2 additions & 2 deletions site/category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@

<!--Change the site to releases once doing final release -->
<!--repository-reference location="http://download.eclipse.org/releases/2021-12/" enabled="true" /-->
<repository-reference location="http://download.eclipse.org/staging/2022-03/" enabled="true" />
<repository-reference location="http://download.eclipse.org/eclipse/updates/4.23" enabled="true" />
<repository-reference location="https://download.eclipse.org/staging/2022-03/" enabled="true" />
<repository-reference location="https://download.eclipse.org/eclipse/updates/4.23" enabled="true" />
<repository-reference location="https://download.eclipse.org/tools/orbit/downloads/drops/S20220215213605/repository" enabled="true" />

</site>
4 changes: 2 additions & 2 deletions tests/org.eclipse.reddeer.eclipse.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@
<repository>
<id>datatools</id>
<layout>p2</layout>
<url>http://download.eclipse.org/datatools/updates/1.14.100-SNAPSHOT/repository</url>
<url>https://download.eclipse.org/datatools/updates/1.14.100-SNAPSHOT/repository</url>
</repository>
<repository>
<id>rse</id>
<layout>p2</layout>
<url>http://download.eclipse.org/tm/updates/3.7.100-SNAPSHOT/repository/</url>
<url>https://download.eclipse.org/tm/updates/3.7.100-SNAPSHOT/repository/</url>
</repository>
</repositories>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package org.eclipse.reddeer.eclipse.test.condition;

import org.eclipse.reddeer.common.wait.WaitUntil;
import org.eclipse.reddeer.eclipse.condition.ConsoleHasLabel;
import org.eclipse.reddeer.eclipse.ui.console.ConsoleView;
import org.eclipse.reddeer.junit.runner.RedDeerSuite;
import org.eclipse.reddeer.swt.impl.menu.ToolItemMenuItem;
import org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem;
import org.hamcrest.Matcher;
import org.hamcrest.core.StringEndsWith;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(RedDeerSuite.class)
public class ConsoleHasLabelTest {

@Test
public void testReinitiatingCondition() {
Matcher<String> textMatcher = StringEndsWith.endsWith("Java Stack Trace Console");

Matcher<String> textMatcher2 = StringEndsWith.endsWith("CVS");


ConsoleHasLabel condition = new ConsoleHasLabel(textMatcher);
// First run
ConsoleView console1 = new ConsoleView();
console1.open();
var menu = new ToolItemMenuItem(new DefaultToolItem(console1.getCTabItem().getFolder(), "Open Console"), textMatcher);
menu.select();
new WaitUntil(condition);
console1.close();

// Second run
ConsoleView console2 = new ConsoleView();
console2.open();
var menu2 = new ToolItemMenuItem(new DefaultToolItem(console2.getCTabItem().getFolder(), "Open Console"), textMatcher2);
menu2.select();
new WaitUntil(new ConsoleHasLabel(textMatcher2)); // Will fail because ConsoleHasLabel still refers to console1
}

}
2 changes: 1 addition & 1 deletion tests/org.eclipse.reddeer.gef.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<repositories>
<repository>
<id>gef-legacy-examples</id>
<url>http://download.eclipse.org/tools/gef/updates/legacy/releases/</url>
<url>https://download.eclipse.org/tools/gef/updates/legacy/releases/</url>
<layout>p2</layout>
</repository>
</repositories>
Expand Down

0 comments on commit 22dc4a3

Please sign in to comment.