Kaydet (Commit) c6ad86ca authored tarafından mertcelen's avatar mertcelen

Requirements updated

Fix for missing service error in servers.
Signed-off-by: 's avatarmertcelen <mcelen94@gmail.com>
üst 9b717659
APP_NAME=Liman
APP_ENV=local
APP_KEY=base64:pmdymYQB3XC0ExvCZ9zFERFriXai4HIFsF2v3cr74MU=
APP_DEBUG=true
APP_URL=https://liman.dev
APP_NOTIFICATION_EMAIL=mert@liman.dev
APP_VERSION=Development
LOG_CHANNEL=single
LOG_LEVEL=debug
LOG_PATH=/liman/logs/liman.log
LOG_ERROR_PATH=/liman/logs/error.log
DB_CONNECTION=mongodb
DB_HOST=localhost
DB_PORT=27017
DB_DATABASE=liman_tests
DB_USERNAME=
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=array
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=database
SERVER_CONNECTION_TIMEOUT = 5000
SERVER_PATH=/liman/server/
SANDBOX_PATH=/liman/sandbox/
EXTENSIONS_PATH=/liman/extensions/
KEYS_PATH=/liman/keys/
SCRIPTS_PATH=/liman/scripts/
\ No newline at end of file
......@@ -8,7 +8,7 @@ sudo chmod -R o= /liman /home/liman
sudo chown -R liman:liman /liman /home/liman
sudo apt update
sudo apt upgrade -y
sudo apt -y install git apt-transport-https ca-certificates dirmngr python3-pip unzip
sudo apt -y install git apt-transport-https ca-certificates dirmngr python3-pip unzip dnsutils
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y
sudo apt update && sudo apt upgrade -y
......
......@@ -131,6 +131,9 @@
<script>
function checkStatus(service) {
let data = new FormData();
if(!service){
return false;
}
data.append('server_id', '{{$server->_id}}');
data.append('service', service);
request('{{route('server_check')}}', data, function (response) {
......
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$response = $this->get('/');
$response->assertStatus(200);
}
}
<?php
namespace Tests\Feature;
use App\Permission;
use App\User;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class LoginPage extends TestCase
{
/**
* A basic feature test example.
*
* @return void
*/
use RefreshDatabase;
use WithoutMiddleware;
public function testExample()
{
$response = $this->get('/giris');
$response->assertSee('<b>Liman</b>');
$response->assertStatus(200);
$user = User::create([
'name' => "administrator",
'email' => "admin@liman.dev",
'password' => Hash::make(Str::random()),
'status' => "1"
]);
$user->settings = [];
$user->save();
Permission::new($user->_id);
}
public function login(){
}
}
<?php
namespace Tests\Unit;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$this->assertTrue(true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment