We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4934b2 commit a293295Copy full SHA for a293295
spec/all.rb
@@ -37,10 +37,12 @@
37
end
38
39
it "can run mysql query through build in mysql client" do
40
- # TODO: bug revealed - the apt-get install in this, when no volume is attached, already populated the system tables
+ stdout, stderr = @container.exec(['bash', '-c', 'mysql -e "show databases;"'])
41
+ expect(stderr.first).to_not match(/Access denied for user/)
42
- query_result = @container.exec(['bash', '-c', 'mysql -e "show databases;"'])
43
- expect(query_result[1][0]).to_not match(/Access denied for user/)
+ expect(stdout.first).to match(/mysql/)
44
+ expect(stdout.first).to match(/information_schema/)
45
+ expect(stdout.first).to_not match(/test/)
46
47
48
after(:all) do
0 commit comments