This repository has been archived by the owner on Oct 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spring): Fix rogue camel hump config property
- Loading branch information
1 parent
c76528b
commit 73a608f
Showing
9 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
keiko-mem-spring/src/test/kotlin/com/netflix/spinnaker/q/mem/spring/SpringStartupTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.netflix.spinnaker.q.mem.spring | ||
|
||
import com.netflix.spinnaker.config.MemQueueConfiguration | ||
import com.netflix.spinnaker.config.QueueConfiguration | ||
import com.netflix.spinnaker.q.DeadMessageCallback | ||
import com.netflix.spinnaker.q.Queue | ||
import com.netflix.spinnaker.q.memory.InMemoryQueue | ||
import org.assertj.core.api.Assertions | ||
import org.junit.jupiter.api.Test | ||
import org.junit.jupiter.api.extension.ExtendWith | ||
import org.springframework.beans.factory.annotation.Autowired | ||
import org.springframework.boot.test.context.SpringBootTest | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.test.context.junit.jupiter.SpringExtension | ||
|
||
@ExtendWith(SpringExtension::class) | ||
@SpringBootTest( | ||
classes = [QueueConfiguration::class, MemQueueConfiguration::class, TestConfiguration::class], | ||
webEnvironment = SpringBootTest.WebEnvironment.NONE | ||
) | ||
internal class SpringStartupTests { | ||
|
||
@Autowired | ||
lateinit var queue: Queue | ||
|
||
@Test | ||
fun `starts up successfully`() { | ||
Assertions.assertThat(queue).isNotNull.isInstanceOf(InMemoryQueue::class.java) | ||
} | ||
} | ||
|
||
@Configuration | ||
internal class TestConfiguration { | ||
@Bean | ||
fun deadMessageCallback(): DeadMessageCallback = { _, _ -> } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...o-redis-spring/src/test/kotlin/com/netflix/spinnaker/q/redis/spring/SpringStartupTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.netflix.spinnaker.q.redis.spring | ||
|
||
import com.netflix.spinnaker.config.QueueConfiguration | ||
import com.netflix.spinnaker.config.RedisQueueConfiguration | ||
import com.netflix.spinnaker.q.Queue | ||
import com.netflix.spinnaker.q.redis.RedisQueue | ||
import org.assertj.core.api.Assertions | ||
import org.junit.jupiter.api.Test | ||
import org.junit.jupiter.api.extension.ExtendWith | ||
import org.springframework.beans.factory.annotation.Autowired | ||
import org.springframework.boot.test.context.SpringBootTest | ||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment.NONE | ||
import org.springframework.test.context.junit.jupiter.SpringExtension | ||
|
||
@ExtendWith(SpringExtension::class) | ||
@SpringBootTest( | ||
classes = [QueueConfiguration::class, RedisQueueConfiguration::class], | ||
webEnvironment = NONE | ||
) | ||
internal class SpringStartupTests { | ||
|
||
@Autowired | ||
lateinit var queue: Queue | ||
|
||
@Test | ||
fun `starts up successfully`() { | ||
Assertions.assertThat(queue).isNotNull.isInstanceOf(RedisQueue::class.java) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters