chef / chef/chef-server

chef-server-ctl test will fail if HOSTNAME has Uppercase letters

Open
#776 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: others Status: Good First Issue Triage: Confirmed Type: Bug
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

[root@Localhost oc-chef-pedant]# hostname -f
ALEX
# chef-server-ctl test
Configuring logging...
Creating platform...
Configured URL: https://ALEX
Creating org pedant_testorg_Localhost_5200
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:336:in `block in create_org': Bad error code 400 from create org: {"error":["Field 'name' invalid"]} (RuntimeError)
    from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:in `times'
    from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:in `create_org'
    from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:123:in `org_from_config'
    from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:42:in `initialize'
    from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:in `new'
    from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:in `create_platform'
    from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:58:in `setup'
    from ./bin/oc-chef-pedant:10:in `<main>'

also: https://getchef.zendesk.com/agent/tickets/8620

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with an uppercase HOSTNAME and start in lib/pedant/platform.rb around lines 321 and 336, following setup from lib/pedant.rb. Confirm that chef-server-ctl test completes successfully and the test organization is created when the hostname contains uppercase letters.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.