Skip to content

Commit

Permalink
Update development environment documentation
Browse files Browse the repository at this point in the history
* mention spec:integration:download_bosh_agent
* mention postgres auth=trust setup
* remove golang 1.3 instructions
* fix link to stemcell builder readme
  • Loading branch information
Mario Manno committed Oct 20, 2017
1 parent b0da4b0 commit 8457167
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/running_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ You can also use a [Concourse CI](https://concourse.ci/) instance with the rake
bosh/src$ CONCOURSE_TARGET=bosh CONCOURSE_TAG= bundle exec rake fly:integration_gocli
```

You can run individual tests by invoking `rspec` directly after setting up the sandbox with `rake spec:integration:install_dependencies` as described in the [workstation setup docs](workstation_setup.md).
You can run individual tests by invoking `rspec` directly after setting up the sandbox with `rake spec:integration:install_dependencies` and `rake spec:integration:download_bosh_agent`. More information about the integration test set up can be found in the [workstation setup docs](workstation_setup.md).

```
bosh/src$ bundle exec rspec spec/gocli/integration/cli_env_spec.rb
Expand Down Expand Up @@ -91,7 +91,7 @@ Sometimes type of infrastructure does not make a difference for changes made. Fo

### Build stemcell

The stemcell building process is described in [bosh-stemcell's README](../bosh-stemcell/README.md). One thing to note is that rake tasks were initially created to run tests on BOSH CI. For development purposes there should be some modifications:
The stemcell building process is described in [bosh-stemcell's README](https://github.com/cloudfoundry/bosh-linux-stemcell-builder). One thing to note is that rake tasks were initially created to run tests on BOSH CI. For development purposes there should be some modifications:

* DO NOT set `CANDIDATE_BUILD_NUMBER` when building stemcell. This will allow you to build stemcell of version `0000` which is understood by rake tasks as a local stemcell.
* Generated stemcells of version `0000` should be put into the `bosh/tmp` directory before running BATs.
15 changes: 7 additions & 8 deletions docs/workstation_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
`brew install postgresql`

5. Setup and Start postgresql (required for running integration tests with postgresql (default))

The server does not use any password, the authentication method should be set to `trust` for all authentication methods in `pg_hba.conf`.

* start postgres

```
Expand All @@ -35,16 +38,12 @@
* create postgres user: $USER/\<no-password\>
`createuser -U $USER --superuser postgres`
* create postgres database
`createdb -U $USER`
6. Get Golang 1.3.3: As homebrew has a golang version >1.3.3 as current version, we need to install the `homebrew versions` command to check the correct git revision of golang 1.3.3
* `brew tap homebrew/boneyard`
* `brew versions go` and get the revision for version 1.3.3
* `cd /usr/local/Library/Formula/`
* `git checkout <revision> go.rb`
* `brew install go`
6. Get Golang dependencies
Install vet and golint
* `go get code.google.com/p/go.tools/cmd/vet`
Expand Down Expand Up @@ -104,12 +103,12 @@ To use a custom go-cli in integration tests change `gobosh` in `src/spec/gocli/
### Cleaning the sandbox cache manually
Preparing the sandbox for integration tests caches dependencies like nginx.
Preparing the sandbox for integration tests caches dependencies like nginx.
To force a recompilation either delete the complete `src/tmp` folder or just the 'work' folder:
```
bosh/src$ rm -fr tmp/integration-nginx-work/
```
```
### Running integration test databases in docker
Expand Down

0 comments on commit 8457167

Please sign in to comment.