From 2c065d24f0801318f00fa62e1c42fa41086e2494 Mon Sep 17 00:00:00 2001
From: Manuel Bentele
Date: Wed, 2 Jun 2021 09:46:19 +0200
Subject: Add database test data for debugging purposes

The added debug data contains the specification of a

  - test organization (organization.test)
  - test satellite server related to the test organization
  - test user as a member of the test organization

The added test user can be used for test logins and has the
following credentials:

  - First name: Max
  - Last  name: Mustermann
  - Username  : max.mustermann
  - Password  : max.mustermann
  - E-Mail    : max.mustermann@organization.test
---
 setup/bwlp-02-debugdata.sql | 49 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 setup/bwlp-02-debugdata.sql

(limited to 'setup/bwlp-02-debugdata.sql')

diff --git a/setup/bwlp-02-debugdata.sql b/setup/bwlp-02-debugdata.sql
new file mode 100644
index 0000000..c90d84f
--- /dev/null
+++ b/setup/bwlp-02-debugdata.sql
@@ -0,0 +1,49 @@
+-- phpMyAdmin SQL Dump
+-- version 5.1.0
+-- https://www.phpmyadmin.net/
+--
+-- Host: 192.168.200.11
+-- Generation Time: May 31, 2021 at 01:41 PM
+-- Server version: 10.5.10-MariaDB-1:10.5.10+maria~focal
+-- PHP Version: 7.4.19
+
+SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
+START TRANSACTION;
+SET time_zone = "+00:00";
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8mb4 */;
+
+--
+-- Database: `bwlp`
+--
+USE `bwlp`;
+
+--
+-- Dumping data for table `organization`
+--
+
+INSERT INTO `organization` (`organizationid`, `name`, `authmethod`, `publickey`) VALUES
+('organization.test', 'Test organization', '', '');
+
+--
+-- Dumping data for table `satellite`
+--
+
+INSERT INTO `satellite` (`satelliteid`, `organizationid`, `satellitename`, `addresses`, `certsha256`, `publickey`, `dateline`, `userid`) VALUES
+(1, 'organization.test', 'Test satellite', '[\"192.168.200.20\",\"fd03:4b1d:5707:c8::14\"]', NULL, '', 1622467231, NULL);
+
+--
+-- Dumping data for table `user`
+--
+
+INSERT INTO `user` (`userid`, `shibid`, `password`, `organizationid`, `firstname`, `lastname`, `email`, `fixedname`) VALUES
+('max.mustermann', NULL, '$6$bpFsGGRolpOACdfg$JZZMYGJX/uoOLnTiFnzhvL0oKVFf2WYnqmjsq7mpVMo0ynzEotTGcZEfqMypXeMrL.0Kk30f5C40mssy.ZU8N.', 'organization.test', 'Max', 'Mustermann', 'max.mustermann@organization.test', 0);
+COMMIT;
+
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- 
cgit v1.2.3-55-g7522

