-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webapp: Move all webapp endpoint tests into the single binary
- Loading branch information
Showing
33 changed files
with
25 additions
and
45 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/api.rs → repology-webapp/tests/endpoint_tests/api.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/badges.rs → ...ogy-webapp/tests/endpoint_tests/badges.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/feeds.rs → ...logy-webapp/tests/endpoint_tests/feeds.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/graphs.rs → ...ogy-webapp/tests/endpoint_tests/graphs.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/legacy_redirects.rs → .../tests/endpoint_tests/legacy_redirects.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/log.rs → repology-webapp/tests/endpoint_tests/log.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/maintainer.rs → ...webapp/tests/endpoint_tests/maintainer.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
mod api; | ||
mod badges; | ||
mod feeds; | ||
mod graphs; | ||
mod legacy_redirects; | ||
mod log; | ||
mod maintainer; | ||
mod opensearch; | ||
mod problems; | ||
mod project; | ||
mod projects; | ||
mod repository; | ||
mod static_file; | ||
mod tool_project_by; | ||
mod trivial_pages; |
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/opensearch.rs → ...webapp/tests/endpoint_tests/opensearch.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/problems.rs → ...y-webapp/tests/endpoint_tests/problems.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/project.rs → ...gy-webapp/tests/endpoint_tests/project.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/projects.rs → ...y-webapp/tests/endpoint_tests/projects.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/repository.rs → ...webapp/tests/endpoint_tests/repository.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/static_file.rs → ...ebapp/tests/endpoint_tests/static_file.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/tool_project_by.rs → ...p/tests/endpoint_tests/tool_project_by.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
3 changes: 0 additions & 3 deletions
3
repology-webapp/tests/trivial_pages.rs → ...app/tests/endpoint_tests/trivial_pages.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
use sqlx::PgPool; | ||
|
||
use repology_webapp_test_utils::check_response; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#![feature(coverage_attribute)] | ||
#![coverage(off)] | ||
|
||
mod endpoint_tests; |