Comments (3)
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.
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.
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)
- need a contributing guide HOT 2
- Custom SMB configuration options HOT 11
- How to configure node selector if using a mixed K8S HOT 2
- document centos ci "commands" HOT 1
- initializing posix permissions handler: OSError: [Errno 95] Operation not supported HOT 9
- Grouped Shares Issues HOT 4
- Need examples of how to integrate the shares with Pods/Services/Deployment HOT 3
- Support for Longhorn volumes? HOT 3
- posix permissions handler does not function as desired when using NFS as backend FS HOT 10
- Is it possible to scale down a clustered samba server instance? HOT 6
- Operator does not reload when SmbShare's settings are changed HOT 3
- parse_dfs_path_strict: Hostname <hostname> is not ours. HOT 2
- Allow for shares with public access (no authentication) HOT 2
- Set share.permissions.method to none on read only shares? HOT 1
- ARM64 support HOT 2
- Grouping shares of different pvcs HOT 1
- CI needs updating HOT 2
- Samba-operator crashes when setting affinity in clustered samba server HOT 1
- Allow specification of annotations for the smbshare service HOT 1
- SIGSEGV during operator deployment using controller-gen HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samba-operator.