Skip to content
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.

create automated integration tests that invoke the new project wizard via the forge/generator REST API and assert that the created projects work #2

Open
jstrachan opened this issue Mar 16, 2017 · 3 comments
Assignees

Comments

@jstrachan
Copy link
Contributor

ideally we'd have 2 kinds of system test:

  • using something like selenium to drive the actual web console
  • talking to the obsidian/forge REST API directly

Which then creates a project using each of the quickstarts/wizard options and then asserts that

  • the git repo + openshift project is created and the pipeline completes successfully
  • a user then makes a git commit + push somehow (I guess ideally via Che but for now could just be via git) and then assert that a 2nd pipeline is triggered and it completes successfully

Upstream on the fabric8 project we used a slightly different distro of forge + forge addons and have these system tests here:
https://github.com/fabric8io/fabric8-forge/tree/master/fabric8-forge-rest-client

we just need to migrate them to

  • use the new forge-service / obsidian REST API. I wonder if the obsidian folks have something for this already?
  • use the new obsidian wizards

The code to do asserts on builds completing and whatnot should be similar; though we could just use the OpenShift APIs for all that now via the OpenShiftClient checking the project is created - via the BuildConfig and that the Build starts and completes OK and tails the log etc.

@ldimaggi
Copy link

James - can you assign this issue to me? Thx!

@jstrachan
Copy link
Contributor Author

done! I can give you a hand on how to migrate that test over to the new forge API & wizards if you like

@jstrachan
Copy link
Contributor Author

jstrachan commented Mar 31, 2017

fwiw I've started putting a little REST / Java client for testing forge/obsidian/generator commands here: https://github.com/fabric8io/forge-service-client

Hoping to have a project wizard test case soon...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants