Queries::SmartProxyQueryTest failure with Rails 5.2.2
Queries::SmartProxyQueryTest#test_0001_fetching smart proxy attributes: NoMethodError: undefined method `' for nil:NilClass test/graphql/queries/smart_proxy_query_test.rb:38:in `block in <class:SmartProxyQueryTest>'
Fixes #26562 - Test smart proxy graphql on hosts with env
Due to a change in Rails (https://github.com/rails/rails/pull/33673/),
when factory bot creates a smart proxy with child hosts it now triggers
a save on the hosts, which in this test fails because hosts validate
that they have an environment set if they have a puppet proxy assigned.