Skip to content

Commit 5774b8c

Browse files
fix: return StsClient from create() (#4479)
* fix: return StsClient from create() * DEPENDENCIES
1 parent d8552b2 commit 5774b8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DEPENDENCIES

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ maven/mavencentral/net.javacrumbs.json-unit/json-unit-core/2.36.0, Apache-2.0, a
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

extensions/common/store/sql/sts-client-store-sql/src/main/java/org/eclipse/edc/iam/identitytrust/sts/store/SqlStsClientStore.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public StoreResult<StsClient> create(StsClient client) {
6565
client.getCreatedAt()
6666
);
6767

68-
return StoreResult.success();
68+
return StoreResult.success(client);
6969
} catch (Exception e) {
7070
throw new EdcPersistenceException(e);
7171
}

spi/common/identity-trust-sts-spi/src/testFixtures/java/org/eclipse/edc/iam/identitytrust/sts/spi/store/fixtures/StsClientStoreTestBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Create {
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);

0 commit comments

Comments
 (0)