Skip to content

Commit

Permalink
Ajustes nos testes para o Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
marlinhares committed Mar 5, 2024
1 parent d87271e commit 95ed4b5
Show file tree
Hide file tree
Showing 49 changed files with 204 additions and 22 deletions.
Empty file modified tests_sei4/funcional/assets/cron.d/sei
100755 → 100644
Empty file.
Empty file modified tests_sei4/funcional/assets/cron.d/sip
100755 → 100644
Empty file.
10 changes: 7 additions & 3 deletions tests_sei4/funcional/env_mysql
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
##### Diretório em que está localizada a instalação do SEI #####
SEI_PATH=../../../../../../
SEI_PATH=~/sei/Fontetmp
ENVIRONMENT_VERSION=9.8

SEI_CONFIG=./assets/config/ConfiguracaoSEI.php
SEI_DATABASE_NAME=sei
SEI_DATABASE_USER=sei_user
SEI_DATABASE_PASSWORD=sei_user
SEI_DATABASE_USER_SCRIPT=sei_user
SEI_DATABASE_PASSWORD_SCRIPT=sei_user

SIP_CONFIG=./assets/config/ConfiguracaoSip.php
SIP_DATABASE_NAME=sip
SIP_DATABASE_USER=sip_user
SIP_DATABASE_PASSWORD=sip_user
SIP_DATABASE_USER_SCRIPT=sip_user
SIP_DATABASE_PASSWORD_SCRIPT=sip_user


############### CONFIGURAÇÕES GERAIS DO ÓRGÃO 01 ###############
Expand All @@ -20,7 +24,7 @@ ORG1_SIGLA_ORGAO=ABC
ORG1_APP_SEI_CHAVE_ACESSO=7babf862e12bd48f3101075c399040303d94a493c7ce9306470f719bb453e0428c6135dc
ORG1_APP_SIP_CHAVE_ACESSO=d27791b894028d9e7fa34887ad6f0c9a2c559cccda5f64f4e108e3573d5db862b66fb933
ORG1_CERTIFICADO=/opt/sei/config/mod-pen/certificado_org1.pem
ORG1_CERTIFICADO_SENHA=XXXXXXXXXXXXXX
ORG1_CERTIFICADO_SENHA=VLnYTwTSXdvU83sS


##### BANCO DE DADOS DO ÓRGÃO 1 #####
Expand All @@ -42,7 +46,7 @@ ORG2_SIGLA_ORGAO=ABC
ORG2_APP_SEI_CHAVE_ACESSO=7babf862e12bd48f3101075c399040303d94a493c7ce9306470f719bb453e0428c6135dc
ORG2_APP_SIP_CHAVE_ACESSO=d27791b894028d9e7fa34887ad6f0c9a2c559cccda5f64f4e108e3573d5db862b66fb933
ORG2_CERTIFICADO=/opt/sei/config/mod-pen/certificado_org2.pem
ORG2_CERTIFICADO_SENHA=XXXXXXXXXXXXXX
ORG2_CERTIFICADO_SENHA=LUisD2wEtpDc6cIj

# Configurações do banco de dados MYSQL do ÓRGÃO 2
ORG2_DATABASE_IMAGE=processoeletronico/vagrant_sei4_mysql
Expand Down
32 changes: 16 additions & 16 deletions tests_sei4/funcional/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- Chaves de configurações gerais do teste do Barramento de Serviços do PEN -->
<const name="PEN_WAIT_TIMEOUT" value="360000" />
<const name="PEN_WAIT_TIMEOUT_ARQUIVOS_GRANDES" value="7200000" />
<const name="PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE" value="10800000" />
<const name="PEN_WAIT_TIMEOUT_PROCESSAMENTO_EM_LOTE" value="360000" />
<const name="PEN_SCRIPT_MONITORAMENTO_ORG1" value=" " />
<const name="PEN_SCRIPT_MONITORAMENTO_ORG2" value=" " />

Expand All @@ -29,22 +29,22 @@
<const name="CONTEXTO_ORGAO_A_URL" value="http://org1-http:8000/sei" />
<const name="CONTEXTO_ORGAO_A_SIGLA_ORGAO" value="ABC" />
<const name="CONTEXTO_ORGAO_A_NUMERO_SEI" value="951" />
<const name="CONTEXTO_ORGAO_A_ID_REP_ESTRUTURAS" value="5" />
<const name="CONTEXTO_ORGAO_A_REP_ESTRUTURAS" value="RE CGPRO" />
<const name="CONTEXTO_ORGAO_A_ID_REP_ESTRUTURAS" value="1" />
<const name="CONTEXTO_ORGAO_A_REP_ESTRUTURAS" value="Poder Executivo Federal" />
<const name="CONTEXTO_ORGAO_A_SIGLA_UNIDADE" value="TESTE" />
<const name="CONTEXTO_ORGAO_A_ID_ESTRUTURA"
value="[INFORME O ID DE ESTRUTURA UTILIZADO PARA TESTE ORG1]" />
value="307" />
<const name="CONTEXTO_ORGAO_A_SIGLA_ESTRUTURA"
value="[INFORME A SIGLA DE ESTRUTURA UTILIZADO PARA TESTE ORG1]" />
<const name="CONTEXTO_ORGAO_A_SIGLA_UNIDADE_HIERARQUIA" value="" />
value="STF" />
<const name="CONTEXTO_ORGAO_A_SIGLA_UNIDADE_HIERARQUIA" value="STF / PJ" />
<const name="CONTEXTO_ORGAO_A_NOME_UNIDADE"
value="[INFORME O NOME DA ESTRUTURA UTILIZADO PARA TESTE ORG1]" />
value="Supremo Tribunal Federal" />
<const name="CONTEXTO_ORGAO_A_SIGLA_UNIDADE_SECUNDARIA" value="TESTE_1_1" />
<const name="CONTEXTO_ORGAO_A_ID_ESTRUTURA_SECUNDARIA"
value="[INFORME O ID DE ESTRUTURA UTILIZADO PARA TESTE ORG 1.11]" />
value="318" />
<const name="CONTEXTO_ORGAO_A_NOME_UNIDADE_SECUNDARIA"
value="[INFORME O NOME DA ESTRUTURA UTILIZADO PARA TESTE ORG 1.1]" />
<const name="CONTEXTO_ORGAO_A_SIGLA_UNIDADE_SECUNDARIA_HIERARQUIA" value="" />
value="Edital" />
<const name="CONTEXTO_ORGAO_A_SIGLA_UNIDADE_SECUNDARIA_HIERARQUIA" value="ED" />
<const name="CONTEXTO_ORGAO_A_USUARIO_LOGIN" value="teste" />
<const name="CONTEXTO_ORGAO_A_USUARIO_SENHA" value="teste" />
<const name="CONTEXTO_ORGAO_A_TIPO_PROCESSO" value="Arrecadação: Cobrança" />
Expand All @@ -71,16 +71,16 @@
<const name="CONTEXTO_ORGAO_B_URL" value="http://org2-http:8000/sei" />
<const name="CONTEXTO_ORGAO_B_SIGLA_ORGAO" value="ABC" />
<const name="CONTEXTO_ORGAO_B_NUMERO_SEI" value="159" />
<const name="CONTEXTO_ORGAO_B_ID_REP_ESTRUTURAS" value="5" />
<const name="CONTEXTO_ORGAO_B_REP_ESTRUTURAS" value="RE CGPRO" />
<const name="CONTEXTO_ORGAO_B_ID_REP_ESTRUTURAS" value="1" />
<const name="CONTEXTO_ORGAO_B_REP_ESTRUTURAS" value="Poder Executivo Federal" />
<const name="CONTEXTO_ORGAO_B_SIGLA_UNIDADE" value="TESTE" />
<const name="CONTEXTO_ORGAO_B_ID_ESTRUTURA"
value="[INFORME O ID DE ESTRUTURA UTILIZADO PARA TESTE ORG 2]" />
value="79116" />
<const name="CONTEXTO_ORGAO_B_SIGLA_ESTRUTURA"
value="[INFORME A SIGLA DE ESTRUTURA UTILIZADO PARA TESTE ORG2]" />
<const name="CONTEXTO_ORGAO_B_SIGLA_UNIDADE_HIERARQUIA" value="" />
value="Prodasen - PRODASEN" />
<const name="CONTEXTO_ORGAO_B_SIGLA_UNIDADE_HIERARQUIA" value="PRODASEN" />
<const name="CONTEXTO_ORGAO_B_NOME_UNIDADE"
value="[INFORME O NOME DA ESTRUTURA UTILIZADO PARA TESTE ORG 2]" />
value="Prodasen" />
<const name="CONTEXTO_ORGAO_B_USUARIO_LOGIN" value="teste" />
<const name="CONTEXTO_ORGAO_B_USUARIO_SENHA" value="teste" />
<const name="CONTEXTO_ORGAO_B_ID_ESTRUTURA_SECUNDARIA" value="XXXXXXXXXXXXXX" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/**
* Testes de mapeamento de tipos de processo e relacionamento entre orgãos
* Desativar e reativar mapeamento entre orgãos
*
* grupos de execucao
* @group rodar_sozinho
*/
class MapeamentoTipoProcessoDesativarReativarTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/**
* Testes de mapeamento de tipos de processo e relacionamento entre orgãos
* Excluir mapeamento entre orgãos
*
* grupos de execucao
* @group rodar_sozinho
*/
class MapeamentoTipoProcessoExcluirTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* Testes de mapeamento de tipos de processo e relacionamento entre orgãos
* Exportar tipos de processos
* Pesquisar tipos de processos
*
* grupos de execucao
* @group rodar_sozinho
*/
class MapeamentoTipoProcessoExportarTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/**
* Testes de mapeamento de tipos de processo reativar
* Reativar tipos de processos
*
* grupos de execucao
* @group rodar_sozinho
*/
class MapeamentoTipoProcessoReativarTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/**
* Testes de mapeamento de tipos de processo e relacionamento entre orgãos
* Cadastro mapeamento de orgãos
*
* grupos de execucao
* @group rodar_sozinho
*/
class MapeamentoTipoProcessoRelacionamentoOrgaosCadastroTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* Testes de mapeamento de tipos de processo e relacionamento entre orgãos
* Listar mapeamento entre orgãos
* Importar tipos de processo para relacionamento
*
* grupos de execucao
* @group rodar_sozinho
*/
class MapeamentoTipoProcessoRelacionamentoOrgaosListagemImportacaoTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

use \utilphp\util;

/*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/

class RecebimentoRecusaJustificativaGrandeTest extends CenarioBaseTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

/**
* Testes de trâmite de processos anexado considerando a devolução do mesmo para a entidade de origem
* grupos de execucao
* @group rodar_paralelo_grupo1
*/
class TramiteProcessoAnexadoComDevolucaoTest extends CenarioBaseTestCase
{
Expand Down
3 changes: 3 additions & 0 deletions tests_sei4/funcional/tests/TramiteProcessoAnexadoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

/**
* Testes de trâmite de processos anexado
*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/
class TramiteProcessoAnexadoTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* Testes de trâmite de processos anexado considerando a devolução do mesmo para a entidade de origem
* grupos de execucao
* @group rodar_paralelo_grupo1
* @group sem_rotina_recebimento
*/
class TramiteProcessoComCancelamentoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/**
* @group rodarseparado
* @group rodarseparado1
* grupos de execucao
* @group rodar_sozinho
* @group rodarseparado
* @group rodarseparado1
*/

class TramiteProcessoComDevolucaoAlteracaoURLTest extends CenarioBaseTestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*
* O resultado esperado é que o novo processo recebido seja criado no remetente e o processo tramitado anteriormente
* seja reaberto, atualizado e anexado ao novo processo recem criado
*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/
class TramiteProcessoComDevolucaoAnexadoOutroTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*
* O resultado esperado é que o processo seja desbloqueado na origem, e o processo anexado seja criado e adicionado
* na posição correta dentro do processo.
*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/
class TramiteProcessoComDevolucaoContendoOutroAnexadoTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/**
*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/
class TramiteProcessoComDevolucaoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/**
*
* grupos de execucao
* @group rodar_sozinho
*/
class TramiteProcessoComDevolucaoUnidadeDiferenteTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/

class TramiteProcessoComDocumentoRestritoHipotesePadraoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/

class TramiteProcessoComDocumentoRestritoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/*
* grupos de execucao
* @group rodar_sozinho
*/

class TramiteProcessoComHistoricoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/**
*
* grupos de execucao
* @group rodar_sozinho
*/
class TramiteProcessoContendoDocumentoBeSimpleCorrompidoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*
* Este mesmo documento deve ser recebido e assinalado com cancelado no destinatário e
* a devolução do mesmo processo não deve ser impactado pela inserção de outros documentos
*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/
class TramiteProcessoContendoDocumentoCanceladoSemTamanhoTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*
* Este mesmo documento deve ser recebido e assinalado com cancelado no destinatário e
* a devolução do mesmo processo não deve ser impactado pela inserção de outros documentos
*
* grupos de execucao
* @group rodar_sozinho
*/
class TramiteProcessoContendoDocumentoCanceladoTest extends CenarioBaseTestCase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/

class TramiteProcessoContendoDocumentoExternoMesmoOrgaoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* @group rodarseparado
* @group rodarseparado2
* @group rodar_sozinho
*/

class TramiteProcessoContendoDocumentoExternoParticionadoTest extends CenarioBaseTestCase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/**
*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/
class TramiteProcessoContendoDocumentoExternoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/

class TramiteProcessoContendoDocumentoGeradoMesmoOrgaoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/

class TramiteProcessoContendoDocumentoGeradoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/*
* grupos de execucao
* @group rodar_paralelo_grupo1
*/

class TramiteProcessoContendoDocumentoInternoExternoTest extends CenarioBaseTestCase
{
public static $remetente;
Expand Down
Loading

0 comments on commit 95ed4b5

Please sign in to comment.