diff --git a/bin/console b/bin/console deleted file mode 100644 index 8d7a343..0000000 --- a/bin/console +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require "bundler/setup" -require "autodiscover" - -# You can add fixtures and/or initialization code here to make experimenting -# with your gem easier. You can also use a different console, if you like. - -require "irb" -IRB.start(__FILE__) diff --git a/bin/setup b/bin/setup deleted file mode 100644 index dce67d8..0000000 --- a/bin/setup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' -set -vx - -bundle install - -# Do any other automated setup that you need to do here diff --git a/lib/autodiscover/client.rb b/lib/autodiscover/client.rb new file mode 100644 index 0000000..fc32d65 --- /dev/null +++ b/lib/autodiscover/client.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class Client +end diff --git a/lib/autodiscover/debug.rb b/lib/autodiscover/debug.rb new file mode 100644 index 0000000..07e8df1 --- /dev/null +++ b/lib/autodiscover/debug.rb @@ -0,0 +1,2 @@ +# frozen_string_literal: true + diff --git a/lib/autodiscover/errors.rb b/lib/autodiscover/errors.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/autodiscover/pox_request.rb b/lib/autodiscover/pox_request.rb new file mode 100644 index 0000000..213fc98 --- /dev/null +++ b/lib/autodiscover/pox_request.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +module PoxRequest +end diff --git a/lib/autodiscover/pox_response.rb b/lib/autodiscover/pox_response.rb new file mode 100644 index 0000000..98a5a91 --- /dev/null +++ b/lib/autodiscover/pox_response.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class PoxResponse +end diff --git a/lib/autodiscover/server_version_parser.rb b/lib/autodiscover/server_version_parser.rb new file mode 100644 index 0000000..b70c619 --- /dev/null +++ b/lib/autodiscover/server_version_parser.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class ServerVersionParser +end diff --git a/sig/autodiscover.rbs b/sig/autodiscover.rbs deleted file mode 100644 index 1edc19c..0000000 --- a/sig/autodiscover.rbs +++ /dev/null @@ -1,4 +0,0 @@ -module Autodiscover - VERSION: String - # See the writing guide of rbs: https://github.com/ruby/rbs#guides -end diff --git a/test/fixtures/pox_response.xml b/test/fixtures/pox_response.xml new file mode 100644 index 0000000..0315d60 --- /dev/null +++ b/test/fixtures/pox_response.xml @@ -0,0 +1,93 @@ + + + + + Bill Lumbergh + /o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=asdfasdfasdfasdfasdfadf-Bill Lumb + blumbergh@initech.local + 33333333-3333-3333-3333-3333333333333 + + + email + settings + True + + EXCH + 22222222-2222-2222-2222-222222222222@initech.local + /o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=22222222-2222-2222-2222-222222222222@initech.local + 73C1809A + /o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=22222222-2222-2222-2222-222222222222@initech.local/cn=Microsoft Private MDB + outlook.office365.com + Anonymous + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/ecp/ + ?rfr=olk&p=customize/voicemail.aspx&exsvurl=1&realm=initech.local + ?rfr=olk&p=personalsettings/EmailSubscriptions.slab&exsvurl=1&realm=initech.local + PersonalSettings/DeliveryReport.aspx?rfr=olk&exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx>&realm=initech.local + ?rfr=olk&p=organize/retentionpolicytags.slab&exsvurl=1&realm=initech.local + ?rfr=olk&p=sms/textmessaging.slab&exsvurl=1&realm=initech.local + customize/calendarpublishing.slab?rfr=olk&exsvurl=1&FldID=<FldID>&realm=initech.local + PersonalSettings/EditAccount.aspx?rfr=olk&chgPhoto=1&exsvurl=1&realm=initech.local + Connect/Main.aspx?rfr=olk&exsvurl=1&Provider=<Provider>&Action=<Action>&realm=initech.local + ?rfr=olk&ftr=TeamMailbox&exsvurl=1&realm=initech.local + ?rfr=olk&ftr=TeamMailboxCreating&SPUrl=<SPUrl>&Title=<Title>&SPTMAppUrl=<SPTMAppUrl>&exsvurl=1&realm=initech.local + ?rfr=olk&ftr=TeamMailboxEditing&Id=<Id>&exsvurl=1&realm=initech.local + Extension/InstalledExtensions.slab?rfr=olk&exsvurl=1&realm=initech.local + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/UM2007Legacy.asmx + https://outlook.office365.com/OAB/99999999-9999-9999-9999-999999999999/ + off + + + EXPR + outlook.office365.com + On + Basic + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/ecp/ + ?rfr=olk&p=customize/voicemail.aspx&exsvurl=1&realm=initech.local + ?rfr=olk&p=personalsettings/EmailSubscriptions.slab&exsvurl=1&realm=initech.local + PersonalSettings/DeliveryReport.aspx?rfr=olk&exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx>&realm=initech.local + ?rfr=olk&p=organize/retentionpolicytags.slab&exsvurl=1&realm=initech.local + ?rfr=olk&p=sms/textmessaging.slab&exsvurl=1&realm=initech.local + customize/calendarpublishing.slab?rfr=olk&exsvurl=1&FldID=<FldID>&realm=initech.local + PersonalSettings/EditAccount.aspx?rfr=olk&chgPhoto=1&exsvurl=1&realm=initech.local + Connect/Main.aspx?rfr=olk&exsvurl=1&Provider=<Provider>&Action=<Action>&realm=initech.local + ?rfr=olk&ftr=TeamMailbox&exsvurl=1&realm=initech.local + ?rfr=olk&ftr=TeamMailboxCreating&SPUrl=<SPUrl>&Title=<Title>&SPTMAppUrl=<SPTMAppUrl>&exsvurl=1&realm=initech.local + ?rfr=olk&ftr=TeamMailboxEditing&Id=<Id>&exsvurl=1&realm=initech.local + Extension/InstalledExtensions.slab?rfr=olk&exsvurl=1&realm=initech.local + https://outlook.office365.com/EWS/Exchange.asmx + https://outlook.office365.com/EWS/UM2007Legacy.asmx + https://outlook.office365.com/OAB/99999999-9999-9999-9999-999999999999/ + on + msstd:outlook.com + https://outlook.office365.com/EWS/Exchange.asmx + ZC4PR14 + + + WEB + + https://outlook.office365.com/owa/ + + EXCH + https://outlook.office365.com/EWS/Exchange.asmx + + + + https://outlook.office365.com/owa/initech.local/ + + EXPR + https://outlook.office365.com/EWS/Exchange.asmx + + + + + + \ No newline at end of file diff --git a/test/test_autodiscover.rb b/test/test_autodiscover.rb deleted file mode 100644 index 89912a6..0000000 --- a/test/test_autodiscover.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -class TestAutodiscover < Minitest::Test - def test_that_it_has_a_version_number - refute_nil ::Autodiscover::VERSION - end - - def test_it_does_something_useful - assert false - end -end diff --git a/test/units/client_test.rb b/test/units/client_test.rb new file mode 100644 index 0000000..48836ea --- /dev/null +++ b/test/units/client_test.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +require 'minitest/autorun' + +class ClientTest < Minitest::Test + def setup + # Do nothing + end + + def teardown + # Do nothing + end + + def test + skip 'Not implemented' + end +end diff --git a/test/units/pox_request_test.rb b/test/units/pox_request_test.rb new file mode 100644 index 0000000..6ccae63 --- /dev/null +++ b/test/units/pox_request_test.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class PoxRequestTest +end diff --git a/test/units/pox_response_test.rb b/test/units/pox_response_test.rb new file mode 100644 index 0000000..bde15c9 --- /dev/null +++ b/test/units/pox_response_test.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +require 'minitest/autorun' + +class PoxResponseTest < Minitest::Test + def setup + # Do nothing + end + + def teardown + # Do nothing + end + + def test + skip 'Not implemented' + end +end diff --git a/test/units/server_version_parser_test.rb b/test/units/server_version_parser_test.rb new file mode 100644 index 0000000..1d50ecf --- /dev/null +++ b/test/units/server_version_parser_test.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +require 'minitest/autorun' + +class ServerVersionParserTest < Minitest::Test + def setup + # Do nothing + end + + def teardown + # Do nothing + end + + def test + skip 'Not implemented' + end +end