How to focus rake tests:
it 'does some sort of testing', :focus => true do
run_integration_specs(spec_path: 'spec/gocli/integration', tags: 'focus')
or
rspec --tag focus spec/my_spec.rb
How to run bosh integration tests as a one-off in fly:
diff --git a/src/bosh-director/spec/spec_helper.rb b/src/bosh-director/spec/spec_helper.rb | |
index 1b6bc561b8..1e707cb0ed 100644 | |
--- a/src/bosh-director/spec/spec_helper.rb | |
+++ b/src/bosh-director/spec/spec_helper.rb | |
@@ -228,11 +228,11 @@ RSpec.configure do |rspec| | |
allow(Bosh::Director::Config).to receive(:cloud).and_return(instance_double(Bosh::Clouds::ExternalCpi)) | |
- threadpool = instance_double(Bosh::Director::ThreadPool) | |
- allow(Bosh::Director::ThreadPool).to receive(:new).and_return(threadpool) |
q-a0m0n1s0.q-g0.tld | |
q-<AZ id> <instances row id / numerical uuid> <Network ID> <Healthiness> . q-<group id>.tld |
How to focus rake tests:
it 'does some sort of testing', :focus => true do
run_integration_specs(spec_path: 'spec/gocli/integration', tags: 'focus')
or
rspec --tag focus spec/my_spec.rb
How to run bosh integration tests as a one-off in fly:
// +build windows | |
package main | |
import ( | |
"fmt" | |
"unsafe" | |
"unicode/utf16" | |
"golang.org/x/sys/windows" |
Do not forget this portion:
Record the binary name including version number, with a slash and the binary filename concatenated to it. It’s a good idea to cite the official URL in a comment, in the same line.
That is...
---
I, [2018-06-08T00:01:05.039642 #13] [0x2afc7de58c34] INFO -- TaskHelper: Director Version: 266.0.0 | |
I, [2018-06-08T00:01:05.039699 #13] [0x2afc7de58c34] INFO -- TaskHelper: Enqueuing task: 89 | |
I, [2018-06-08T00:01:05.200413 #29011] [] INFO -- DirectorJobRunner: Looking for task with task id 89 | |
D, [2018-06-08T00:01:05.201579 #29011] [] DEBUG -- DirectorJobRunner: (0.000297s) (conn: 47018331589620) SELECT * FROM "tasks" WHERE "id" = 89 | |
I, [2018-06-08T00:01:05.203007 #29011] [] INFO -- DirectorJobRunner: Found task #<Bosh::Director::Models::Task @values={:id=>89, :state=>"processing", :timestamp=>2018-06-08 00:01:05 UTC, :description=>"create deployment", :result=>nil, :output=>"/var/vcap/store/director/tasks/89", :checkpoint_time=>2018-06-08 00:01:05 UTC, :type=>"update_deployment", :username=>"admin", :deployment_name=>"zookeeper", :started_at=>nil, :event_output=>"", :result_output=>"", :context_id=>""}> | |
I, [2018-06-08T00:01:05.203086 #29011] [] INFO -- DirectorJobRunner: Running from worker 'worker_3' on |
Things that probably need to be included in the terraform file: | |
google_compute_address | |
google_compute_target_pool | |
google_compute_forwarding_rule (x3?) | |
Then in the cloud config | |
vm_type | |
- name: concourse_core |
#! /bin/bash | |
set -eux | |
tmpdir=$(mktemp -d) | |
pushd "$tmpdir" || return | |
git init |
# install cmd | |
xargs -a packages.txt sudo apt-get install | |
# Packages that need extra/non-package manager setup | |
adobe-source-code-pro-fonts | |
[ -d /usr/share/fonts/opentype ] || sudo mkdir /usr/share/fonts/opentype | |
sudo git clone https://github.com/adobe-fonts/source-code-pro.git /usr/share/fonts/opentype/scp | |
sudo fc-cache -f -v | |
chruby && ruby-install |