[FOLIO-3178] Provide admin user password for Karate tests Created: 28/May/21  Updated: 28/May/21

Status: Open
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P2
Reporter: Bohdan Suprun (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Blocks
blocks FAT-916 [mod-search] Use env variables/proper... Blocked
Sprint:
Development Team: FOLIO DevOps

 Description   

All of the modules in folio-integration-tests repository uses hardcoded tenant/username/password for the admin user. It is a bad practice to commit password to git what was highlighted by Hongwei Ji and Anton Emelianov.

The existing Jenkins job should be adjusted so that it provides these properties either via ENV variables or as a command arguments (it is up to the DevOps team to decide, which one is easier).

Proposed names for ENV variables:

  • TENANT_NAME
  • ADMIN_USERNAME
  • ADMIN_PASSWORD

Proposed names for arguments:

  • karate.tenant.name
  • karate.admin.username
  • karate.admin.password

These arguments can be passed in following way (in similar way how karate.env is passed):
mvn test -Dkarate.env=<env> -Dkarate.tenant.name=<tenant> -Dkarate.admin.username=<username> -Dkarate.tenant.password=<password>

Out of scope:

  • Generating password each run, it should be the same as it is now;
  • Migrating the modules to use this properties.


 Comments   
Comment by Anton Emelianov (Inactive) [ 28/May/21 ]

Jakub Skoczen, I would appreciate if this task could be scheduled soon to support development of additional Karate test cases.

Generated at Thu Feb 08 23:26:11 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.