Rename tests
This commit is contained in:
@@ -26,7 +26,7 @@ import org.junit.jupiter.api.TestInstance
|
|||||||
@KtorExperimentalAPI
|
@KtorExperimentalAPI
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Tags(Tag("integration"), Tag("citizen"))
|
@Tags(Tag("integration"), Tag("citizen"))
|
||||||
class CitizenTest : BaseTest() {
|
class `Citizen routes` : BaseTest() {
|
||||||
@Test
|
@Test
|
||||||
fun `I can get Citizens informations`() {
|
fun `I can get Citizens informations`() {
|
||||||
withIntegrationApplication {
|
withIntegrationApplication {
|
||||||
@@ -22,7 +22,7 @@ import org.junit.jupiter.api.TestInstance
|
|||||||
@KtorExperimentalAPI
|
@KtorExperimentalAPI
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Tags(Tag("integration"), Tag("auth"))
|
@Tags(Tag("integration"), Tag("auth"))
|
||||||
class LoginTest : BaseTest() {
|
class `Login routes` : BaseTest() {
|
||||||
@Test
|
@Test
|
||||||
fun `I can login with username and password`() {
|
fun `I can login with username and password`() {
|
||||||
withIntegrationApplication {
|
withIntegrationApplication {
|
||||||
@@ -20,9 +20,8 @@ import org.junit.jupiter.api.TestInstance
|
|||||||
@KtorExperimentalAPI
|
@KtorExperimentalAPI
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Tags(Tag("integration"), Tag("auth"))
|
@Tags(Tag("integration"), Tag("auth"))
|
||||||
class RegisterTest : BaseTest() {
|
class `Register routes` : BaseTest() {
|
||||||
@Test
|
@Test
|
||||||
@Category(RegisterTest::class)
|
|
||||||
fun `I can register`() {
|
fun `I can register`() {
|
||||||
withIntegrationApplication {
|
withIntegrationApplication {
|
||||||
`When I send a POST request`("/register") {
|
`When I send a POST request`("/register") {
|
||||||
@@ -24,8 +24,8 @@ import fr.dcproject.component.article.ArticleRepository as ArticleRepo
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class ArticleAccessControlTest {
|
internal class `Article Access Control` {
|
||||||
private val tesla = CitizenCart(
|
private val tesla = CitizenCart(
|
||||||
id = UUID.fromString("e6efc288-4283-4729-a268-6debb18de1a0"),
|
id = UUID.fromString("e6efc288-4283-4729-a268-6debb18de1a0"),
|
||||||
user = User(
|
user = User(
|
||||||
@@ -18,8 +18,8 @@ import org.junit.jupiter.api.parallel.ExecutionMode.CONCURRENT
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class CitizenAccessControlTest {
|
internal class `Citizen Access Control` {
|
||||||
private val tesla = CitizenBasic(
|
private val tesla = CitizenBasic(
|
||||||
user = User(
|
user = User(
|
||||||
username = "nicolas-tesla",
|
username = "nicolas-tesla",
|
||||||
@@ -24,8 +24,8 @@ import java.util.UUID
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class CommentAccessControlTest {
|
internal class `Comment Access Control` {
|
||||||
private val tesla = Citizen(
|
private val tesla = Citizen(
|
||||||
user = User(
|
user = User(
|
||||||
username = "nicolas-tesla",
|
username = "nicolas-tesla",
|
||||||
@@ -23,8 +23,8 @@ import java.util.UUID
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class FollowAccessControlTest {
|
internal class `Follow Access Control` {
|
||||||
private val tesla = CitizenBasic(
|
private val tesla = CitizenBasic(
|
||||||
user = User(
|
user = User(
|
||||||
username = "nicolas-tesla",
|
username = "nicolas-tesla",
|
||||||
@@ -23,8 +23,8 @@ import java.util.UUID
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class OpinionAccessControlTest {
|
internal class `Opinion Access Control` {
|
||||||
private val tesla = CitizenBasic(
|
private val tesla = CitizenBasic(
|
||||||
user = User(
|
user = User(
|
||||||
username = "nicolas-tesla",
|
username = "nicolas-tesla",
|
||||||
@@ -21,8 +21,8 @@ import java.util.UUID
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class OpinionChoiceAccessControlTest {
|
internal class `OpinionChoice Access Control` {
|
||||||
private val tesla = CitizenBasic(
|
private val tesla = CitizenBasic(
|
||||||
id = UUID.fromString("e6efc288-4283-4729-a268-6debb18de1a0"),
|
id = UUID.fromString("e6efc288-4283-4729-a268-6debb18de1a0"),
|
||||||
user = User(
|
user = User(
|
||||||
@@ -24,8 +24,8 @@ import fr.dcproject.component.vote.entity.Vote as VoteEntity
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class VoteAccessControlTest {
|
internal class `Vote Access Control` {
|
||||||
private val tesla = Citizen(
|
private val tesla = Citizen(
|
||||||
id = UUID.fromString("a1e35c99-9d33-4fb4-9201-58d7071243bb"),
|
id = UUID.fromString("a1e35c99-9d33-4fb4-9201-58d7071243bb"),
|
||||||
user = User(
|
user = User(
|
||||||
@@ -22,8 +22,8 @@ import fr.dcproject.component.workgroup.Workgroup as WorkgroupEntity
|
|||||||
|
|
||||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||||
@Execution(CONCURRENT)
|
@Execution(CONCURRENT)
|
||||||
@Tags(Tag("common/security"), Tag("unit"))
|
@Tags(Tag("security"), Tag("unit"))
|
||||||
internal class WorkgroupAccessControlTest {
|
internal class `Workgroup Access Control` {
|
||||||
private val tesla = CitizenBasic(
|
private val tesla = CitizenBasic(
|
||||||
user = User(
|
user = User(
|
||||||
username = "nicolas-tesla",
|
username = "nicolas-tesla",
|
||||||
Reference in New Issue
Block a user