From 52eecea2610c77dddee2b1e0d031b0f6b4e4083f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Wed, 27 Sep 2023 19:50:07 +0530 Subject: [PATCH] feat: apply license header --- src/complaince/mod.rs | 4 ++++ src/complaince/result.rs | 4 ++++ src/complaince/suite.rs | 4 ++++ src/complaince/target.rs | 4 ++++ src/complaince/validator.rs | 4 ++++ src/ctx.rs | 22 ++++++---------------- src/db.rs | 21 +++++---------------- src/docker.rs | 4 ++++ src/docker_compose.rs | 4 ++++ src/errors.rs | 20 ++++---------------- src/git.rs | 4 ++++ src/runner/init_scripts.rs | 4 ++++ src/runner/mod.rs | 4 ++++ src/runner/results.rs | 4 ++++ src/runner/suite.rs | 4 ++++ tests/docker-compose.yml | 4 ++++ tests/git_cmd_init.sh | 4 ++++ 17 files changed, 71 insertions(+), 48 deletions(-) diff --git a/src/complaince/mod.rs b/src/complaince/mod.rs index b82d092..f936e2b 100644 --- a/src/complaince/mod.rs +++ b/src/complaince/mod.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + pub mod result; pub mod suite; pub mod target; diff --git a/src/complaince/result.rs b/src/complaince/result.rs index cdbaf0e..fb8b8a5 100644 --- a/src/complaince/result.rs +++ b/src/complaince/result.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use serde::{Deserialize, Serialize}; use super::suite::Test; diff --git a/src/complaince/suite.rs b/src/complaince/suite.rs index e14d48b..ee325fa 100644 --- a/src/complaince/suite.rs +++ b/src/complaince/suite.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::collections::HashMap; use semver::Version; diff --git a/src/complaince/target.rs b/src/complaince/target.rs index a97cf57..6a42600 100644 --- a/src/complaince/target.rs +++ b/src/complaince/target.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use serde::{Deserialize, Serialize}; use url::Url; diff --git a/src/complaince/validator.rs b/src/complaince/validator.rs index a4c24e9..771f29e 100644 --- a/src/complaince/validator.rs +++ b/src/complaince/validator.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::fs; mod result; mod suite; diff --git a/src/ctx.rs b/src/ctx.rs index 0168f1f..f4e2cb9 100644 --- a/src/ctx.rs +++ b/src/ctx.rs @@ -1,20 +1,10 @@ use std::collections::HashMap; -/* - * Copyright (C) 2022 Aravinth Manivannan - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ + +// Copyright (C) 2022 Aravinth Manivannan +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::sync::{Arc, RwLock}; use reqwest::Client; diff --git a/src/db.rs b/src/db.rs index b317b72..5883f4a 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,19 +1,8 @@ -/* - * Copyright (C) 2022 Aravinth Manivannan - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// Copyright (C) 2022 Aravinth Manivannan +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::str::FromStr; use sqlx::postgres::PgPoolOptions; diff --git a/src/docker.rs b/src/docker.rs index 36d26b2..0cc2e6e 100644 --- a/src/docker.rs +++ b/src/docker.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::collections::HashMap; use std::process::Command; diff --git a/src/docker_compose.rs b/src/docker_compose.rs index 795c15a..3689230 100644 --- a/src/docker_compose.rs +++ b/src/docker_compose.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::path::PathBuf; use std::process::Command; use std::sync::Arc; diff --git a/src/errors.rs b/src/errors.rs index b0a50f4..31e789a 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,19 +1,7 @@ -/* - * Copyright (C) 2022 Aravinth Manivannan - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// Copyright (C) 2022 Aravinth Manivannan +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later use std::convert::From; diff --git a/src/git.rs b/src/git.rs index 724824f..ee67e2f 100644 --- a/src/git.rs +++ b/src/git.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::path::Path; use std::process::Command; diff --git a/src/runner/init_scripts.rs b/src/runner/init_scripts.rs index bc51949..f562eb2 100644 --- a/src/runner/init_scripts.rs +++ b/src/runner/init_scripts.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::collections::HashMap; use crate::complaince::target::Target; diff --git a/src/runner/mod.rs b/src/runner/mod.rs index c76fa76..a710d1b 100644 --- a/src/runner/mod.rs +++ b/src/runner/mod.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + pub mod init_scripts; pub mod results; pub mod suite; diff --git a/src/runner/results.rs b/src/runner/results.rs index d72bcec..5d7d4e6 100644 --- a/src/runner/results.rs +++ b/src/runner/results.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::collections::HashMap; use semver::Version; diff --git a/src/runner/suite.rs b/src/runner/suite.rs index ea31b88..690c011 100644 --- a/src/runner/suite.rs +++ b/src/runner/suite.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Aravinth Manivannan +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use std::collections::HashMap; use tokio::sync::mpsc::{self, Receiver}; diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index 0baf16c..b9c96fc 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Aravinth Manivannan +# +# SPDX-License-Identifier: AGPL-3.0-or-later + services: foo: image: "forgeflux/ftest-docker-cmd-tester" diff --git a/tests/git_cmd_init.sh b/tests/git_cmd_init.sh index 6cde8e8..134228b 100755 --- a/tests/git_cmd_init.sh +++ b/tests/git_cmd_init.sh @@ -1,5 +1,9 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2023 Aravinth Manivannan +# +# SPDX-License-Identifier: AGPL-3.0-or-later + set -euo pipefail readonly DIR=/tmp/git_cmd_init_tmp