Elffuss BraidHub

kikocis/EDC public

fix: return StsClient from create() (#4479)

* fix: return StsClient from create()

* DEPENDENCIES
Changesetcc2a9ff178c47d5d081c2bc3ef6d2afca9ec6bbe013bba770a515f784df01cd4
AuthorPaul Latzelsperger <43503240+paullatzelsperger@users.noreply.github.com> · 2024-09-18 07:37 +02:00
CommitterGitHub <noreply@github.com> · 2024-09-18 07:37 +02:00
Parentsbf50f9129a27

Browse the files at this changeset

3 files changed

modified DEPENDENCIES +1 −1
@@ -195,7 +195,7 @@
195195 maven/mavencentral/net.minidev/accessors-smart/2.4.7, Apache-2.0, approved, #7515
196196 maven/mavencentral/net.minidev/json-smart/2.4.7, Apache-2.0, approved, #3288
197197 maven/mavencentral/net.sf.jopt-simple/jopt-simple/5.0.4, MIT, approved, CQ13174
198-maven/mavencentral/net.sf.saxon/Saxon-HE/12.5, MPL-2.0-no-copyleft-exception AND (LicenseRef-scancode-proprietary-license AND MPL-2.0-no-copyleft-exception) AND (MPL-2.0-no-copyleft-exception AND X11) AND (MIT AND MPL-2.0-no-copyleft-exception) AND (MPL-1.0 AND MPL-2.0-no-copyleft-exception) AND (Apache-2.0 AND MPL-2.0-no-copyleft-exception) AND MPL-1.0, restricted, #16061
198+maven/mavencentral/net.sf.saxon/Saxon-HE/12.5, W3C-19980720 AND MPL-2.0 AND MPL-1.0, approved, #16061
199199 maven/mavencentral/org.antlr/antlr4-runtime/4.13.2, BSD-3-Clause, approved, #10767
200200 maven/mavencentral/org.apache.commons/commons-compress/1.24.0, Apache-2.0 AND BSD-3-Clause AND bzip2-1.0.6 AND LicenseRef-Public-Domain, approved, #10368
201201 maven/mavencentral/org.apache.commons/commons-digester3/3.2, Apache-2.0, approved, clearlydefined
modified extensions/common/store/sql/sts-client-store-sql/src/main/java/org/eclipse/edc/iam/identitytrust/sts/store/SqlStsClientStore.java +1 −1
@@ -65,7 +65,7 @@
6565 client.getCreatedAt()
6666 );
6767
68- return StoreResult.success();
68+ return StoreResult.success(client);
6969 } catch (Exception e) {
7070 throw new EdcPersistenceException(e);
7171 }
modified spi/common/identity-trust-sts-spi/src/testFixtures/java/org/eclipse/edc/iam/identitytrust/sts/spi/store/fixtures/StsClientStoreTestBase.java +1 −1
@@ -82,7 +82,7 @@
8282 @DisplayName("Save a single client that not exists")
8383 void create() {
8484 var client = createClient(getRandomId());
85- assertThat(getStsClientStore().create(client)).isSucceeded();
85+ assertThat(getStsClientStore().create(client)).isSucceeded().usingRecursiveComparison().isEqualTo(client);
8686
8787 var clientFromDb = getStsClientStore().findByClientId(client.getId()).getContent();
8888 assertThat(client).usingRecursiveComparison().isEqualTo(clientFromDb);