@@ -49,6 +49,29 @@ Verify ttyUSB glob pattern device discovery and allocation
49
49
50
50
[Teardown] TtyUSB Glob Test Teardown
51
51
52
+ Verify FUSE device allocation and accessibility
53
+ [Documentation] Verifies FUSE device configuration, allocation, and accessibility in pods
54
+ [Tags] fuse-device
55
+ Enable And Configure GDP ${GDP_CONFIG_FUSE_COUNT }
56
+ Wait Until Device Is Allocatable 10 fuse
57
+ # Create and deploy pod requesting 4 FUSE devices
58
+ ${path } = Create Random Temp File ${POD_FUSE_DEVICE }
59
+ Oc Create -f ${path } -n ${NAMESPACE }
60
+
61
+ # Wait for pod to be ready and verify device accessibility
62
+ Oc Wait -n ${NAMESPACE } pod/fuse-test-pod --for=condition=Ready --timeout=120s
63
+
64
+ # Verify /dev/fuse is accessible in the pod
65
+ ${fuse_device } = Run With Kubeconfig oc exec -n ${NAMESPACE } fuse-test-pod -- ls -l /dev/fuse
66
+ Should Contain ${fuse_device } /dev/fuse
67
+
68
+ # Verify node allocation shows 4 FUSE devices allocated
69
+ ${node } = Run With Kubeconfig oc get node -o=name
70
+ ${node_name } = Remove String ${node } node/
71
+ ${describe_output } = Run With Kubeconfig oc describe node ${node_name }
72
+ Should Contain ${describe_output } device.microshift.io/fuse: 10
73
+ Should Contain ${describe_output } device.microshift.io/fuse 4 4
74
+
52
75
53
76
*** Keywords ***
54
77
GDP Test Setup
@@ -132,20 +155,20 @@ Create Test Job With Modified Script
132
155
133
156
Wait Until Device Is Allocatable
134
157
[Documentation] Waits until device device.microshift.io/fakeserial is allocatable
135
- [Arguments] ${expected_count } =1
158
+ [Arguments] ${expected_count } =1 ${ device_type } =fakeserial
136
159
${node } = Run With Kubeconfig oc get node -o=name
137
160
${node_name } = Remove String ${node } node/
138
161
Wait Until Keyword Succeeds 60s 5s
139
- ... Device Should Be Allocatable ${node_name } ${expected_count }
162
+ ... Device Should Be Allocatable ${node_name } ${expected_count } ${ device_type }
140
163
141
164
Device Should Be Allocatable
142
- [Documentation] Checks if device device.microshift.io/fakeserial is allocatable
143
- [Arguments] ${node_name } ${expected_count } =1
165
+ [Documentation] Checks if specified device is allocatable
166
+ [Arguments] ${node_name } ${expected_count } =1 ${ device_type } =fakeserial
144
167
${device_amount } = Oc Get JsonPath
145
168
... node
146
169
... ${EMPTY }
147
170
... ${node_name }
148
- ... .status.allocatable.device\\.microshift\\.io/fakeserial
171
+ ... .status.allocatable.device\\.microshift\\.io/${ device_type }
149
172
Should Be Equal As Integers ${device_amount } ${expected_count }
150
173
151
174
Wait For Job Completion And Check Logs
0 commit comments