Skip to content

Correct the tests in the 'factory' package related to get rid from test repositories on GitHub#11019

Merged
artaleks9 merged 10 commits intomasterfrom
che#10890
Sep 5, 2018
Merged

Correct the tests in the 'factory' package related to get rid from test repositories on GitHub#11019
artaleks9 merged 10 commits intomasterfrom
che#10890

Conversation

@artaleks9
Copy link
Copy Markdown
Contributor

What does this PR do?

  • Correct the selenium tests in the factory package to get rid test repositories on GitHub by use the kohsuke GitHub library
  • Add the test project quickstart to the resources

What issues does this PR fix or reference?

#10890

@artaleks9 artaleks9 added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/task Internal things, technical debt, and to-do tasks to be performed. team/che-qe labels Aug 31, 2018
@artaleks9
Copy link
Copy Markdown
Contributor Author

ci-test

testFactoryWithKeepDir =
testFactoryInitializer.fromUrl(
"https://github.com/" + gitHubUsername + "/gitPullTest/tree/master/my-lib");
// preconditions - create the test repository
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test repo has actually created earlier, and here we are adding project into the test repo.

public void setUp() throws Exception {
testFactoryWithRootFolder =
testFactoryInitializer.fromUrl("https://github.com/" + gitHubUsername + "/quickstart");
// preconditions - create test the repository
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test repo has actually created earlier, and here we are adding project into the test repo.


@BeforeClass
public void setUp() throws Exception {
// preconditions - create test the repository
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test repo has actually created earlier, and here we are adding project into the test repo.

UPDATING_PROJECT_TIMEOUT_SEC);
events.waitExpectedMessage(
"Project: gitPullTest | cloned from: gitPullTest | remote branch: refs/remotes/origin/contrib-12092015 | local branch: contrib-12092015",
"Project: "
Copy link
Copy Markdown
Contributor

@dmytro-ndp dmytro-ndp Aug 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This multi row string looks not good. i would better to use Strng.format() to add variate part into the string.

@riuvshin
Copy link
Copy Markdown
Contributor

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:11019
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@riuvshin
Copy link
Copy Markdown
Contributor

riuvshin commented Sep 2, 2018

ci-test

@riuvshin
Copy link
Copy Markdown
Contributor

riuvshin commented Sep 3, 2018

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:11019
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@artaleks9
Copy link
Copy Markdown
Contributor Author

ci-test

@riuvshin
Copy link
Copy Markdown
Contributor

riuvshin commented Sep 3, 2018

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:11019
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@Inject private TestWorkspaceServiceClient workspaceServiceClient;
@Inject private TestProjectServiceClient testProjectServiceClient;
@Inject private PullRequestPanel pullRequestPanel;
@Inject private TestGitHubRepository testRepo;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can declare it like the follow to create test repo as auxiliary github user:

  @Inject
  @Named(AUXILIARY)
  private TestGitHubRepository testAuxiliaryRepo;

@artaleks9 artaleks9 merged commit e1aaf44 into master Sep 5, 2018
@artaleks9 artaleks9 deleted the che#10890 branch September 5, 2018 09:21
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Sep 5, 2018
@benoitf benoitf added this to the 6.11.0 milestone Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/task Internal things, technical debt, and to-do tasks to be performed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants