fix(SitemapSubscriber): Corrige génération URL absolue
This commit is contained in:
@@ -100,7 +100,7 @@ deploy_application:
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
script:
|
||||
- echo "Starting deployment stage..."
|
||||
- ssh bot@35.204.191.160 "cd /var/www/mainframe/app && nohup sh ./update.sh"
|
||||
- ssh bot@35.204.191.160 "cd /var/www/mainframe/app && git pull && nohup sh ./update.sh"
|
||||
- echo "Application deployed successfully."
|
||||
needs:
|
||||
- analyse_code # Ce job dépend maintenant du job 'analyse_code'
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller\Artemis;
|
||||
|
||||
use App\Attribute\Mainframe;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class SecurityController extends AbstractController
|
||||
{
|
||||
#[Route(path: '/artemis',name: 'login',methods: 'GET')]
|
||||
#[Mainframe(index: false,sitemap: false,sitemapPage: null)]
|
||||
public function index(): JsonResponse
|
||||
{
|
||||
return$this->json([]);
|
||||
}
|
||||
}
|
||||
@@ -5,13 +5,14 @@ namespace App\Controller;
|
||||
use App\Attribute\Mainframe;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class HomeController extends AbstractController
|
||||
{
|
||||
|
||||
#[Route(path: '/',name: 'root',methods: 'GET')]
|
||||
public function index(): JsonResponse
|
||||
public function index(): Response
|
||||
{
|
||||
return$this->json([]);
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Controller\Artemis;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class SecurityControllerTest extends WebTestCase
|
||||
{
|
||||
public function testLogin(): void
|
||||
{
|
||||
$client = static::createClient();
|
||||
|
||||
// Request a specific page
|
||||
$crawler = $client->request('GET', '/artemis');
|
||||
|
||||
// Validate a successful response and some content
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertResponseHeaderSame('Content-Type', 'application/json');
|
||||
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,6 @@ class HomeControllerTest extends WebTestCase
|
||||
|
||||
// Validate a successful response and some content
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertResponseHeaderSame('Content-Type', 'application/json');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user