From 78f5da04584a60d14909f357d3c28189344c9052 Mon Sep 17 00:00:00 2001 From: daniele-mng Date: Fri, 7 Jun 2024 11:46:38 +0200 Subject: [PATCH] fix header --- scripts/cleanuptranslations.js | 15 +-------------- src/__tests__/version.js | 16 ++-------------- src/gmp/__tests__/cancel.js | 16 ++-------------- src/gmp/__tests__/cvss.js | 16 ++-------------- src/gmp/__tests__/gmp.js | 16 ++-------------- src/gmp/__tests__/gmpsettings.js | 16 ++-------------- src/gmp/__tests__/log.js | 16 ++-------------- src/gmp/__tests__/model.js | 16 ++-------------- src/gmp/__tests__/parser.js | 16 ++-------------- src/gmp/__tests__/timezones.js | 16 ++-------------- src/gmp/cancel.js | 16 ++-------------- src/gmp/capabilities/__tests__/capabilities.js | 16 ++-------------- src/gmp/capabilities/__tests__/everything.js | 16 ++-------------- src/gmp/capabilities/capabilities.js | 16 ++-------------- src/gmp/capabilities/everything.js | 16 ++-------------- src/gmp/collection/collectioncounts.js | 16 ++-------------- src/gmp/collection/parser.js | 16 ++-------------- src/gmp/command.js | 16 ++-------------- src/gmp/commands/__tests__/audit.js | 16 ++-------------- src/gmp/commands/__tests__/auth.js | 16 ++-------------- src/gmp/commands/__tests__/convert.js | 16 ++-------------- src/gmp/commands/__tests__/dashboards.js | 16 ++-------------- src/gmp/commands/__tests__/entities.js | 16 ++-------------- src/gmp/commands/__tests__/entity.js | 16 ++-------------- src/gmp/commands/__tests__/feedstatus.js | 16 ++-------------- src/gmp/commands/__tests__/http.js | 16 ++-------------- src/gmp/commands/__tests__/license.js | 16 ++-------------- src/gmp/commands/__tests__/nvt.js | 16 ++-------------- src/gmp/commands/__tests__/nvtfamilies.js | 16 ++-------------- src/gmp/commands/__tests__/policies.js | 16 ++-------------- src/gmp/commands/__tests__/policy.js | 16 ++-------------- src/gmp/commands/__tests__/report.js | 16 ++-------------- src/gmp/commands/__tests__/reportconfig.js | 16 ++-------------- src/gmp/commands/__tests__/reportconfigs.js | 16 ++-------------- src/gmp/commands/__tests__/reports.js | 16 ++-------------- src/gmp/commands/__tests__/resourcenames.js | 16 ++-------------- src/gmp/commands/__tests__/result.js | 16 ++-------------- src/gmp/commands/__tests__/results.js | 16 ++-------------- src/gmp/commands/__tests__/scanconfig.js | 16 ++-------------- src/gmp/commands/__tests__/tag.js | 16 ++-------------- src/gmp/commands/__tests__/target.js | 16 ++-------------- src/gmp/commands/__tests__/task.js | 16 ++-------------- src/gmp/commands/__tests__/ticket.js | 16 ++-------------- src/gmp/commands/__tests__/tickets.js | 16 ++-------------- src/gmp/commands/__tests__/tlscertificates.js | 16 ++-------------- src/gmp/commands/__tests__/user.js | 16 ++-------------- src/gmp/commands/alerts.js | 16 ++-------------- src/gmp/commands/audits.js | 16 ++-------------- src/gmp/commands/auth.js | 16 ++-------------- src/gmp/commands/certbund.js | 16 ++-------------- src/gmp/commands/convert.js | 16 ++-------------- src/gmp/commands/cpes.js | 16 ++-------------- src/gmp/commands/credentials.js | 16 ++-------------- src/gmp/commands/cves.js | 16 ++-------------- src/gmp/commands/cvsscalculator.js | 16 ++-------------- src/gmp/commands/dashboards.js | 16 ++-------------- src/gmp/commands/dfncert.js | 16 ++-------------- src/gmp/commands/entities.js | 16 ++-------------- src/gmp/commands/entity.js | 16 ++-------------- src/gmp/commands/feedstatus.js | 16 ++-------------- src/gmp/commands/filters.js | 16 ++-------------- src/gmp/commands/gmp.js | 16 ++-------------- src/gmp/commands/groups.js | 16 ++-------------- src/gmp/commands/hosts.js | 16 ++-------------- src/gmp/commands/http.js | 16 ++-------------- src/gmp/commands/infoentities.js | 16 ++-------------- src/gmp/commands/infoentity.js | 16 ++-------------- src/gmp/commands/license.js | 16 ++-------------- src/gmp/commands/login.js | 16 ++-------------- src/gmp/commands/notes.js | 16 ++-------------- src/gmp/commands/nvt.js | 16 ++-------------- src/gmp/commands/nvtfamilies.js | 16 ++-------------- src/gmp/commands/os.js | 16 ++-------------- src/gmp/commands/overrides.js | 16 ++-------------- src/gmp/commands/performance.js | 16 ++-------------- src/gmp/commands/permissions.js | 16 ++-------------- src/gmp/commands/policies.js | 16 ++-------------- src/gmp/commands/portlists.js | 16 ++-------------- src/gmp/commands/reportconfigs.js | 16 ++-------------- src/gmp/commands/reportformats.js | 16 ++-------------- src/gmp/commands/reports.js | 16 ++-------------- src/gmp/commands/resourcenames.js | 16 ++-------------- src/gmp/commands/results.js | 16 ++-------------- src/gmp/commands/roles.js | 16 ++-------------- src/gmp/commands/scanconfigs.js | 16 ++-------------- src/gmp/commands/scanners.js | 16 ++-------------- src/gmp/commands/schedules.js | 16 ++-------------- src/gmp/commands/tags.js | 16 ++-------------- src/gmp/commands/targets.js | 16 ++-------------- src/gmp/commands/tasks.js | 16 ++-------------- src/gmp/commands/testing.js | 16 ++-------------- src/gmp/commands/tickets.js | 16 ++-------------- src/gmp/commands/tlscertificates.js | 16 ++-------------- src/gmp/commands/trashcan.js | 16 ++-------------- src/gmp/commands/users.js | 16 ++-------------- src/gmp/commands/vulns.js | 16 ++-------------- src/gmp/commands/wizard.js | 16 ++-------------- src/gmp/gmp.js | 16 ++-------------- src/gmp/gmpsettings.js | 16 ++-------------- src/gmp/http/__tests__/rejection.js | 16 ++-------------- src/gmp/http/__tests__/response.js | 16 ++-------------- src/gmp/http/gmp.js | 16 ++-------------- src/gmp/http/http.js | 16 ++-------------- src/gmp/http/rejection.js | 16 ++-------------- src/gmp/http/response.js | 16 ++-------------- src/gmp/http/transform/__tests__/fastxml.js | 16 ++-------------- src/gmp/http/transform/__tests__/xml.js | 16 ++-------------- src/gmp/http/transform/default.js | 16 ++-------------- src/gmp/http/transform/fastxml.js | 16 ++-------------- src/gmp/http/transform/xml.js | 16 ++-------------- src/gmp/http/utils.js | 16 ++-------------- src/gmp/index.js | 16 ++-------------- src/gmp/locale/__tests__/date.js | 16 ++-------------- src/gmp/locale/__tests__/detector.js | 16 ++-------------- src/gmp/locale/__tests__/lang.js | 16 ++-------------- src/gmp/locale/__tests__/languages.js | 16 ++-------------- src/gmp/locale/date.js | 16 ++-------------- src/gmp/locale/detector.js | 16 ++-------------- src/gmp/locale/index.js | 16 ++-------------- src/gmp/locale/lang.js | 16 ++-------------- src/gmp/locale/languages.js | 16 ++-------------- src/gmp/log.js | 16 ++-------------- src/gmp/model.js | 16 ++-------------- src/gmp/models/__tests__/alert.js | 16 ++-------------- src/gmp/models/__tests__/asset.js | 16 ++-------------- src/gmp/models/__tests__/audit.js | 16 ++-------------- src/gmp/models/__tests__/certbund.js | 16 ++-------------- src/gmp/models/__tests__/cpe.js | 16 ++-------------- src/gmp/models/__tests__/credential.js | 16 ++-------------- src/gmp/models/__tests__/cve.js | 16 ++-------------- src/gmp/models/__tests__/dfncert.js | 16 ++-------------- src/gmp/models/__tests__/event.js | 16 ++-------------- src/gmp/models/__tests__/filter.js | 16 ++-------------- src/gmp/models/__tests__/group.js | 16 ++-------------- src/gmp/models/__tests__/host.js | 16 ++-------------- src/gmp/models/__tests__/info.js | 16 ++-------------- src/gmp/models/__tests__/license.js | 16 ++-------------- src/gmp/models/__tests__/login.js | 16 ++-------------- src/gmp/models/__tests__/note.js | 16 ++-------------- src/gmp/models/__tests__/nvt.js | 16 ++-------------- src/gmp/models/__tests__/os.js | 16 ++-------------- src/gmp/models/__tests__/override.js | 16 ++-------------- src/gmp/models/__tests__/permission.js | 16 ++-------------- src/gmp/models/__tests__/policy.js | 16 ++-------------- src/gmp/models/__tests__/portlist.js | 16 ++-------------- src/gmp/models/__tests__/reportconfig.js | 16 ++-------------- src/gmp/models/__tests__/reportformat.js | 16 ++-------------- src/gmp/models/__tests__/resourcename.js | 16 ++-------------- src/gmp/models/__tests__/result.js | 16 ++-------------- src/gmp/models/__tests__/role.js | 16 ++-------------- src/gmp/models/__tests__/scanconfig.js | 16 ++-------------- src/gmp/models/__tests__/scanner.js | 16 ++-------------- src/gmp/models/__tests__/schedule.js | 16 ++-------------- src/gmp/models/__tests__/secinfo.js | 16 ++-------------- src/gmp/models/__tests__/setting.js | 16 ++-------------- src/gmp/models/__tests__/settings.js | 16 ++-------------- src/gmp/models/__tests__/tag.js | 16 ++-------------- src/gmp/models/__tests__/target.js | 16 ++-------------- src/gmp/models/__tests__/task.js | 16 ++-------------- src/gmp/models/__tests__/ticket.js | 16 ++-------------- src/gmp/models/__tests__/tlscertificate.js | 16 ++-------------- src/gmp/models/__tests__/user.js | 16 ++-------------- src/gmp/models/__tests__/vulnerability.js | 16 ++-------------- src/gmp/models/actionresult.js | 16 ++-------------- src/gmp/models/alert.js | 16 ++-------------- src/gmp/models/asset.js | 16 ++-------------- src/gmp/models/audit.js | 16 ++-------------- src/gmp/models/certbund.js | 16 ++-------------- src/gmp/models/cpe.js | 16 ++-------------- src/gmp/models/credential.js | 16 ++-------------- src/gmp/models/cve.js | 16 ++-------------- src/gmp/models/date.js | 16 ++-------------- src/gmp/models/dfncert.js | 16 ++-------------- src/gmp/models/event.js | 16 ++-------------- src/gmp/models/filter.js | 16 ++-------------- src/gmp/models/filter/__tests__/convert.js | 16 ++-------------- src/gmp/models/filter/__tests__/filterterm.js | 16 ++-------------- src/gmp/models/filter/__tests__/utils.js | 16 ++-------------- src/gmp/models/filter/convert.js | 16 ++-------------- src/gmp/models/filter/filterterm.js | 16 ++-------------- src/gmp/models/filter/keywords.js | 16 ++-------------- src/gmp/models/filter/utils.js | 16 ++-------------- src/gmp/models/group.js | 16 ++-------------- src/gmp/models/host.js | 16 ++-------------- src/gmp/models/info.js | 16 ++-------------- src/gmp/models/license.js | 16 ++-------------- src/gmp/models/login.js | 16 ++-------------- src/gmp/models/note.js | 16 ++-------------- src/gmp/models/nvt.js | 16 ++-------------- src/gmp/models/os.js | 16 ++-------------- src/gmp/models/override.js | 16 ++-------------- src/gmp/models/permission.js | 16 ++-------------- src/gmp/models/policy.js | 16 ++-------------- src/gmp/models/portlist.js | 16 ++-------------- src/gmp/models/report.js | 16 ++-------------- src/gmp/models/report/__tests__/app.js | 16 ++-------------- src/gmp/models/report/__tests__/cve.js | 16 ++-------------- src/gmp/models/report/__tests__/host.js | 16 ++-------------- src/gmp/models/report/__tests__/os.js | 16 ++-------------- src/gmp/models/report/__tests__/parser.js | 16 ++-------------- src/gmp/models/report/__tests__/port.js | 16 ++-------------- src/gmp/models/report/__tests__/task.js | 16 ++-------------- .../models/report/__tests__/tlscertificate.js | 16 ++-------------- src/gmp/models/report/app.js | 16 ++-------------- src/gmp/models/report/cve.js | 16 ++-------------- src/gmp/models/report/host.js | 16 ++-------------- src/gmp/models/report/os.js | 16 ++-------------- src/gmp/models/report/parser.js | 16 ++-------------- src/gmp/models/report/port.js | 16 ++-------------- src/gmp/models/report/report.js | 16 ++-------------- src/gmp/models/report/task.js | 16 ++-------------- src/gmp/models/report/tlscertificate.js | 16 ++-------------- src/gmp/models/reportconfig.js | 16 ++-------------- src/gmp/models/reportformat.js | 16 ++-------------- src/gmp/models/resourcename.js | 16 ++-------------- src/gmp/models/result.js | 16 ++-------------- src/gmp/models/role.js | 16 ++-------------- src/gmp/models/scanconfig.js | 16 ++-------------- src/gmp/models/scanner.js | 16 ++-------------- src/gmp/models/schedule.js | 16 ++-------------- src/gmp/models/secinfo.js | 16 ++-------------- src/gmp/models/setting.js | 16 ++-------------- src/gmp/models/settings.js | 16 ++-------------- src/gmp/models/tag.js | 16 ++-------------- src/gmp/models/target.js | 16 ++-------------- src/gmp/models/task.js | 16 ++-------------- src/gmp/models/testing.js | 16 ++-------------- src/gmp/models/ticket.js | 16 ++-------------- src/gmp/models/tlscertificate.js | 16 ++-------------- src/gmp/models/user.js | 16 ++-------------- src/gmp/models/vulnerability.js | 16 ++-------------- src/gmp/parser.js | 16 ++-------------- src/gmp/parser/cvss.js | 16 ++-------------- src/gmp/timezones.js | 16 ++-------------- src/gmp/utils/__tests__/array.js | 16 ++-------------- src/gmp/utils/__tests__/entitytype.js | 16 ++-------------- src/gmp/utils/__tests__/event.js | 16 ++-------------- src/gmp/utils/__tests__/id.js | 16 ++-------------- src/gmp/utils/__tests__/identity.js | 16 ++-------------- src/gmp/utils/__tests__/number.js | 16 ++-------------- src/gmp/utils/__tests__/object.js | 16 ++-------------- src/gmp/utils/__tests__/string.js | 16 ++-------------- src/gmp/utils/array.js | 16 ++-------------- src/gmp/utils/entitytype.js | 16 ++-------------- src/gmp/utils/event.js | 16 ++-------------- src/gmp/utils/id.js | 16 ++-------------- src/gmp/utils/identity.js | 16 ++-------------- src/gmp/utils/number.js | 16 ++-------------- src/gmp/utils/object.js | 16 ++-------------- src/gmp/utils/string.js | 16 ++-------------- src/gmp/utils/trace.js | 16 ++-------------- src/version.js | 16 ++-------------- src/web/pages/extras/trashactions.jsx | 16 ++-------------- src/web/pages/tasks/row.jsx | 16 ++-------------- src/web/setupTests.js | 16 ++-------------- src/web/store/__tests__/utils.js | 16 ++-------------- src/web/store/actions.js | 16 ++-------------- .../store/dashboard/data/__tests__/actions.js | 16 ++-------------- src/web/store/dashboard/data/__tests__/loader.js | 16 ++-------------- .../store/dashboard/data/__tests__/reducers.js | 16 ++-------------- .../store/dashboard/data/__tests__/selectors.js | 16 ++-------------- src/web/store/dashboard/data/actions.js | 16 ++-------------- src/web/store/dashboard/data/loader.js | 16 ++-------------- src/web/store/dashboard/data/reducers.js | 16 ++-------------- src/web/store/dashboard/data/selectors.js | 16 ++-------------- .../dashboard/settings/__tests__/actions.js | 16 ++-------------- .../dashboard/settings/__tests__/reducers.js | 16 ++-------------- .../dashboard/settings/__tests__/selectors.js | 16 ++-------------- src/web/store/dashboard/settings/actions.js | 16 ++-------------- src/web/store/dashboard/settings/reducers.js | 16 ++-------------- src/web/store/dashboard/settings/selectors.js | 16 ++-------------- src/web/store/entities/__tests__/alerts.js | 16 ++-------------- src/web/store/entities/__tests__/audits.js | 16 ++-------------- src/web/store/entities/__tests__/certbund.js | 16 ++-------------- src/web/store/entities/__tests__/cpes.js | 16 ++-------------- src/web/store/entities/__tests__/credentials.js | 16 ++-------------- src/web/store/entities/__tests__/cves.js | 16 ++-------------- src/web/store/entities/__tests__/dfncerts.js | 16 ++-------------- src/web/store/entities/__tests__/filters.js | 16 ++-------------- src/web/store/entities/__tests__/groups.js | 16 ++-------------- src/web/store/entities/__tests__/hosts.js | 16 ++-------------- src/web/store/entities/__tests__/notes.js | 16 ++-------------- src/web/store/entities/__tests__/nvts.js | 16 ++-------------- .../store/entities/__tests__/operatingsystems.js | 16 ++-------------- src/web/store/entities/__tests__/overrides.js | 16 ++-------------- src/web/store/entities/__tests__/permissions.js | 16 ++-------------- src/web/store/entities/__tests__/policies.js | 16 ++-------------- src/web/store/entities/__tests__/portlists.js | 16 ++-------------- src/web/store/entities/__tests__/reducers.js | 16 ++-------------- .../store/entities/__tests__/reportformats.js | 16 ++-------------- src/web/store/entities/__tests__/reports.js | 16 ++-------------- src/web/store/entities/__tests__/results.js | 16 ++-------------- src/web/store/entities/__tests__/roles.js | 16 ++-------------- src/web/store/entities/__tests__/scanconfigs.js | 16 ++-------------- src/web/store/entities/__tests__/scanners.js | 16 ++-------------- src/web/store/entities/__tests__/schedules.js | 16 ++-------------- src/web/store/entities/__tests__/tags.js | 16 ++-------------- src/web/store/entities/__tests__/targets.js | 16 ++-------------- src/web/store/entities/__tests__/tasks.js | 16 ++-------------- src/web/store/entities/__tests__/tickets.js | 16 ++-------------- src/web/store/entities/__tests__/users.js | 16 ++-------------- src/web/store/entities/__tests__/vulns.js | 16 ++-------------- src/web/store/entities/alerts.js | 16 ++-------------- src/web/store/entities/audits.js | 16 ++-------------- src/web/store/entities/certbund.js | 16 ++-------------- src/web/store/entities/cpes.js | 16 ++-------------- src/web/store/entities/credentials.js | 16 ++-------------- src/web/store/entities/cves.js | 16 ++-------------- src/web/store/entities/dfncerts.js | 16 ++-------------- src/web/store/entities/filters.js | 16 ++-------------- src/web/store/entities/groups.js | 16 ++-------------- src/web/store/entities/hosts.js | 16 ++-------------- src/web/store/entities/notes.js | 16 ++-------------- src/web/store/entities/nvts.js | 16 ++-------------- src/web/store/entities/operatingsystems.js | 16 ++-------------- src/web/store/entities/overrides.js | 16 ++-------------- src/web/store/entities/permissions.js | 16 ++-------------- src/web/store/entities/policies.js | 16 ++-------------- src/web/store/entities/portlists.js | 16 ++-------------- src/web/store/entities/reducers.js | 16 ++-------------- .../store/entities/report/__tests__/actions.js | 16 ++-------------- .../store/entities/report/__tests__/reducers.js | 16 ++-------------- .../store/entities/report/__tests__/selectors.js | 16 ++-------------- src/web/store/entities/report/actions.js | 16 ++-------------- src/web/store/entities/report/reducers.js | 16 ++-------------- src/web/store/entities/report/selectors.js | 16 ++-------------- src/web/store/entities/reportconfigs.js | 16 ++-------------- src/web/store/entities/reportformats.js | 16 ++-------------- src/web/store/entities/reports.js | 16 ++-------------- .../store/entities/reports/__tests__/reducers.js | 16 ++-------------- src/web/store/entities/reports/reducers.js | 16 ++-------------- src/web/store/entities/results.js | 16 ++-------------- src/web/store/entities/roles.js | 16 ++-------------- src/web/store/entities/scanconfigs.js | 16 ++-------------- src/web/store/entities/scanners.js | 16 ++-------------- src/web/store/entities/schedules.js | 16 ++-------------- src/web/store/entities/tags.js | 16 ++-------------- src/web/store/entities/targets.js | 16 ++-------------- src/web/store/entities/tasks.js | 16 ++-------------- src/web/store/entities/tickets.js | 16 ++-------------- src/web/store/entities/tlscertificates.js | 16 ++-------------- src/web/store/entities/users.js | 16 ++-------------- .../store/entities/utils/__tests__/actions.js | 16 ++-------------- src/web/store/entities/utils/__tests__/main.js | 16 ++-------------- .../store/entities/utils/__tests__/reducers.js | 16 ++-------------- .../store/entities/utils/__tests__/selectors.js | 16 ++-------------- src/web/store/entities/utils/actions.js | 16 ++-------------- src/web/store/entities/utils/main.js | 16 ++-------------- src/web/store/entities/utils/reducers.js | 16 ++-------------- src/web/store/entities/utils/selectors.js | 16 ++-------------- src/web/store/entities/utils/testing.js | 16 ++-------------- src/web/store/entities/vulns.js | 16 ++-------------- src/web/store/index.js | 16 ++-------------- src/web/store/pages/__tests__/actions.js | 16 ++-------------- src/web/store/pages/__tests__/reducers.js | 16 ++-------------- src/web/store/pages/__tests__/selectors.js | 16 ++-------------- src/web/store/pages/actions.js | 16 ++-------------- src/web/store/pages/reducers.js | 16 ++-------------- src/web/store/pages/selectors.js | 16 ++-------------- src/web/store/reducers.js | 16 ++-------------- src/web/store/usersettings/__tests__/actions.js | 16 ++-------------- src/web/store/usersettings/__tests__/reducers.js | 16 ++-------------- .../store/usersettings/__tests__/selectors.js | 16 ++-------------- src/web/store/usersettings/actions.js | 16 ++-------------- .../defaultfilters/__tests__/actions.js | 16 ++-------------- .../defaultfilters/__tests__/reducers.js | 16 ++-------------- .../defaultfilters/__tests__/selectors.js | 16 ++-------------- .../store/usersettings/defaultfilters/actions.js | 16 ++-------------- .../usersettings/defaultfilters/reducers.js | 16 ++-------------- .../usersettings/defaultfilters/selectors.js | 16 ++-------------- .../usersettings/defaults/__tests__/actions.js | 16 ++-------------- .../usersettings/defaults/__tests__/reducers.js | 16 ++-------------- .../usersettings/defaults/__tests__/selectors.js | 16 ++-------------- src/web/store/usersettings/defaults/actions.js | 16 ++-------------- src/web/store/usersettings/defaults/reducers.js | 16 ++-------------- src/web/store/usersettings/defaults/selectors.js | 16 ++-------------- src/web/store/usersettings/reducers.js | 16 ++-------------- src/web/store/usersettings/selectors.js | 16 ++-------------- src/web/store/utils.js | 16 ++-------------- 379 files changed, 757 insertions(+), 5306 deletions(-) diff --git a/scripts/cleanuptranslations.js b/scripts/cleanuptranslations.js index 3481861962..f902dd2def 100644 --- a/scripts/cleanuptranslations.js +++ b/scripts/cleanuptranslations.js @@ -1,19 +1,6 @@ -/* Copyright (C) 2020-2021 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ /* eslint-disable no-console */ diff --git a/src/__tests__/version.js b/src/__tests__/version.js index 19c3528de6..64250bf0b4 100644 --- a/src/__tests__/version.js +++ b/src/__tests__/version.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {RELEASE_VERSION} from '../version'; diff --git a/src/gmp/__tests__/cancel.js b/src/gmp/__tests__/cancel.js index 27dfe7990e..3a8cae4a87 100644 --- a/src/gmp/__tests__/cancel.js +++ b/src/gmp/__tests__/cancel.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import CancelToken from '../cancel.js'; diff --git a/src/gmp/__tests__/cvss.js b/src/gmp/__tests__/cvss.js index 8a68375991..c726a9da5f 100644 --- a/src/gmp/__tests__/cvss.js +++ b/src/gmp/__tests__/cvss.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import { diff --git a/src/gmp/__tests__/gmp.js b/src/gmp/__tests__/gmp.js index 3ed5807919..4d240b4273 100644 --- a/src/gmp/__tests__/gmp.js +++ b/src/gmp/__tests__/gmp.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { describe, test, diff --git a/src/gmp/__tests__/gmpsettings.js b/src/gmp/__tests__/gmpsettings.js index 504ba481cb..201bf24d79 100644 --- a/src/gmp/__tests__/gmpsettings.js +++ b/src/gmp/__tests__/gmpsettings.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { describe, test, diff --git a/src/gmp/__tests__/log.js b/src/gmp/__tests__/log.js index d3a8a65517..02339bc205 100644 --- a/src/gmp/__tests__/log.js +++ b/src/gmp/__tests__/log.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { describe, test, diff --git a/src/gmp/__tests__/model.js b/src/gmp/__tests__/model.js index 2a1fea60a0..ec4ea244fc 100644 --- a/src/gmp/__tests__/model.js +++ b/src/gmp/__tests__/model.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model, {parseModelFromElement} from 'gmp/model'; diff --git a/src/gmp/__tests__/parser.js b/src/gmp/__tests__/parser.js index b828f0b0e2..8a0014a492 100644 --- a/src/gmp/__tests__/parser.js +++ b/src/gmp/__tests__/parser.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isDate, isDuration} from 'gmp/models/date'; diff --git a/src/gmp/__tests__/timezones.js b/src/gmp/__tests__/timezones.js index 2934227caa..ae1e4bb1d9 100644 --- a/src/gmp/__tests__/timezones.js +++ b/src/gmp/__tests__/timezones.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isArray} from '../utils/identity'; diff --git a/src/gmp/cancel.js b/src/gmp/cancel.js index 394f62f7cb..ad5640df28 100644 --- a/src/gmp/cancel.js +++ b/src/gmp/cancel.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + /* * The CancelToken class is based on the cancelable-promises tc39 proposal * diff --git a/src/gmp/capabilities/__tests__/capabilities.js b/src/gmp/capabilities/__tests__/capabilities.js index f8741d0c93..835994a957 100644 --- a/src/gmp/capabilities/__tests__/capabilities.js +++ b/src/gmp/capabilities/__tests__/capabilities.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Capabilities from '../capabilities'; diff --git a/src/gmp/capabilities/__tests__/everything.js b/src/gmp/capabilities/__tests__/everything.js index b19066a9a4..97cfb82f5b 100644 --- a/src/gmp/capabilities/__tests__/everything.js +++ b/src/gmp/capabilities/__tests__/everything.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import EverythingCapabilities from '../everything'; diff --git a/src/gmp/capabilities/capabilities.js b/src/gmp/capabilities/capabilities.js index 64a0c69eaa..e65a1832b2 100644 --- a/src/gmp/capabilities/capabilities.js +++ b/src/gmp/capabilities/capabilities.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {map} from 'gmp/utils/array'; import {pluralizeType} from 'gmp/utils/entitytype'; diff --git a/src/gmp/capabilities/everything.js b/src/gmp/capabilities/everything.js index 1ffbb07308..b02b9d68a7 100644 --- a/src/gmp/capabilities/everything.js +++ b/src/gmp/capabilities/everything.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Capabilities from './capabilities.js'; class EverythingCapabilities extends Capabilities { diff --git a/src/gmp/collection/collectioncounts.js b/src/gmp/collection/collectioncounts.js index 2b7e0c1571..3e0d484897 100644 --- a/src/gmp/collection/collectioncounts.js +++ b/src/gmp/collection/collectioncounts.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from '../utils/identity'; import {parseInt} from '../parser.js'; diff --git a/src/gmp/collection/parser.js b/src/gmp/collection/parser.js index e200dfadc2..beb87f80b6 100644 --- a/src/gmp/collection/parser.js +++ b/src/gmp/collection/parser.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from '../log'; import {isArray, isDefined} from '../utils/identity'; diff --git a/src/gmp/command.js b/src/gmp/command.js index 58a63f0222..d3b0ef8943 100644 --- a/src/gmp/command.js +++ b/src/gmp/command.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + const COMMANDS = {}; const registerCommand = (name, clazz) => { diff --git a/src/gmp/commands/__tests__/audit.js b/src/gmp/commands/__tests__/audit.js index 26ebf37ff3..15bfd2a223 100644 --- a/src/gmp/commands/__tests__/audit.js +++ b/src/gmp/commands/__tests__/audit.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ALL_FILTER} from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/auth.js b/src/gmp/commands/__tests__/auth.js index 8832b68d29..c76a9b1651 100644 --- a/src/gmp/commands/__tests__/auth.js +++ b/src/gmp/commands/__tests__/auth.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {AuthenticationCommand} from '../auth'; diff --git a/src/gmp/commands/__tests__/convert.js b/src/gmp/commands/__tests__/convert.js index 0ef1dd8418..9a48c745a3 100644 --- a/src/gmp/commands/__tests__/convert.js +++ b/src/gmp/commands/__tests__/convert.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {convertBoolean} from '../convert'; diff --git a/src/gmp/commands/__tests__/dashboards.js b/src/gmp/commands/__tests__/dashboards.js index dbf3a8b2cc..db46cb1282 100644 --- a/src/gmp/commands/__tests__/dashboards.js +++ b/src/gmp/commands/__tests__/dashboards.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {DEFAULT_ROW_HEIGHT, createDisplay, createRow} from '../dashboards'; diff --git a/src/gmp/commands/__tests__/entities.js b/src/gmp/commands/__tests__/entities.js index de6e407ce3..850e14c9dc 100644 --- a/src/gmp/commands/__tests__/entities.js +++ b/src/gmp/commands/__tests__/entities.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/entity.js b/src/gmp/commands/__tests__/entity.js index 389261f755..db1e6d1408 100644 --- a/src/gmp/commands/__tests__/entity.js +++ b/src/gmp/commands/__tests__/entity.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/feedstatus.js b/src/gmp/commands/__tests__/feedstatus.js index 38ed98b337..f36d60ce5c 100644 --- a/src/gmp/commands/__tests__/feedstatus.js +++ b/src/gmp/commands/__tests__/feedstatus.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {createResponse, createHttp} from '../testing'; diff --git a/src/gmp/commands/__tests__/http.js b/src/gmp/commands/__tests__/http.js index 050b516b26..6b7bf05011 100644 --- a/src/gmp/commands/__tests__/http.js +++ b/src/gmp/commands/__tests__/http.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import HttpCommand from '../http'; diff --git a/src/gmp/commands/__tests__/license.js b/src/gmp/commands/__tests__/license.js index 3b207941e4..4ce8d1bf79 100644 --- a/src/gmp/commands/__tests__/license.js +++ b/src/gmp/commands/__tests__/license.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2021-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {createResponse, createHttp} from '../testing'; diff --git a/src/gmp/commands/__tests__/nvt.js b/src/gmp/commands/__tests__/nvt.js index add299774a..35f7983afb 100644 --- a/src/gmp/commands/__tests__/nvt.js +++ b/src/gmp/commands/__tests__/nvt.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {createResponse, createHttp} from '../testing'; diff --git a/src/gmp/commands/__tests__/nvtfamilies.js b/src/gmp/commands/__tests__/nvtfamilies.js index 4416d958ff..1a126f8bc7 100644 --- a/src/gmp/commands/__tests__/nvtfamilies.js +++ b/src/gmp/commands/__tests__/nvtfamilies.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {NvtFamiliesCommand} from '../nvtfamilies'; diff --git a/src/gmp/commands/__tests__/policies.js b/src/gmp/commands/__tests__/policies.js index cf95d2e10c..d7cf9aff4a 100644 --- a/src/gmp/commands/__tests__/policies.js +++ b/src/gmp/commands/__tests__/policies.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ALL_FILTER} from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/policy.js b/src/gmp/commands/__tests__/policy.js index d500fbe1fc..e463bd9f6d 100644 --- a/src/gmp/commands/__tests__/policy.js +++ b/src/gmp/commands/__tests__/policy.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import { diff --git a/src/gmp/commands/__tests__/report.js b/src/gmp/commands/__tests__/report.js index 488bc51c39..aaf6f5b568 100644 --- a/src/gmp/commands/__tests__/report.js +++ b/src/gmp/commands/__tests__/report.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {createHttp, createEntityResponse} from '../testing'; diff --git a/src/gmp/commands/__tests__/reportconfig.js b/src/gmp/commands/__tests__/reportconfig.js index 7446eaaaca..ac3d411441 100644 --- a/src/gmp/commands/__tests__/reportconfig.js +++ b/src/gmp/commands/__tests__/reportconfig.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import { diff --git a/src/gmp/commands/__tests__/reportconfigs.js b/src/gmp/commands/__tests__/reportconfigs.js index 309e192013..73dca45af7 100644 --- a/src/gmp/commands/__tests__/reportconfigs.js +++ b/src/gmp/commands/__tests__/reportconfigs.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {createHttp, createEntitiesResponse} from '../testing'; diff --git a/src/gmp/commands/__tests__/reports.js b/src/gmp/commands/__tests__/reports.js index f3d25a011f..07d7c03968 100644 --- a/src/gmp/commands/__tests__/reports.js +++ b/src/gmp/commands/__tests__/reports.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ALL_FILTER} from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/resourcenames.js b/src/gmp/commands/__tests__/resourcenames.js index 38e7533b44..8ce3a05dad 100644 --- a/src/gmp/commands/__tests__/resourcenames.js +++ b/src/gmp/commands/__tests__/resourcenames.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2023 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {createResponse, createHttp} from '../testing'; diff --git a/src/gmp/commands/__tests__/result.js b/src/gmp/commands/__tests__/result.js index 140119ae1c..82e62e78c9 100644 --- a/src/gmp/commands/__tests__/result.js +++ b/src/gmp/commands/__tests__/result.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ResultCommand} from '../results'; diff --git a/src/gmp/commands/__tests__/results.js b/src/gmp/commands/__tests__/results.js index a034361e52..8fd134b519 100644 --- a/src/gmp/commands/__tests__/results.js +++ b/src/gmp/commands/__tests__/results.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ALL_FILTER} from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/scanconfig.js b/src/gmp/commands/__tests__/scanconfig.js index 9af29183ec..1f48398859 100644 --- a/src/gmp/commands/__tests__/scanconfig.js +++ b/src/gmp/commands/__tests__/scanconfig.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import { diff --git a/src/gmp/commands/__tests__/tag.js b/src/gmp/commands/__tests__/tag.js index 347d329e7b..e170c0b3f7 100644 --- a/src/gmp/commands/__tests__/tag.js +++ b/src/gmp/commands/__tests__/tag.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {TagCommand} from '../tags'; diff --git a/src/gmp/commands/__tests__/target.js b/src/gmp/commands/__tests__/target.js index 72075ac993..28810c043b 100644 --- a/src/gmp/commands/__tests__/target.js +++ b/src/gmp/commands/__tests__/target.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2021-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {TargetCommand} from '../targets'; diff --git a/src/gmp/commands/__tests__/task.js b/src/gmp/commands/__tests__/task.js index ed4cf24478..c7dce9ba09 100644 --- a/src/gmp/commands/__tests__/task.js +++ b/src/gmp/commands/__tests__/task.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {TaskCommand} from '../tasks'; diff --git a/src/gmp/commands/__tests__/ticket.js b/src/gmp/commands/__tests__/ticket.js index 7eaaff2e6f..3a8ef9eb27 100644 --- a/src/gmp/commands/__tests__/ticket.js +++ b/src/gmp/commands/__tests__/ticket.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {TicketCommand} from '../tickets'; diff --git a/src/gmp/commands/__tests__/tickets.js b/src/gmp/commands/__tests__/tickets.js index 3c6b664ed5..937593a3f1 100644 --- a/src/gmp/commands/__tests__/tickets.js +++ b/src/gmp/commands/__tests__/tickets.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ALL_FILTER} from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/tlscertificates.js b/src/gmp/commands/__tests__/tlscertificates.js index 73748bacab..8d05fede38 100644 --- a/src/gmp/commands/__tests__/tlscertificates.js +++ b/src/gmp/commands/__tests__/tlscertificates.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ALL_FILTER} from 'gmp/models/filter'; diff --git a/src/gmp/commands/__tests__/user.js b/src/gmp/commands/__tests__/user.js index e560e6ac75..17fe9d1ec9 100644 --- a/src/gmp/commands/__tests__/user.js +++ b/src/gmp/commands/__tests__/user.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {UserCommand, transformSettingName} from '../users'; diff --git a/src/gmp/commands/alerts.js b/src/gmp/commands/alerts.js index bfdae302ce..2dbfc320cb 100644 --- a/src/gmp/commands/alerts.js +++ b/src/gmp/commands/alerts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/commands/audits.js b/src/gmp/commands/audits.js index 56224f9f1d..2b2724c50a 100644 --- a/src/gmp/commands/audits.js +++ b/src/gmp/commands/audits.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/auth.js b/src/gmp/commands/auth.js index 44aeeb865e..fd1ac1563a 100644 --- a/src/gmp/commands/auth.js +++ b/src/gmp/commands/auth.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from '../command'; import HttpCommand from './http'; diff --git a/src/gmp/commands/certbund.js b/src/gmp/commands/certbund.js index c8ec4fff3a..3fef66dd2b 100644 --- a/src/gmp/commands/certbund.js +++ b/src/gmp/commands/certbund.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import InfoEntitiesCommand from './infoentities'; diff --git a/src/gmp/commands/convert.js b/src/gmp/commands/convert.js index ee98babf67..608836c61d 100644 --- a/src/gmp/commands/convert.js +++ b/src/gmp/commands/convert.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {trace} from 'gmp/utils/trace'; diff --git a/src/gmp/commands/cpes.js b/src/gmp/commands/cpes.js index dfe5458752..39015d163f 100644 --- a/src/gmp/commands/cpes.js +++ b/src/gmp/commands/cpes.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import InfoEntitiesCommand from './infoentities'; diff --git a/src/gmp/commands/credentials.js b/src/gmp/commands/credentials.js index e69c10a70f..6205eb414b 100644 --- a/src/gmp/commands/credentials.js +++ b/src/gmp/commands/credentials.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/cves.js b/src/gmp/commands/cves.js index 8e7017a6e7..abc74fb857 100644 --- a/src/gmp/commands/cves.js +++ b/src/gmp/commands/cves.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import InfoEntitiesCommand from './infoentities'; diff --git a/src/gmp/commands/cvsscalculator.js b/src/gmp/commands/cvsscalculator.js index 1be8e5a9fd..2aa00c507d 100644 --- a/src/gmp/commands/cvsscalculator.js +++ b/src/gmp/commands/cvsscalculator.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import {parseSeverity} from 'gmp/parser'; diff --git a/src/gmp/commands/dashboards.js b/src/gmp/commands/dashboards.js index 1bc79efabd..5c5f54ec7f 100644 --- a/src/gmp/commands/dashboards.js +++ b/src/gmp/commands/dashboards.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {v4 as uuid} from 'uuid'; import {isArray, isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/commands/dfncert.js b/src/gmp/commands/dfncert.js index 32977e80a4..71b6ca6c59 100644 --- a/src/gmp/commands/dfncert.js +++ b/src/gmp/commands/dfncert.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import InfoEntitiesCommand from './infoentities'; diff --git a/src/gmp/commands/entities.js b/src/gmp/commands/entities.js index a75d465980..9c61da2bb0 100644 --- a/src/gmp/commands/entities.js +++ b/src/gmp/commands/entities.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {isDefined, isString} from 'gmp/utils/identity'; diff --git a/src/gmp/commands/entity.js b/src/gmp/commands/entity.js index 4b906be1af..ac1f787b56 100644 --- a/src/gmp/commands/entity.js +++ b/src/gmp/commands/entity.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import logger from 'gmp/log'; diff --git a/src/gmp/commands/feedstatus.js b/src/gmp/commands/feedstatus.js index 17faa5ef86..1150c54cb0 100644 --- a/src/gmp/commands/feedstatus.js +++ b/src/gmp/commands/feedstatus.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import {parseDate} from 'gmp/parser'; diff --git a/src/gmp/commands/filters.js b/src/gmp/commands/filters.js index d4cf808a62..eb63bc2f3d 100644 --- a/src/gmp/commands/filters.js +++ b/src/gmp/commands/filters.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/commands/gmp.js b/src/gmp/commands/gmp.js index bf6fac3c52..256f078657 100644 --- a/src/gmp/commands/gmp.js +++ b/src/gmp/commands/gmp.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, hasValue} from 'gmp/utils/identity'; import ActionResult from 'gmp/models/actionresult'; diff --git a/src/gmp/commands/groups.js b/src/gmp/commands/groups.js index 402d2acd6b..fd222d79a0 100644 --- a/src/gmp/commands/groups.js +++ b/src/gmp/commands/groups.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import logger from 'gmp/log'; diff --git a/src/gmp/commands/hosts.js b/src/gmp/commands/hosts.js index bc41197014..0788bcf29e 100644 --- a/src/gmp/commands/hosts.js +++ b/src/gmp/commands/hosts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/http.js b/src/gmp/commands/http.js index f743a6ffb6..ff0c2fbcdf 100644 --- a/src/gmp/commands/http.js +++ b/src/gmp/commands/http.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + class HttpCommand { constructor(http, params = {}) { this.http = http; diff --git a/src/gmp/commands/infoentities.js b/src/gmp/commands/infoentities.js index 2a279432fb..3038203448 100644 --- a/src/gmp/commands/infoentities.js +++ b/src/gmp/commands/infoentities.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { parseCollectionList, parseInfoEntities, diff --git a/src/gmp/commands/infoentity.js b/src/gmp/commands/infoentity.js index c3d17e5c09..ac9f40a664 100644 --- a/src/gmp/commands/infoentity.js +++ b/src/gmp/commands/infoentity.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import EntityCommand from './entity'; class InfoEntityCommand extends EntityCommand { diff --git a/src/gmp/commands/license.js b/src/gmp/commands/license.js index 1f3ae01fc2..1c617b269e 100644 --- a/src/gmp/commands/license.js +++ b/src/gmp/commands/license.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2021-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import {License} from 'gmp/models/license'; diff --git a/src/gmp/commands/login.js b/src/gmp/commands/login.js index 6dfd5d863d..2bdf054afe 100644 --- a/src/gmp/commands/login.js +++ b/src/gmp/commands/login.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import _ from 'gmp/locale'; import HttpCommand from './http'; diff --git a/src/gmp/commands/notes.js b/src/gmp/commands/notes.js index a7091d5cbc..b33cdfdf66 100644 --- a/src/gmp/commands/notes.js +++ b/src/gmp/commands/notes.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/nvt.js b/src/gmp/commands/nvt.js index dcdd6ce49e..b29964d1dc 100644 --- a/src/gmp/commands/nvt.js +++ b/src/gmp/commands/nvt.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import InfoEntitiesCommand from './infoentities'; diff --git a/src/gmp/commands/nvtfamilies.js b/src/gmp/commands/nvtfamilies.js index 784f389bfb..76b33593bf 100644 --- a/src/gmp/commands/nvtfamilies.js +++ b/src/gmp/commands/nvtfamilies.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {parseInt} from 'gmp/parser'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/commands/os.js b/src/gmp/commands/os.js index ccd3970590..d891616b34 100644 --- a/src/gmp/commands/os.js +++ b/src/gmp/commands/os.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import OperatingSystem from 'gmp/models/os'; diff --git a/src/gmp/commands/overrides.js b/src/gmp/commands/overrides.js index dfeb8ce279..f1419c0647 100644 --- a/src/gmp/commands/overrides.js +++ b/src/gmp/commands/overrides.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/performance.js b/src/gmp/commands/performance.js index 2c4d78f47b..49f1d844d7 100644 --- a/src/gmp/commands/performance.js +++ b/src/gmp/commands/performance.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isArray} from 'gmp/utils/identity'; import HttpCommand from './http'; diff --git a/src/gmp/commands/permissions.js b/src/gmp/commands/permissions.js index 7d0574f99e..7a5ad9c4b9 100644 --- a/src/gmp/commands/permissions.js +++ b/src/gmp/commands/permissions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/policies.js b/src/gmp/commands/policies.js index c18260a626..c9c3ea926e 100644 --- a/src/gmp/commands/policies.js +++ b/src/gmp/commands/policies.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/commands/portlists.js b/src/gmp/commands/portlists.js index 093b9d83df..fd271c8b89 100644 --- a/src/gmp/commands/portlists.js +++ b/src/gmp/commands/portlists.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/reportconfigs.js b/src/gmp/commands/reportconfigs.js index d6c0695223..0982e7b924 100644 --- a/src/gmp/commands/reportconfigs.js +++ b/src/gmp/commands/reportconfigs.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/reportformats.js b/src/gmp/commands/reportformats.js index 034ec893f5..b234092a96 100644 --- a/src/gmp/commands/reportformats.js +++ b/src/gmp/commands/reportformats.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/reports.js b/src/gmp/commands/reports.js index 12b3cef8ee..a1027e9160 100644 --- a/src/gmp/commands/reports.js +++ b/src/gmp/commands/reports.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/commands/resourcenames.js b/src/gmp/commands/resourcenames.js index 5c3676eefa..b5dc7ab76f 100644 --- a/src/gmp/commands/resourcenames.js +++ b/src/gmp/commands/resourcenames.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2023 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import ResourceName from 'gmp/models/resourcename'; diff --git a/src/gmp/commands/results.js b/src/gmp/commands/results.js index 2478d7c063..0b347f5094 100644 --- a/src/gmp/commands/results.js +++ b/src/gmp/commands/results.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import Result from 'gmp/models/result'; diff --git a/src/gmp/commands/roles.js b/src/gmp/commands/roles.js index 79d8464908..9eeb14fce9 100644 --- a/src/gmp/commands/roles.js +++ b/src/gmp/commands/roles.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import logger from 'gmp/log'; diff --git a/src/gmp/commands/scanconfigs.js b/src/gmp/commands/scanconfigs.js index 75e00aee46..0c81b4c81e 100644 --- a/src/gmp/commands/scanconfigs.js +++ b/src/gmp/commands/scanconfigs.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/commands/scanners.js b/src/gmp/commands/scanners.js index f08dca971b..32ab7030e9 100644 --- a/src/gmp/commands/scanners.js +++ b/src/gmp/commands/scanners.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/schedules.js b/src/gmp/commands/schedules.js index 7dfac634a5..b71de1c445 100644 --- a/src/gmp/commands/schedules.js +++ b/src/gmp/commands/schedules.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/tags.js b/src/gmp/commands/tags.js index a363ff63cb..cde2719ab6 100644 --- a/src/gmp/commands/tags.js +++ b/src/gmp/commands/tags.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/targets.js b/src/gmp/commands/targets.js index 68b688cfa7..7fc429bcc1 100644 --- a/src/gmp/commands/targets.js +++ b/src/gmp/commands/targets.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {isString} from 'gmp/utils/identity'; diff --git a/src/gmp/commands/tasks.js b/src/gmp/commands/tasks.js index bbc1cf5440..73339a464a 100644 --- a/src/gmp/commands/tasks.js +++ b/src/gmp/commands/tasks.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/testing.js b/src/gmp/commands/testing.js index 2ed114a026..d79eb11911 100644 --- a/src/gmp/commands/testing.js +++ b/src/gmp/commands/testing.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testing} from '@gsa/testing'; import Response from 'gmp/http/response'; diff --git a/src/gmp/commands/tickets.js b/src/gmp/commands/tickets.js index 988a8650d6..fa525a78e5 100644 --- a/src/gmp/commands/tickets.js +++ b/src/gmp/commands/tickets.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Ticket from 'gmp/models/ticket'; import EntitiesCommand from './entities'; diff --git a/src/gmp/commands/tlscertificates.js b/src/gmp/commands/tlscertificates.js index 493c9dbb2a..6e926ba949 100644 --- a/src/gmp/commands/tlscertificates.js +++ b/src/gmp/commands/tlscertificates.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import TlsCertificate from 'gmp/models/tlscertificate'; diff --git a/src/gmp/commands/trashcan.js b/src/gmp/commands/trashcan.js index 1b9eeaf59d..3b4fb6739f 100644 --- a/src/gmp/commands/trashcan.js +++ b/src/gmp/commands/trashcan.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import {apiType} from 'gmp/utils/entitytype'; diff --git a/src/gmp/commands/users.js b/src/gmp/commands/users.js index 2870879216..65dcc9ab98 100644 --- a/src/gmp/commands/users.js +++ b/src/gmp/commands/users.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import registerCommand from 'gmp/command'; diff --git a/src/gmp/commands/vulns.js b/src/gmp/commands/vulns.js index 5aa9c7a180..d1f359fe1f 100644 --- a/src/gmp/commands/vulns.js +++ b/src/gmp/commands/vulns.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import Vulnerability from 'gmp/models/vulnerability'; diff --git a/src/gmp/commands/wizard.js b/src/gmp/commands/wizard.js index 8935cf6e08..8b18062e88 100644 --- a/src/gmp/commands/wizard.js +++ b/src/gmp/commands/wizard.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import registerCommand from 'gmp/command'; import {parseModelFromElement} from 'gmp/model'; diff --git a/src/gmp/gmp.js b/src/gmp/gmp.js index bdf0e0ba97..fa52a2b89a 100644 --- a/src/gmp/gmp.js +++ b/src/gmp/gmp.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/gmpsettings.js b/src/gmp/gmpsettings.js index e2f6dc4d6d..2c23758a6c 100644 --- a/src/gmp/gmpsettings.js +++ b/src/gmp/gmpsettings.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from './utils/identity'; export const DEFAULT_RELOAD_INTERVAL = 15 * 1000; // fifteen seconds diff --git a/src/gmp/http/__tests__/rejection.js b/src/gmp/http/__tests__/rejection.js index 723f05ecf9..9faf6a1426 100644 --- a/src/gmp/http/__tests__/rejection.js +++ b/src/gmp/http/__tests__/rejection.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Rejection from '../rejection'; diff --git a/src/gmp/http/__tests__/response.js b/src/gmp/http/__tests__/response.js index 796a28e453..2144145551 100644 --- a/src/gmp/http/__tests__/response.js +++ b/src/gmp/http/__tests__/response.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Response from '../response'; diff --git a/src/gmp/http/gmp.js b/src/gmp/http/gmp.js index 39325d2380..caeb5f4c9e 100644 --- a/src/gmp/http/gmp.js +++ b/src/gmp/http/gmp.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Http from './http'; import {buildServerUrl} from './utils'; diff --git a/src/gmp/http/http.js b/src/gmp/http/http.js index 07186c6ce2..1be2a22080 100644 --- a/src/gmp/http/http.js +++ b/src/gmp/http/http.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import _ from 'gmp/locale'; diff --git a/src/gmp/http/rejection.js b/src/gmp/http/rejection.js index 145512be3b..be585947dd 100644 --- a/src/gmp/http/rejection.js +++ b/src/gmp/http/rejection.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import _ from 'gmp/locale'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/http/response.js b/src/gmp/http/response.js index 0756de557b..239a7b8332 100644 --- a/src/gmp/http/response.js +++ b/src/gmp/http/response.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + class Response { constructor(xhr, data, meta = {}) { this._xhr = xhr; diff --git a/src/gmp/http/transform/__tests__/fastxml.js b/src/gmp/http/transform/__tests__/fastxml.js index f222c5308a..0a6581fee4 100644 --- a/src/gmp/http/transform/__tests__/fastxml.js +++ b/src/gmp/http/transform/__tests__/fastxml.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import transform from '../fastxml'; diff --git a/src/gmp/http/transform/__tests__/xml.js b/src/gmp/http/transform/__tests__/xml.js index b0c79aa943..87635205db 100644 --- a/src/gmp/http/transform/__tests__/xml.js +++ b/src/gmp/http/transform/__tests__/xml.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {success, rejection} from '../xml'; diff --git a/src/gmp/http/transform/default.js b/src/gmp/http/transform/default.js index 5e048f892f..6c0063fa92 100644 --- a/src/gmp/http/transform/default.js +++ b/src/gmp/http/transform/default.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + const noop = arg => arg; const noopObject = { diff --git a/src/gmp/http/transform/fastxml.js b/src/gmp/http/transform/fastxml.js index 8403d0b9fe..d5c873fa1d 100644 --- a/src/gmp/http/transform/fastxml.js +++ b/src/gmp/http/transform/fastxml.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {XMLParser} from 'fast-xml-parser'; import {parseEnvelopeMeta, parseXmlEncodedString} from 'gmp/parser'; diff --git a/src/gmp/http/transform/xml.js b/src/gmp/http/transform/xml.js index f92777661d..566c6989bb 100644 --- a/src/gmp/http/transform/xml.js +++ b/src/gmp/http/transform/xml.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_} from 'gmp/locale/lang'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/http/utils.js b/src/gmp/http/utils.js index 08f93ddb7d..866fec7c81 100644 --- a/src/gmp/http/utils.js +++ b/src/gmp/http/utils.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; export const buildUrlParams = params => { diff --git a/src/gmp/index.js b/src/gmp/index.js index 4ebc21a5a4..5a060cac9c 100644 --- a/src/gmp/index.js +++ b/src/gmp/index.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Gmp from 'gmp/gmp'; export default Gmp; diff --git a/src/gmp/locale/__tests__/date.js b/src/gmp/locale/__tests__/date.js index 5e192f9731..c7ab574391 100644 --- a/src/gmp/locale/__tests__/date.js +++ b/src/gmp/locale/__tests__/date.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import date, {setLocale as locale} from '../../models/date'; diff --git a/src/gmp/locale/__tests__/detector.js b/src/gmp/locale/__tests__/detector.js index 062680da3f..7e8545b2e1 100644 --- a/src/gmp/locale/__tests__/detector.js +++ b/src/gmp/locale/__tests__/detector.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {isFunction} from '../../utils/identity'; diff --git a/src/gmp/locale/__tests__/lang.js b/src/gmp/locale/__tests__/lang.js index ace391aaf8..242f58980f 100644 --- a/src/gmp/locale/__tests__/lang.js +++ b/src/gmp/locale/__tests__/lang.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {isFunction} from 'gmp/utils/identity'; diff --git a/src/gmp/locale/__tests__/languages.js b/src/gmp/locale/__tests__/languages.js index 305db992b1..aadfaee8b2 100644 --- a/src/gmp/locale/__tests__/languages.js +++ b/src/gmp/locale/__tests__/languages.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isString} from 'gmp/utils/identity'; diff --git a/src/gmp/locale/date.js b/src/gmp/locale/date.js index 273bab06f0..253a60b3a3 100644 --- a/src/gmp/locale/date.js +++ b/src/gmp/locale/date.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {isDefined, isString, isJsDate} from 'gmp/utils/identity'; diff --git a/src/gmp/locale/detector.js b/src/gmp/locale/detector.js index efcd367858..20ffec1c8a 100644 --- a/src/gmp/locale/detector.js +++ b/src/gmp/locale/detector.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {BROWSER_LANGUAGE} from './languages'; import logger from 'gmp/log'; diff --git a/src/gmp/locale/index.js b/src/gmp/locale/index.js index 33ab014347..ab9089478f 100644 --- a/src/gmp/locale/index.js +++ b/src/gmp/locale/index.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_} from './lang'; export default _; diff --git a/src/gmp/locale/lang.js b/src/gmp/locale/lang.js index 26a196b1c1..66ca80b106 100644 --- a/src/gmp/locale/lang.js +++ b/src/gmp/locale/lang.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import i18next from 'i18next'; import HttpBackend from 'i18next-http-backend'; diff --git a/src/gmp/locale/languages.js b/src/gmp/locale/languages.js index 654a38e815..89a2c0bdde 100644 --- a/src/gmp/locale/languages.js +++ b/src/gmp/locale/languages.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const BROWSER_LANGUAGE = 'Browser Language'; export const getLanguageCodes = () => Object.keys(Languages); diff --git a/src/gmp/log.js b/src/gmp/log.js index ee383a6cd3..64fb8fa7db 100644 --- a/src/gmp/log.js +++ b/src/gmp/log.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isString} from 'gmp/utils/identity'; export const DEFAULT_LOG_LEVEL = 'error'; diff --git a/src/gmp/model.js b/src/gmp/model.js index 7abe0064e3..caf0594b8b 100644 --- a/src/gmp/model.js +++ b/src/gmp/model.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/__tests__/alert.js b/src/gmp/models/__tests__/alert.js index d6fe044aaa..3b24fb4769 100644 --- a/src/gmp/models/__tests__/alert.js +++ b/src/gmp/models/__tests__/alert.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/asset.js b/src/gmp/models/__tests__/asset.js index 5ea402907d..737fbd87f9 100644 --- a/src/gmp/models/__tests__/asset.js +++ b/src/gmp/models/__tests__/asset.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Asset from 'gmp/models/asset'; import {testModel} from 'gmp/models/testing'; diff --git a/src/gmp/models/__tests__/audit.js b/src/gmp/models/__tests__/audit.js index 6dbcac6ec5..ee51713505 100644 --- a/src/gmp/models/__tests__/audit.js +++ b/src/gmp/models/__tests__/audit.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Audit, { diff --git a/src/gmp/models/__tests__/certbund.js b/src/gmp/models/__tests__/certbund.js index 5985da25bb..a5600f598e 100644 --- a/src/gmp/models/__tests__/certbund.js +++ b/src/gmp/models/__tests__/certbund.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import CertBundAdv from 'gmp/models/certbund'; diff --git a/src/gmp/models/__tests__/cpe.js b/src/gmp/models/__tests__/cpe.js index 7feeab293d..516cf82f9b 100644 --- a/src/gmp/models/__tests__/cpe.js +++ b/src/gmp/models/__tests__/cpe.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Cpe from 'gmp/models/cpe'; diff --git a/src/gmp/models/__tests__/credential.js b/src/gmp/models/__tests__/credential.js index 7658022a6f..be0f5973e0 100644 --- a/src/gmp/models/__tests__/credential.js +++ b/src/gmp/models/__tests__/credential.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {setLocale} from 'gmp/locale/lang'; diff --git a/src/gmp/models/__tests__/cve.js b/src/gmp/models/__tests__/cve.js index 8c361b9dbe..4c77082cbb 100644 --- a/src/gmp/models/__tests__/cve.js +++ b/src/gmp/models/__tests__/cve.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Cve from 'gmp/models/cve'; diff --git a/src/gmp/models/__tests__/dfncert.js b/src/gmp/models/__tests__/dfncert.js index 01d3472b78..b33dbb5085 100644 --- a/src/gmp/models/__tests__/dfncert.js +++ b/src/gmp/models/__tests__/dfncert.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import DfnCertAdv from 'gmp/models/dfncert'; diff --git a/src/gmp/models/__tests__/event.js b/src/gmp/models/__tests__/event.js index b85f5cf52b..7fa5d96b21 100644 --- a/src/gmp/models/__tests__/event.js +++ b/src/gmp/models/__tests__/event.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import date from '../date'; diff --git a/src/gmp/models/__tests__/filter.js b/src/gmp/models/__tests__/filter.js index a9c5d84b19..9d9699417d 100644 --- a/src/gmp/models/__tests__/filter.js +++ b/src/gmp/models/__tests__/filter.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isArray} from '../../utils/identity'; diff --git a/src/gmp/models/__tests__/group.js b/src/gmp/models/__tests__/group.js index 4d01656450..5f14863f4b 100644 --- a/src/gmp/models/__tests__/group.js +++ b/src/gmp/models/__tests__/group.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Group from '../group'; diff --git a/src/gmp/models/__tests__/host.js b/src/gmp/models/__tests__/host.js index 38241bb347..ab6996f57d 100644 --- a/src/gmp/models/__tests__/host.js +++ b/src/gmp/models/__tests__/host.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Asset from 'gmp/models/asset'; diff --git a/src/gmp/models/__tests__/info.js b/src/gmp/models/__tests__/info.js index 1bd7d02bd0..e3ed5ee218 100644 --- a/src/gmp/models/__tests__/info.js +++ b/src/gmp/models/__tests__/info.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Info from 'gmp/models/info'; import {testModel} from 'gmp/models/testing'; diff --git a/src/gmp/models/__tests__/license.js b/src/gmp/models/__tests__/license.js index 43af8ef9d5..464cd2f7b3 100644 --- a/src/gmp/models/__tests__/license.js +++ b/src/gmp/models/__tests__/license.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {parseDate} from 'gmp/parser'; diff --git a/src/gmp/models/__tests__/login.js b/src/gmp/models/__tests__/login.js index a8a7f7a1ad..5bfa3c6993 100644 --- a/src/gmp/models/__tests__/login.js +++ b/src/gmp/models/__tests__/login.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isDate} from 'gmp/models/date'; diff --git a/src/gmp/models/__tests__/note.js b/src/gmp/models/__tests__/note.js index 26f8ecd5d7..7508c56876 100644 --- a/src/gmp/models/__tests__/note.js +++ b/src/gmp/models/__tests__/note.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/nvt.js b/src/gmp/models/__tests__/nvt.js index 2b80865b58..4ec4db115a 100644 --- a/src/gmp/models/__tests__/nvt.js +++ b/src/gmp/models/__tests__/nvt.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Nvt, {getRefs, hasRefType, getFilteredRefIds} from 'gmp/models/nvt'; diff --git a/src/gmp/models/__tests__/os.js b/src/gmp/models/__tests__/os.js index 798ed5059b..919dfbdb8d 100644 --- a/src/gmp/models/__tests__/os.js +++ b/src/gmp/models/__tests__/os.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Asset from 'gmp/models/asset'; diff --git a/src/gmp/models/__tests__/override.js b/src/gmp/models/__tests__/override.js index 7883a8380d..5257046094 100644 --- a/src/gmp/models/__tests__/override.js +++ b/src/gmp/models/__tests__/override.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/permission.js b/src/gmp/models/__tests__/permission.js index 4c8ce68fe4..d71f51418b 100644 --- a/src/gmp/models/__tests__/permission.js +++ b/src/gmp/models/__tests__/permission.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/policy.js b/src/gmp/models/__tests__/policy.js index 30855973b2..addc40dddd 100644 --- a/src/gmp/models/__tests__/policy.js +++ b/src/gmp/models/__tests__/policy.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/portlist.js b/src/gmp/models/__tests__/portlist.js index d15e8486fd..105ad1c3c7 100644 --- a/src/gmp/models/__tests__/portlist.js +++ b/src/gmp/models/__tests__/portlist.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/reportconfig.js b/src/gmp/models/__tests__/reportconfig.js index 588591fca4..55f64a87a1 100644 --- a/src/gmp/models/__tests__/reportconfig.js +++ b/src/gmp/models/__tests__/reportconfig.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import ReportConfig from 'gmp/models/reportconfig'; diff --git a/src/gmp/models/__tests__/reportformat.js b/src/gmp/models/__tests__/reportformat.js index fd772bfc9a..e55d9e10b6 100644 --- a/src/gmp/models/__tests__/reportformat.js +++ b/src/gmp/models/__tests__/reportformat.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/resourcename.js b/src/gmp/models/__tests__/resourcename.js index 8ecddadf03..1f5095fee6 100644 --- a/src/gmp/models/__tests__/resourcename.js +++ b/src/gmp/models/__tests__/resourcename.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2023 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {ResourceName} from '../resourcename'; diff --git a/src/gmp/models/__tests__/result.js b/src/gmp/models/__tests__/result.js index da1e5ddb9e..5992b3858a 100644 --- a/src/gmp/models/__tests__/result.js +++ b/src/gmp/models/__tests__/result.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/role.js b/src/gmp/models/__tests__/role.js index 74eff56d76..da494be04d 100644 --- a/src/gmp/models/__tests__/role.js +++ b/src/gmp/models/__tests__/role.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Role from '../role'; diff --git a/src/gmp/models/__tests__/scanconfig.js b/src/gmp/models/__tests__/scanconfig.js index de6d79f2af..30ea73d55b 100644 --- a/src/gmp/models/__tests__/scanconfig.js +++ b/src/gmp/models/__tests__/scanconfig.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/scanner.js b/src/gmp/models/__tests__/scanner.js index 1e6fefff3c..5f44ac9e59 100644 --- a/src/gmp/models/__tests__/scanner.js +++ b/src/gmp/models/__tests__/scanner.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/schedule.js b/src/gmp/models/__tests__/schedule.js index d4b201a802..c0aa60ae3d 100644 --- a/src/gmp/models/__tests__/schedule.js +++ b/src/gmp/models/__tests__/schedule.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/secinfo.js b/src/gmp/models/__tests__/secinfo.js index f9a4dce785..5846d7787d 100644 --- a/src/gmp/models/__tests__/secinfo.js +++ b/src/gmp/models/__tests__/secinfo.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Info from 'gmp/models/info'; diff --git a/src/gmp/models/__tests__/setting.js b/src/gmp/models/__tests__/setting.js index 3ea9847a27..de6ace053f 100644 --- a/src/gmp/models/__tests__/setting.js +++ b/src/gmp/models/__tests__/setting.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Setting from '../setting'; diff --git a/src/gmp/models/__tests__/settings.js b/src/gmp/models/__tests__/settings.js index 3f671b552c..1d4bcee408 100644 --- a/src/gmp/models/__tests__/settings.js +++ b/src/gmp/models/__tests__/settings.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Settings from 'gmp/models/settings'; diff --git a/src/gmp/models/__tests__/tag.js b/src/gmp/models/__tests__/tag.js index 4684bd7f7a..1e5196ebe0 100644 --- a/src/gmp/models/__tests__/tag.js +++ b/src/gmp/models/__tests__/tag.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Tag from 'gmp/models/tag'; diff --git a/src/gmp/models/__tests__/target.js b/src/gmp/models/__tests__/target.js index 0e59783f1d..4a68e93e9f 100644 --- a/src/gmp/models/__tests__/target.js +++ b/src/gmp/models/__tests__/target.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/task.js b/src/gmp/models/__tests__/task.js index 7e54dbfa82..b7d47ed7e9 100644 --- a/src/gmp/models/__tests__/task.js +++ b/src/gmp/models/__tests__/task.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/ticket.js b/src/gmp/models/__tests__/ticket.js index 6e065ffcf5..34dbee5073 100644 --- a/src/gmp/models/__tests__/ticket.js +++ b/src/gmp/models/__tests__/ticket.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Ticket from '../ticket'; diff --git a/src/gmp/models/__tests__/tlscertificate.js b/src/gmp/models/__tests__/tlscertificate.js index 3013a50417..3b15042c7c 100644 --- a/src/gmp/models/__tests__/tlscertificate.js +++ b/src/gmp/models/__tests__/tlscertificate.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import TlsCertificate, {TIME_STATUS} from '../tlscertificate'; diff --git a/src/gmp/models/__tests__/user.js b/src/gmp/models/__tests__/user.js index e524050211..0fdd44a1dd 100644 --- a/src/gmp/models/__tests__/user.js +++ b/src/gmp/models/__tests__/user.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Model from 'gmp/model'; diff --git a/src/gmp/models/__tests__/vulnerability.js b/src/gmp/models/__tests__/vulnerability.js index a5dbc0fa3c..f19ef4e70c 100644 --- a/src/gmp/models/__tests__/vulnerability.js +++ b/src/gmp/models/__tests__/vulnerability.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Vulnerability from 'gmp/models/vulnerability'; import {testModel} from 'gmp/models/testing'; diff --git a/src/gmp/models/actionresult.js b/src/gmp/models/actionresult.js index eb4b66fb8e..73375a3282 100644 --- a/src/gmp/models/actionresult.js +++ b/src/gmp/models/actionresult.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {setProperties} from 'gmp/parser'; class ActionResult { diff --git a/src/gmp/models/alert.js b/src/gmp/models/alert.js index 35041709d3..be209676ed 100644 --- a/src/gmp/models/alert.js +++ b/src/gmp/models/alert.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isObject} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/models/asset.js b/src/gmp/models/asset.js index 1d5d85c26b..58e7f1ebd1 100644 --- a/src/gmp/models/asset.js +++ b/src/gmp/models/asset.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Model from 'gmp/model'; class Asset extends Model { diff --git a/src/gmp/models/audit.js b/src/gmp/models/audit.js index 5c4c953c26..ecf64c67de 100644 --- a/src/gmp/models/audit.js +++ b/src/gmp/models/audit.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isArray, isString} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/certbund.js b/src/gmp/models/certbund.js index 4f80a49ce4..ac71191623 100644 --- a/src/gmp/models/certbund.js +++ b/src/gmp/models/certbund.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/models/cpe.js b/src/gmp/models/cpe.js index e93c3c4576..c7205111a4 100644 --- a/src/gmp/models/cpe.js +++ b/src/gmp/models/cpe.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/credential.js b/src/gmp/models/credential.js index 738a8ed44b..36a78c58eb 100644 --- a/src/gmp/models/credential.js +++ b/src/gmp/models/credential.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Model, {parseModelFromElement} from 'gmp/model'; import {_l} from 'gmp/locale/lang'; diff --git a/src/gmp/models/cve.js b/src/gmp/models/cve.js index 0ca36203a6..86b86214ff 100644 --- a/src/gmp/models/cve.js +++ b/src/gmp/models/cve.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isArray, isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/date.js b/src/gmp/models/date.js index 4b65d953bd..a0288710d6 100644 --- a/src/gmp/models/date.js +++ b/src/gmp/models/date.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import moment from 'moment-timezone'; import 'moment/locale/ar'; diff --git a/src/gmp/models/dfncert.js b/src/gmp/models/dfncert.js index 8f6ea427ee..de63103e5f 100644 --- a/src/gmp/models/dfncert.js +++ b/src/gmp/models/dfncert.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/models/event.js b/src/gmp/models/event.js index c5cf54048b..3a1d814c9d 100644 --- a/src/gmp/models/event.js +++ b/src/gmp/models/event.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import ical from 'ical.js'; import {v4 as uuid} from 'uuid'; diff --git a/src/gmp/models/filter.js b/src/gmp/models/filter.js index b884ceec00..5be78cc63f 100644 --- a/src/gmp/models/filter.js +++ b/src/gmp/models/filter.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isString, isArray, hasValue} from 'gmp/utils/identity'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/models/filter/__tests__/convert.js b/src/gmp/models/filter/__tests__/convert.js index f7d740b88d..3c2a9b71be 100644 --- a/src/gmp/models/filter/__tests__/convert.js +++ b/src/gmp/models/filter/__tests__/convert.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import convert from '../convert'; diff --git a/src/gmp/models/filter/__tests__/filterterm.js b/src/gmp/models/filter/__tests__/filterterm.js index 78d15e443e..d7376fe088 100644 --- a/src/gmp/models/filter/__tests__/filterterm.js +++ b/src/gmp/models/filter/__tests__/filterterm.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import FilterTerm from '../filterterm.js'; diff --git a/src/gmp/models/filter/__tests__/utils.js b/src/gmp/models/filter/__tests__/utils.js index 21047adf48..6e7607ccfc 100644 --- a/src/gmp/models/filter/__tests__/utils.js +++ b/src/gmp/models/filter/__tests__/utils.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {filter_string} from '../utils'; diff --git a/src/gmp/models/filter/convert.js b/src/gmp/models/filter/convert.js index 37962e0022..473f4e3da9 100644 --- a/src/gmp/models/filter/convert.js +++ b/src/gmp/models/filter/convert.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isNumberOrNumberString} from '../../utils/identity'; import {isEmpty} from '../../utils/string'; diff --git a/src/gmp/models/filter/filterterm.js b/src/gmp/models/filter/filterterm.js index 4f06cc4b59..c15b1abebe 100644 --- a/src/gmp/models/filter/filterterm.js +++ b/src/gmp/models/filter/filterterm.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from '../../utils/identity'; import convert from './convert.js'; diff --git a/src/gmp/models/filter/keywords.js b/src/gmp/models/filter/keywords.js index 0568285b18..739bc84973 100644 --- a/src/gmp/models/filter/keywords.js +++ b/src/gmp/models/filter/keywords.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const EXTRA_KEYWORDS = [ 'apply_overrides', 'delta_states', diff --git a/src/gmp/models/filter/utils.js b/src/gmp/models/filter/utils.js index 25ed2976a6..0df7df6324 100644 --- a/src/gmp/models/filter/utils.js +++ b/src/gmp/models/filter/utils.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from '../../utils/identity'; export const filter_string = filter => diff --git a/src/gmp/models/group.js b/src/gmp/models/group.js index a12bd850d4..c6d4d59c0c 100644 --- a/src/gmp/models/group.js +++ b/src/gmp/models/group.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {parseCsv} from 'gmp/parser'; import Model from 'gmp/model'; diff --git a/src/gmp/models/host.js b/src/gmp/models/host.js index 62b23e01b0..c6034b68dc 100644 --- a/src/gmp/models/host.js +++ b/src/gmp/models/host.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/models/info.js b/src/gmp/models/info.js index 1c24a12525..eb63683578 100644 --- a/src/gmp/models/info.js +++ b/src/gmp/models/info.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import Model from 'gmp/model.js'; diff --git a/src/gmp/models/license.js b/src/gmp/models/license.js index b9c38979b7..4c90db97e3 100644 --- a/src/gmp/models/license.js +++ b/src/gmp/models/license.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import _ from 'gmp/locale'; import {parseDate} from 'gmp/parser'; diff --git a/src/gmp/models/login.js b/src/gmp/models/login.js index 6c13374d79..3b401a69ab 100644 --- a/src/gmp/models/login.js +++ b/src/gmp/models/login.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {parseInt} from 'gmp/parser'; import moment from 'gmp/models/date'; diff --git a/src/gmp/models/note.js b/src/gmp/models/note.js index c3857a7104..583eceb6ed 100644 --- a/src/gmp/models/note.js +++ b/src/gmp/models/note.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isModelElement} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/nvt.js b/src/gmp/models/nvt.js index ab1d06c585..c77384eb0e 100644 --- a/src/gmp/models/nvt.js +++ b/src/gmp/models/nvt.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isArray, isString} from 'gmp/utils/identity'; import {isEmpty, split} from 'gmp/utils/string'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/os.js b/src/gmp/models/os.js index 19d0bac911..347c1ce31b 100644 --- a/src/gmp/models/os.js +++ b/src/gmp/models/os.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Asset from './asset'; import {parseSeverity} from 'gmp/parser'; diff --git a/src/gmp/models/override.js b/src/gmp/models/override.js index e3989da9cb..1be5f6894e 100644 --- a/src/gmp/models/override.js +++ b/src/gmp/models/override.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isModelElement} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/permission.js b/src/gmp/models/permission.js index f013361743..664b55c042 100644 --- a/src/gmp/models/permission.js +++ b/src/gmp/models/permission.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/policy.js b/src/gmp/models/policy.js index 5d71bdfc23..50f07388a3 100644 --- a/src/gmp/models/policy.js +++ b/src/gmp/models/policy.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {forEach, map} from 'gmp/utils/array'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/portlist.js b/src/gmp/models/portlist.js index 83c2f19de1..aa3397e9f5 100644 --- a/src/gmp/models/portlist.js +++ b/src/gmp/models/portlist.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/report.js b/src/gmp/models/report.js index 293d084846..d97fd8c6d0 100644 --- a/src/gmp/models/report.js +++ b/src/gmp/models/report.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {parseSeverity, parseDate} from 'gmp/parser'; diff --git a/src/gmp/models/report/__tests__/app.js b/src/gmp/models/report/__tests__/app.js index eb1374a7b5..d3a72d8f72 100644 --- a/src/gmp/models/report/__tests__/app.js +++ b/src/gmp/models/report/__tests__/app.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import App from '../app'; diff --git a/src/gmp/models/report/__tests__/cve.js b/src/gmp/models/report/__tests__/cve.js index c7e68a05bd..59949c9778 100644 --- a/src/gmp/models/report/__tests__/cve.js +++ b/src/gmp/models/report/__tests__/cve.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import ReportCve from '../cve'; diff --git a/src/gmp/models/report/__tests__/host.js b/src/gmp/models/report/__tests__/host.js index 5985f3e663..a98bb10c46 100644 --- a/src/gmp/models/report/__tests__/host.js +++ b/src/gmp/models/report/__tests__/host.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import ReportHost from '../host'; diff --git a/src/gmp/models/report/__tests__/os.js b/src/gmp/models/report/__tests__/os.js index 2bfd382d05..1a7daa4cef 100644 --- a/src/gmp/models/report/__tests__/os.js +++ b/src/gmp/models/report/__tests__/os.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import ReportOperatingSystem from '../os'; diff --git a/src/gmp/models/report/__tests__/parser.js b/src/gmp/models/report/__tests__/parser.js index c3888e9f6e..32948845cd 100644 --- a/src/gmp/models/report/__tests__/parser.js +++ b/src/gmp/models/report/__tests__/parser.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import { diff --git a/src/gmp/models/report/__tests__/port.js b/src/gmp/models/report/__tests__/port.js index 0cb412f854..cc925feb7d 100644 --- a/src/gmp/models/report/__tests__/port.js +++ b/src/gmp/models/report/__tests__/port.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import ReportPort from '../port'; diff --git a/src/gmp/models/report/__tests__/task.js b/src/gmp/models/report/__tests__/task.js index 2924fd0155..75e2eeea9d 100644 --- a/src/gmp/models/report/__tests__/task.js +++ b/src/gmp/models/report/__tests__/task.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import ReportTask from '../task'; diff --git a/src/gmp/models/report/__tests__/tlscertificate.js b/src/gmp/models/report/__tests__/tlscertificate.js index 651dc0e47b..29fd7fe0d8 100644 --- a/src/gmp/models/report/__tests__/tlscertificate.js +++ b/src/gmp/models/report/__tests__/tlscertificate.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import ReportTlsCertificate from '../tlscertificate'; diff --git a/src/gmp/models/report/app.js b/src/gmp/models/report/app.js index 64a6eadc7d..7a715a3729 100644 --- a/src/gmp/models/report/app.js +++ b/src/gmp/models/report/app.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {parseSeverity, setProperties} from 'gmp/parser'; diff --git a/src/gmp/models/report/cve.js b/src/gmp/models/report/cve.js index c80f21cab2..3a04353d4b 100644 --- a/src/gmp/models/report/cve.js +++ b/src/gmp/models/report/cve.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from '../../utils/identity'; import {setProperties, parseSeverity} from '../../parser'; diff --git a/src/gmp/models/report/host.js b/src/gmp/models/report/host.js index 26148755e9..b22be1fe19 100644 --- a/src/gmp/models/report/host.js +++ b/src/gmp/models/report/host.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isArray, isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/report/os.js b/src/gmp/models/report/os.js index 04e86dd2db..e90ed54b94 100644 --- a/src/gmp/models/report/os.js +++ b/src/gmp/models/report/os.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {setProperties} from 'gmp/parser'; diff --git a/src/gmp/models/report/parser.js b/src/gmp/models/report/parser.js index 6adf55208c..65cec48744 100644 --- a/src/gmp/models/report/parser.js +++ b/src/gmp/models/report/parser.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {filter as filter_func, forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/models/report/port.js b/src/gmp/models/report/port.js index e6c364dcda..8deacf8007 100644 --- a/src/gmp/models/report/port.js +++ b/src/gmp/models/report/port.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from '../../utils/identity'; import {setProperties, parseInt, parseSeverity} from '../../parser'; diff --git a/src/gmp/models/report/report.js b/src/gmp/models/report/report.js index 28c1599cb7..eb3a3addb6 100644 --- a/src/gmp/models/report/report.js +++ b/src/gmp/models/report/report.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from '../../utils/identity'; import {isEmpty} from '../../utils/string'; diff --git a/src/gmp/models/report/task.js b/src/gmp/models/report/task.js index 5e31329895..67116e5977 100644 --- a/src/gmp/models/report/task.js +++ b/src/gmp/models/report/task.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from '../../utils/identity'; import {isEmpty} from '../../utils/string'; diff --git a/src/gmp/models/report/tlscertificate.js b/src/gmp/models/report/tlscertificate.js index 9886c1e321..d2c74b6116 100644 --- a/src/gmp/models/report/tlscertificate.js +++ b/src/gmp/models/report/tlscertificate.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {setProperties, parseInt} from 'gmp/parser'; diff --git a/src/gmp/models/reportconfig.js b/src/gmp/models/reportconfig.js index 100d9c8e73..fbdb115f85 100644 --- a/src/gmp/models/reportconfig.js +++ b/src/gmp/models/reportconfig.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isObject} from 'gmp/utils/identity'; import {forEach, map} from 'gmp/utils/array'; diff --git a/src/gmp/models/reportformat.js b/src/gmp/models/reportformat.js index bc9eb2f321..6891eeea28 100644 --- a/src/gmp/models/reportformat.js +++ b/src/gmp/models/reportformat.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isObject} from 'gmp/utils/identity'; import {forEach, map} from 'gmp/utils/array'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/resourcename.js b/src/gmp/models/resourcename.js index 2e9793392c..299f4591ac 100644 --- a/src/gmp/models/resourcename.js +++ b/src/gmp/models/resourcename.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2023 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; export class ResourceName { diff --git a/src/gmp/models/result.js b/src/gmp/models/result.js index 81cf0e932c..a6291aa5f2 100644 --- a/src/gmp/models/result.js +++ b/src/gmp/models/result.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {forEach, map} from 'gmp/utils/array'; import {isDefined, isString} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/role.js b/src/gmp/models/role.js index 369d483066..f9cf8c1e3e 100644 --- a/src/gmp/models/role.js +++ b/src/gmp/models/role.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {parseCsv} from 'gmp/parser'; import Model from 'gmp/model'; diff --git a/src/gmp/models/scanconfig.js b/src/gmp/models/scanconfig.js index 1561b67a76..27bcd87480 100644 --- a/src/gmp/models/scanconfig.js +++ b/src/gmp/models/scanconfig.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {forEach, map} from 'gmp/utils/array'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/scanner.js b/src/gmp/models/scanner.js index b26e0beef2..6ec5ed59cc 100644 --- a/src/gmp/models/scanner.js +++ b/src/gmp/models/scanner.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_} from 'gmp/locale/lang'; import {isDefined, isString} from 'gmp/utils/identity'; diff --git a/src/gmp/models/schedule.js b/src/gmp/models/schedule.js index 578b7507c5..5973edd811 100644 --- a/src/gmp/models/schedule.js +++ b/src/gmp/models/schedule.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import logger from 'gmp/log'; import {isDefined} from 'gmp/utils/identity'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/secinfo.js b/src/gmp/models/secinfo.js index 472ec46d00..3160b1cedf 100644 --- a/src/gmp/models/secinfo.js +++ b/src/gmp/models/secinfo.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_} from 'gmp/locale/lang'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/models/setting.js b/src/gmp/models/setting.js index 3339ca63f7..ef287de507 100644 --- a/src/gmp/models/setting.js +++ b/src/gmp/models/setting.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isEmpty} from 'gmp/utils/string'; class Setting { diff --git a/src/gmp/models/settings.js b/src/gmp/models/settings.js index 40e9405af1..20a2bb6e23 100644 --- a/src/gmp/models/settings.js +++ b/src/gmp/models/settings.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; class Settings { diff --git a/src/gmp/models/tag.js b/src/gmp/models/tag.js index 99d9ea81ca..575548364e 100644 --- a/src/gmp/models/tag.js +++ b/src/gmp/models/tag.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {normalizeType} from 'gmp/utils/entitytype'; import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/models/target.js b/src/gmp/models/target.js index 1be3d3d2d7..c907f32a3e 100644 --- a/src/gmp/models/target.js +++ b/src/gmp/models/target.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Model, {parseModelFromElement} from 'gmp/model'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/gmp/models/task.js b/src/gmp/models/task.js index c52cb8dcdb..74ca27e6ad 100644 --- a/src/gmp/models/task.js +++ b/src/gmp/models/task.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_l} from 'gmp/locale/lang'; import {isDefined, isArray, isString} from 'gmp/utils/identity'; diff --git a/src/gmp/models/testing.js b/src/gmp/models/testing.js index 05b11ca28b..8f4b0d290f 100644 --- a/src/gmp/models/testing.js +++ b/src/gmp/models/testing.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {test, expect} from '@gsa/testing'; import {isDate} from 'gmp/models/date'; diff --git a/src/gmp/models/ticket.js b/src/gmp/models/ticket.js index 85376ace67..5c0447d497 100644 --- a/src/gmp/models/ticket.js +++ b/src/gmp/models/ticket.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_l} from 'gmp/locale/lang'; import {parseSeverity, parseDate, parseText} from 'gmp/parser'; diff --git a/src/gmp/models/tlscertificate.js b/src/gmp/models/tlscertificate.js index ff592ce5b9..7381d8349f 100644 --- a/src/gmp/models/tlscertificate.js +++ b/src/gmp/models/tlscertificate.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_l} from 'gmp/locale/lang'; import Model from 'gmp/model'; diff --git a/src/gmp/models/user.js b/src/gmp/models/user.js index ff8bd0c119..bc2bb3f66d 100644 --- a/src/gmp/models/user.js +++ b/src/gmp/models/user.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; import {map} from 'gmp/utils/array'; diff --git a/src/gmp/models/vulnerability.js b/src/gmp/models/vulnerability.js index e0522c8e20..d7afd687ae 100644 --- a/src/gmp/models/vulnerability.js +++ b/src/gmp/models/vulnerability.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Model from 'gmp/model'; import {isDefined} from 'gmp/utils/identity'; import {parseDate} from 'gmp/parser'; diff --git a/src/gmp/parser.js b/src/gmp/parser.js index b8672c945f..2a3c7abc50 100644 --- a/src/gmp/parser.js +++ b/src/gmp/parser.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isString, isNumber, isArray} from 'gmp/utils/identity'; import {isEmpty} from 'gmp/utils/string'; diff --git a/src/gmp/parser/cvss.js b/src/gmp/parser/cvss.js index 74fbdedd82..8b15bace2f 100644 --- a/src/gmp/parser/cvss.js +++ b/src/gmp/parser/cvss.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; /* CVSS v2 .... */ diff --git a/src/gmp/timezones.js b/src/gmp/timezones.js index 278ca4769b..c85e8810ad 100644 --- a/src/gmp/timezones.js +++ b/src/gmp/timezones.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + const timezones = [ {name: 'Africa/Abidjan'}, {name: 'Africa/Accra'}, diff --git a/src/gmp/utils/__tests__/array.js b/src/gmp/utils/__tests__/array.js index 4e38194ee2..619cab1dcb 100644 --- a/src/gmp/utils/__tests__/array.js +++ b/src/gmp/utils/__tests__/array.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {arraysEqual, map, forEach, filter, first} from '../array'; diff --git a/src/gmp/utils/__tests__/entitytype.js b/src/gmp/utils/__tests__/entitytype.js index 8ee8f63246..ba3f6bedb9 100644 --- a/src/gmp/utils/__tests__/entitytype.js +++ b/src/gmp/utils/__tests__/entitytype.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {parseModelFromElement} from 'gmp/model'; diff --git a/src/gmp/utils/__tests__/event.js b/src/gmp/utils/__tests__/event.js index 305525936e..67724f8910 100644 --- a/src/gmp/utils/__tests__/event.js +++ b/src/gmp/utils/__tests__/event.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {debounce, throttleAnimation} from '../event'; diff --git a/src/gmp/utils/__tests__/id.js b/src/gmp/utils/__tests__/id.js index 93ed129474..24d196701c 100644 --- a/src/gmp/utils/__tests__/id.js +++ b/src/gmp/utils/__tests__/id.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {includesId, selectSaveId, hasId} from '../id'; diff --git a/src/gmp/utils/__tests__/identity.js b/src/gmp/utils/__tests__/identity.js index 7d1f0a85a5..713c504ca1 100644 --- a/src/gmp/utils/__tests__/identity.js +++ b/src/gmp/utils/__tests__/identity.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import { diff --git a/src/gmp/utils/__tests__/number.js b/src/gmp/utils/__tests__/number.js index 04988909b3..3725cfa520 100644 --- a/src/gmp/utils/__tests__/number.js +++ b/src/gmp/utils/__tests__/number.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {severityValue, fixedValue} from 'gmp/utils/number'; diff --git a/src/gmp/utils/__tests__/object.js b/src/gmp/utils/__tests__/object.js index 84b99641dd..24e8f5b7db 100644 --- a/src/gmp/utils/__tests__/object.js +++ b/src/gmp/utils/__tests__/object.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {exclude, excludeObjectProps} from '../object'; diff --git a/src/gmp/utils/__tests__/string.js b/src/gmp/utils/__tests__/string.js index 747e8f31ad..a0a720c534 100644 --- a/src/gmp/utils/__tests__/string.js +++ b/src/gmp/utils/__tests__/string.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {split, capitalizeFirstLetter, shorten, isEmpty} from '../string'; diff --git a/src/gmp/utils/array.js b/src/gmp/utils/array.js index 1854474914..6690c2556b 100644 --- a/src/gmp/utils/array.js +++ b/src/gmp/utils/array.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {hasValue, isDefined, isArray} from './identity'; export const forEach = (array, func) => { diff --git a/src/gmp/utils/entitytype.js b/src/gmp/utils/entitytype.js index 09aba22f6b..6938a59eb1 100644 --- a/src/gmp/utils/entitytype.js +++ b/src/gmp/utils/entitytype.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {_l} from 'gmp/locale/lang'; import {isDefined} from './identity'; diff --git a/src/gmp/utils/event.js b/src/gmp/utils/event.js index e779d438ef..bacf202782 100644 --- a/src/gmp/utils/event.js +++ b/src/gmp/utils/event.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const KeyCode = { ESC: 27, BACKSPACE: 8, diff --git a/src/gmp/utils/id.js b/src/gmp/utils/id.js index d47f3c339a..19b60f6533 100644 --- a/src/gmp/utils/id.js +++ b/src/gmp/utils/id.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {first} from './array'; import {isDefined, isString} from './identity'; diff --git a/src/gmp/utils/identity.js b/src/gmp/utils/identity.js index f7d392881b..163f9244ca 100644 --- a/src/gmp/utils/identity.js +++ b/src/gmp/utils/identity.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const {isArray} = global.Array; export const isDefined = value => value !== undefined; diff --git a/src/gmp/utils/number.js b/src/gmp/utils/number.js index d49a560bc5..03986fa617 100644 --- a/src/gmp/utils/number.js +++ b/src/gmp/utils/number.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from './identity'; /** diff --git a/src/gmp/utils/object.js b/src/gmp/utils/object.js index adc724417e..1e507812b4 100644 --- a/src/gmp/utils/object.js +++ b/src/gmp/utils/object.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const exclude = (object, func) => Object.keys(object) .filter(key => !func(key)) diff --git a/src/gmp/utils/string.js b/src/gmp/utils/string.js index a3b5a23ffb..6b5b51f39d 100644 --- a/src/gmp/utils/string.js +++ b/src/gmp/utils/string.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2016-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined, isString} from './identity'; export const capitalizeFirstLetter = string => diff --git a/src/gmp/utils/trace.js b/src/gmp/utils/trace.js index e7b8d190bf..91ba78a663 100644 --- a/src/gmp/utils/trace.js +++ b/src/gmp/utils/trace.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + /** Return the current stack trace a string */ export const trace = () => { try { diff --git a/src/version.js b/src/version.js index f7c1998fbd..31c69c1e04 100644 --- a/src/version.js +++ b/src/version.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2021-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + const getMajorMinorVersion = () => { // eslint-disable-next-line no-unused-vars let [major, minor, ...rest] = VERSION.split('.'); diff --git a/src/web/pages/extras/trashactions.jsx b/src/web/pages/extras/trashactions.jsx index 980be99fa0..3773c2fa00 100644 --- a/src/web/pages/extras/trashactions.jsx +++ b/src/web/pages/extras/trashactions.jsx @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import React from 'react'; import _ from 'gmp/locale'; diff --git a/src/web/pages/tasks/row.jsx b/src/web/pages/tasks/row.jsx index 842b8c7b96..bae1e56855 100644 --- a/src/web/pages/tasks/row.jsx +++ b/src/web/pages/tasks/row.jsx @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import React from 'react'; import _ from 'gmp/locale'; diff --git a/src/web/setupTests.js b/src/web/setupTests.js index 3927cd57e0..3fc93283fb 100644 --- a/src/web/setupTests.js +++ b/src/web/setupTests.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testing, beforeEach, expect} from '@gsa/testing'; import '../setupTests'; diff --git a/src/web/store/__tests__/utils.js b/src/web/store/__tests__/utils.js index b3cd8cdc2d..ebe0a7e10d 100644 --- a/src/web/store/__tests__/utils.js +++ b/src/web/store/__tests__/utils.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/actions.js b/src/web/store/actions.js index 8c5f15f47d..162b726016 100644 --- a/src/web/store/actions.js +++ b/src/web/store/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const CLEAR_STORE = 'CLEAR_STORE'; const clearStoreAction = { diff --git a/src/web/store/dashboard/data/__tests__/actions.js b/src/web/store/dashboard/data/__tests__/actions.js index 8cbf15a083..691f80151c 100644 --- a/src/web/store/dashboard/data/__tests__/actions.js +++ b/src/web/store/dashboard/data/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/dashboard/data/__tests__/loader.js b/src/web/store/dashboard/data/__tests__/loader.js index e40317ea00..56a34f5a06 100644 --- a/src/web/store/dashboard/data/__tests__/loader.js +++ b/src/web/store/dashboard/data/__tests__/loader.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/dashboard/data/__tests__/reducers.js b/src/web/store/dashboard/data/__tests__/reducers.js index adc483889b..6343c91829 100644 --- a/src/web/store/dashboard/data/__tests__/reducers.js +++ b/src/web/store/dashboard/data/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/dashboard/data/__tests__/selectors.js b/src/web/store/dashboard/data/__tests__/selectors.js index f63c24c286..6a8b036070 100644 --- a/src/web/store/dashboard/data/__tests__/selectors.js +++ b/src/web/store/dashboard/data/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/dashboard/data/actions.js b/src/web/store/dashboard/data/actions.js index 2fa462ff3f..45b402992b 100644 --- a/src/web/store/dashboard/data/actions.js +++ b/src/web/store/dashboard/data/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const DASHBOARD_DATA_LOADING_SUCCESS = 'DASHBOARD_DATA_LOADING_SUCCESS'; export const DASHBOARD_DATA_LOADING_REQUEST = 'DASHBOARD_DATA_LOADING_REQUEST'; export const DASHBOARD_DATA_LOADING_ERROR = 'DASHBOARD_DATA_LOADING_ERROR'; diff --git a/src/web/store/dashboard/data/loader.js b/src/web/store/dashboard/data/loader.js index 421fa06867..52354b6a56 100644 --- a/src/web/store/dashboard/data/loader.js +++ b/src/web/store/dashboard/data/loader.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import React from 'react'; import {connect} from 'react-redux'; diff --git a/src/web/store/dashboard/data/reducers.js b/src/web/store/dashboard/data/reducers.js index cb7704d019..f6decffa23 100644 --- a/src/web/store/dashboard/data/reducers.js +++ b/src/web/store/dashboard/data/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {filterIdentifier} from 'web/store/utils'; diff --git a/src/web/store/dashboard/data/selectors.js b/src/web/store/dashboard/data/selectors.js index 69bfc30c54..d88257d754 100644 --- a/src/web/store/dashboard/data/selectors.js +++ b/src/web/store/dashboard/data/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {filterIdentifier} from 'web/store/utils'; diff --git a/src/web/store/dashboard/settings/__tests__/actions.js b/src/web/store/dashboard/settings/__tests__/actions.js index 7d396dd0fb..2b8d60c9ef 100644 --- a/src/web/store/dashboard/settings/__tests__/actions.js +++ b/src/web/store/dashboard/settings/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {isFunction} from 'gmp/utils/identity'; diff --git a/src/web/store/dashboard/settings/__tests__/reducers.js b/src/web/store/dashboard/settings/__tests__/reducers.js index 5f15797572..4116a08077 100644 --- a/src/web/store/dashboard/settings/__tests__/reducers.js +++ b/src/web/store/dashboard/settings/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import dashboardSettings from '../reducers'; diff --git a/src/web/store/dashboard/settings/__tests__/selectors.js b/src/web/store/dashboard/settings/__tests__/selectors.js index bf3933a043..85db8925b2 100644 --- a/src/web/store/dashboard/settings/__tests__/selectors.js +++ b/src/web/store/dashboard/settings/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import getDashboardSettings from '../selectors'; diff --git a/src/web/store/dashboard/settings/actions.js b/src/web/store/dashboard/settings/actions.js index ad4598d7f9..5f809b9e22 100644 --- a/src/web/store/dashboard/settings/actions.js +++ b/src/web/store/dashboard/settings/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import getDashboardSettings from './selectors'; export const DASHBOARD_SETTINGS_LOADING_SUCCESS = diff --git a/src/web/store/dashboard/settings/reducers.js b/src/web/store/dashboard/settings/reducers.js index 436b797b58..d01cee32fe 100644 --- a/src/web/store/dashboard/settings/reducers.js +++ b/src/web/store/dashboard/settings/reducers.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { DASHBOARD_SETTINGS_LOADING_ERROR, DASHBOARD_SETTINGS_LOADING_REQUEST, diff --git a/src/web/store/dashboard/settings/selectors.js b/src/web/store/dashboard/settings/selectors.js index 85e2a3f8af..4df2db64a8 100644 --- a/src/web/store/dashboard/settings/selectors.js +++ b/src/web/store/dashboard/settings/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; export class DashboardSetting { diff --git a/src/web/store/entities/__tests__/alerts.js b/src/web/store/entities/__tests__/alerts.js index 70e89793fb..1322030b3d 100644 --- a/src/web/store/entities/__tests__/alerts.js +++ b/src/web/store/entities/__tests__/alerts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as alert from '../alerts'; diff --git a/src/web/store/entities/__tests__/audits.js b/src/web/store/entities/__tests__/audits.js index f733ca73eb..db9653a3c6 100644 --- a/src/web/store/entities/__tests__/audits.js +++ b/src/web/store/entities/__tests__/audits.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as audits from '../audits'; diff --git a/src/web/store/entities/__tests__/certbund.js b/src/web/store/entities/__tests__/certbund.js index 1d269a8a96..664660cdf7 100644 --- a/src/web/store/entities/__tests__/certbund.js +++ b/src/web/store/entities/__tests__/certbund.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as certbund from '../certbund'; diff --git a/src/web/store/entities/__tests__/cpes.js b/src/web/store/entities/__tests__/cpes.js index d0e7b6f4fd..c95ed86bf9 100644 --- a/src/web/store/entities/__tests__/cpes.js +++ b/src/web/store/entities/__tests__/cpes.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as cpe from '../cpes'; diff --git a/src/web/store/entities/__tests__/credentials.js b/src/web/store/entities/__tests__/credentials.js index c8ed634607..7e1cba8d55 100644 --- a/src/web/store/entities/__tests__/credentials.js +++ b/src/web/store/entities/__tests__/credentials.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as credential from '../credentials'; diff --git a/src/web/store/entities/__tests__/cves.js b/src/web/store/entities/__tests__/cves.js index dcdcc7cda5..762b8b02ee 100644 --- a/src/web/store/entities/__tests__/cves.js +++ b/src/web/store/entities/__tests__/cves.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as cve from '../cves'; diff --git a/src/web/store/entities/__tests__/dfncerts.js b/src/web/store/entities/__tests__/dfncerts.js index 11dfab3acc..850e5a8013 100644 --- a/src/web/store/entities/__tests__/dfncerts.js +++ b/src/web/store/entities/__tests__/dfncerts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as dfncert from '../dfncerts'; diff --git a/src/web/store/entities/__tests__/filters.js b/src/web/store/entities/__tests__/filters.js index c5e50c283f..2a82612310 100644 --- a/src/web/store/entities/__tests__/filters.js +++ b/src/web/store/entities/__tests__/filters.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as filter from '../filters'; diff --git a/src/web/store/entities/__tests__/groups.js b/src/web/store/entities/__tests__/groups.js index bc27bc427e..f0fc9ed876 100644 --- a/src/web/store/entities/__tests__/groups.js +++ b/src/web/store/entities/__tests__/groups.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as group from '../groups'; diff --git a/src/web/store/entities/__tests__/hosts.js b/src/web/store/entities/__tests__/hosts.js index 6b780d5341..cf2c7fad95 100644 --- a/src/web/store/entities/__tests__/hosts.js +++ b/src/web/store/entities/__tests__/hosts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as host from '../hosts'; diff --git a/src/web/store/entities/__tests__/notes.js b/src/web/store/entities/__tests__/notes.js index 8e8a7f5400..994d1e9174 100644 --- a/src/web/store/entities/__tests__/notes.js +++ b/src/web/store/entities/__tests__/notes.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as note from '../notes'; diff --git a/src/web/store/entities/__tests__/nvts.js b/src/web/store/entities/__tests__/nvts.js index 663c1c2dea..a27ad2bf30 100644 --- a/src/web/store/entities/__tests__/nvts.js +++ b/src/web/store/entities/__tests__/nvts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as nvts from '../nvts'; diff --git a/src/web/store/entities/__tests__/operatingsystems.js b/src/web/store/entities/__tests__/operatingsystems.js index 0aeeb342d6..a5421b4e37 100644 --- a/src/web/store/entities/__tests__/operatingsystems.js +++ b/src/web/store/entities/__tests__/operatingsystems.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../operatingsystems'; diff --git a/src/web/store/entities/__tests__/overrides.js b/src/web/store/entities/__tests__/overrides.js index 0a396841ab..c144cf9522 100644 --- a/src/web/store/entities/__tests__/overrides.js +++ b/src/web/store/entities/__tests__/overrides.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../overrides'; diff --git a/src/web/store/entities/__tests__/permissions.js b/src/web/store/entities/__tests__/permissions.js index d5f423100a..46d90a3730 100644 --- a/src/web/store/entities/__tests__/permissions.js +++ b/src/web/store/entities/__tests__/permissions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../permissions'; diff --git a/src/web/store/entities/__tests__/policies.js b/src/web/store/entities/__tests__/policies.js index 06f2372539..d313878556 100644 --- a/src/web/store/entities/__tests__/policies.js +++ b/src/web/store/entities/__tests__/policies.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as policy from '../policies'; diff --git a/src/web/store/entities/__tests__/portlists.js b/src/web/store/entities/__tests__/portlists.js index 6b06bdfed6..fe412542e1 100644 --- a/src/web/store/entities/__tests__/portlists.js +++ b/src/web/store/entities/__tests__/portlists.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as portlist from '../portlists'; diff --git a/src/web/store/entities/__tests__/reducers.js b/src/web/store/entities/__tests__/reducers.js index 6026b5a65e..71e7a11e04 100644 --- a/src/web/store/entities/__tests__/reducers.js +++ b/src/web/store/entities/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isFunction} from 'gmp/utils/identity'; diff --git a/src/web/store/entities/__tests__/reportformats.js b/src/web/store/entities/__tests__/reportformats.js index e122eda42c..f30fe5a2f6 100644 --- a/src/web/store/entities/__tests__/reportformats.js +++ b/src/web/store/entities/__tests__/reportformats.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as reportformat from '../reportformats'; diff --git a/src/web/store/entities/__tests__/reports.js b/src/web/store/entities/__tests__/reports.js index b3a185a45c..4951fec83a 100644 --- a/src/web/store/entities/__tests__/reports.js +++ b/src/web/store/entities/__tests__/reports.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { testEntitiesActions, testLoadEntities, diff --git a/src/web/store/entities/__tests__/results.js b/src/web/store/entities/__tests__/results.js index 18607047bc..7e0319baa6 100644 --- a/src/web/store/entities/__tests__/results.js +++ b/src/web/store/entities/__tests__/results.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../results'; diff --git a/src/web/store/entities/__tests__/roles.js b/src/web/store/entities/__tests__/roles.js index 6f7a4c855e..1cbe4915a4 100644 --- a/src/web/store/entities/__tests__/roles.js +++ b/src/web/store/entities/__tests__/roles.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../roles'; diff --git a/src/web/store/entities/__tests__/scanconfigs.js b/src/web/store/entities/__tests__/scanconfigs.js index 51511c3acd..4171069427 100644 --- a/src/web/store/entities/__tests__/scanconfigs.js +++ b/src/web/store/entities/__tests__/scanconfigs.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as scanconfig from '../scanconfigs'; diff --git a/src/web/store/entities/__tests__/scanners.js b/src/web/store/entities/__tests__/scanners.js index 32f27d6cfc..d9e2689c6e 100644 --- a/src/web/store/entities/__tests__/scanners.js +++ b/src/web/store/entities/__tests__/scanners.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as scanner from '../scanners'; diff --git a/src/web/store/entities/__tests__/schedules.js b/src/web/store/entities/__tests__/schedules.js index 30ef6cb3bd..f8dbba2c5c 100644 --- a/src/web/store/entities/__tests__/schedules.js +++ b/src/web/store/entities/__tests__/schedules.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as schedule from '../schedules'; diff --git a/src/web/store/entities/__tests__/tags.js b/src/web/store/entities/__tests__/tags.js index bd40643c51..a985962dec 100644 --- a/src/web/store/entities/__tests__/tags.js +++ b/src/web/store/entities/__tests__/tags.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../tags'; diff --git a/src/web/store/entities/__tests__/targets.js b/src/web/store/entities/__tests__/targets.js index 7eef074f2e..d25afa5b82 100644 --- a/src/web/store/entities/__tests__/targets.js +++ b/src/web/store/entities/__tests__/targets.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as targets from '../targets'; diff --git a/src/web/store/entities/__tests__/tasks.js b/src/web/store/entities/__tests__/tasks.js index 759c30abb9..b45e0d2fd1 100644 --- a/src/web/store/entities/__tests__/tasks.js +++ b/src/web/store/entities/__tests__/tasks.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as tasks from '../tasks'; diff --git a/src/web/store/entities/__tests__/tickets.js b/src/web/store/entities/__tests__/tickets.js index df649b68fa..f3144de39c 100644 --- a/src/web/store/entities/__tests__/tickets.js +++ b/src/web/store/entities/__tests__/tickets.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as tickets from '../tickets'; diff --git a/src/web/store/entities/__tests__/users.js b/src/web/store/entities/__tests__/users.js index 5b1f3a263b..66cf238392 100644 --- a/src/web/store/entities/__tests__/users.js +++ b/src/web/store/entities/__tests__/users.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../users'; diff --git a/src/web/store/entities/__tests__/vulns.js b/src/web/store/entities/__tests__/vulns.js index e564dbd68b..18a7c2ab4e 100644 --- a/src/web/store/entities/__tests__/vulns.js +++ b/src/web/store/entities/__tests__/vulns.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {testAll} from '../utils/testing'; import * as funcs from '../vulns'; diff --git a/src/web/store/entities/alerts.js b/src/web/store/entities/alerts.js index d537996e6d..fc76b1da42 100644 --- a/src/web/store/entities/alerts.js +++ b/src/web/store/entities/alerts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/audits.js b/src/web/store/entities/audits.js index 7c244fd41f..19e861e7b5 100644 --- a/src/web/store/entities/audits.js +++ b/src/web/store/entities/audits.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/certbund.js b/src/web/store/entities/certbund.js index 0f955ea66f..0a44d5d130 100644 --- a/src/web/store/entities/certbund.js +++ b/src/web/store/entities/certbund.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/cpes.js b/src/web/store/entities/cpes.js index 2a2c2586d3..ea59c7bc06 100644 --- a/src/web/store/entities/cpes.js +++ b/src/web/store/entities/cpes.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/credentials.js b/src/web/store/entities/credentials.js index 965a2ce352..00f45da88c 100644 --- a/src/web/store/entities/credentials.js +++ b/src/web/store/entities/credentials.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/cves.js b/src/web/store/entities/cves.js index 1a9568e33f..953d3af2e2 100644 --- a/src/web/store/entities/cves.js +++ b/src/web/store/entities/cves.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/dfncerts.js b/src/web/store/entities/dfncerts.js index 58caef9f50..4d1d4f6642 100644 --- a/src/web/store/entities/dfncerts.js +++ b/src/web/store/entities/dfncerts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/filters.js b/src/web/store/entities/filters.js index 14ce25c2ca..b61f76bde5 100644 --- a/src/web/store/entities/filters.js +++ b/src/web/store/entities/filters.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/groups.js b/src/web/store/entities/groups.js index d4eb960562..0769103f20 100644 --- a/src/web/store/entities/groups.js +++ b/src/web/store/entities/groups.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/hosts.js b/src/web/store/entities/hosts.js index 812ab798f6..a5c126d970 100644 --- a/src/web/store/entities/hosts.js +++ b/src/web/store/entities/hosts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/notes.js b/src/web/store/entities/notes.js index 413a438aeb..ce58c6b551 100644 --- a/src/web/store/entities/notes.js +++ b/src/web/store/entities/notes.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/nvts.js b/src/web/store/entities/nvts.js index 8b5d28b4b0..8bdd610136 100644 --- a/src/web/store/entities/nvts.js +++ b/src/web/store/entities/nvts.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/operatingsystems.js b/src/web/store/entities/operatingsystems.js index 2e7563d3b5..63d89f7354 100644 --- a/src/web/store/entities/operatingsystems.js +++ b/src/web/store/entities/operatingsystems.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/overrides.js b/src/web/store/entities/overrides.js index 3380157e6f..c07f40e431 100644 --- a/src/web/store/entities/overrides.js +++ b/src/web/store/entities/overrides.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/permissions.js b/src/web/store/entities/permissions.js index aea499149b..b44bb61482 100644 --- a/src/web/store/entities/permissions.js +++ b/src/web/store/entities/permissions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/policies.js b/src/web/store/entities/policies.js index 7e0bb90b61..775abd47b3 100644 --- a/src/web/store/entities/policies.js +++ b/src/web/store/entities/policies.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/portlists.js b/src/web/store/entities/portlists.js index 3853629a2d..d9100c4a75 100644 --- a/src/web/store/entities/portlists.js +++ b/src/web/store/entities/portlists.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/reducers.js b/src/web/store/entities/reducers.js index c89056ae37..d12f11332f 100644 --- a/src/web/store/entities/reducers.js +++ b/src/web/store/entities/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {combineReducers} from 'redux'; import {reducer as alert} from './alerts'; diff --git a/src/web/store/entities/report/__tests__/actions.js b/src/web/store/entities/report/__tests__/actions.js index 0ab3f50971..5712358259 100644 --- a/src/web/store/entities/report/__tests__/actions.js +++ b/src/web/store/entities/report/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/entities/report/__tests__/reducers.js b/src/web/store/entities/report/__tests__/reducers.js index 93b2c5ecde..90dd59a7c2 100644 --- a/src/web/store/entities/report/__tests__/reducers.js +++ b/src/web/store/entities/report/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/entities/report/__tests__/selectors.js b/src/web/store/entities/report/__tests__/selectors.js index e836b84849..327c66f665 100644 --- a/src/web/store/entities/report/__tests__/selectors.js +++ b/src/web/store/entities/report/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/entities/report/actions.js b/src/web/store/entities/report/actions.js index 096ecc5fa1..264f97e7b4 100644 --- a/src/web/store/entities/report/actions.js +++ b/src/web/store/entities/report/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import { diff --git a/src/web/store/entities/report/reducers.js b/src/web/store/entities/report/reducers.js index 452e7547f3..0166bac722 100644 --- a/src/web/store/entities/report/reducers.js +++ b/src/web/store/entities/report/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {types} from 'web/store/entities/utils/actions'; import {isError} from 'web/store/entities/utils/reducers'; diff --git a/src/web/store/entities/report/selectors.js b/src/web/store/entities/report/selectors.js index d422f43386..228b0d241a 100644 --- a/src/web/store/entities/report/selectors.js +++ b/src/web/store/entities/report/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; export const simplifiedReportIdentifier = (reportId, filter) => { diff --git a/src/web/store/entities/reportconfigs.js b/src/web/store/entities/reportconfigs.js index 1f2161b03d..99eac55f62 100644 --- a/src/web/store/entities/reportconfigs.js +++ b/src/web/store/entities/reportconfigs.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2024 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/reportformats.js b/src/web/store/entities/reportformats.js index fc15dec730..57e0267e72 100644 --- a/src/web/store/entities/reportformats.js +++ b/src/web/store/entities/reportformats.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/reports.js b/src/web/store/entities/reports.js index 39a063f496..03af38c0a5 100644 --- a/src/web/store/entities/reports.js +++ b/src/web/store/entities/reports.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { createEntitiesLoadingActions, createLoadAllEntities, diff --git a/src/web/store/entities/reports/__tests__/reducers.js b/src/web/store/entities/reports/__tests__/reducers.js index b735007b22..7c05c0ef78 100644 --- a/src/web/store/entities/reports/__tests__/reducers.js +++ b/src/web/store/entities/reports/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/entities/reports/reducers.js b/src/web/store/entities/reports/reducers.js index 5e5ea2b697..cd66b54b5f 100644 --- a/src/web/store/entities/reports/reducers.js +++ b/src/web/store/entities/reports/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {types} from 'web/store/entities/utils/actions'; import {isError} from 'web/store/entities/utils/reducers'; diff --git a/src/web/store/entities/results.js b/src/web/store/entities/results.js index 8ed5910524..6476fcc94d 100644 --- a/src/web/store/entities/results.js +++ b/src/web/store/entities/results.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/roles.js b/src/web/store/entities/roles.js index e2eb257ca5..0aa9c4a3c5 100644 --- a/src/web/store/entities/roles.js +++ b/src/web/store/entities/roles.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/scanconfigs.js b/src/web/store/entities/scanconfigs.js index 89b13fd37f..77ae3d3c3a 100644 --- a/src/web/store/entities/scanconfigs.js +++ b/src/web/store/entities/scanconfigs.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/scanners.js b/src/web/store/entities/scanners.js index 6d90206381..fd162ccfe6 100644 --- a/src/web/store/entities/scanners.js +++ b/src/web/store/entities/scanners.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/schedules.js b/src/web/store/entities/schedules.js index 2981ebaeec..0fd60243a2 100644 --- a/src/web/store/entities/schedules.js +++ b/src/web/store/entities/schedules.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/tags.js b/src/web/store/entities/tags.js index 4a0f34ceb3..9ef1215a22 100644 --- a/src/web/store/entities/tags.js +++ b/src/web/store/entities/tags.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/targets.js b/src/web/store/entities/targets.js index 40166809c2..dd20805179 100644 --- a/src/web/store/entities/targets.js +++ b/src/web/store/entities/targets.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/tasks.js b/src/web/store/entities/tasks.js index 2dc3816c75..1c597526d6 100644 --- a/src/web/store/entities/tasks.js +++ b/src/web/store/entities/tasks.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/tickets.js b/src/web/store/entities/tickets.js index 7b238f5619..83498b5d41 100644 --- a/src/web/store/entities/tickets.js +++ b/src/web/store/entities/tickets.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/tlscertificates.js b/src/web/store/entities/tlscertificates.js index e0468d85ce..c79c23fbb4 100644 --- a/src/web/store/entities/tlscertificates.js +++ b/src/web/store/entities/tlscertificates.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/users.js b/src/web/store/entities/users.js index be0de8c33f..ee4bbbc849 100644 --- a/src/web/store/entities/users.js +++ b/src/web/store/entities/users.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/entities/utils/__tests__/actions.js b/src/web/store/entities/utils/__tests__/actions.js index 9f4a2a190a..d33776ac56 100644 --- a/src/web/store/entities/utils/__tests__/actions.js +++ b/src/web/store/entities/utils/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {isFunction} from 'gmp/utils/identity'; diff --git a/src/web/store/entities/utils/__tests__/main.js b/src/web/store/entities/utils/__tests__/main.js index 661160e5b6..ba1cf370b6 100644 --- a/src/web/store/entities/utils/__tests__/main.js +++ b/src/web/store/entities/utils/__tests__/main.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isFunction} from 'gmp/utils/identity'; diff --git a/src/web/store/entities/utils/__tests__/reducers.js b/src/web/store/entities/utils/__tests__/reducers.js index 4882ae1eb9..af1a8b2c7f 100644 --- a/src/web/store/entities/utils/__tests__/reducers.js +++ b/src/web/store/entities/utils/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {isFunction} from 'gmp/utils/identity'; diff --git a/src/web/store/entities/utils/__tests__/selectors.js b/src/web/store/entities/utils/__tests__/selectors.js index 577e3e8078..bf57628474 100644 --- a/src/web/store/entities/utils/__tests__/selectors.js +++ b/src/web/store/entities/utils/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/entities/utils/actions.js b/src/web/store/entities/utils/actions.js index bef6e9e03d..22802157b3 100644 --- a/src/web/store/entities/utils/actions.js +++ b/src/web/store/entities/utils/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Filter, {ALL_FILTER} from 'gmp/models/filter'; import {pluralizeType} from 'gmp/utils/entitytype'; diff --git a/src/web/store/entities/utils/main.js b/src/web/store/entities/utils/main.js index dfde439211..7d3b1e7efa 100644 --- a/src/web/store/entities/utils/main.js +++ b/src/web/store/entities/utils/main.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { createEntitiesLoadingActions, createEntityLoadingActions, diff --git a/src/web/store/entities/utils/reducers.js b/src/web/store/entities/utils/reducers.js index d9229b5267..c6e9bc6810 100644 --- a/src/web/store/entities/utils/reducers.js +++ b/src/web/store/entities/utils/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {types} from './actions'; diff --git a/src/web/store/entities/utils/selectors.js b/src/web/store/entities/utils/selectors.js index d3f690b6f1..9e7d220d5b 100644 --- a/src/web/store/entities/utils/selectors.js +++ b/src/web/store/entities/utils/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import Filter, {ALL_FILTER} from 'gmp/models/filter'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/web/store/entities/utils/testing.js b/src/web/store/entities/utils/testing.js index 45e15a446f..52dd51ec2b 100644 --- a/src/web/store/entities/utils/testing.js +++ b/src/web/store/entities/utils/testing.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {isFunction} from 'gmp/utils/identity'; diff --git a/src/web/store/entities/vulns.js b/src/web/store/entities/vulns.js index d4becebe03..7c3a47a234 100644 --- a/src/web/store/entities/vulns.js +++ b/src/web/store/entities/vulns.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {createAll} from './utils/main'; const { diff --git a/src/web/store/index.js b/src/web/store/index.js index 81800ab8c3..4c78e7e608 100644 --- a/src/web/store/index.js +++ b/src/web/store/index.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import { configureStore as reduxConfigureStore, isImmutableDefault, diff --git a/src/web/store/pages/__tests__/actions.js b/src/web/store/pages/__tests__/actions.js index dda4eb565d..2f989c248f 100644 --- a/src/web/store/pages/__tests__/actions.js +++ b/src/web/store/pages/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {pageFilter, CHANGE_PAGE_FILTER} from '../actions'; diff --git a/src/web/store/pages/__tests__/reducers.js b/src/web/store/pages/__tests__/reducers.js index 2b731412aa..d61f9d933b 100644 --- a/src/web/store/pages/__tests__/reducers.js +++ b/src/web/store/pages/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import reducer from '../reducers'; diff --git a/src/web/store/pages/__tests__/selectors.js b/src/web/store/pages/__tests__/selectors.js index 13a25f2666..ce1550bfff 100644 --- a/src/web/store/pages/__tests__/selectors.js +++ b/src/web/store/pages/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import getPage from 'web/store/pages/selectors'; diff --git a/src/web/store/pages/actions.js b/src/web/store/pages/actions.js index c472e3f1dd..27d7a528cb 100644 --- a/src/web/store/pages/actions.js +++ b/src/web/store/pages/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const CHANGE_PAGE_FILTER = 'CHANGE_PAGE_FILTER'; export const pageFilter = (page, filter) => ({ diff --git a/src/web/store/pages/reducers.js b/src/web/store/pages/reducers.js index 0df3e27f8c..7bd4bcb773 100644 --- a/src/web/store/pages/reducers.js +++ b/src/web/store/pages/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {CHANGE_PAGE_FILTER} from './actions'; diff --git a/src/web/store/pages/selectors.js b/src/web/store/pages/selectors.js index 66104a8f27..2cdbe208f1 100644 --- a/src/web/store/pages/selectors.js +++ b/src/web/store/pages/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; class PageSelector { diff --git a/src/web/store/reducers.js b/src/web/store/reducers.js index 3167c5010c..7158e82c24 100644 --- a/src/web/store/reducers.js +++ b/src/web/store/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {combineReducers} from 'redux'; import dashboardData from './dashboard/data/reducers'; diff --git a/src/web/store/usersettings/__tests__/actions.js b/src/web/store/usersettings/__tests__/actions.js index b68e6b6959..3535625a71 100644 --- a/src/web/store/usersettings/__tests__/actions.js +++ b/src/web/store/usersettings/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import moment from 'gmp/models/date'; diff --git a/src/web/store/usersettings/__tests__/reducers.js b/src/web/store/usersettings/__tests__/reducers.js index d80e0a100d..58bc4cb20c 100644 --- a/src/web/store/usersettings/__tests__/reducers.js +++ b/src/web/store/usersettings/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {CLEAR_STORE} from 'web/store/actions'; diff --git a/src/web/store/usersettings/__tests__/selectors.js b/src/web/store/usersettings/__tests__/selectors.js index 581edc8df0..9b0bd43db2 100644 --- a/src/web/store/usersettings/__tests__/selectors.js +++ b/src/web/store/usersettings/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import { diff --git a/src/web/store/usersettings/actions.js b/src/web/store/usersettings/actions.js index e0c5153981..c046627fd6 100644 --- a/src/web/store/usersettings/actions.js +++ b/src/web/store/usersettings/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const USER_SETTINGS_LOAD_REPORT_COMPOSER_DEFAULTS_SUCCESS = 'USER_SETTINGS_LOAD_REPORT_COMPOSER_DEFAULTS_SUCCESS'; export const USER_SETTINGS_SET_TIMEZONE = 'USER_SETTINGS_SET_TIMEZONE'; diff --git a/src/web/store/usersettings/defaultfilters/__tests__/actions.js b/src/web/store/usersettings/defaultfilters/__tests__/actions.js index 7e504f3ab3..e9c6e8c4bc 100644 --- a/src/web/store/usersettings/defaultfilters/__tests__/actions.js +++ b/src/web/store/usersettings/defaultfilters/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import {DEFAULT_FILTER_SETTINGS} from 'gmp/commands/users'; diff --git a/src/web/store/usersettings/defaultfilters/__tests__/reducers.js b/src/web/store/usersettings/defaultfilters/__tests__/reducers.js index 4cb6942c99..6a4614075f 100644 --- a/src/web/store/usersettings/defaultfilters/__tests__/reducers.js +++ b/src/web/store/usersettings/defaultfilters/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {defaultFilterLoadingActions} from '../actions'; diff --git a/src/web/store/usersettings/defaultfilters/__tests__/selectors.js b/src/web/store/usersettings/defaultfilters/__tests__/selectors.js index 13a864bf95..9086062881 100644 --- a/src/web/store/usersettings/defaultfilters/__tests__/selectors.js +++ b/src/web/store/usersettings/defaultfilters/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import Filter from 'gmp/models/filter'; diff --git a/src/web/store/usersettings/defaultfilters/actions.js b/src/web/store/usersettings/defaultfilters/actions.js index 4b98550af1..c369d8ac2a 100644 --- a/src/web/store/usersettings/defaultfilters/actions.js +++ b/src/web/store/usersettings/defaultfilters/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; import {DEFAULT_FILTER_SETTINGS} from 'gmp/commands/users'; diff --git a/src/web/store/usersettings/defaultfilters/reducers.js b/src/web/store/usersettings/defaultfilters/reducers.js index caf12961e0..84ed851ea0 100644 --- a/src/web/store/usersettings/defaultfilters/reducers.js +++ b/src/web/store/usersettings/defaultfilters/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {combineReducers} from 'web/store/utils'; import { diff --git a/src/web/store/usersettings/defaultfilters/selectors.js b/src/web/store/usersettings/defaultfilters/selectors.js index 486f9ee359..d5f2e15ce9 100644 --- a/src/web/store/usersettings/defaultfilters/selectors.js +++ b/src/web/store/usersettings/defaultfilters/selectors.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + class UserSettingsDefaultFilterSelector { constructor(state = {}, entityType) { this.state = state; diff --git a/src/web/store/usersettings/defaults/__tests__/actions.js b/src/web/store/usersettings/defaults/__tests__/actions.js index feb13ce02e..9b1c788f89 100644 --- a/src/web/store/usersettings/defaults/__tests__/actions.js +++ b/src/web/store/usersettings/defaults/__tests__/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect, testing} from '@gsa/testing'; import { diff --git a/src/web/store/usersettings/defaults/__tests__/reducers.js b/src/web/store/usersettings/defaults/__tests__/reducers.js index 5149de6ba5..8342158d57 100644 --- a/src/web/store/usersettings/defaults/__tests__/reducers.js +++ b/src/web/store/usersettings/defaults/__tests__/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {loadingActions} from '../actions'; diff --git a/src/web/store/usersettings/defaults/__tests__/selectors.js b/src/web/store/usersettings/defaults/__tests__/selectors.js index af00c4ae48..1f8a68f0a6 100644 --- a/src/web/store/usersettings/defaults/__tests__/selectors.js +++ b/src/web/store/usersettings/defaults/__tests__/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {describe, test, expect} from '@gsa/testing'; import {getUserSettingsDefaults} from '../selectors'; diff --git a/src/web/store/usersettings/defaults/actions.js b/src/web/store/usersettings/defaults/actions.js index cc84a941cf..167f21dbd3 100644 --- a/src/web/store/usersettings/defaults/actions.js +++ b/src/web/store/usersettings/defaults/actions.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {getUserSettingsDefaults} from './selectors'; import {isDefined} from 'gmp/utils/identity'; diff --git a/src/web/store/usersettings/defaults/reducers.js b/src/web/store/usersettings/defaults/reducers.js index 0d4007a640..c156b353be 100644 --- a/src/web/store/usersettings/defaults/reducers.js +++ b/src/web/store/usersettings/defaults/reducers.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {combineReducers} from 'web/store/utils'; import { diff --git a/src/web/store/usersettings/defaults/selectors.js b/src/web/store/usersettings/defaults/selectors.js index b60ff508f8..a565a88d96 100644 --- a/src/web/store/usersettings/defaults/selectors.js +++ b/src/web/store/usersettings/defaults/selectors.js @@ -1,20 +1,8 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {isDefined} from 'gmp/utils/identity'; class UserSettingsDefaultsSelector { diff --git a/src/web/store/usersettings/reducers.js b/src/web/store/usersettings/reducers.js index 8a7e11d481..311422ea19 100644 --- a/src/web/store/usersettings/reducers.js +++ b/src/web/store/usersettings/reducers.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2017-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {combineReducers} from 'web/store/utils'; import defaults from './defaults/reducers'; diff --git a/src/web/store/usersettings/selectors.js b/src/web/store/usersettings/selectors.js index 416ae3facb..28e99689f1 100644 --- a/src/web/store/usersettings/selectors.js +++ b/src/web/store/usersettings/selectors.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + export const getReportComposerDefaults = rootState => { const {userSettings = {}} = rootState; const {reportComposerDefaults} = userSettings; diff --git a/src/web/store/utils.js b/src/web/store/utils.js index d1ffc8969c..f8a0ce2dba 100644 --- a/src/web/store/utils.js +++ b/src/web/store/utils.js @@ -1,21 +1,9 @@ -/* Copyright (C) 2018-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * * SPDX-License-Identifier: AGPL-3.0-or-later - * - * 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 . */ + import {hasValue} from 'gmp/utils/identity'; /**