Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication required when accessing schema #834

Open
alegonzalezz opened this issue Oct 29, 2023 · 1 comment
Open

Authentication required when accessing schema #834

alegonzalezz opened this issue Oct 29, 2023 · 1 comment

Comments

@alegonzalezz
Copy link

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: <script>window.location.replace('/login?from=%2Fv3%2Fapi-docs');</script>

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

@arcuri82
Copy link
Collaborator

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 arcuri82 changed the title Authentication required Authentication required when accessing schema Oct 30, 2023
This was referenced Feb 13, 2024
onurd86 added a commit that referenced this issue Feb 13, 2024
* refactoring child type verifier

* fixed compilation errors

* template for ensureFlattenedStructure()

* making sure minimizer uses new flattening

* remove binding among genes for flatten structure

* view enterprise in resource call (type of Action tree)

* flatten structure, ie remove the rest resource all

* add simple fake rest individual generation for testing

* move generation to testutils

* add unit tests

* restructure testutil for rest

* update unit test

* fix a test

* fix test case writer based on resources

* getFlattenMainEnterpriseActionGroup

* restructure RestResourceFitness

* fix local id for flatten rest individual

* remove reset of local id

* remove location id

* update after merge

* fixed compilation error

* fixed issue with double CI builds

* fixed issue with handling of seeResults after update

* candidate fix for failing E2E

---------

Co-authored-by: arcuri82 <[email protected]>
Co-authored-by: Man Zhang <[email protected]>
onurd86 added a commit that referenced this issue Feb 20, 2024
* Return Gene in ConstraintSolver

* return List<SqlAction>

* Return SqlAction

* fix test

* Use SqlBuilder to generate sql actions

* improvements

* Consider the first constraint for creating the insert

* Add comment on circular dependency

* Refactor Solver to use db schema

* Support for more than one variable

* Update comment

* fix

* fixed wrong config value set in e2e

* bug fixes

* minor changes

* comments

* added info on session-service

* missing ,

* fixed info on SQL

* fixed wrong shading for JSQLParser

* parameterizing taint analysis algorithm

* adding failing test to study taint

* implementing taintForceSelectionOfGenesWithSpecialization. still E2E fails

* handling discoveris in fitness + fix for E2E

* fix for wrong computation of needed budget

* refactor: Parse check expressions with parser

* Refactor to support multiple constraints in the same check

* Parse OR constraints

* remove comments

* issue #906: fixed bug in xover of WTS

* improved experiment script

---------

Co-authored-by: Agustina Aldasoro <[email protected]>
Co-authored-by: Agustina Aldasoro <[email protected]>
Co-authored-by: Andrea Arcuri <[email protected]>
Co-authored-by: seran <[email protected]>
onurd86 added a commit that referenced this issue Mar 6, 2024
arcuri82 added a commit that referenced this issue Apr 6, 2024
Fix the Issue Related to Authentication, Which is Issue #834 (#907)
arcuri82 added a commit that referenced this issue Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants