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

Add discoverServer tests #116

Merged
merged 2 commits into from
Feb 20, 2020
Merged

Conversation

lvfxx
Copy link
Member

@lvfxx lvfxx commented Feb 19, 2020

Added tests for /pkg/networkservice/common/discover package

NetworkService: &registry.NetworkService{
Name: "secure-intranet-connectivity",
Matches: []*registry.Match{
{
Copy link
Member Author

Choose a reason for hiding this comment

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

If i move Match with empty source selector to beginning of the Matches array, second test case will fail. Is there any guarantee that Match with empty source selector goes last?

Copy link
Member

Choose a reason for hiding this comment

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

The matches should be considered in order. So if the match with empty selector comes first, it should match. There is no guarantee that Match with empty source selector goes last.

Copy link
Member

Choose a reason for hiding this comment

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

Filed #119 on this.

Signed-off-by: Sergey Semenov <sergey.semenov@xored.com>
Signed-off-by: Sergey Semenov <sergey.semenov@xored.com>
@lvfxx lvfxx requested a review from haiodo February 20, 2020 07:50
@edwarnicke edwarnicke merged commit 6992b83 into networkservicemesh:master Feb 20, 2020
@lvfxx lvfxx deleted the discover-tests branch February 21, 2020 05:17
nsmbot pushed a commit that referenced this pull request Nov 5, 2021
…i@main

PR link: networkservicemesh/api#116

Commit: b0e4724
Author: Artem Glazychev
Date: 2021-11-05 21:53:09 +0700
Message:
  - Add initial registration time to NetworkServiceEndpoint (#116)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
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.

3 participants