-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notify producer and consumer clients when schemas are uploaded on top…
…ic (#2060) * Notify acl owners on schema changes Signed-off-by: muralibasani <[email protected]> * Add test Signed-off-by: muralibasani <[email protected]> * Optimize calls Signed-off-by: muralibasani <[email protected]> * Remove an unused var Signed-off-by: muralibasani <[email protected]> --------- Signed-off-by: muralibasani <[email protected]> Co-authored-by: muralibasani <[email protected]>
- Loading branch information
1 parent
a824571
commit 14a5068
Showing
5 changed files
with
212 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
import io.aiven.klaw.dao.AclRequests; | ||
import io.aiven.klaw.dao.ActivityLog; | ||
import io.aiven.klaw.dao.Env; | ||
import io.aiven.klaw.dao.EnvTag; | ||
import io.aiven.klaw.dao.KwClusters; | ||
import io.aiven.klaw.dao.KwKafkaConnector; | ||
import io.aiven.klaw.dao.KwTenants; | ||
|
@@ -271,6 +272,23 @@ public List<Acl> getAcls() { | |
return allTopicReqs; | ||
} | ||
|
||
public List<Acl> getSyncAcls() { | ||
List<Acl> allTopicReqs = new ArrayList<>(); | ||
Acl acl1 = new Acl(); | ||
acl1.setTeamId(102); | ||
acl1.setAclType(AclType.PRODUCER.value); | ||
acl1.setTenantId(101); | ||
allTopicReqs.add(acl1); | ||
|
||
Acl acl2 = new Acl(); | ||
acl2.setTeamId(103); | ||
acl2.setAclType(AclType.CONSUMER.value); | ||
acl2.setTenantId(101); | ||
allTopicReqs.add(acl2); | ||
|
||
return allTopicReqs; | ||
} | ||
|
||
public List<AclInfo> getAclInfoList() { | ||
List<AclInfo> allTopicReqs = new ArrayList<>(); | ||
AclInfo topicRequest = new AclInfo(); | ||
|
@@ -469,6 +487,39 @@ public List<Team> getTeams() { | |
return allTopicReqs; | ||
} | ||
|
||
public List<Team> getTeamsForTenant() { | ||
List<Team> teams = new ArrayList<>(); | ||
Team team1 = new Team(); | ||
team1.setTeamname("Seahorses"); | ||
team1.setTeamId(101); | ||
team1.setContactperson("Contact Person1"); | ||
team1.setTenantId(101); | ||
team1.setTeamphone("3142342343242"); | ||
team1.setTeammail("[email protected]"); | ||
|
||
Team team2 = new Team(); | ||
team2.setTeamname("Octopus"); | ||
team2.setTeamId(102); | ||
team2.setContactperson("Contact Person2"); | ||
team2.setTenantId(101); | ||
team2.setTeamphone("3142342343242"); | ||
team2.setTeammail("[email protected]"); | ||
|
||
Team team3 = new Team(); | ||
team3.setTeamname("Dragons"); | ||
team3.setTeamId(103); | ||
team3.setContactperson("Contact Person3"); | ||
team3.setTenantId(101); | ||
team3.setTeamphone("3142342343242"); | ||
team3.setTeammail("[email protected]"); | ||
|
||
teams.add(team1); | ||
teams.add(team2); | ||
teams.add(team3); | ||
|
||
return teams; | ||
} | ||
|
||
public List<TeamModelResponse> getTeamsModel() { | ||
List<TeamModelResponse> allTopicReqs = new ArrayList<>(); | ||
TeamModelResponse team = new TeamModelResponse(); | ||
|
@@ -703,6 +754,29 @@ public List<Env> getEnvLists() { | |
return envList; | ||
} | ||
|
||
public List<Env> getKafkaEnvs() { | ||
List<Env> envList = new ArrayList<>(); | ||
Env env = new Env(); | ||
env.setId("1"); | ||
env.setName("DEV"); | ||
envList.add(env); | ||
env.setClusterId(1); | ||
env.setTenantId(101); | ||
env.setAssociatedEnv(new EnvTag("3", "DEV")); | ||
return envList; | ||
} | ||
|
||
public Env getSchemaEnv() { | ||
Env env = new Env(); | ||
env.setId("3"); | ||
env.setName("DEV"); | ||
env.setClusterId(3); | ||
env.setTenantId(101); | ||
env.setAssociatedEnv(new EnvTag("1", "DEV")); | ||
|
||
return env; | ||
} | ||
|
||
public List<Env> getEnvListsIncorrect1() { | ||
List<Env> envList = new ArrayList<>(); | ||
Env env = new Env(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters