Coder Social home page Coder Social logo

openconfig / featureprofiles Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 135.0 43.96 MB

Feature Profiles are groups of OpenConfig paths and tests which verify their behavior

License: Apache License 2.0

Go 99.52% Makefile 0.10% Shell 0.32% Perl 0.05% Dockerfile 0.01%

featureprofiles's People

Contributors

alexmasi avatar anish-gottapu avatar ankur19 avatar arvbaska1 avatar bstoll avatar cprabha avatar dplore avatar greg-dennis avatar hariramnat avatar hobbydos avatar jasdeep-hundal avatar kjahed avatar limehat avatar liulk avatar marccharlebois avatar mohanasm avatar mojiiba avatar octpetre avatar prakashbadri-arista avatar prinikasn avatar robshakir avatar rszarecki avatar saarvind6481 avatar self-maurya avatar sezhang2 avatar sgirishj avatar stthummuri avatar trathod1 avatar wenovus avatar xw-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

featureprofiles's Issues

Add KNE CI

  • Add a Cloud Build task to launch a predefined KNE image
  • Launch tests against each implementation

Client sees EOF on Sub ONCE as error.

Hi all,
I think I might be seeing one issue when the gNMI server responds with EOF on Sub ONCE, client sees this as failed test.

=== RUN   TestInterface/ifname/Get_Interface_Config
    interface_test.go:23: Get(t) at path origin:"openconfig"  elem:{name:"interfaces"}  elem:{name:"interface"  key:{key:"name"  value:"lo0"}}  elem:{name:"config"}  elem:{name:"name"}: error receiving gNMI response: EOF
--- FAIL: TestInterface (0.72s)
    --- FAIL: TestInterface/ifname (0.72s)
        --- FAIL: TestInterface/ifname/Get_Interface_Config (0.72s)
FAIL
*** Releasing the testbed
FAIL	command-line-arguments	1.075s
FAIL

reuse ATE session id

When we run the current test via static binding, it creates a new RESTAPI session and then get the ports and run the tests. after test run is done, the session/port is not clean up. If we run the tests with the same port, the test may fail due to port owned by other session. If we re-use the ATE session id, it could help resolve it. Also the current NewSession way in static binding doesn't work with IXIA windows chassis but the FetchSession way works fine with IXIA windows chassis.

Running Tests?

Hi all,

This is mostly an inquiry if the only available/completed test is the one outlined in the example?
The reason for my asking is that I've noticed feature/system/tests/ using

func TestMain(m *testing.M) {
	fptest.RunTests(m)
}

My understanding was that RunTest was required to create the bindings/run tests as per internal/fptest/runtests.go#L25). Does that mean that a feature_run_test.go file should be created in each feature referencing the appropriate package?

If my understanding is wrong - is there additional documentation that can assist in running these tests?

Many Thanks,
-H

Help needed with executing "route_installation_test.go"

Hi,

I am trying to execute "featureprofiles/feature/bgp/policybase/ate_tests/route_installation_test/route_installation_test.go" using 2 DUT and 2 ATE ports.

Test fails at the step "fptest.LogYgot(t, "DUT BGP Config before", dutConfPath, dutConfPath.Get(t))".
I have run it debugger mode and found below function is returning nil.

// Lookup fetches the value at /openconfig-network-instance/network-instances/network-instance/protocols/protocol/bgp with a ONCE subscription.
// It returns nil if there is no value present at the path.
func (n *NetworkInstance_Protocol_BgpPath) Lookup(t testing.TB) *oc.QualifiedNetworkInstance_Protocol_Bgp {
t.Helper()
goStruct := &oc.NetworkInstance_Protocol_Bgp{}
md, ok := oc.Lookup(t, n, "NetworkInstance_Protocol_Bgp", goStruct, false, true)
if ok {
return (&oc.QualifiedNetworkInstance_Protocol_Bgp{
Metadata: md,
}).SetVal(goStruct)
}
return nil
}

Thanks,
Prabha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.