[squeak-dev] The Trunk: SqueakSSL-Tests-pre.20.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Aug 15 21:22:55 UTC 2016


Patrick Rein uploaded a new version of SqueakSSL-Tests to project The Trunk:
http://source.squeak.org/trunk/SqueakSSL-Tests-pre.20.mcz

==================== Summary ====================

Name: SqueakSSL-Tests-pre.20
Author: pre
Time: 15 August 2016, 11:22:51.609656 pm
UUID: 0d02ceb1-b791-bc49-bba6-4b3e3809a8d1
Ancestors: SqueakSSL-Tests-topa.19

Declares facebook test to require an internet connection

=============== Diff against SqueakSSL-Tests-topa.19 ===============

Item was changed:
  ----- Method: SqueakSSLTest>>testFaceBookAPI (in category 'tests') -----
  testFaceBookAPI
  	"Facebook sends incomplete data during SSL handshake. 
  	Useful for testing an edge condition in SqueakSSL."
  
+ 	self ensureInternetConnectionTo: 'http://www.facebook.com'.
+ 
  	Smalltalk at: #WebClient ifPresent:[:webClient|
  		self shouldnt:[
  			[webClient httpGet: 'https://graph.facebook.com/oauth/access_token']
  				"Allow certificate errors on the Mac since cert validation isn't
  				implemented yet."
  				on: SqueakSSLCertificateError do:[:ex|
  					SqueakSSL platformName = 'Mac OS'
  						ifTrue:[ex resume]
  						ifFalse:[ex pass]].
  		] raise: Error.
  	]..
  !



More information about the Squeak-dev mailing list