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

(SERVER-2470) list_all_transports implementation for puppetserver #187

Merged
merged 2 commits into from
Jun 28, 2019

Commits on Jun 28, 2019

  1. (SERVER-2470) list_all_transports implementation for puppetserver

    This change implements a `list_all_transports(env)` method that loads
    all available transports from a specified environment.
    
    To test out, run `rake spec_prep` and use the following setup in pry:
    
    ```
    require 'puppet'
    require 'puppet/resource_api/transport'
    require 'puppet/settings'
    
    Puppet.initialize_settings
    Puppet[:modulepath] = 'spec/fixtures/modules'
    
    Puppet::ResourceApi::Transport.list_all_transports('production')
    ```
    DavidS committed Jun 28, 2019
    Configuration menu
    Copy the full SHA
    390e6bf View commit details
    Browse the repository at this point in the history
  2. (maint) avoid clashing test with actual fixture, pt2

    This might have been uncovered by the autoloader reset and random order
    testing. To make sure it does not recur, this change moves the autoloader
    reset to the top and runs it after each example.
    DavidS committed Jun 28, 2019
    Configuration menu
    Copy the full SHA
    ad55367 View commit details
    Browse the repository at this point in the history