Load e2e test creadentials from env vars
@@ -12,8 +12,16 @@ export class User {
this.alias = alias;
this.description = description;
+ const envUsername = process.env[`IPAAS_${alias.toUpperCase()}_USERNAME`] || null;
+ const envPassword = process.env[`IPAAS_${alias.toUpperCase()}_PASSWORD`] || null;
+
+ if (envUsername === null || envPassword === null) {
this.username = data[alias].username;
this.password = data[alias].password;
+ } else {
+ this.username = envUsername;
+ this.password = envPassword;
+ }
}
