Skip to content
Snippets Groups Projects
Commit 260f0d60 authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

fix: adapting some tests to the current version of the Comptoir software (2)

parent a0049fce
No related branches found
No related tags found
1 merge request!2Resolve "use PDK 3.2.0 and Ruby 3.2.0"
Pipeline #76434 passed
...@@ -39,6 +39,10 @@ describe 'comptoir' do ...@@ -39,6 +39,10 @@ describe 'comptoir' do
its(:stdout) { is_expected.to match %r{HOME PAGE} } # Fixme its(:stdout) { is_expected.to match %r{HOME PAGE} } # Fixme
end end
# describe command('curl http://127.0.0.1') do
# its(:stdout) { is_expected.to match %r{v0.10.0} }
# end
describe command('curl --head http://127.0.0.1/health-check') do describe command('curl --head http://127.0.0.1/health-check') do
its(:stdout) { is_expected.to match %r{x-comptoir-name-fixme-database-status: DB_CONNECTION_SUCCESSFUL} } # Fixme its(:stdout) { is_expected.to match %r{x-comptoir-name-fixme-database-status: DB_CONNECTION_SUCCESSFUL} } # Fixme
end end
...@@ -149,9 +153,13 @@ describe 'comptoir' do ...@@ -149,9 +153,13 @@ describe 'comptoir' do
end end
describe command('curl http://127.0.0.1') do describe command('curl http://127.0.0.1') do
its(:stdout) { is_expected.not_to match %r{HOME PAGE} } # Fixme its(:stdout) { is_expected.to match %r{HOME PAGE} } # Fixme
end end
# describe command('curl http://127.0.0.1') do
# its(:stdout) { is_expected.to match %r{v0.10.0} }
# end
describe command('curl --head http://127.0.0.1/health-check') do describe command('curl --head http://127.0.0.1/health-check') do
its(:stdout) { is_expected.to match %r{x-comptoir-name-fixme-database-status: DB_CONNECTION_SUCCESSFUL} } # Fixme its(:stdout) { is_expected.to match %r{x-comptoir-name-fixme-database-status: DB_CONNECTION_SUCCESSFUL} } # Fixme
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment