Issue-ID: VID-758
Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
Change-Id: Ib8b8da5c3267a3668cf29b950233af14b29f2d23
private String owningEntityId() {
private String owningEntityId() {
- // while translateOwningEntityNameToOwningEntityId does nothing, no translation happens.
- // this will be changed later.
- return SAMPLE_SUBSCRIBER;
+ return EXISTING_OWNING_ENTITY_ID;
}
private void setSubscribers() {
}
private void setSubscribers() {
"password": "1"
},
"roles": [
"password": "1"
},
"roles": [
- "d61e6f2d-12fa-4cc2-91df-7c244011d6fc___LOB", "Melissa___LOB", "aaa1___LOB",
+ "WayneHolland___LOB", "Melissa___LOB", "aaa1___LOB",
"SILVIA ROBBINS___TYLER SILVIA", "SILVIA ROBBINS___DARREN MCGEE", "CAR_2020_ER___DARREN MCGEE", "CAR_2020_ER___MSO-dev-service-type", "CAR_2020_ER___TYLER SILVIA","READ___LOGS___PERMITTED","Emanuel___mySubType", "global-customer-id___service-instance-type"
],
"subscriberNames": ["SILVIA ROBBINS", "CAR_2020_ER", "Emanuel", "global-customer-id"],
"SILVIA ROBBINS___TYLER SILVIA", "SILVIA ROBBINS___DARREN MCGEE", "CAR_2020_ER___DARREN MCGEE", "CAR_2020_ER___MSO-dev-service-type", "CAR_2020_ER___TYLER SILVIA","READ___LOGS___PERMITTED","Emanuel___mySubType", "global-customer-id___service-instance-type"
],
"subscriberNames": ["SILVIA ROBBINS", "CAR_2020_ER", "Emanuel", "global-customer-id"],
"password": "3"
},
"roles": [
"password": "3"
},
"roles": [
- "d61e6f2d-12fa-4cc2-91df-7c244011d6fc___LOB", "Melissa___LOB", "aaa1___LOB",
+ "WayneHolland___LOB", "Melissa___LOB", "aaa1___LOB",
"Emanuel___Emanuel"
],
"subscriberNames": ["Emanuel"],
"Emanuel___Emanuel"
],
"subscriberNames": ["Emanuel"],
"password": "667"
},
"roles": [
"password": "667"
},
"roles": [
- "d61e6f2d-12fa-4cc2-91df-7c244011d6fc___LOB", "Melissa___LOB", "aaa1___LOB",
+ "WayneHolland___LOB", "Melissa___LOB", "aaa1___LOB",
"CRAIG/ROBERTS___AIM Transport"
],
"subscriberNames": ["CRAIG/ROBERTS"],
"CRAIG/ROBERTS___AIM Transport"
],
"subscriberNames": ["CRAIG/ROBERTS"],
"password": "4"
},
"roles": [
"password": "4"
},
"roles": [
- "d61e6f2d-12fa-4cc2-91df-7c244011d6fc___LOB", "Melissa___LOB", "aaa1___LOB",
+ "WayneHolland___LOB", "Melissa___LOB", "aaa1___LOB",
"Emanuel___vWINIFRED", "Emanuel___vRichardson"
],
"subscriberNames": ["Emanuel"],
"Emanuel___vWINIFRED", "Emanuel___vRichardson"
],
"subscriberNames": ["Emanuel"],
"password": "822"
},
"roles": [
"password": "822"
},
"roles": [
- "d61e6f2d-12fa-4cc2-91df-7c244011d6fc___LOB", "Melissa___LOB", "aaa1___LOB",
+ "WayneHolland___LOB", "Melissa___LOB", "aaa1___LOB",
"JULIO ERICKSON___Emanuel",
"JULIO ERICKSON___vRichardson"
"JULIO ERICKSON___Emanuel",
"JULIO ERICKSON___vRichardson"
"password": "312"
},
"roles": [
"password": "312"
},
"roles": [
- "d61e6f2d-12fa-4cc2-91df-7c244011d6fc___LOB", "Melissa___LOB", "aaa1___LOB",
+ "WayneHolland___LOB", "Melissa___LOB", "aaa1___LOB",
"Emanuel___vRichardson"
],
"subscriberNames": ["Emanuel"],
"Emanuel___vRichardson"
],
"subscriberNames": ["Emanuel"],
"password": "312"
},
"roles": [
"password": "312"
},
"roles": [
- "d61e6f2d-12fa-4cc2-91df-7c244011d6fc___LOB", "Melissa___LOB", "aaa1___LOB",
+ "WayneHolland___LOB", "Melissa___LOB", "aaa1___LOB",
"Emanuel___vWINIFRED___test-hvf6-09"
],
"subscriberNames": ["Emanuel"],
"Emanuel___vWINIFRED___test-hvf6-09"
],
"subscriberNames": ["Emanuel"],
public void searchServiceInstancesBySubscriber_serviceInstanceOfAnotherSubscriber_authIsFollowingFeatureToggle() {
String craigRobertsSubscriberId = "31739f3e-526b-11e6-beb8-9e71128cae77";
String aServiceOwningEntityId = "f160c875-ddd1-4ef5-84d8-d098784daa3a";
public void searchServiceInstancesBySubscriber_serviceInstanceOfAnotherSubscriber_authIsFollowingFeatureToggle() {
String craigRobertsSubscriberId = "31739f3e-526b-11e6-beb8-9e71128cae77";
String aServiceOwningEntityId = "f160c875-ddd1-4ef5-84d8-d098784daa3a";
- String currentUserAuthorizedOwningEntityId = "SILVIA ROBBINS"; // this will need to change with translateOwningEntityNameToOwningEntityId
+ String currentUserAuthorizedOwningEntityId = "d61e6f2d-12fa-4cc2-91df-7c244011d6fc";
SimulatorApi.registerExpectation(GET_SUBSCRIBERS_FOR_CUSTOMER_CRAIG_ROBERTS,
ImmutableMap.of(aServiceOwningEntityId, currentUserAuthorizedOwningEntityId), CLEAR_THEN_SET);
SimulatorApi.registerExpectation(GET_SUBSCRIBERS_FOR_CUSTOMER_CRAIG_ROBERTS,
ImmutableMap.of(aServiceOwningEntityId, currentUserAuthorizedOwningEntityId), CLEAR_THEN_SET);