Code Monkey home page Code Monkey logo

Comments (3)

spuiuk avatar spuiuk commented on June 12, 2024

The smbclient is automatically created by the deploy test which is the first test run in the integration suite.
https://github.com/samba-in-kubernetes/samba-operator/blob/master/tests/integration/integration_test.go#L22

Therefore it is unlikely that the complete set of tests would fail because of ordering of the tests. However the individual tests will fail. The proposed set of patches fixes this issue.

from samba-operator.

spuiuk avatar spuiuk commented on June 12, 2024

To test:

Ensure no smbclient pod exists in testnamespace before running test.

Problematic:

[sprabhu@t10 samba-operator]$ SMBOP_TEST_RUN=TestIntegration/smbShares/mountPath tests/test.sh
=== RUN TestIntegration
=== RUN TestIntegration/smbShares
=== RUN TestIntegration/smbShares/mountPath
mount_path_test.go:70:
Error Trace: mount_path_test.go:70
suite.go:118
integration_test.go:15
Error: Received unexpected error:
failed to flush cache: ['rm' '-f' '/var/lib/samba/lock/gencache.tdb']: failed executing command (pod:samba-operator-system/smbclient container:client): pods "smbclient" not found [exit: 1; stdout: ; stderr: ]
Test: TestIntegration/smbShares/mountPath
--- FAIL: TestIntegration (22.47s)
--- FAIL: TestIntegration/smbShares (22.47s)
--- FAIL: TestIntegration/smbShares/mountPath (22.47s)
FAIL
FAIL github.com/samba-in-kubernetes/samba-operator/tests/integration 22.490s
FAIL

After fix:

[sprabhu@t10 samba-operator]$ make commitid
CommitID: 4f6c850
[sprabhu@t10 samba-operator]$ SMBOP_TEST_RUN=TestIntegration/smbShares/mountPath tests/test.sh
=== RUN TestIntegration
=== RUN TestIntegration/smbShares
=== RUN TestIntegration/smbShares/mountPath
=== RUN TestIntegration/smbShares/mountPath/TestMountPath
--- PASS: TestIntegration (48.75s)
--- PASS: TestIntegration/smbShares (48.75s)
--- PASS: TestIntegration/smbShares/mountPath (48.75s)
--- PASS: TestIntegration/smbShares/mountPath/TestMountPath (0.28s)
PASS
ok github.com/samba-in-kubernetes/samba-operator/tests/integration 48.772s

from samba-operator.

spuiuk avatar spuiuk commented on June 12, 2024

The smbclient is automatically created by the deploy test which is the first test run in the integration suite. https://github.com/samba-in-kubernetes/samba-operator/blob/master/tests/integration/integration_test.go#L22

Therefore it is unlikely that the complete set of tests would fail because of ordering of the tests. However the individual tests will fail. The proposed set of patches fixes this issue.

Sorry, I got a few things mixed up here. The smbclient is created as part of the SmbShareSuite tests and that re-ordering could end up with calling mountPath tests before the smbclient has been started. The proposed patch fixes the issue in any case.

from samba-operator.

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.