Sha256: 13c532e1e97cab5b5881830b548c6bc3ce90c2276eb8f38d2da78657d5b6d643
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
require 'helper' class MissingApiKeyTest < Fastly::TestCase include CommonTests def setup # missing API key @opts = login_opts(:full) begin @client = Fastly::Client.new(@opts) @fastly = Fastly.new(@opts) rescue Exception => e pp e exit(-1) end end def test_purging service_name = "fastly-test-service-#{random_string}" service = @fastly.create_service(:name => service_name) assert_raises Fastly::AuthRequired do service.purge_by_key('somekey') end ensure @fastly.delete_service(service) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastly-1.1.5 | test/missing_api_key_test.rb |