Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dturn committed Aug 29, 2019
1 parent e79a6ac commit 74a8d62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/kubernetes-deploy/task_config_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ class TaskConfigValidator
validate_kubeconfig
validate_context_exists_in_kubeconfig
validate_context_reachable
validate_namespace_exists
validate_server_version
validate_namespace_exists
).freeze

delegate :context, :namespace, :logger, to: :@task_config
Expand Down
3 changes: 1 addition & 2 deletions test/integration/task_config_validator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ def test_valid_configuration
end

def test_only_is_respected
validator = KubernetesDeploy::TaskConfigValidator.new(task_config, nil, nil, only: [])
assert_predicate(validator, :valid?)
assert_predicate(validator(only: []), :valid?)
end

def test_invalid_kubeconfig
Expand Down

0 comments on commit 74a8d62

Please sign in to comment.