Sha256: 824a030c1d3fa9ba453a56f33b13984c144d79a249360e984c4516453f26bf3f

Contents?: true

Size: 552 Bytes

Versions: 12

Compression:

Stored size: 552 Bytes

Contents

require 'aws-sdk'
require_relative '../spec_helper'
require "logstash/filters/cognito-client"

describe LogStash::Filters::Empow::CognitoClient do

  describe "cognito test" do
    skip "test authenticate" do

      aws_region = 'us-east-2'
      aws_client_id = '8dljcvt4jfif762le0ald6j'
      username = 'bad'
      password = 'request'

      client = described_class.new(username, password, aws_region, aws_client_id)

      expect{ client.authenticate }.to raise_error(Aws::CognitoIdentityProvider::Errors::UserNotFoundException)
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
logstash-filter-threats_classifier-1.0.4 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-1.0.2 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-1.0.1 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-1.0.0 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.23 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.21 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.20 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.19 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.18 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.17 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.16 spec/filters/cognito-client_spec.rb
logstash-filter-empowclassifier-0.3.15 spec/filters/cognito-client_spec.rb