uaa.yml - Do we have sensible defaults in our integration tests

Open
#3,735 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
testing

Research direction

Compare boot/uaa.yml, integration_test_properties.yml, and src/main/resources/uaa.yml to understand which defaults are duplicated and which settings are overrides. Review the *MockMvcTests configuration as well. Done means tests inherit sensible defaults from resources/uaa.yml, so adding an endpoint such as limitedFunctionality.whitelist.endpoints requires only the intended override.

Written by the indexing model from the issue text.

Description

The PR https://github.com/cloudfoundry/uaa/pull/3689/changes was required to make the same changes into two Yaml files.

It would make sense that .../boot/uaa.yml reads all the defaults from /uaa/src/main/resources/uaa.yml and then only overrides the desired end to end configurations

All of the *MockMvcTests are facing the exact same issue. They do not inherit sensible defaults.

For example: I need to add a new url to limitedFunctionality.whitelist.endpoints

Current solution: Add entries to multiple locations (boot/uaa.yml, integration_test_properties.yml and resources/uaa.yml)

Dominant language
Java
Stars
1.6k
Forks
847
Avg merge
2d 1h
Merged PRs (30d)
48

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudfoundry/uaa

All issues in cloudfoundry/uaa

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.