Unable to write UTC for Forest Liana collections or Forest controllers in rails using RSpec and SimpleCov for Coverage report

Feature(s) impacted

Unable to write UTC for Forest Liana collections or Forest controllers in rails using RSpec and SimpleCov for Coverage report

Observed behavior

It is expecting a server to be running for test environment but as we don’t have a test env in forest.

Additionally files like Forest liana collections are not properly getting tracked by Simplecov in rails.

Expected behavior

How can this be resolved or bypassed for test environment without any server running for it. Since nothing is running, there is no separate auth or env secret for it because of which every api from forest controller gives a 403 error.

Failure Logs

[2025-03-25 12:24:23] Forest :deciduous_tree::deciduous_tree::deciduous_tree: An error occured while retrieving your IP whitelist. Your Forest env_secret seems to be missing or unknown. Can you check that you properly set your Forest env_secret in the forest_liana initializer?

Context

  • Project name: Yubi Invest - B2B2C
  • Team name: Yubi (Formerly CredAvenue)
  • Environment name: Test (not present*)
  • Agent technology: rails
  • Agent (forest package) name & version: forest_liana - 8.0
  • Database type: PostgreSQL
  • Recent changes made on your end if any: …

Hello @ZUKON3002 and welcome to the community !

It would be helpful to share a bit more on what you’re trying to achieve so that we can be more efficient while providing assistance.

You might already be aware but we do have some tests already setup in our public repositories of every agents, allowing users to draw inspiration from. You can find particular tests here that deal with auth/IpWhiteLists.