Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chef-server-ctl test failure: Search API endpoint using POST #321

Closed
jtimberman opened this issue Jun 2, 2015 · 1 comment
Closed

chef-server-ctl test failure: Search API endpoint using POST #321

jtimberman opened this issue Jun 2, 2015 · 1 comment

Comments

@jtimberman
Copy link

Failure from pedant:

Failures:

  1) Search API endpoint /search/<data_bag> using POST for an existing data bag with nested keys (CHEF-3975) when searching a nested key should succeed
     Failure/Error: r.should look_like search_success_response

       Expected a full match of the result

         {"total"=>0, "start"=>0, "rows"=>[]}


       to the spec

         {"total"=>1,
        "start"=>0,
        "rows"=>
         [{"url"=>
            "https://ec2-52-24-27-201.us-west-2.compute.amazonaws.com/organizations/pedant_testorg_ip-172-31-39-63_6753/data/pedant_temporary_bag_1433221834-914085284-6753/alice",
           "data"=>
            {"private_key"=>"---RSA Private Key-- Alice",
             "public_key"=>"---RSA Public Key--- Alice"}}]}


       to succeed, but it didn't!
     # ./lib/pedant/rspec/search_util.rb:101:in `block (2 levels) in performing_a_search'
     # ./lib/pedant/rspec/search_util.rb:715:in `with_search_polling'
     # ./lib/pedant/rspec/search_util.rb:88:in `block in performing_a_search'

Finished in 5 minutes 15 seconds
151 examples, 1 failure, 7 pending

Failed examples:

rspec ./lib/pedant/rspec/search_util.rb:87 # Search API endpoint /search/<data_bag> using POST for an existing data bag with nested keys (CHEF-3975) when searching a nested key should succeed

Steps to reproduce:

  1. Create Ubuntu 14.04 instance in EC2
  2. Install Chef Server 12.0.8
  3. Set api_fqdn in /etc/opscode/chef-server.rb to the public hostname of the EC2 instance.
  4. Run chef-server-ctl reconfigure
  5. Run chef-server-ctl test

I didn't try creating a new instance, but this failure did happen twice in a row on the same system.

@stevendanna
Copy link
Contributor

I'm going to close this out. If such an error re-appears in our build pipeline or if we see it again, we will certainly investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants