Skip to content
Snippets Groups Projects
Commit 22c26c27 authored by Kelly Zhou's avatar Kelly Zhou
Browse files

Merge branch 'add-ent-topic' into 'master'

configure register service to be aware of Entitlements Change topic

See merge request !359
parents 124c597b 261da2c9
No related branches found
No related tags found
1 merge request!359configure register service to be aware of Entitlements Change topic
Checking pipeline status
......@@ -322,8 +322,8 @@ The following software have components provided under the terms of this license:
- proto-google-cloud-datastore-v1 (from https://github.com/googleapis/googleapis, https://github.com/googleapis/java-datastore/proto-google-cloud-datastore-v1)
- proto-google-cloud-logging-v2 (from https://github.com/googleapis/java-logging/proto-google-cloud-logging-v2, https://repo1.maven.org/maven2/com/google/api/grpc/proto-google-cloud-logging-v2)
- proto-google-cloud-pubsub-v1 (from https://github.com/googleapis/googleapis, https://github.com/googleapis/java-pubsub/proto-google-cloud-pubsub-v1)
- proto-google-common-protos (from https://github.com/googleapis/api-client-staging, https://github.com/googleapis/gapic-generator-java, https://github.com/googleapis/googleapis, https://github.com/googleapis/java-iam/proto-google-common-protos)
- proto-google-iam-v1 (from https://github.com/googleapis/gapic-generator-java, https://github.com/googleapis/googleapis, https://github.com/googleapis/java-iam/proto-google-iam-v1)
- proto-google-common-protos (from https://github.com/googleapis/api-client-staging, https://github.com/googleapis/googleapis, https://github.com/googleapis/java-iam/proto-google-common-protos, https://github.com/googleapis/sdk-platform-java)
- proto-google-iam-v1 (from https://github.com/googleapis/googleapis, https://github.com/googleapis/java-iam/proto-google-iam-v1, https://github.com/googleapis/sdk-platform-java)
- resilience4j (from https://github.com/resilience4j/resilience4j, https://resilience4j.readme.io, ttps://resilience4j.readme.io)
- spring-security-oauth2-client (from http://spring.io/spring-security, https://spring.io/projects/spring-security, https://spring.io/spring-security)
- spring-security-oauth2-core (from http://spring.io/spring-security, https://spring.io/projects/spring-security, https://spring.io/spring-security)
......
......@@ -32,5 +32,43 @@
"deletionType": "hard"
}
]
}
},
{
"name": "entitlements-changed",
"description": "This notification is sent whenever a group is updated or deleted.",
"state": "ACTIVE",
"example": [
{
"kind": "groupChanged",
"group": "users.testgroup.12345@dp1.slb.com",
"user" : "member1@slb.com",
"action": "add",
"modifiedBy": "requester1@slb.com",
"modifiedOn": 123456789
},
{
"kind": "groupChanged",
"group": "users.testgroup.12345@dp1.slb.com",
"user" : "member1@slb.com",
"updatedGroupEmail": "",
"action": "remove",
"modifiedBy": "requester1@slb.com",
"modifiedOn": 123456789
},
{
"kind": "groupChanged",
"group": "users.testgroup.12345@dp1.slb.com",
"updatedGroupEmail": "users.testgroup_new.12345@dp1.slb.com",
"action": "replace",
"modifiedBy": "requester1@slb.com",
"modifiedOn": 123456789
},
{
"kind": "groupDeleted",
"group": "users.testgroup.12345@dp1.slb.com",
"modifiedBy": "requester1@slb.com",
"modifiedOn": 123456789
}
]
}
]
......@@ -26,10 +26,15 @@ public class TopicRepositoryTest {
@Test
public void should_returnAllMessagesFromFile() {
TopicsRepository sut = new TopicsRepository();
assertEquals(1, sut.listMessages().size());
assertEquals(2, sut.listMessages().size());
assertEquals("records-changed", sut.listMessages().get(0).getName());
assertEquals("This notification is sent whenever a new record or record version is created, updated or deleted, and when a new schema is created in storage.", sut.listMessages().get(0).getDescription());
assertEquals("ACTIVE", sut.listMessages().get(0).getState());
assertNotNull(sut.listMessages().get(0).getExample());
assertEquals("entitlements-changed", sut.listMessages().get(1).getName());
assertEquals("This notification is sent whenever a group is updated or deleted.", sut.listMessages().get(1).getDescription());
assertEquals("ACTIVE", sut.listMessages().get(1).getState());
assertNotNull(sut.listMessages().get(1).getExample());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment