Skip to content

Commit 35e3c74

Browse files
authored
Merge pull request #5507 from brucehoff/PLFM-9441
PLFM-9441
2 parents 1aa4432 + 7ca6de3 commit 35e3c74

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/jdomodels/src/main/resources/schema/RealmIdentityProvider-ddl.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CREATE TABLE IF NOT EXISTS `SYNAPSE_REALM_IDP` (
22
`REALM_ID` BIGINT NOT NULL,
3-
`PROVIDER` ENUM('SYNAPSE', 'GOOGLE_OAUTH_2_0', 'ORCID', 'ARCUS_BIOSCIENCES') NOT NULL,
3+
`PROVIDER` ENUM('SYNAPSE', 'GOOGLE_OAUTH_2_0', 'ORCID', 'ARCUS_BIOSCIENCES', 'SAGE_BIONETWORKS') NOT NULL,
44
PRIMARY KEY (`REALM_ID`, `PROVIDER`),
55
UNIQUE (`PROVIDER`),
66
CONSTRAINT `REALM_ID_REALM_FK` FOREIGN KEY (`REALM_ID`) REFERENCES `SYNAPSE_REALM` (`ID`) ON DELETE CASCADE

lib/jdomodels/src/test/java/org/sagebionetworks/repo/model/dbo/auth/RealmDaoImplTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,15 @@ void testValidateAllOAuthProviders() {
255255
Realm realm = new Realm();
256256
realm.setName(NAME);
257257
realm.setIdentityProvider(idps);
258+
258259
// method under test
259260
Realm created = realmDao.createRealm(realm);
261+
260262
idsToDelete.add(created.getId());
263+
264+
// 'createRealm' may not raise an exception when it fails
265+
// but the following will
266+
realmDao.getRealm(created.getId());
261267
}
262268

263269
@Test

0 commit comments

Comments
 (0)