Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: criar criticas para impedir desativar ou excluir na administracao do modulo pen #462

Conversation

marvdias
Copy link
Contributor

Rebase do PR#431 para a release/3.6.0

Closes #153

@sergioadao
Copy link

@marvdias ....bom dia.....Rodei o teste

make teste=CriticasDesativarExcluirUnidadeTipoProcDocTest test-functional

ESSSSS 6 / 6 (100%)

Time: 273 ms, Memory: 12.00 MB

There was 1 error:

  1. CriticasDesativarExcluirUnidadeTipoProcDocTest::test_desativar_tipo_processo
    Data too long for column 'sigla_unidade_rh' at row 1

OBS: No arquivo phpunit.xml tenho apenas setado as variáveis abaixo:

**<const name="CONTEXTO_ORGAO_A_ID_ESTRUTURA"
  value="154401" />**
<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="" />
**<const name="CONTEXTO_ORGAO_A_NOME_UNIDADE"
  value="CGPRO_SERGIO_ORG1" />**

**<const name="CONTEXTO_ORGAO_B_ID_ESTRUTURA"
  value="154402" />**
<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="" />
**<const name="CONTEXTO_ORGAO_B_NOME_UNIDADE"
  value="CGPRO_SERGIO_ORG2" />**

@sergioadao
Copy link

@marvdias e @mateussbh ....teste funcional OK....segue evidência:

toor@tesla:~/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-4.0.12.15/src/sei/web/modulos/mod-sei-pen$ make teste=CriticasDesativarExcluirUnidadeTipoProcDocTest test-functional
docker-compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env up -d
funcional_org2-database_1 is up-to-date
funcional_org1-memcached_1 is up-to-date
funcional_smtp_1 is up-to-date
funcional_org2-memcached_1 is up-to-date
funcional_org1-database_1 is up-to-date
Starting funcional_php-test-unit_1 ...
funcional_org2-http_1 is up-to-date
funcional_org1-http_1 is up-to-date
funcional_proxy_1 is up-to-date
Starting funcional_php-test-unit_1 ... done
Starting funcional_php-test-functional_1 ... done
docker-compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install'
Creating funcional_php-test-functional_run ... done
Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead.
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Generating autoload files
26 packages you are using are looking for funding.
Use the composer fund command to find out more!
docker-compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/CriticasDesativarExcluirUnidadeTipoProcDocTest.php ;
Creating funcional_php-test-functional_run ... done
Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
PHPUnit 8.5.35 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4
Configuration: /tests/phpunit.xml

.
..... 6 / 6 (100%)

Time: 1.69 minutes, Memory: 14.00 MB

OK (6 tests, 6 assertions)

@caduvieira caduvieira deleted the branch pengovbr:release/3.6.0 April 11, 2024 17:53
@caduvieira caduvieira closed this Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants