Skip to content

Commit

Permalink
Appservice tests type => "m.login.application_service" (#1019)
Browse files Browse the repository at this point in the history
* Use  type => "m.login.application_service",1~type => "m.login.application_service",

* Add missing registration type in 02ghost.pl

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
  • Loading branch information
Half-Shot and neilalexander authored Mar 5, 2021
1 parent ab7b8f0 commit 19012e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/60app-services/01as-create.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

content => {
username => "astest-01create-0-$TEST_RUN_ID",
type => "m.login.application_service",
},
)->then( sub {
my ( $body ) = @_;
Expand All @@ -38,6 +39,7 @@

content => {
username => "_astest-01create-0-$TEST_RUN_ID",
type => "m.login.application_service",
},
)->then( sub {
my ( $body ) = @_;
Expand All @@ -63,6 +65,7 @@

content => {
username => "astest-01create-1-$TEST_RUN_ID",
type => "m.login.application_service",
inhibit_login => 1,
},
)->then( sub {
Expand Down Expand Up @@ -91,6 +94,7 @@

content => {
username => "a-different-user",
type => "m.login.application_service",
}
)->main::expect_http_4xx;
};
Expand Down Expand Up @@ -175,6 +179,7 @@ sub matrix_register_as_ghost

content => {
username => $user_id,
type => "m.login.application_service",
}
)->then( sub {
my ( $body ) = @_;
Expand Down
1 change: 1 addition & 0 deletions tests/60app-services/02ghost.pl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@

content => {
username => $unregistered_as_user_localpart,
type => "m.login.application_service",
},
);
};
Expand Down

0 comments on commit 19012e2

Please sign in to comment.