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

Enhancement/14 add key to register and authentication #89

Merged

Conversation

sdvendramini
Copy link
Member

@sdvendramini sdvendramini commented Aug 18, 2024

Related issue

This PR aims to correct the necessary parameters to complete the registration process and test this function correctly.

The ip parameter is removed from the registration process as it will no
longer be necessary. Also the parameter key is added to the registration
process. Then this key is also sent together with the uuid during
authentication. Unit tests are fixed.
@sdvendramini sdvendramini self-assigned this Aug 18, 2024
Copy link
Member

@jr0me jr0me left a comment

Choose a reason for hiding this comment

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

I noted a few things here and there but looking good!

src/agent/include/register.hpp Show resolved Hide resolved
src/agent/include/register.hpp Outdated Show resolved Hide resolved
src/agent/include/register.hpp Outdated Show resolved Hide resolved
src/agent/include/register.hpp Outdated Show resolved Hide resolved
src/agent/tests/register_test.cpp Outdated Show resolved Hide resolved
src/agent/tests/register_test.cpp Outdated Show resolved Hide resolved
src/agent/tests/register_test.cpp Outdated Show resolved Hide resolved
src/agent/tests/register_test.cpp Outdated Show resolved Hide resolved
src/agent/tests/register_test.cpp Show resolved Hide resolved
.github/actions/compile/action.yml Show resolved Hide resolved
@TomasTurina TomasTurina linked an issue Aug 19, 2024 that may be closed by this pull request
@sdvendramini sdvendramini force-pushed the enhancement/14-add-key-to-register-and-authentication branch 4 times, most recently from 75705fd to d7296e4 Compare August 19, 2024 17:04
Some functions were defined as std::function in order to be able to mock
them correctly in gtest without having to define abstract classes or
interfaces. This way it was possible to mock everything needed to run
the log test correctly.
@sdvendramini sdvendramini force-pushed the enhancement/14-add-key-to-register-and-authentication branch from d7296e4 to 99f7a47 Compare August 19, 2024 17:41
@sdvendramini sdvendramini marked this pull request as ready for review August 19, 2024 17:42
@TomasTurina TomasTurina merged commit d1bac70 into master Aug 19, 2024
4 checks passed
@TomasTurina TomasTurina deleted the enhancement/14-add-key-to-register-and-authentication branch August 19, 2024 18:24
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.

Develop the new client
3 participants