chef-server-ctl test will fail if HOSTNAME has Uppercase letters
Open
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>'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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