-
Notifications
You must be signed in to change notification settings - Fork 0
Initial release #1
base: master
Are you sure you want to change the base?
Conversation
carlpulley
commented
Jan 29, 2018
•
edited
Loading
edited
- Observable monitor implemented
- Docker container logging observable
- Jenkins build pipeline
- Unit testing for monitors
- Unit testing for docker container logging
- Library code configuration
- Scaladoc
- export test coverage reports in Jenkins
- deal with library evictions
- ensure docker-compose files are specified by caller (who has access to actual files in BuildInfo)
- Ready for review
@@ -0,0 +1,16 @@ | |||
# Logging Testkit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plan is to update this file once all of ISC-377 has been completed.
)(implicit | ||
scheduler: Scheduler | ||
): Unit = { | ||
??? // TODO: needs implementing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be completed on ISC-379
package net.cakesolutions.testkit.logging.elasticsearch.formats | ||
|
||
/** | ||
* TODO: needs implementing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be completed on ISC-379
import net.cakesolutions.testkit.logging.docker.DockerLogSource.ProcessTerminated | ||
import net.cakesolutions.testkit.logging.docker.formats.LogEventFormat | ||
|
||
trait BaseDockerLogSource extends LoggingSource[Json] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I considered a split like this, but constructed as a generic ProcessObservable
, with a DockerLogSource
based on it.
/** | ||
* Primary interface method that specific logging sources will need to implement. | ||
* | ||
* @param id identifies the Docker container from which log events are consumed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this Docker specific?
|
||
// $COVERAGE-OFF$ | ||
object DockerLogLineSource extends DockerLogLineSource { | ||
private val dockerLogsCmd = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: we need to use docker compose files specified by a param here (caller will get this data via BuildInfo).
/** | ||
* Utility methods for transforming between log lines and JSON log events. | ||
*/ | ||
object LogEventFormat { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this Docker specific. If it's not, should it be in the core
package? If it is, perhaps it should have a name that makes that clear?