Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Initial release #1

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Initial release #1

wants to merge 24 commits into from

Conversation

carlpulley
Copy link
Contributor

@carlpulley carlpulley commented Jan 29, 2018

  • 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
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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] {

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

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 =
Copy link
Contributor Author

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 {

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants