-
Notifications
You must be signed in to change notification settings - Fork 36
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
[sdk#999] Make sandbox entries restartable #1002
[sdk#999] Make sandbox entries restartable #1002
Conversation
63c3a1b
to
fa7af68
Compare
pkg/tools/grpcutils/url.go
Outdated
@@ -102,3 +102,15 @@ func CheckURLFree(u *url.URL) bool { | |||
} | |||
return err == nil | |||
} | |||
|
|||
// CloneURL clones given url |
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'm not sure that CloneURL should be located in grpcutils.
- Can we use struts instead pointers to get rid of CloneURL?
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'm not sure that CloneURL should be located in grpcutils.
I agree, both CloneURL
and CheckURLFree
are only used in tests, but:
- I am afraid of creating some general
testutils
package, because it can urgently turn into some very dirty package with lots of different methods. - We probably can add
urlutils
package for these, but I am not sure that it would be better than storing them ingrpcutils
.
Any thoughts on this?
- Can we use struts instead pointers to get rid of CloneURL?
Here we need to refactor nsmgr
, client
, registryclient
, connect
packages to use URL struct as a connectTo
- it would change API and so affect all deployments without any actual need for them (because it is a test specific case).
We cannot make it on the sandbox
side, because in all cases this connectTo
is passed via the non-sandbox options.
So for me it still looks like that using CloneURL
in tests is the better solution.
Thoughts?
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.
Moved to sandbox
.
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
e0ffc1a
to
59adaf8
Compare
Description
Makes sandbox entries cancelable and restartable:
RegistryEntry
NSMgrEntry
EndpointEntry
Issue link
#999
How Has This Been Tested?
Types of changes