package com.perforce.workshop.tjuricek.p4oauth import org.gradle.api.tasks.TaskAction /** * This starts p4oauth up in a working directory, with a whitelist that allows * a single test application to run. */ class StartP4OAuthTask extends P4OAuthTask { /** * We actually need "initializePerforce" to have been run... once, on a * clean installation. Not 100% sure how to enforce that one just yet. * * TODO Have initializePerforce set some kind of "initialized" file and conditionally depend on this task * TODO need to launch the test application server */ @Override Set<Object> getDependsOn() { return ["startPerforce", "createKeystore"]; } @TaskAction def start() { if (!this.p4OAuthJarFile.exists()) { throw new IllegalStateException(p4OAuthJarFile.absolutePath + " does not exist. Please run './gradlew assemble' in the " + "parent project "); } if (!this.initialized) { } } def initialize() { if (!p4OAuthWorkDir.exists()) { p4OAuthWorkDir.mkdirs() } throw new IllegalStateException("not implemented"); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 9157 | tjuricek | Added basic "authorization code" workflow test. | ||
#4 | 9144 | tjuricek | Added basic webdriver config and config for P4OAuth service | ||
#3 | 9142 | tjuricek | Implemented 'startP4OAuth' and 'stopP4OAuth' tasks, fixed reference to test data, and updated plugin dependencies | ||
#2 | 9138 | tjuricek |
Added a "test server" with startTestServer and stopTestServer gradle tasks. The test server isn't 100% complete, but the gradle tasks should be. This is to be used to drive tests forward via a web browser. |
||
#1 | 9105 | tjuricek |
Added the 'createKeystore' task, and framework for how the functional tests will be set up. See the functional_tests/README. The short story is that we'll execute a "test webapp" that the actual tests will interact with. |