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

Speed up the AIX hostname spec #1513

Merged
merged 1 commit into from
Sep 17, 2020
Merged

Speed up the AIX hostname spec #1513

merged 1 commit into from
Sep 17, 2020

Commits on Sep 16, 2020

  1. Speed up the AIX hostname spec

    Mock out #resolve_fqdn like we do in all the other plugins to avoid actually checking the fqdn on the host running the specs.
    
    This was our #2 slowest spec:
    
    ```
      Ohai::System AIX hostname plugin sets the machinename
        0.85031 seconds ./spec/unit/plugins/aix/hostname_spec.rb:30
    ```
    
    Signed-off-by: Tim Smith <tsmith@chef.io>
    tas50 committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    9501f57 View commit details
    Browse the repository at this point in the history