- [X] APISnoop org-flow: ReplicationControllerScaleTest.org
- [X] Test approval issue: Write e2e test for Read, Replace ReplicationController scale endpoints +2 Endpoints #112585
- [X] Test PR: Write e2e test for Read, Replace ReplicationController scale endpoints +2 Endpoints #112586
- [X] Two weeks soak start date: testgrid-link 29 Sept 2022
- [X] Two weeks soak end date: 14 Oct 2022
- [X] Test promotion PR: Promote Read, Replace ReplicationController scale endpoints Conformance - +2 Endpoints #113059
According to this APIsnoop query, there are still two remaining ReplicationControllerScale endpoints which are untested for conformance.
select distinct
endpoint,
test_hit AS "e2e Test",
conf_test_hit AS "Conformance Test"
from public.audit_event
where endpoint ilike '%Scale'
and useragent like '%e2e%'
and not conf_test_hit
order by endpoint
limit 10;
endpoint | e2e Test | Conformance Test
---------------------------------------------------+----------+------------------
readCoreV1NamespacedReplicationControllerScale | t | f
replaceCoreV1NamespacedReplicationControllerScale | t | f
(2 rows)
- Kubernetes API Reference Docs
- Kubernetes API / Workload Resources / ReplicationController
- client-go - ReplicationController
Feature: Test get and update ReplicationController scale api endpoints
- readCoreV1NamespacedReplicationControllerScale
Scenario: confirm the read action for ReplicationControllerScale Given the e2e test has created a ReplicationController When the test reads the ReplicationControllerScale Then the requested action is accepted without any error And one replica is found
- replaceCoreV1NamespacedReplicationControllerScale
Scenario: confirm that the update action will apply the changes to a ReplicationControllerScale Given the e2e test has a ReplicationController after the "read" scenario And a new spec.replicas is set When the test updates the ReplicationControllerScale Then the requested action is accepted without any error And the new replicas are found
Using a number of existing e2e test practices a new ginkgo test has been created for two ReplicationControllerScale endpoints. The e2e logs for this test are listed below.
[It] should get and update a ReplicationController scale /home/ii/go/src/k8s.io/kubernetes/test/e2e/apps/rc.go:395 STEP: Creating ReplicationController "e2e-rc-nzxj7" 09/20/22 10:58:09.572 Sep 20 10:58:09.587: INFO: Get Replication Controller "e2e-rc-nzxj7" to confirm replicas Sep 20 10:58:10.590: INFO: Get Replication Controller "e2e-rc-nzxj7" to confirm replicas Sep 20 10:58:10.598: INFO: Found 1 replicas for "e2e-rc-nzxj7" replication controller STEP: Getting scale subresource for ReplicationController "e2e-rc-nzxj7" 09/20/22 10:58:10.598 STEP: Updating a scale subresource 09/20/22 10:58:10.602 STEP: Verifying replicas where modified for replication controller "e2e-rc-nzxj7" 09/20/22 10:58:10.618 Sep 20 10:58:10.618: INFO: Get Replication Controller "e2e-rc-nzxj7" to confirm replicas Sep 20 10:58:11.636: INFO: Get Replication Controller "e2e-rc-nzxj7" to confirm replicas Sep 20 10:58:11.642: INFO: Found 2 replicas for "e2e-rc-nzxj7" replication controller
This query shows which scale endpoints are hit within a short period of running this e2e test
select distinct substring(endpoint from '\w+') AS endpoint,
right(useragent,51) AS useragent
from testing.audit_event
where endpoint ilike '%Scale%'
and release_date::BIGINT > round(((EXTRACT(EPOCH FROM NOW()))::numeric)*1000,0) - 60000
and useragent like 'e2e%should%'
order by endpoint
limit 10;
endpoint | useragent
---------------------------------------------------+-----------------------------------------------------
readCoreV1NamespacedReplicationControllerScale | should get and update a ReplicationController scale
replaceCoreV1NamespacedReplicationControllerScale | should get and update a ReplicationController scale
(2 rows)
If a test with these calls gets merged, test coverage will go up by 2 point
This test is also created with the goal of conformance promotion.
/sig testing
/sig architecture
/area conformance