-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
test/kubernetes_unittest.cc
Outdated
| EXPECT_EQ(time::rfc3339::FromString("2018-03-03T01:23:45.678901234Z"), | ||
| m.metadata().created_at); | ||
| EXPECT_EQ(Timestamp(), m.metadata().collected_at); | ||
| EXPECT_EQ(false, m.metadata().ignore); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXPECT_FALSE(m.metadata().ignore);
test/kubernetes_unittest.cc
Outdated
| {"namespace_name", "TestNamespace"}, | ||
| }), m.resource()); | ||
| EXPECT_EQ("TestVersion", m.metadata().version); | ||
| EXPECT_EQ(false, m.metadata().is_deleted); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXPECT_FALSE(m.metadata().is_deleted);
igorpeshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
supriyagarg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor comment. Otherwise LGTM
test/kubernetes_unittest.cc
Outdated
| const KubernetesReader& reader, const json::Object* pod, | ||
| json::value associations, Timestamp collected_at, bool is_deleted) const | ||
| throw(json::Exception) { | ||
| return reader.GetPodMetadata(pod, std::move(associations), collected_at, is_deleted); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is too long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, missed this one! Fixed
igorpeshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nits.
test/kubernetes_unittest.cc
Outdated
| "KubernetesClusterLocation: TestClusterLocation\n" | ||
| "MetadataApiResourceTypePerarator: \",\"\n" | ||
| "MetadataIngestionRawContentVersion: TestVersion\n" | ||
| )); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unindent 2 spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
test/kubernetes_unittest.cc
Outdated
| {"name", json::string("TestName")}, | ||
| {"uid", json::string("TestUid")}, | ||
| {"creationTimestamp", json::string("2018-03-03T01:23:45.678901234Z")}, | ||
| })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing comma, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
test/kubernetes_unittest.cc
Outdated
| json::string("2018-03-03T01:23:45.678901234Z")}, | ||
| {"name", json::string("TestName")}, | ||
| {"namespace", json::string("TestNamespace")}, | ||
| {"uid", json::string("TestUid")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing comma, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
test/kubernetes_unittest.cc
Outdated
| {"uid", json::string("TestUid")}, | ||
| {"creationTimestamp", json::string("2018-03-03T01:23:45.678901234Z")}, | ||
| })}, | ||
| })->As<json::Object>(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ->As<json::Object>() and ->ToString() calls get lost at the end of inline JSON values... That's why I'm suggesting factoring them out into locals, to make this more readable... WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I'll go forward and do this now.
igorpeshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
No description provided.