-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-14813] - Implement server API to user member cipher details inste…
…ad of mock data (#11978) * use cipher details data * fix failing tests * fix failing tests
- Loading branch information
1 parent
379efb1
commit 0b11596
Showing
9 changed files
with
140 additions
and
109 deletions.
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
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 |
---|---|---|
|
@@ -4,74 +4,72 @@ import { ApiService } from "@bitwarden/common/abstractions/api.service"; | |
|
||
import { MemberCipherDetailsApiService } from "./member-cipher-details-api.service"; | ||
|
||
const mockMemberCipherDetails: any = { | ||
data: [ | ||
{ | ||
userName: "David Brent", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab1", | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
], | ||
}, | ||
{ | ||
userName: "Tim Canterbury", | ||
email: "[email protected]", | ||
usesKeyConnector: false, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
], | ||
}, | ||
{ | ||
userName: "Gareth Keenan", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm7", | ||
], | ||
}, | ||
{ | ||
userName: "Dawn Tinsley", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
], | ||
}, | ||
{ | ||
userName: "Keith Bishop", | ||
email: "[email protected]", | ||
usesKeyConnector: false, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab1", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
], | ||
}, | ||
{ | ||
userName: "Chris Finch", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
], | ||
}, | ||
], | ||
}; | ||
export const mockMemberCipherDetails: any = [ | ||
{ | ||
userName: "David Brent", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab1", | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
], | ||
}, | ||
{ | ||
userName: "Tim Canterbury", | ||
email: "[email protected]", | ||
usesKeyConnector: false, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
], | ||
}, | ||
{ | ||
userName: "Gareth Keenan", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm7", | ||
], | ||
}, | ||
{ | ||
userName: "Dawn Tinsley", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
], | ||
}, | ||
{ | ||
userName: "Keith Bishop", | ||
email: "[email protected]", | ||
usesKeyConnector: false, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab1", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
"cbea34a8-bde4-46ad-9d19-b05001227nm5", | ||
], | ||
}, | ||
{ | ||
userName: "Chris Finch", | ||
email: "[email protected]", | ||
usesKeyConnector: true, | ||
cipherIds: [ | ||
"cbea34a8-bde4-46ad-9d19-b05001228ab2", | ||
"cbea34a8-bde4-46ad-9d19-b05001228cd3", | ||
"cbea34a8-bde4-46ad-9d19-b05001228xy4", | ||
], | ||
}, | ||
]; | ||
|
||
describe("Member Cipher Details API Service", () => { | ||
let memberCipherDetailsApiService: MemberCipherDetailsApiService; | ||
|
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
Oops, something went wrong.