Adding network capabilities#53
Conversation
Signed-off-by: IbrahimGaberOfficial <ibrahim.gaber.official@gmail.com>
Signed-off-by: IbrahimGaberOfficial ibrahim.gaber.official@gmail.com Signed-off-by: IbrahimGaberOfficial <ibrahim.gaber.official@gmail.com>
Signed-off-by: IbrahimGaberOfficial ibrahim.gaber.official@gmail.com Signed-off-by: IbrahimGaberOfficial <ibrahim.gaber.official@gmail.com>
Signed-off-by: IbrahimGaberOfficial ibrahim.gaber.official@gmail.com Signed-off-by: IbrahimGaberOfficial <ibrahim.gaber.official@gmail.com>
Signed-off-by: IbrahimGaberOfficial ibrahim.gaber.official@gmail.com Signed-off-by: IbrahimGaberOfficial <ibrahim.gaber.official@gmail.com>
…lity Signed-off-by: IbrahimGaberOfficial <ibrahim.gaber.official@gmail.com>
…d interface to it, because mock testing rely on interfaces and instance classes Signed-off-by: IbrahimGaberOfficial <ibrahim.gaber.official@gmail.com>
9780d67 to
2d87484
Compare
|
@IbrahimGaberOfficial First of all, sorry for the long delay with no feedback to you. Can you add an policy example using this new host capability in the |
|
Hi @jvanz I hope you are doing well , it is OK I know you are busy, i have some questions before
if (host == null || host.Client ==
{
throw new ArgumentNullException(nameof(host), "Host or Host.Client cannot be null");
}and in other SDKs as in Go-SDK, in case of error, it return empty array of string and error type here
thank you. |
You example policy can log the error and move on. I do not expect any complex policy validation logic. I just want to see that the code of the new host capability is being called and returning something.
As far as I can see there is no public policy using this network capability. Therefore, I do not have an example out of the box. However, there is a test in the Go SDK that you can use as an example of what you can replicate here. To make a story short, you can just create a policy that will do a dns lookup for the |
|
Hi @jvanz, that is great, I will work on that. |
|
@IbrahimGaberOfficial are you still interested in working on this? If not, we can close the PR. |
|
@viccuad I would not close the PR, but leave that open for others to pick it up if @IbrahimGaberOfficial doesn't have the bandwidth to deal with that. I just don't want to risk losing this good foundation |
Description
Adding host capabilities -> Network capabilities -> Network DNS host lookup
Potential improvement