Skip to content

Commit

Permalink
Remove GoCD sync check via wiremock, switch to new endpoint needs too…
Browse files Browse the repository at this point in the history
… much work to get green. Happy path and regular error scenarios captured via internal tests now
  • Loading branch information
cburgmer committed Apr 18, 2018
1 parent bbfd425 commit 9e70d51
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 277 deletions.
25 changes: 0 additions & 25 deletions go
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,17 @@
set -e

SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
TMP_DIR="/tmp/buildviz.$$"

function wait_for_server() {
URL=$1
until $(curl --output /dev/null --silent --head --fail $URL); do
printf '.'
sleep 5
done
}

function unit_test {
"$SCRIPT_DIR/lein" test
}

function go_sync_end2end {
cd "$SCRIPT_DIR/test/gosync"
./mock.sh &
MOCK_SERVER_PID=$!
cd -

BUILDVIZ_DATA_DIR=$TMP_DIR "$SCRIPT_DIR/lein" do deps, ring server-headless 3335 > /dev/null &
BUILDVIZ_SERVER_PID=$!
wait_for_server http://localhost:3335

"$SCRIPT_DIR/lein" run -m buildviz.go.sync http://localhost:3334 --buildviz http://localhost:3335 --from 2014-01-01
pkill -P $MOCK_SERVER_PID
pkill -P $BUILDVIZ_SERVER_PID
}

function end2end_test {
yes | "$SCRIPT_DIR/examples/runSeedDataExample.sh"
}

function main {
unit_test
go_sync_end2end
end2end_test
}

Expand Down
16 changes: 0 additions & 16 deletions test/gosync/__files/api/pipelines/A_Pipeline/instance/39

This file was deleted.

16 changes: 0 additions & 16 deletions test/gosync/__files/api/pipelines/A_Pipeline/instance/40

This file was deleted.

Empty file.
16 changes: 0 additions & 16 deletions test/gosync/__files/job_files.json

This file was deleted.

1 change: 0 additions & 1 deletion test/gosync/__files/job_files_with_encoding_error.json

This file was deleted.

15 changes: 0 additions & 15 deletions test/gosync/__files/pipeline_groups.json

This file was deleted.

16 changes: 0 additions & 16 deletions test/gosync/__files/pipeline_instance.json

This file was deleted.

2 changes: 0 additions & 2 deletions test/gosync/__files/properties/A_Pipeline/40/A_Stage/1/A_Job

This file was deleted.

2 changes: 0 additions & 2 deletions test/gosync/__files/properties/A_Pipeline/41/A_Stage/1/A_Job

This file was deleted.

This file was deleted.

74 changes: 0 additions & 74 deletions test/gosync/__files/stage_history.json

This file was deleted.

3 changes: 0 additions & 3 deletions test/gosync/__files/stage_history_end.json

This file was deleted.

13 changes: 0 additions & 13 deletions test/gosync/mappings/job_files.json

This file was deleted.

13 changes: 0 additions & 13 deletions test/gosync/mappings/job_files_with_encoding_error.json

This file was deleted.

13 changes: 0 additions & 13 deletions test/gosync/mappings/pipeline_groups.json

This file was deleted.

13 changes: 0 additions & 13 deletions test/gosync/mappings/pipeline_instance.json

This file was deleted.

13 changes: 0 additions & 13 deletions test/gosync/mappings/stage_history.json

This file was deleted.

13 changes: 0 additions & 13 deletions test/gosync/mappings/stage_history_end.json

This file was deleted.

11 changes: 0 additions & 11 deletions test/gosync/mock.sh

This file was deleted.

0 comments on commit 9e70d51

Please sign in to comment.