# sync-integration-tests **Repository Path**: mirrors_cloudfoundry/sync-integration-tests ## Basic Information - **Project Name**: sync-integration-tests - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sync Integration Tests ![i_sits](http://i2.kym-cdn.com/photos/images/original/000/264/092/e3f.jpg) ## Description This is a set of tests to test the sync functionality between Cloud Controller and Diego. It forces Cloud Controller and Diego into different states so that the sync process has to reconcile them. This test suite covers both long running processes (lrps) and Tasks. There are fundamental differences on how lrps and tasks are handled by the syncing processes. This difference implies that the way to create situations where Diego and Cloud Controller go out-of-sync is very different between lrps and tasks. # Config and Run ## Running against a bosh-lite deployed with bosh-deployment ```bash go get github.com/golang/dep/cmd/dep dep ensure ./run-bosh-lite.sh ``` ## Running with manual configuration You need a config JSON file path set at the `CONFIG` environment variable. An example that can be used for bosh-lite is: ```bash export CONFIG=${config_path}/config.json cat > "$CONFIG" <bosh_client_secret bosh interpolate --path /cc_tls/certificate deployment-vars.yml >cc_client.crt bosh interpolate --path /cc_tls/private_key deployment-vars.yml >cc_client.key bosh interpolate --path /jumpbox_ssh/private_key creds.yml >bosh_gw_private_key ``` Once the file `config.json` is ready, let it roll... ```bash CONFIG=config.json ginkgo -nodes=3 ``` # Adding dependencies During development of test cases, if you need to add a new Golang dependency, make sure to add it to the vendor directory using [`dep`](http://golang.github.io/dep). ```bash dep ensure -add // you must import/use this package before running `dep ensure` ```