mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-09-30 12:27:01 +02:00
wip
This commit is contained in:
@@ -125,6 +125,13 @@ func TestResourceCacheDeleteRemovesMainObjectEntries(t *testing.T) {
|
||||
assert.True(t, ok)
|
||||
}
|
||||
|
||||
func TestResourceCacheDeletePanicsWithNilCache(t *testing.T) {
|
||||
var cache *ResourceCache
|
||||
assert.Panics(t, func() {
|
||||
cache.Delete(&v1alpha1.AutoscalingListener{})
|
||||
})
|
||||
}
|
||||
|
||||
func TestResourceBuilderCachesListenerPodDependencies(t *testing.T) {
|
||||
listener := &v1alpha1.AutoscalingListener{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
|
||||
@@ -218,6 +218,7 @@ func main() {
|
||||
}
|
||||
|
||||
actionsgithubcom.SetListenerEntrypoint(os.Getenv("LISTENER_ENTRYPOINT"))
|
||||
resourceCache := actionsgithubcom.NewResourceCache()
|
||||
|
||||
var webhookServer webhook.Server
|
||||
if port != 0 {
|
||||
@@ -299,7 +300,6 @@ func main() {
|
||||
secretresolver.WithLogger(slogLogger),
|
||||
)
|
||||
|
||||
resourceCache := actionsgithubcom.NewResourceCache()
|
||||
rb := actionsgithubcom.ResourceBuilder{
|
||||
ExcludeLabelPropagationPrefixes: excludeLabelPropagationPrefixes,
|
||||
SecretResolver: secretResolver,
|
||||
|
||||
Reference in New Issue
Block a user