Skip to content

Commit

Permalink
fix(build): Bump kork to 7.72.0 (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsie committed Sep 25, 2020
1 parent 630eb1a commit cdd3b78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Expand Up @@ -17,6 +17,7 @@
package com.netflix.spinnaker.gate.plugins.web.info

import com.fasterxml.jackson.databind.ObjectMapper
import com.netflix.spinnaker.config.ErrorConfiguration
import com.netflix.spinnaker.config.PluginsAutoConfiguration
import com.netflix.spinnaker.config.okhttp3.OkHttpClientProvider
import com.netflix.spinnaker.gate.config.ServiceConfiguration
Expand All @@ -38,6 +39,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
import org.springframework.boot.test.mock.mockito.MockBean
import org.springframework.context.annotation.Import
import org.springframework.test.context.ActiveProfiles
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.TestPropertySource
Expand All @@ -49,6 +51,7 @@ import static org.mockito.ArgumentMatchers.any
import static org.mockito.Mockito.when
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status

@Import(ErrorConfiguration)
@WebMvcTest(controllers = [PluginInfoController])
@AutoConfigureMockMvc(addFilters = false)
@ContextConfiguration(classes = [PluginsAutoConfiguration.class,PluginInfoController, GenericExceptionHandlers, SpinnakerExtensionsConfigProperties, PluginWebConfiguration, ServiceConfiguration])
Expand Down
Expand Up @@ -18,6 +18,7 @@ package com.netflix.spinnaker.gate

import com.fasterxml.jackson.databind.ObjectMapper
import com.netflix.spectator.api.NoopRegistry
import com.netflix.spinnaker.config.ErrorConfiguration
import com.netflix.spinnaker.fiat.shared.FiatClientConfigurationProperties
import com.netflix.spinnaker.fiat.shared.FiatStatus
import com.netflix.spinnaker.gate.config.ServiceConfiguration
Expand All @@ -27,17 +28,16 @@ import com.netflix.spinnaker.gate.services.*
import com.netflix.spinnaker.gate.services.internal.*
import com.netflix.spinnaker.kork.dynamicconfig.DynamicConfigService
import com.netflix.spinnaker.kork.dynamicconfig.SpringDynamicConfigService
import com.netflix.spinnaker.kork.web.exceptions.GenericExceptionHandlers
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAutoConfiguration
import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration
import org.springframework.context.ConfigurableApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Import
import org.springframework.core.annotation.Order
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import retrofit.RestAdapter
import retrofit.RetrofitError
import retrofit.RestAdapter;
import retrofit.client.OkClient
Expand Down Expand Up @@ -174,6 +174,7 @@ class FunctionalSpec extends Specification {
}

@Order(10)
@Import(ErrorConfiguration)
@EnableAutoConfiguration(exclude = [GroovyTemplateAutoConfiguration, GsonAutoConfiguration])
private static class FunctionalConfiguration extends WebSecurityConfigurerAdapter {

Expand Down Expand Up @@ -272,11 +273,6 @@ class FunctionalSpec extends Specification {
)
}

@Bean
GenericExceptionHandlers genericExceptionHandlers() {
new GenericExceptionHandlers()
}

@Override
protected void configure(HttpSecurity http) throws Exception {
http
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
@@ -1,7 +1,7 @@
enablePublishing=false
fiatVersion=1.23.0
includeProviders=basic,iap,ldap,oauth2,saml,x509
korkVersion=7.70.0
korkVersion=7.72.0
kotlinVersion=1.4.0
org.gradle.parallel=true
spinnakerGradleVersion=8.6.0
Expand Down

0 comments on commit cdd3b78

Please sign in to comment.