EvoMaster icon indicating copy to clipboard operation
EvoMaster copied to clipboard

Authentication required when accessing schema

Open alegonzalezz opened this issue 2 years ago • 1 comments

TestcontainersConfiguration - Attempted to read Testcontainers configuration file at file:/Users/{USERS}/.testcontainers.properties but the file was not found. Exception message: FileNotFoundException: /Users/{USER}/.testcontainers.properties (No such file or directory)

  • [ERROR] ERROR related to the system under test: Cannot retrieve OpenAPI schema from http://localhost:8080/v3/api-docs , status=403 , body:

Authentication required

For white-box testing, look at the logs of the EvoMaster Driver to help debugging this problem.

Other important info:

  • Version 2.0.0
  • using JAR
  • openjdk version "1.8.0_372"
  • java -jar evomaster.jar --maxTime 20s --outputFolder src/test/java

I Dont know what is the configuration of .testcontainers.properties to allow run evomaster

alegonzalezz avatar Oct 29 '23 23:10 alegonzalezz

hi. two points:

  1. ignore testcontainers. it is not relevant (although we should make sure that such misleading warning does not end up in the logs)
  2. it looks like the endpoint with the schema is protected with auth. currently, we have no mechanism to bypass that. easiest thing is to put the schema on local disk, and make a file:/ url pointing to it

arcuri82 avatar Oct 30 '23 12:10 arcuri82