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

Custom configuration API #30

Merged
merged 4 commits into from
Apr 18, 2019
Merged

Custom configuration API #30

merged 4 commits into from
Apr 18, 2019

Conversation

lagess
Copy link
Contributor

@lagess lagess commented Apr 18, 2019

This PR adds 2 endpoints for storing and retrieving the custom configuration. It also handles the connection to a new database (cloudtrust_configuration), and the configuration is stored in a single column as a JSON string, referenced by the realm ID used by the customer.

@lagess lagess requested review from fperot74 and harture April 18, 2019 13:54
@coveralls
Copy link

coveralls commented Apr 18, 2019

Pull Request Test Coverage Report for Build 325

  • 164 of 181 (90.61%) changed or added relevant lines in 8 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 92.927%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/management/component.go 60 62 96.77%
internal/keycloakb/cloudtrustdb.go 0 6 0.0%
pkg/management/module.go 11 20 55.0%
Totals Coverage Status
Change from base Build 309: 0.06%
Covered Lines: 2076
Relevant Lines: 2234

💛 - Coveralls

@@ -37,6 +37,11 @@ db-max-open-conns: 10
db-max-idle-conns: 2
db-conn-max-lifetime: 3600

# Configuration DB
db-config-username: bridge
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these values beforing merging this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing them? I don't get the point... :-)

@harture harture merged commit ab17070 into master Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants