mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Service accounts: Apply None role by default for creating SA (#75949)
* none role by default * tests
This commit is contained in:
@@ -83,7 +83,7 @@ describe('ServiceAccountCreatePage tests', () => {
|
||||
await waitFor(() =>
|
||||
expect(postMock).toHaveBeenCalledWith('/api/serviceaccounts/', {
|
||||
name: 'Data source scavenger',
|
||||
role: 'Viewer',
|
||||
role: 'None',
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@ export const ServiceAccountCreatePage = ({}: Props): JSX.Element => {
|
||||
const [serviceAccount, setServiceAccount] = useState<ServiceAccountDTO>({
|
||||
id: 0,
|
||||
orgId: contextSrv.user.orgId,
|
||||
role: OrgRole.Viewer,
|
||||
role: OrgRole.None,
|
||||
tokens: 0,
|
||||
name: '',
|
||||
login: '',
|
||||
|
||||
Reference in New Issue
Block a user