fabric8io / fabric8-generator

a jboss forge add on for the fabric8 upstream and SaaS generator wizards
Apache License 2.0
1 stars 12 forks source link

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 7 years ago

jstrachan commented 7 years ago

ideally we'd have 2 kinds of system test:

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

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

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 commented 7 years ago

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

jstrachan commented 7 years ago

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

jstrachan commented 7 years ago

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...