Skip to content

Commit

Permalink
Do not pass in a default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Apr 9, 2020
1 parent 808d19d commit 9480cf3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions tests/10apidoc/12device_management.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sub matrix_delete_device {
}

test "GET /device/{deviceId}",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand All @@ -64,7 +64,7 @@ sub matrix_delete_device {
};

test "GET /device/{deviceId} gives a 404 for unknown devices",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand All @@ -78,7 +78,7 @@ sub matrix_delete_device {


test "GET /devices",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand Down Expand Up @@ -136,7 +136,7 @@ sub matrix_delete_device {
};

test "PUT /device/{deviceId} updates device fields",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand Down Expand Up @@ -172,7 +172,7 @@ sub matrix_delete_device {
};

test "PUT /device/{deviceId} gives a 404 for unknown devices",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand All @@ -188,7 +188,7 @@ sub matrix_delete_device {
};

test "DELETE /device/{deviceId}",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand Down Expand Up @@ -273,8 +273,8 @@ sub matrix_delete_device {
#
test "DELETE /device/{deviceId} requires UI auth user to match device owner",
requires => [
local_user_fixture( with_events => 0 ),
local_user_fixture( with_events => 0 ),
local_user_fixture(),
local_user_fixture(),
],

do => sub {
Expand Down Expand Up @@ -317,7 +317,7 @@ sub matrix_delete_device {


test "DELETE /device/{deviceId} with no body gives a 401",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand Down
8 changes: 4 additions & 4 deletions tests/10apidoc/13ui-auth.pl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ sub make_ticket_request
}

test "Interactive authentication types include SSO",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand Down Expand Up @@ -84,7 +84,7 @@ sub make_ticket_request

test "Can perform interactive authentication with SSO",
requires => [
local_user_fixture( with_events => 0 ),
local_user_fixture(),
$main::API_CLIENTS[0],
$main::HOMESERVER_INFO[0],
],
Expand Down Expand Up @@ -143,7 +143,7 @@ sub make_ticket_request

test "The user must be consistent through an interactive authentication session with SSO",
requires => [
local_user_fixture( with_events => 0 ),
local_user_fixture(),
$main::API_CLIENTS[0],
$main::HOMESERVER_INFO[0],
],
Expand Down Expand Up @@ -212,7 +212,7 @@ sub make_ticket_request


test "The operation must be consistent through an interactive authentication session",
requires => [ local_user_fixture( with_events => 0 ) ],
requires => [ local_user_fixture() ],

do => sub {
my ( $user ) = @_;
Expand Down
2 changes: 1 addition & 1 deletion tests/30rooms/05aliases.pl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ sub _test_can_create_and_delete_alias {
};

test "Can delete canonical alias",
requires => [ local_user_fixture( with_events => 0 ), room_alias_fixture(),
requires => [ local_user_fixture(), room_alias_fixture(),
qw( can_create_room_alias )],

do => sub {
Expand Down

0 comments on commit 9480cf3

Please sign in to comment.