Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions e2e-tests/dcp-issuance-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies {
testImplementation(project(":spi:issuerservice:issuerservice-issuance-spi"))
testImplementation(project(":spi:participant-context-spi"))
testImplementation(project(":spi:sts-spi"))
testImplementation(project(":protocols:dcp:dcp-spi"))

testImplementation(libs.edc.junit)
testImplementation(libs.edc.lib.jsonld)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
import com.nimbusds.jose.jwk.Curve;
import com.nimbusds.jose.jwk.ECKey;
import com.nimbusds.jose.jwk.gen.ECKeyGenerator;
import com.nimbusds.jose.jwk.gen.OctetKeyPairGenerator;
import org.eclipse.edc.iam.did.spi.document.DidDocument;
import org.eclipse.edc.iam.did.spi.document.Service;
import org.eclipse.edc.iam.did.spi.resolution.DidPublicKeyResolver;
import org.eclipse.edc.iam.did.spi.resolution.DidResolverRegistry;
import org.eclipse.edc.identityhub.spi.participantcontext.model.KeyDescriptor;
import org.eclipse.edc.identityhub.tests.fixtures.DefaultRuntimes;
import org.eclipse.edc.identityhub.tests.fixtures.issuerservice.IssuerService;
import org.eclipse.edc.issuerservice.spi.holder.HolderService;
Expand Down Expand Up @@ -85,6 +83,7 @@ public class DcpCredentialRequestApiEndToEndTest {

protected static final DidPublicKeyResolver DID_PUBLIC_KEY_RESOLVER = mock();
protected static final DidResolverRegistry DID_RESOLVER_REGISTRY = mock();
private static final String ISSUER = "issuer";

abstract static class Tests {

Expand Down Expand Up @@ -130,25 +129,6 @@ static void beforeAll(IssuerService issuer) {
return "/v1beta/participants/%s/credentials".formatted(ISSUER_ID);
}

@NotNull
private static KeyDescriptor.Builder createKey() {
return KeyDescriptor.Builder.newInstance().keyId("test-key")
.privateKeyAlias("private-alias")
.active(true)
.publicKeyJwk(createJwk());
}


private static Map<String, Object> createJwk() {
try {
return new OctetKeyPairGenerator(Curve.Ed25519)
.generate()
.toJSONObject();
} catch (JOSEException e) {
throw new RuntimeException(e);
}
}

@AfterEach
void teardown(HolderService holderService, CredentialDefinitionService credentialDefinitionService, AttestationDefinitionService attestationDefinitionService) {
holderService.queryHolders(QuerySpec.max()).getContent()
Expand Down Expand Up @@ -500,15 +480,11 @@ class Postgres extends Tests {
@Order(0)
@RegisterExtension
static final PostgresqlEndToEndExtension POSTGRESQL_EXTENSION = new PostgresqlEndToEndExtension();

private static final String ISSUER = "issuer";

@Order(1)
@RegisterExtension
static final BeforeAllCallback POSTGRES_CONTAINER_STARTER = context -> {
POSTGRESQL_EXTENSION.createDatabase(ISSUER);
};

@Order(2)
@RegisterExtension
static final RuntimeExtension ISSUER_EXTENSION = ComponentRuntimeExtension.Builder.newInstance()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"version": "1.0.0-beta",
"urlPath": "/v1beta",
"lastUpdated": "2026-07-20T13:00:00Z",
"lastUpdated": "2026-08-12T13:00:00Z",
"maturity": null
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public void offerCredential(@PathParam("participantContextId") String participan
.participantContextId(participantContextId)
.issuer(offerMessage.getIssuer())
.credentialObjects(offerMessage.getCredentials().stream().map(co -> CredentialObject.Builder.newInstance()
.id(co.getId())
.bindingMethods(co.getBindingMethods())
.credentialType(co.getCredentialType())
.issuancePolicy(co.getIssuancePolicy())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class JsonObjectToCredentialObjectTransformerTest {
private final ObjectMapper mapper = JacksonJsonLd.createObjectMapper();
private final TypeManager typeManager = mock();
private final JsonObjectToCredentialObjectTransformer transformer = new JsonObjectToCredentialObjectTransformer(typeManager, "test", DSPACE_DCP_NAMESPACE_V_1_0);
private final TypeTransformerRegistry trr = new TypeTransformerRegistryImpl();
private final TypeTransformerRegistry trr = new TypeTransformerRegistryImpl(mock());
private final TransformerContext context = new TransformerContextImpl(trr);

@BeforeEach
Expand Down
Loading