Skip to content

Instantly share code, notes, and snippets.

@bleach
Created December 9, 2016 11:09
Show Gist options
  • Save bleach/349ccf087a576e21f962ed6cfa10ea79 to your computer and use it in GitHub Desktop.
Save bleach/349ccf087a576e21f962ed6cfa10ea79 to your computer and use it in GitHub Desktop.
$ make test
cd scripts &&\
BUNDLE_GEMFILE=Gemfile bundle exec rspec
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 42801
...........................................
Finished in 0.70862 seconds (files took 0.67463 seconds to load)
43 examples, 0 failures
Randomized with seed 42801
cd concourse/scripts &&\
go test
Running Suite: Scripts Suite
============================
Random Seed: 1481281685
Will run 38 of 38 specs
••••••••••••••••••••••••••••••••••••••
Ran 38 of 38 Specs in 7.277 seconds
SUCCESS! -- 38 Passed | 0 Failed | 0 Pending | 0 Skipped PASS
ok _/Users/grahambleach/paas/paas-cf/concourse/scripts 7.321s
cd concourse/scripts &&\
bundle exec rspec
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 255
SecurityGroupsSetter
creating/updating security group definitions
with no extant security groups
creates the security groups
when some security groups exist
updates an existing group
creates a group that doesn't already exist
binding default security groups
binds the default staging security groups
binds the default running security groups
QuotasSetter
creating/updating quotas
when some quotas exist
updates an existing quota
creates a quota that doesn't already exist
with no extant quotas
creates the quotas
Finished in 0.12168 seconds (files took 0.15515 seconds to load)
8 examples, 0 failures
Randomized with seed 255
cd manifests/shared &&\
bundle exec rspec
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 6745
SecretGenerator
sha512_crypt
generates a crypt style SHA512 hash of the given password (PENDING: No sha support in crypt(3) on Mac OS X)
generating required passwords
generates a mixture of types
errors when given an unrecognized password type
generates a one-element array of passwords when requested
generates ssh keys when requested
generates the requested simple passwords
generating sha_512 crypted passwords
places the sha_512 crypted version in the requested key
places the simple password in an _orig key
merging with existing passwords
keeps crypted passwords from the existing set
generates empty paswords in the existing set that are in the required set
keeps ssh keys from the existing set
generates all the required secrets if existing_secrets is nil
keeps simple passwords from the existing set
keeps array passwords from the existing set
removes passwords in the existing set that aren't in the requested set
password generation
generates a passwords of the required length
prefixes the password with a fixed character
only uses alphanumeric characters
generates a different password each time
ssh key generation
should return the fingerprint of the public key
should return a PEM encoded private SSH key
Pending: (Failures listed here are expected and do not affect your suite's status)
1) SecretGenerator sha512_crypt generates a crypt style SHA512 hash of the given password
# No sha support in crypt(3) on Mac OS X
# ./spec/secret_generator_spec.rb:39
Finished in 0.96351 seconds (files took 0.11562 seconds to load)
21 examples, 0 failures, 1 pending
Randomized with seed 6745
cd manifests/concourse-manifest &&\
bundle exec rspec
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 56642
.............F.......
Failures:
1) secret generation generate-bosh-secrets it should produce lint-free YAML
Failure/Error:
output, status = Open3.capture2e(
[
'yamllint',
'-c', File.expand_path("../../../../yamllint.yml", __FILE__),
tempfile.path,
].join(' ')
)
Errno::ENOENT:
No such file or directory - yamllint
# ./spec/secret_generation_spec.rb:19:in `block (3 levels) in <top (required)>'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `load'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:27:in `run'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/cli.rb:332:in `exec'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/cli.rb:20:in `dispatch'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/cli.rb:11:in `start'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/exe/bundle:34:in `block in <top (required)>'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
# /Users/grahambleach/.gem/ruby/2.3.1/gems/bundler-1.13.6/exe/bundle:26:in `<top (required)>'
Finished in 0.43126 seconds (files took 0.14922 seconds to load)
21 examples, 1 failure
Failed examples:
rspec ./spec/secret_generation_spec.rb:9 # secret generation generate-bosh-secrets it should produce lint-free YAML
Randomized with seed 56642
make: *** [spec] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment