Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
feckertson committed Mar 28, 2019
1 parent 5fac840 commit 286da0e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ccl-testing Change Log

### Corrections
* Fix [#23](https://github.com/cerner/ccl-testing/issues/23) skip processing configurations not working.


## 2019-02-18
* whitenoise-maven-plugin **2.5**
* cclunit-archetype **1.5**
Expand Down
2 changes: 1 addition & 1 deletion ccl-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<groupId>com.cerner.ccl.testing</groupId>
<artifactId>ccl-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>3.2</version>
<version>3.3-SNAPSHOT</version>
<name>ccl-maven-plugin Maven Mojo</name>
<description>A Maven plugin used to compile and test CCL code.</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ public void execute() throws MojoExecutionException, MojoFailureException {
return;
}

// TODO: Add integration tests that fail if not done this way.
Subject subject = getSubject();
final CclExecutor executor = createCclExecutor();
queueIncludeCompilation(executor, cclTestSourceDirectory);
queueScriptCompilation(executor, cclTestSourceDirectory);
Subject.doAs(getSubject(), new PrivilegedAction<Void>() {
Subject.doAs(subject, new PrivilegedAction<Void>() {
public Void run() {
executor.execute();
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,13 @@ private void executeTests(final List<File> sources, final List<File> testSources
getLog().debug("Executing " + CCL_UNIT_PROGRAM + " on " + host + " (" + environment + ")");
}

// TODO: Add integration tests that fail if not done this way.
Subject subject = getSubject();
final CclExecutor cclExecutor = createCclExecutor();
cclExecutor.addScriptExecution(CCL_UNIT_PROGRAM).withReplace("cclutRequest", request)
.withReplace("cclutReply", reply).withAuthentication(true).commit();

Subject.doAs(getSubject(), new PrivilegedAction<Void>() {
Subject.doAs(subject, new PrivilegedAction<Void>() {
public Void run() {
getLog().info("");
getLog().info("executing test case " + testFile.getName());
Expand Down

0 comments on commit 286da0e

Please sign in to comment.