According to this APIsnoop query, there are still some remaining DaemonSet endpoints which are untested.
SELECT
endpoint,
path,
kind
FROM testing.untested_stable_endpoint
where eligible is true
and endpoint ilike '%DaemonSetStatus'
order by kind, endpoint desc
limit 10;
endpoint | path | kind
----------------------------------------+---------------------------------------------------------------+-----------
replaceAppsV1NamespacedDaemonSetStatus | /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | DaemonSet
readAppsV1NamespacedDaemonSetStatus | /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | DaemonSet
patchAppsV1NamespacedDaemonSetStatus | /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | DaemonSet
(3 rows)
-
Create a watch to track daemon set events that DaemonSet with a static label
-
Create a daemon set with a static label. Confirm that the pods are running.
-
Get the daemon set status. Parse the response and confirm that the daemon set status conditions can be listed.
-
Update the daemon set status. Confirm via the watch that the status has been updated.
-
Patch the daemon set status. Confirm via the watch that the status has been patched.
Using an existing conformance test as a template for a new ginkgo test which validates that three new endpoints are hit.
This query shows the endpoints hit within a short period of running the e2e test
select distinct endpoint, right(useragent,75) AS useragent
from testing.audit_event
where endpoint ilike '%DaemonSetStatus%'
and release_date::BIGINT > round(((EXTRACT(EPOCH FROM NOW()))::numeric)*1000,0) - 60000
and useragent like 'e2e%'
order by endpoint
limit 10;
endpoint | useragent
----------------------------------------+-----------------------------------------------------------------------------
patchAppsV1NamespacedDaemonSetStatus | [sig-apps] Daemon set [Serial] should verify changes to a daemon set status
readAppsV1NamespacedDaemonSetStatus | [sig-apps] Daemon set [Serial] should verify changes to a daemon set status
replaceAppsV1NamespacedDaemonSetStatus | [sig-apps] Daemon set [Serial] should verify changes to a daemon set status
(3 rows)
If a test with these calls gets merged, test coverage will go up by 3 points
This test is also created with the goal of conformance promotion.
/sig testing
/sig architecture
/area conformance