Giter Club home page Giter Club logo

Comments (4)

dougm avatar dougm commented on August 18, 2024

@lubronzhan can you share a test that reproduces this?

from govmomi.

lubronzhan avatar lubronzhan commented on August 18, 2024

Hi @dougm I was adding saml support to CAPV. below are the link to the tests
kubernetes-sigs/cluster-api-provider-vsphere@9347369 (#2171)

I just added loginbytoken func to GetOrCreate function https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/pull/2171/files#diff-59fbb0bb5dfeeb4f123f1e9e0a3d12c38a60b839e113b29868cb905755639e13R130

It should login with bear token if userInfo is present, or login with saml sso if cert key pair are presented.

If you want to run the spefific test, you can set GOVC_BIN_PATH then run the test

go test -timeout 30s -run ^TestGetSession$ sigs.k8s.io/cluster-api-provider-vsphere/pkg/session

Thank you

from govmomi.

dougm avatar dougm commented on August 18, 2024

I tried your branch, I see a timeout failure, but not panic:

=== RUN   TestGetSession
    session_test.go:126: 
        Timed out after 30.015s.
        Expected
            <bool>: false
        to be true
--- FAIL: TestGetSession (30.64s)
FAIL
FAIL	sigs.k8s.io/cluster-api-provider-vsphere/pkg/session	31.183s
FAIL

The branch diff and capv layers are a bit much to go through, can you reproduce with just govmomi? Such as by changing one of these tests?

sc := soap.NewClient(c.URL(), true)

Or:
func ExampleHandlerSOAP() {

from govmomi.

github-actions avatar github-actions commented on August 18, 2024

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.

from govmomi.

Related Issues (20)

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.