Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Feb 5, 2020
1 parent fc9d35d commit debf000
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,30 @@ build-splunk: &build-splunk
docker push \
docker.pkg.github.com/splunk/splunk-connect-for-syslog/stg-splunk-connect-for-syslog:splunk-${SYSLOG}-<< pipeline.id >>
test: &test
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Docker Login
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker login -u $GITHUB_USER -p $GITHUB_TOKEN docker.pkg.github.com
- run:
name: Setup for testing
command: |
pip3 -r tests/requirements.txt
- run:
name: test
command: |
pytest --splunk_type=docker --splunk_password=${SPLUNK_PASSWORD}
env:
IMAGE_SC4S: docker.pkg.github.com/splunk/splunk-connect-for-syslog/stg-splunk-connect-for-syslog:sc4s-${SYSLOG}-<< pipeline.id >>
IMAGE_SPLUNK: docker.pkg.github.com/splunk/splunk-connect-for-syslog/stg-splunk-connect-for-syslog:splunk-${SYSLOG}-<< pipeline.id >>


orbs:
docker: circleci/docker@0.5.20
go: circleci/go@0.2.0
Expand Down Expand Up @@ -90,6 +114,13 @@ jobs:
environment:
SPLUNK: '8.0'
<<: *build-splunk
test-sc4s-3-25-1-splunk-8-0:
docker:
- image: circleci/buildpack-deps:18.04
environment:
SYSLOG: '3.25.1'
SPLUNK: '8.0'
<<: *build-splunk

workflows:
version: 2
Expand All @@ -100,3 +131,8 @@ workflows:
- build-splunk-7-2
- build-splunk-7-3
- build-splunk-8-0
- test-sc4s-3-25-1-splunk-8-0:
requires:
- build-sc4s-3-25-1
- build-splunk-8-0

19 changes: 8 additions & 11 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ version: "3.7"
services:

sc4s:
build:
context: ../package
image: ${IMAGE_SC4S}
#When this is enabled test_common will fail
# command: -det
ports:
- "514:514"
- "514"
- "601"
- "514:514/udp"
- "514/udp"
- "5000-5050"
- "5000-5200/udp"
- "6514"
Expand All @@ -29,7 +28,7 @@ services:
- splunk
environment:
- SPLUNK_HEC_URL=https://splunk:8088
- SPLUNK_HEC_TOKEN=3533e4bd-3eeb-4c57-aa6b-3151116a01d9
- SPLUNK_HEC_TOKEN=${SPLUNK_HEC_TOKEN}
- SC4S_SOURCE_TLS_ENABLE=no
- SC4S_DEST_SPLUNK_HEC_TLS_VERIFY=no
# - SC4S_LISTEN_DEFAULT_TCP_PORT=514
Expand All @@ -47,16 +46,14 @@ services:
volumes:
- ./tls:/opt/syslog-ng/tls
splunk:
build:
context: ../splunk

image: ${IMAGE_SPLUNK}

ports:
- "8000"
- "8088:8088"
- "8089:8089"
- "8088"
- "8089"
environment:
- SPLUNK_HEC_TOKEN=3533e4bd-3eeb-4c57-aa6b-3151116a01d9
- SPLUNK_HEC_TOKEN=${SPLUNK_HEC_TOKEN}
- SPLUNK_PASSWORD=${SPLUNK_PASSWORD}
- SPLUNK_START_ARGS=--accept-license

0 comments on commit debf000

Please sign in to comment.