You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugin-e2e/src/types.ts
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,13 @@ export type PluginOptions = {
62
62
* You can use different users for different projects. See the fixture createUser for more information on how to create a user,
63
63
* and the fixture login for more information on how to authenticate. Also see https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/use-authentication
64
64
*/
65
-
user?: CreateUserArgs;
65
+
user?: UserArgs;
66
+
67
+
/**
68
+
* The user to use when making requests to the Grafana API. For example when creating users, fetching data sources etc.
69
+
* If no user is provided, the server default admin/admin user will be used.
70
+
*/
71
+
grafanaAPIUser: User;
66
72
};
67
73
68
74
exporttypePluginFixture={
@@ -301,7 +307,7 @@ export interface Dashboard {
301
307
title?: string;
302
308
}
303
309
304
-
exporttypeCreateUserArgs={
310
+
exporttypeUserArgs={
305
311
/**
306
312
* The username of the user to create. Needs to be unique
307
313
*/
@@ -314,6 +320,23 @@ export type CreateUserArgs = {
314
320
* The role of the user to create
315
321
*/
316
322
role?: OrgRole;
323
+
324
+
/**
325
+
* Set this to true if the user already exist in the database. If omitted or set to false, the user will be created.
0 commit comments