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

Porting C++ Test Agent to 1.0.1-RC1 #90

Merged
merged 8 commits into from
Aug 13, 2024

Conversation

agosh01
Copy link
Member

@agosh01 agosh01 commented Jul 28, 2024

This PR update c++ test agent to work with 1.6.0 core api with addition on L2 apis (closes #59 )

  1. Updating to 1.6.0
  2. Refactoring
  3. Feature file updates

@agosh01 agosh01 force-pushed the port_cpp_TA_rc1 branch 8 times, most recently from da80698 to 2312651 Compare July 29, 2024 00:26
@agosh01 agosh01 marked this pull request as ready for review July 29, 2024 00:31
@agosh01 agosh01 force-pushed the port_cpp_TA_rc1 branch 2 times, most recently from fc7dcdd to e71a74b Compare July 29, 2024 00:37
@agosh01 agosh01 changed the title Port cpp ta rc1 Porting C++ Test Agent to 1.0.1-RC1 Jul 29, 2024
Copy link
Contributor

@matthewd0123 matthewd0123 left a comment

Choose a reason for hiding this comment

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

Honestly only one thing I found... not the best guy for reviewing C++ but it all looks good from me. Feature files are looking great

test_agent/cpp/include/utils.h Show resolved Hide resolved
Copy link
Contributor

@matthewd0123 matthewd0123 left a comment

Choose a reason for hiding this comment

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

LGTM

@agosh01 agosh01 force-pushed the port_cpp_TA_rc1 branch 3 times, most recently from 7546941 to e8ca283 Compare August 1, 2024 22:48
Copy link

@billpittman billpittman left a comment

Choose a reason for hiding this comment

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

Only a few comments/questions.

Comment on lines 58 to 55
if (transportType_ == "socket") {
return std::make_shared<SocketUTransport>(uri);
} else {
// If the transport type is neither "socket" nor "zenoh", log an error
// and return null.
spdlog::error("Invalid transport type: {}", transportType_);
return nullptr;
}

Choose a reason for hiding this comment

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

  1. I think I'd rather see this transportType_ be some sort of enum or #define or something less likely to be mis-typed.

  2. The comment mentions "socket" or "zenoh" as valid inputs, but zenoh's been removed ... Right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I will implement 1 and fix 2. Zenoh is added later next PR. At this time of this PR zenoh was not available

jsonData.GetAllocator());

// Create transport with the created URI
transportPtr_ = createTransport(def_src_uuri_);

Choose a reason for hiding this comment

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

I'm a little confused by this call to createTransport. Wasn't the transportPtr_ set in the constructor? And if so, is it expected/necessary to change the transportPtr_ within this method ?

test_agent/cpp/src/APIWrapper.cpp Show resolved Hide resolved
@agosh01 agosh01 force-pushed the port_cpp_TA_rc1 branch 2 times, most recently from 6ec30be to 0bc7e8e Compare August 6, 2024 20:11
test_agent/cpp/README.md Outdated Show resolved Hide resolved
test_agent/cpp/src/APIWrapper.cpp Show resolved Hide resolved
test_agent/cpp/src/APIWrapper.cpp Outdated Show resolved Hide resolved
test_agent/cpp/src/ProtoConverter.cpp Outdated Show resolved Hide resolved
test_agent/cpp/src/TestAgent.cpp Outdated Show resolved Hide resolved
Comment on lines 58 to 55
if (transportType_ == "socket") {
return std::make_shared<SocketUTransport>(uri);
} else {
// If the transport type is neither "socket" nor "zenoh", log an error
// and return null.
spdlog::error("Invalid transport type: {}", transportType_);
return nullptr;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I will implement 1 and fix 2. Zenoh is added later next PR. At this time of this PR zenoh was not available

test_manager/reports/summary/summary.json Outdated Show resolved Hide resolved
@gregmedd gregmedd merged commit 42e2387 into eclipse-uprotocol:main Aug 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Update up-tck C++ test agent for 1.5.8 API
4 participants