Show user email address in account picker (#5015)

* Show user email address in account picker

* Fix build break and remove Azure account from sqlops namespace
This commit is contained in:
Karl Burtram
2019-04-12 17:23:48 -07:00
committed by GitHub
parent 34288435ec
commit c5a32d8373
18 changed files with 57 additions and 312 deletions

View File

@@ -71,7 +71,8 @@ suite('Account picker service tests', () => {
displayInfo: {
contextualDisplayName: 'Microsoft Account',
accountType: 'microsoft',
displayName: 'Account 1'
displayName: 'Account 1',
userId: 'user@email.com'
},
properties: [],
isStale: false

View File

@@ -31,7 +31,8 @@ suite('Account picker view model tests', () => {
displayInfo: {
contextualDisplayName: 'Microsoft Account',
accountType: 'microsoft',
displayName: 'Account 1'
displayName: 'Account 1',
userId: 'user@email.com'
},
properties: [],
isStale: false
@@ -42,7 +43,8 @@ suite('Account picker view model tests', () => {
displayInfo: {
contextualDisplayName: 'Work/School Account',
accountType: 'microsoft',
displayName: 'Account 2'
displayName: 'Account 2',
userId: 'user@email.com'
},
properties: [],
isStale: true

View File

@@ -36,7 +36,8 @@ suite('Account Management Dialog ViewModel Tests', () => {
displayInfo: {
contextualDisplayName: 'Microsoft Account',
accountType: 'microsoft',
displayName: 'Account 1'
displayName: 'Account 1',
userId: 'user@email.com'
},
properties: [],
isStale: false
@@ -47,7 +48,8 @@ suite('Account Management Dialog ViewModel Tests', () => {
displayInfo: {
contextualDisplayName: 'Work/School Account',
accountType: 'work_school',
displayName: 'Account 2'
displayName: 'Account 2',
userId: 'user@email.com'
},
properties: [],
isStale: true

View File

@@ -36,7 +36,8 @@ suite('Firewall rule dialog controller tests', () => {
displayInfo: {
contextualDisplayName: 'Microsoft Account',
accountType: 'microsoft',
displayName: 'Account 1'
displayName: 'Account 1',
userId: 'user@email.com'
},
properties: [],
isStale: false

View File

@@ -36,7 +36,9 @@ const account: azdata.Account = {
displayInfo: {
displayName: 'Test Account 1',
accountType: 'test',
contextualDisplayName: 'Azure Account'
contextualDisplayName: 'Azure Account',
userId: 'user@email.com'
},
isStale: false,
properties: {}

View File

@@ -54,6 +54,7 @@ suite('ExtHostAccountManagement', () => {
properties: {},
displayInfo: {
displayName: 'Test Account',
userId: 'user@email.com',
contextualDisplayName: 'Test Kind Of Account',
accountType: 'test'
},
@@ -272,7 +273,8 @@ suite('ExtHostAccountManagement', () => {
displayInfo: {
contextualDisplayName: 'Microsoft Account',
accountType: 'microsoft',
displayName: 'Azure Account 1'
displayName: 'Azure Account 1',
userId: 'user@email.com'
},
properties: [],
isStale: false
@@ -285,7 +287,8 @@ suite('ExtHostAccountManagement', () => {
displayInfo: {
contextualDisplayName: 'Work/School Account',
accountType: 'microsoft',
displayName: 'Azure Account 2'
displayName: 'Azure Account 2',
userId: 'user@email.com'
},
properties: [],
isStale: false
@@ -347,7 +350,8 @@ suite('ExtHostAccountManagement', () => {
displayInfo: {
contextualDisplayName: 'Microsoft Account',
accountType: 'microsoft',
displayName: 'Azure Account 1'
displayName: 'Azure Account 1',
userId: 'user@email.com'
},
properties: [],
isStale: false
@@ -385,7 +389,8 @@ suite('ExtHostAccountManagement', () => {
displayInfo: {
contextualDisplayName: 'Microsoft Account',
accountType: 'microsoft',
displayName: 'Azure Account 1'
displayName: 'Azure Account 1',
userId: 'user@email.com'
},
properties: [],
isStale: false
@@ -409,7 +414,8 @@ suite('ExtHostAccountManagement', () => {
displayInfo: {
contextualDisplayName: 'Work/School Account',
accountType: 'microsoft',
displayName: 'Azure Account 2'
displayName: 'Azure Account 2',
userId: 'user@email.com'
},
properties: [],
isStale: false