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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use derived state use_ca_cert in SUMA GenServer #2396

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

jamie-suse
Copy link
Contributor

Description

Arises from comment in #2391

If we decide to have SumaApi functions accept a use_ca_cert as mentioned here we could also think of centralizing that ca_cert =! nil in the genserver state that we set in this function 馃憖

This change adds some derived state use_ca_cert into the SUMA GenServer, to abstract away the logic of checking ca_cert =! nil when the GenServer calls the SUMA API functions.

How was this tested?

Updated existing unit tests.

@jamie-suse jamie-suse added the elixir Pull requests that update Elixir code label Mar 7, 2024
@jamie-suse jamie-suse self-assigned this Mar 7, 2024
Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

On fire 馃敟

@jamie-suse jamie-suse merged commit 7fd8e31 into main Mar 8, 2024
24 checks passed
@jamie-suse jamie-suse deleted the suma-gen-server-state branch March 8, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elixir Pull requests that update Elixir code
Development

Successfully merging this pull request may close these issues.

None yet

3 participants