Skip to content

Commit

Permalink
Fix tests (#52)
Browse files Browse the repository at this point in the history
* Fix issues in request_test

* Update CHANGELOG with fix
  • Loading branch information
obmarg authored Oct 17, 2018
1 parent a172c5d commit 47b7cd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ all APIs might be changed.
struct.
- Watcher.Event has atoms for the type instead of strings.
- Added a new `gone` event type to watchers. Processes listening for events
should restart a watcher with a new rv when receiving one of these.
should restart a watcher with a new rv when receiving one of these.
- Kazan.Request.create (which is used by most of the API request creation methods
now returns `{:error, term}` rather than `{:err, term}`. This was a bug fix
as the typespec stated that they returned `{:error, term}`.

### New Features

Expand Down
4 changes: 2 additions & 2 deletions test/kazan/request_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ defmodule RequestTest do
end

test "request for unknown operation" do
{:err, :unknown_op} = Request.create("blarga", %{})
{:error, :unknown_op} = Request.create("blarga", %{})
end

test "request with missing required parameters" do
{:err, {:missing_params, ["namespace"]}} =
{:error, {:missing_params, ["namespace"]}} =
Request.create(
"listCoreV1NamespacedPod",
%{}
Expand Down

0 comments on commit 47b7cd6

Please sign in to comment.