Closed diptiranjanpx closed 2 months ago
Lets fix the UT TestExtenderWithCache/setup
. Failing with the following error:
panic: http: multiple registrations for /
Lets fix the UT
TestExtenderWithCache/setup
. Failing with the following error:panic: http: multiple registrations for /
Have fixed this by creating an instance of http server multiplexer and associating that to the http server of externder.
The reason the UTs were failing is because for mocking cache another suite of tests were running whose setup was failing with above error. Also the same test suite cant be used as if we set a cache instance then for all tests we have to mock the cache.
Integration test: https://jenkins.pwx.dev.purestorage.com/job/Users/job/strivedi/job/strivedi-extender/3/
What type of PR is this? improvement
What this PR does / why we need it: Now informercache will keep the trimmed PVC information. This will be useful to enhance performance in webhook, extender and monitor.
Does this PR change a user-facing CRD or CLI?: no
Is a release note needed?:
Does this change need to be cherry-picked to a release branch?:
Test
Integration test - https://jenkins.pwx.dev.purestorage.com/job/Users/job/strivedi/job/strivedi-extender/2/