k3s/test/integration
Kubernetes Submit Queue d19a2841e3 Merge pull request #47645 from jsafrane/integration-test-speedup
Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)

Speed up attach/detach controller integration tests

Internal attach/detach controller timers should be configurable and tests should use much shorter values.

`reconcilerSyncDuration` is deliberately left out of `TimerConfig` because it's the only one that's not a constant one, it's configurable by user.

Fixes #47129 

Before:
```
--- PASS: TestPodDeletionWithDswp (63.21s)
--- PASS: TestPodUpdateWithWithADC (13.68s)
--- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (13.55s)
--- PASS: TestPodAddedByDswp (183.01s)
--- PASS: TestPersistentVolumeRecycler (12.55s)
--- PASS: TestPersistentVolumeDeleter (12.54s)
--- PASS: TestPersistentVolumeBindRace (3.51s)
--- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
--- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.54s)
--- PASS: TestPersistentVolumeMultiPVs (3.05s)
--- PASS: TestPersistentVolumeMultiPVsPVCs (4.36s)
--- PASS: TestPersistentVolumeControllerStartup (7.29s)
--- PASS: TestPersistentVolumeProvisionMultiPVCs (5.02s)
--- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
ok  	k8s.io/kubernetes/test/integration/volume	359.727s
```

After:
```
--- PASS: TestPodDeletionWithDswp (3.71s)
--- PASS: TestPodUpdateWithWithADC (3.63s)
--- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (3.70s)
--- PASS: TestPodAddedByDswp (5.68s)
--- PASS: TestPersistentVolumeRecycler (12.54s)
--- PASS: TestPersistentVolumeDeleter (12.55s)
--- PASS: TestPersistentVolumeBindRace (3.55s)
--- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
--- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.52s)
--- PASS: TestPersistentVolumeMultiPVs (3.98s)
--- PASS: TestPersistentVolumeMultiPVsPVCs (3.85s)
--- PASS: TestPersistentVolumeControllerStartup (7.18s)
--- PASS: TestPersistentVolumeProvisionMultiPVCs (5.23s)
--- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
ok  	k8s.io/kubernetes/test/integration/volume	103.267s
```

PV controller tests are the slowest ones now.

@kubernetes/sig-storage-pr-reviews 
/assign @gnufied 

```release-note
NONE
```
2017-06-27 14:08:17 -07:00
..
apiserver run hack/update-all 2017-06-22 11:31:03 -07:00
auth run hack/update-all 2017-06-22 11:31:03 -07:00
client run hack/update-all 2017-06-22 11:31:03 -07:00
configmap run hack/update-all 2017-06-22 11:31:03 -07:00
defaulttolerationseconds run hack/update-all 2017-06-22 11:31:03 -07:00
deployment run hack/update-all 2017-06-22 11:31:03 -07:00
etcd run hack/update-all 2017-06-22 11:31:03 -07:00
evictions run hack/update-all 2017-06-22 11:31:03 -07:00
examples restore working aggregator and avoid duplicate informers 2017-06-21 15:14:59 -04:00
federation run hack/update-all 2017-06-22 11:31:03 -07:00
framework run hack/update-all 2017-06-22 11:31:03 -07:00
garbagecollector run hack/update-all 2017-06-22 11:31:03 -07:00
kubectl don't use build tags to mark integration tests 2017-04-28 14:19:39 -07:00
master run hack/update-all 2017-06-22 11:31:03 -07:00
metrics run hack/update-all 2017-06-22 11:31:03 -07:00
objectmeta run hack/update-all 2017-06-22 11:31:03 -07:00
openshift don't use build tags to mark integration tests 2017-04-28 14:19:39 -07:00
pods run hack/update-all 2017-06-22 11:31:03 -07:00
quota run hack/update-all 2017-06-22 11:31:03 -07:00
replicaset run hack/update-all 2017-06-22 11:31:03 -07:00
replicationcontroller run hack/update-all 2017-06-22 11:31:03 -07:00
scheduler run hack/update-all 2017-06-22 11:31:03 -07:00
scheduler_perf run hack/update-all 2017-06-22 11:31:03 -07:00
secrets run hack/update-all 2017-06-22 11:31:03 -07:00
serviceaccount run hack/update-all 2017-06-22 11:31:03 -07:00
storageclasses run hack/update-all 2017-06-22 11:31:03 -07:00
thirdparty run hack/update-all 2017-06-22 11:31:03 -07:00
ttlcontroller run hack/update-all 2017-06-22 11:31:03 -07:00
volume Merge pull request #47645 from jsafrane/integration-test-speedup 2017-06-27 14:08:17 -07:00
BUILD Add integration test for deployment 2017-05-17 14:41:59 -07:00
benchmark-controller.json build/pause: write in C 2016-05-04 21:45:52 -04:00
doc.go don't use build tags to mark integration tests 2017-04-28 14:19:39 -07:00
utils.go mechanical 2017-01-16 09:35:12 -05:00