upgrade libssl3 libcrypto3 to solve CVE-2024-9143 #325
37 tests run, 29 passed, 0 skipped, 8 failed.
Annotations
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/crd
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/crd.TestCRD_crd_autoDiscoverCRDsToActionsNamespaced/Check_blueprint
Failed
Raw output
=== RUN TestCRD_crd_autoDiscoverCRDsToActionsNamespaced/Check_blueprint
crd_test.go:128: Blueprint not found
--- FAIL: TestCRD_crd_autoDiscoverCRDsToActionsNamespaced/Check_blueprint (0.00s)
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/crd
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/crd.TestCRD_crd_autoDiscoverCRDsToActionsNamespaced
Failed
Raw output
=== RUN TestCRD_crd_autoDiscoverCRDsToActionsNamespaced
I1104 15:07:04.953398 11000 crd.go:373] Discovering CRDs/XRDs with pattern: true
I1104 15:07:10.621948 11000 crd.go:336] Blueprint already exists, patching blueprint properties
E1104 15:07:11.796018 11000 crd.go:339] Error patching blueprint: error patching Port blueprint: failed to patch blueprint, got: {"ok":false,"error":"not_found","message":"Blueprint with identifier \"testkind\" was not found","details":{"resource":"Blueprint","byField":"identifier","withValue":"testkind"}}
E1104 15:07:11.796041 11000 crd.go:344] Error creating blueprint: error patching Port blueprint: failed to patch blueprint, got: {"ok":false,"error":"not_found","message":"Blueprint with identifier \"testkind\" was not found","details":{"resource":"Blueprint","byField":"identifier","withValue":"testkind"}}
E1104 15:07:12.007938 11000 crd.go:360] Error creating blueprint action: failed to create action, got: {"ok":false,"error":"not_found","message":"Blueprint with identifier \"testkind\" was not found","details":{"resource":"Blueprint","byField":"identifier","withValue":"testkind"}}
E1104 15:07:12.150774 11000 crd.go:360] Error creating blueprint action: failed to create action, got: {"ok":false,"error":"not_found","message":"Blueprint with identifier \"testkind\" was not found","details":{"resource":"Blueprint","byField":"identifier","withValue":"testkind"}}
E1104 15:07:12.319268 11000 crd.go:360] Error creating blueprint action: failed to create action, got: {"ok":false,"error":"not_found","message":"Blueprint with identifier \"testkind\" was not found","details":{"resource":"Blueprint","byField":"identifier","withValue":"testkind"}}
crd_test.go:124: Error getting blueprint: error getting Port blueprint: failed to get blueprint, got: {"ok":false,"error":"not_found","message":"Blueprint with identifier \"testkind\" was not found","details":{"resource":"Blueprint","byField":"identifier","withValue":"testkind"}}
--- FAIL: TestCRD_crd_autoDiscoverCRDsToActionsNamespaced (8.21s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x70 pc=0x141ebdc]
goroutine 102 [running]:
testing.tRunner.func1.2({0x1528760, 0x2436ae0})
/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1631 +0x24a
testing.tRunner.func1()
/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1634 +0x377
panic({0x1528760?, 0x2436ae0?})
/opt/hostedtoolcache/go/1.22.8/x64/src/runtime/panic.go:770 +0x132
github.com/port-labs/port-k8s-exporter/pkg/crd.checkBlueprintAndActionsProperties.func1(0xc0003d5380)
/home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/crd/crd_test.go:130 +0x5c
testing.tRunner(0xc0003d5380, 0xc0005ee300)
/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 26
/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1742 +0x390
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/defaults
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/defaults.Test_InitIntegration_InitDefaults
Failed
Raw output
=== RUN Test_InitIntegration_InitDefaults
I1104 15:06:10.972846 11001 init.go:20] Initializing Port integration
I1104 15:06:11.710445 11001 init.go:29] Could not get integration with state key f0b408fb-a77c-4da7-bf17-3977008a7306, error: error getting Port integration: failed to get integration, got: {"ok":false,"error":"not_found","message":"Integration with installationId \"f0b408fb-a77c-4da7-bf17-3977008a7306\" was not found","details":{"resource":"Integration","byField":"installationId","withValue":"f0b408fb-a77c-4da7-bf17-3977008a7306"}}
I1104 15:06:11.710474 11001 init.go:30] Creating integration
I1104 15:06:11.710482 11001 init.go:35] Creating default resources
W1104 15:06:29.646635 11001 defaults.go:197] Failed to create blueprint workload: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"identifier_taken","message":"The identifier \"workloadEntity\" is taken, page's identifier should be unique","details":{"identifier":"workloadEntity"}}
I1104 15:06:29.727013 11001 defaults.go:200] Created blueprint namespace
W1104 15:06:56.579716 11001 defaults.go:197] Failed to create blueprint cluster: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_4nr2IYxg7HZYVFcx-moderator\" was not found","details":{"field":"name","value":"bp_4nr2IYxg7HZYVFcx-moderator"}}
I1104 15:06:56.579748 11001 defaults.go:138] Failed to create resources: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"identifier_taken","message":"The identifier \"workloadEntity\" is taken, page's identifier should be unique","details":{"identifier":"workloadEntity"}}.
I1104 15:06:56.579756 11001 defaults.go:138] Failed to create resources: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_4nr2IYxg7HZYVFcx-moderator\" was not found","details":{"field":"name","value":"bp_4nr2IYxg7HZYVFcx-moderator"}}.
I1104 15:06:56.579764 11001 defaults.go:282] Failed to create resources. Rolling back blueprints: [namespace]
W1104 15:07:04.496132 11001 init.go:37] Error initializing defaults: AbortDefaultCreationError
W1104 15:07:04.496156 11001 init.go:38] The integration will start without default integration mapping and other default resources. Please create them manually in Port.
I1104 15:07:04.496163 11001 init.go:45] Could not create default resources, creating integration with no resources
I1104 15:07:04.496168 11001 init.go:46] Creating integration with config: &{false false [] false <nil> <nil>}
defaults_test.go:81:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/defaults/defaults_test.go:81
Error: Expected nil, but got: &errors.errorString{s:"error getting Port blueprint: failed to get blueprint, got: {\"ok\":false,\"error\":\"not_found\",\"message\":\"Blueprint with identifier \\\"workload\\\" was not found\",\"details\":{\"resource\":\"Blueprint\",\"byField\":\"identifier\",\"withValue\":\"workload\"}}"}
Test: Test_InitIntegration_InitDefaults
defaults_test.go:84:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/defaults/defaults_test.go:84
Error: Expected nil, but got: &errors.errorString{s:"error getting Port blueprint: failed to get blueprint, got: {\"ok\":false,\"error\":\"not_found\",\"message\":\"Blueprint with identifier \\\"namespace\\\" was not found\",\"details\":{\"resource\":\"Blueprint\",\"byField\":\"identifier\",\"withValue\":\"namespace\"}}"}
Test: Test_InitIntegration_InitDefaults
defaults_test.go:87:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/defaults/defaults_test.go:87
Error: Expected nil, but got: &errors.errorString{s:"error getting Port blueprint: failed to get blueprint, got: {\"ok\":false,\"error\":\"not_found\",\"message\":\"Blueprint with identifier \\\"cluster\\\" was not found\",\"details\":{\"resource\":\"Blueprint\",\"byField\":\"identifier\",\"withValue\":\"cluster\"}}"}
Test: Test_InitIntegration_InitDefaults
defaults_test.go:90:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/defaults/defaults_test.go:90
Error: Expected nil, but got: &errors.errorString{s:"error getting Port page: failed to get page, got: {\"ok\":false,\"error\":\"not_found\",\"message\":\"Page with identifier \\\"workload_overview_dashboard\\\" was not found\",\"details\":{\"resource\":\"Page\",\"byField\":\"identifier\",\"withValue\":\"workload_overview_dashboard\"}}"}
Test: Test_InitIntegration_InitDefaults
defaults_test.go:93:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/defaults/defaults_test.go:93
Error: Expected nil, but got: &errors.errorString{s:"error getting Port page: failed to get page, got: {\"ok\":false,\"error\":\"not_found\",\"message\":\"Page with identifier \\\"availability_scorecard_dashboard\\\" was not found\",\"details\":{\"resource\":\"Page\",\"byField\":\"identifier\",\"withValue\":\"availability_scorecard_dashboard\"}}"}
Test: Test_InitIntegration_InitDefaults
defaults_test.go:27: Deleting default resources for f0b408fb-a77c-4da7-bf17-3977008a7306
defaults_test.go:27: Deleting default resources for f0b408fb-a77c-4da7-bf17-3977008a7306
--- FAIL: Test_InitIntegration_InitDefaults (78.62s)
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/defaults
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/defaults.Test_InitIntegration_BlueprintExists
Failed
Raw output
=== RUN Test_InitIntegration_BlueprintExists
defaults_test.go:122: Error creating Port blueprint: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"identifier_taken","message":"The identifier \"workloadEntity\" is taken, page's identifier should be unique","details":{"identifier":"workloadEntity"}}
I1104 15:07:59.643361 11001 init.go:20] Initializing Port integration
I1104 15:07:59.826420 11001 init.go:29] Could not get integration with state key ad41aa78-9a78-4572-a234-0f6d2640875f, error: error getting Port integration: failed to get integration, got: {"ok":false,"error":"not_found","message":"Integration with installationId \"ad41aa78-9a78-4572-a234-0f6d2640875f\" was not found","details":{"resource":"Integration","byField":"installationId","withValue":"ad41aa78-9a78-4572-a234-0f6d2640875f"}}
I1104 15:07:59.826442 11001 init.go:30] Creating integration
I1104 15:07:59.826450 11001 init.go:35] Creating default resources
W1104 15:08:08.319542 11001 defaults.go:197] Failed to create blueprint workload: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"identifier_taken","message":"The identifier \"workloadEntity\" is taken, page's identifier should be unique","details":{"identifier":"workloadEntity"}}
W1104 15:08:32.303716 11001 defaults.go:197] Failed to create blueprint cluster: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_3aoNuBtRgOrdQrEF-moderator\" was not found","details":{"field":"name","value":"bp_3aoNuBtRgOrdQrEF-moderator"}}
W1104 15:08:39.030688 11001 defaults.go:197] Failed to create blueprint namespace: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_zL2IwQFphjJoAdBh-moderator\" was not found","details":{"field":"name","value":"bp_zL2IwQFphjJoAdBh-moderator"}}
I1104 15:08:39.030724 11001 defaults.go:138] Failed to create resources: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"identifier_taken","message":"The identifier \"workloadEntity\" is taken, page's identifier should be unique","details":{"identifier":"workloadEntity"}}.
I1104 15:08:39.030732 11001 defaults.go:138] Failed to create resources: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_3aoNuBtRgOrdQrEF-moderator\" was not found","details":{"field":"name","value":"bp_3aoNuBtRgOrdQrEF-moderator"}}.
I1104 15:08:39.030737 11001 defaults.go:138] Failed to create resources: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_zL2IwQFphjJoAdBh-moderator\" was not found","details":{"field":"name","value":"bp_zL2IwQFphjJoAdBh-moderator"}}.
I1104 15:08:39.030745 11001 defaults.go:282] Failed to create resources. Rolling back blueprints: []
W1104 15:08:39.030756 11001 init.go:37] Error initializing defaults: AbortDefaultCreationError
W1104 15:08:39.030763 11001 init.go:38] The integration will start without default integration mapping and other default resources. Please create them manually in Port.
I1104 15:08:39.030772 11001 init.go:45] Could not create default resources, creating integration with no resources
I1104 15:08:39.030778 11001 init.go:46] Creating integration with config: &{false false [] false <nil> <nil>}
defaults_test.go:136:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/defaults/defaults_test.go:136
Error: Expected nil, but got: &errors.errorString{s:"error getting Port blueprint: failed to get blueprint, got: {\"ok\":false,\"error\":\"not_found\",\"message\":\"Blueprint with identifier \\\"workload\\\" was not found\",\"details\":{\"resource\":\"Blueprint\",\"byField\":\"identifier\",\"withValue\":\"workload\"}}"}
Test: Test_InitIntegration_BlueprintExists
defaults_test.go:27: Deleting default resources for ad41aa78-9a78-4572-a234-0f6d2640875f
--- FAIL: Test_InitIntegration_BlueprintExists (67.11s)
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/event_handler/consumer
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/event_handler/consumer.TestConsumer_HandleJson
Failed
Raw output
=== RUN TestConsumer_HandleJson
I1104 15:06:06.280652 11041 consumer.go:57] partition(s) assigned: [test-topic[0]@0]
I1104 15:06:06.280763 11041 consumer.go:73] Waiting for assigned partitions...
I1104 15:06:06.280775 11041 consumer.go:102] Closed consumer
consumer_test.go:102: Handler was not called
--- FAIL: TestConsumer_HandleJson (2.00s)
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/event_handler/polling
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/event_handler/polling.TestPolling_DifferentConfiguration
Failed
Raw output
=== RUN TestPolling_DifferentConfiguration
I1104 15:06:07.353151 11057 polling.go:58] Starting polling handler
I1104 15:06:07.538325 11057 polling.go:67] Polling handler started
I1104 15:06:07.538347 11057 polling.go:75] Polling event listener iteration after 1 seconds. Checking for changes...
I1104 15:06:08.227760 11057 polling.go:75] Polling event listener iteration after 1 seconds. Checking for changes...
polling_test.go:78:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/event_handler/polling/polling_test.go:78
Error: Should be true
Test: TestPolling_DifferentConfiguration
I1104 15:06:10.499318 11057 polling.go:80] Changes detected. Resyncing...
--- FAIL: TestPolling_DifferentConfiguration (6.79s)
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/handlers
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/handlers.TestControllersHandler_Stop
Failed
Raw output
=== RUN TestControllersHandler_Stop
controllers_test.go:253: creating blueprint k8s-export-test-7a8e757b0ca0
controllers_test.go:255: Error creating Port blueprint: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_5EgH3vQNu6sbjev8-moderator\" was not found","details":{"field":"name","value":"bp_5EgH3vQNu6sbjev8-moderator"}}, retrying once
controllers_test.go:257: Error when retrying to create Port blueprint: error creating blueprint: failed to create blueprint, got: {"ok":false,"error":"role_not_found","message":"Role with name \"bp_LYt3QDI2QZdUvyFn-moderator\" was not found","details":{"field":"name","value":"bp_LYt3QDI2QZdUvyFn-moderator"}}
--- FAIL: TestControllersHandler_Stop (28.48s)
Check failure on line 1 in com/port-labs/port-k8s-exporter/pkg/k8s
github-actions / JUnit Test Report
com/port-labs/port-k8s-exporter/pkg/k8s.TestRunEventsSyncWithUpdateEvent
Failed
Raw output
=== RUN TestRunEventsSyncWithUpdateEvent
controller_test.go:148: creating blueprint k8s-export-test-7105d3914e7a
I1104 15:09:46.098247 11756 controller.go:375] Successfully upserted entity '968b0f92-fce8-4bce-8209-093bd0b471f8' of blueprint 'k8s-export-test-7105d3914e7a'
controller_test.go:501:
Error Trace: /home/runner/work/port-k8s-exporter/port-k8s-exporter/pkg/k8s/controller_test.go:501
Error: Condition never satisfied
Test: TestRunEventsSyncWithUpdateEvent
controller_test.go:62: deleting resources for e2bc07c5-102c-47fa-8597-7105d3914e7a
I1104 15:09:59.994510 11756 controller.go:375] Successfully upserted entity '968b0f92-fce8-4bce-8209-093bd0b471f8' of blueprint 'k8s-export-test-7105d3914e7a'
--- FAIL: TestRunEventsSyncWithUpdateEvent (37.23s)