move "Check auth on all routes" extension into the class

This commit is contained in:
2021-03-31 12:30:37 +02:00
parent 0a1ed9ba82
commit c0e364637a

View File

@@ -84,7 +84,6 @@ class `Check auth on all routes` : BaseTest() {
return """HttpStatus ${statusCode.value} for: ${method.value.padStart(6, ' ')} $uri""" return """HttpStatus ${statusCode.value} for: ${method.value.padStart(6, ' ')} $uri"""
} }
} }
}
private fun Path.buildUrl(path: String, methodName: String, context: OAIContext): String { private fun Path.buildUrl(path: String, methodName: String, context: OAIContext): String {
val urlReplaced = this.getParametersIn(context, "path") val urlReplaced = this.getParametersIn(context, "path")
@@ -145,3 +144,5 @@ private fun Parameter.generateFakeArray(): List<String> {
listOf("example123") listOf("example123")
} }
} }
}