Skip to content

Commit

Permalink
Perf test: Disable jacoco
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Bandener <[email protected]>
  • Loading branch information
nibix committed Jul 3, 2024
1 parent 4eb1d14 commit 1408517
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ dependencies {
implementation 'com.nimbusds:nimbus-jose-jwt:9.40'
implementation 'com.rfksystems:blake2b:2.0.0'
implementation 'com.password4j:password4j:1.8.2'

//JWT
implementation "io.jsonwebtoken:jjwt-api:${jjwt_version}"
implementation "io.jsonwebtoken:jjwt-impl:${jjwt_version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,22 +498,17 @@ public void run() {
}

final void single(PrivilegesEvaluator subject) {
try {
PrivilegesEvaluationContext context = subject.createContext(
user(user),

PrivilegesEvaluatorResponse response = subject.evaluate(user(user),
requestParameters.action,
requestParameters.getRequest(this.random),
null,
null
);
PrivilegesEvaluatorResponse response = subject.evaluate(context);
null);

if (!response.isAllowed()) {
throw new RuntimeException("Assertion failed: " + response);
}
} catch (PrivilegesEvaluatorResponse.NotAllowedException e) {
throw new RuntimeException(e);
}

}
}

Expand Down Expand Up @@ -587,10 +582,7 @@ public ReplaceResult replaceDashboardsIndex(
indexResolverReplacer,
namedXContentRegistry
);
privilegesEvaluator.updateConfiguration(
TEST_SECURITY_CONFIG.geActionGroupsConfiguration(),
TEST_SECURITY_CONFIG.getRolesConfiguration()
);

privilegesEvaluator.onDynamicConfigModelChanged(dynamicConfigModel);
privilegesEvaluator.onConfigModelChanged(configModel);

Expand Down

0 comments on commit 1408517

Please sign in to comment.