test(license): LicenseLifecycleIT — install/persist/revalidate/reject
End-to-end IT covering the full lifecycle: mint a token via cameleer-license-minter (test-scope), POST it via /api/v1/admin/license, verify state=ACTIVE, clear gate, revalidate from PG, verify state restored. Plus: tampered signature -> 400 + LICENSE/FAILURE audit row, gate not mutated to ACTIVE. Adds cameleer-license-minter as a test-scope dep on cameleer-server-app (verified absent from runtime/compile classpaths). Also disables the default spring-boot:repackage execution on the minter pom so the main artifact stays as a plain library JAR consumable as a Maven dependency (the cli classifier still produces the executable jar). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,12 @@
|
||||
<groupId>com.cameleer</groupId>
|
||||
<artifactId>cameleer-server-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.cameleer</groupId>
|
||||
<artifactId>cameleer-license-minter</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user