From 81cdb70b31dd71cfd27cabcbae914a7c6395c69e Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Wed, 25 Sep 2013 13:19:12 +0200 Subject: [PATCH] CS: Add license header to js test files --- ...{loginpageTest.js => 000-loginpageTest.js} | 27 +++++++++++++++++ test/frontend/icingawebtest.js | 27 +++++++++++++++++ test/frontend/regression/regression-4600.js | 27 +++++++++++++++++ test/frontend/regression/regression-4606.js | 27 +++++++++++++++++ test/frontend/regression/regression-4622.js | 27 +++++++++++++++++ test/js/regression/bug.4102.js | 27 +++++++++++++++++ test/js/test/icinga/componentTest.js | 26 ++++++++++++++-- .../test/icinga/components/containerTest.js | 30 ++++++++++++++++--- test/js/test/icinga/registryTest.js | 26 ++++++++++++++-- test/js/testlib/asyncmock.js | 27 +++++++++++++++++ test/js/testlib/historymock.js | 27 +++++++++++++++++ test/js/testlib/requiremock.js | 27 +++++++++++++++++ 12 files changed, 317 insertions(+), 8 deletions(-) rename test/frontend/cases/{loginpageTest.js => 000-loginpageTest.js} (80%) diff --git a/test/frontend/cases/loginpageTest.js b/test/frontend/cases/000-loginpageTest.js similarity index 80% rename from test/frontend/cases/loginpageTest.js rename to test/frontend/cases/000-loginpageTest.js index 21b800fd7..c170decb1 100644 --- a/test/frontend/cases/loginpageTest.js +++ b/test/frontend/cases/000-loginpageTest.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * Test case for the login page * diff --git a/test/frontend/icingawebtest.js b/test/frontend/icingawebtest.js index 29dde0011..014f9a302 100644 --- a/test/frontend/icingawebtest.js +++ b/test/frontend/icingawebtest.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * Tools for setting up the casperjs tests * mainly setting host, port and path path diff --git a/test/frontend/regression/regression-4600.js b/test/frontend/regression/regression-4600.js index 2b9ae0268..7548269a2 100644 --- a/test/frontend/regression/regression-4600.js +++ b/test/frontend/regression/regression-4600.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * SubmitPassiveCheckResult is always type service * diff --git a/test/frontend/regression/regression-4606.js b/test/frontend/regression/regression-4606.js index 14dfa4632..7800fb84c 100644 --- a/test/frontend/regression/regression-4606.js +++ b/test/frontend/regression/regression-4606.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * Configuration: Show message that changes were saved successfully * diff --git a/test/frontend/regression/regression-4622.js b/test/frontend/regression/regression-4622.js index eebe8adab..6d3b7e893 100644 --- a/test/frontend/regression/regression-4622.js +++ b/test/frontend/regression/regression-4622.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * Config: Warn about unsaved changes before leaving current dialog (Bug #4622) * diff --git a/test/js/regression/bug.4102.js b/test/js/regression/bug.4102.js index 9344c341a..92d898ec8 100644 --- a/test/js/regression/bug.4102.js +++ b/test/js/regression/bug.4102.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + describe('regression test for bug #4102', function(){ it('Object.create', function(){ Object.create.should.be.a('function'); diff --git a/test/js/test/icinga/componentTest.js b/test/js/test/icinga/componentTest.js index 71ec5536d..b051add9a 100644 --- a/test/js/test/icinga/componentTest.js +++ b/test/js/test/icinga/componentTest.js @@ -1,7 +1,29 @@ +// {{{ICINGA_LICENSE_HEADER}}} /** - * {{LICENSE_HEADER}} - * {{LICENSE_HEADER}} + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team */ +// {{{ICINGA_LICENSE_HEADER}}} require('should'); var rjsmock = require('requiremock.js'); diff --git a/test/js/test/icinga/components/containerTest.js b/test/js/test/icinga/components/containerTest.js index ccc5cd289..04bb0fad3 100644 --- a/test/js/test/icinga/components/containerTest.js +++ b/test/js/test/icinga/components/containerTest.js @@ -1,9 +1,31 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} /*global requireNew:false, describe: false, it:false */ -/** - * {{LICENSE_HEADER}} - * {{LICENSE_HEADER}} - */ /** * The assertion framework diff --git a/test/js/test/icinga/registryTest.js b/test/js/test/icinga/registryTest.js index 2449f1ef6..a4aaa7928 100644 --- a/test/js/test/icinga/registryTest.js +++ b/test/js/test/icinga/registryTest.js @@ -1,7 +1,29 @@ +// {{{ICINGA_LICENSE_HEADER}}} /** - * {{LICENSE_HEADER}} - * {{LICENSE_HEADER}} + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team */ +// {{{ICINGA_LICENSE_HEADER}}} var should = require('should'); var rjsmock = require('requiremock.js'); diff --git a/test/js/testlib/asyncmock.js b/test/js/testlib/asyncmock.js index aad6d5eea..75fc7bd84 100644 --- a/test/js/testlib/asyncmock.js +++ b/test/js/testlib/asyncmock.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * Helper for mocking $.async's XHR requests * diff --git a/test/js/testlib/historymock.js b/test/js/testlib/historymock.js index 067dcbf4e..451e481e4 100644 --- a/test/js/testlib/historymock.js +++ b/test/js/testlib/historymock.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * {{LICENSE_HEADER}} * {{LICENSE_HEADER}} diff --git a/test/js/testlib/requiremock.js b/test/js/testlib/requiremock.js index 86221e13a..e1c693587 100644 --- a/test/js/testlib/requiremock.js +++ b/test/js/testlib/requiremock.js @@ -1,3 +1,30 @@ +// {{{ICINGA_LICENSE_HEADER}}} +/** + * This file is part of Icinga 2 Web. + * + * Icinga 2 Web - Head for multiple monitoring backends. + * Copyright (C) 2013 Icinga Development Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * @copyright 2013 Icinga Development Team + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} + /** * {{LICENSE_HEADER}} * {{LICENSE_HEADER}}