zebrunner / carina

Carina automation framework (TestNG): Web, Mobile, API, DB etc testing...
https://zebrunner.github.io/carina
Apache License 2.0
954 stars 218 forks source link

support data encryption in agent.properties #1054

Closed Larochellem closed 2 years ago

Larochellem commented 4 years ago

Describe the bug You can use well the crypt feature in _config file but not Zafira file. Using it in the Zafira files does not decrypt. That's about it! Thanks!

vdelendik commented 4 years ago

new property file name is agent.properties

vdelendik commented 2 years ago
  1. declare new AGENT property in R.java enum
  2. as early as possible (BeforeSuite or even in CarinaListener constructor) read all agent.properties data
  3. decrypt in case of any crypto pattern exists
  4. declare for each property appropriate env variable with decrypted data (env vars have the highest priority for the zebrunner reporting integration. -> verify that reporting integration works perfectly running tests from: IDE, command line, CI etc with encrypted data inside agent.properties

Important! it might be necessary to verify env vars in advance and don't read data from agent.properties at all if appropriate var defined

ghost commented 2 years ago

verified by @akamarouski