Added files
This commit is contained in:
parent
83d506bf90
commit
61c006118a
15 changed files with 166 additions and 36 deletions
11
bin/console
11
bin/console
|
@ -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__)
|
|
@ -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
|
4
lib/autodiscover/client.rb
Normal file
4
lib/autodiscover/client.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Client
|
||||
end
|
2
lib/autodiscover/debug.rb
Normal file
2
lib/autodiscover/debug.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
# frozen_string_literal: true
|
||||
|
0
lib/autodiscover/errors.rb
Normal file
0
lib/autodiscover/errors.rb
Normal file
4
lib/autodiscover/pox_request.rb
Normal file
4
lib/autodiscover/pox_request.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module PoxRequest
|
||||
end
|
4
lib/autodiscover/pox_response.rb
Normal file
4
lib/autodiscover/pox_response.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class PoxResponse
|
||||
end
|
4
lib/autodiscover/server_version_parser.rb
Normal file
4
lib/autodiscover/server_version_parser.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ServerVersionParser
|
||||
end
|
|
@ -1,4 +0,0 @@
|
|||
module Autodiscover
|
||||
VERSION: String
|
||||
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
|
||||
end
|
93
test/fixtures/pox_response.xml
vendored
Normal file
93
test/fixtures/pox_response.xml
vendored
Normal file
|
@ -0,0 +1,93 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
|
||||
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
|
||||
<User>
|
||||
<DisplayName>Bill Lumbergh</DisplayName>
|
||||
<LegacyDN>/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=asdfasdfasdfasdfasdfadf-Bill Lumb</LegacyDN>
|
||||
<AutoDiscoverSMTPAddress>blumbergh@initech.local</AutoDiscoverSMTPAddress>
|
||||
<DeploymentId>33333333-3333-3333-3333-3333333333333</DeploymentId>
|
||||
</User>
|
||||
<Account>
|
||||
<AccountType>email</AccountType>
|
||||
<Action>settings</Action>
|
||||
<MicrosoftOnline>True</MicrosoftOnline>
|
||||
<Protocol>
|
||||
<Type>EXCH</Type>
|
||||
<Server>22222222-2222-2222-2222-222222222222@initech.local</Server>
|
||||
<ServerDN>/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=22222222-2222-2222-2222-222222222222@initech.local</ServerDN>
|
||||
<ServerVersion>73C1809A</ServerVersion>
|
||||
<MdbDN>/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=22222222-2222-2222-2222-222222222222@initech.local/cn=Microsoft Private MDB</MdbDN>
|
||||
<PublicFolderServer>outlook.office365.com</PublicFolderServer>
|
||||
<AuthPackage>Anonymous</AuthPackage>
|
||||
<ASUrl>https://outlook.office365.com/EWS/Exchange.asmx</ASUrl>
|
||||
<EwsUrl>https://outlook.office365.com/EWS/Exchange.asmx</EwsUrl>
|
||||
<EmwsUrl>https://outlook.office365.com/EWS/Exchange.asmx</EmwsUrl>
|
||||
<SharingUrl>https://outlook.office365.com/EWS/Exchange.asmx</SharingUrl>
|
||||
<EcpUrl>https://outlook.office365.com/ecp/</EcpUrl>
|
||||
<EcpUrl-um>?rfr=olk&p=customize/voicemail.aspx&exsvurl=1&realm=initech.local</EcpUrl-um>
|
||||
<EcpUrl-aggr>?rfr=olk&p=personalsettings/EmailSubscriptions.slab&exsvurl=1&realm=initech.local</EcpUrl-aggr>
|
||||
<EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?rfr=olk&exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx>&realm=initech.local</EcpUrl-mt>
|
||||
<EcpUrl-ret>?rfr=olk&p=organize/retentionpolicytags.slab&exsvurl=1&realm=initech.local</EcpUrl-ret>
|
||||
<EcpUrl-sms>?rfr=olk&p=sms/textmessaging.slab&exsvurl=1&realm=initech.local</EcpUrl-sms>
|
||||
<EcpUrl-publish>customize/calendarpublishing.slab?rfr=olk&exsvurl=1&FldID=<FldID>&realm=initech.local</EcpUrl-publish>
|
||||
<EcpUrl-photo>PersonalSettings/EditAccount.aspx?rfr=olk&chgPhoto=1&exsvurl=1&realm=initech.local</EcpUrl-photo>
|
||||
<EcpUrl-connect>Connect/Main.aspx?rfr=olk&exsvurl=1&Provider=<Provider>&Action=<Action>&realm=initech.local</EcpUrl-connect>
|
||||
<EcpUrl-tm>?rfr=olk&ftr=TeamMailbox&exsvurl=1&realm=initech.local</EcpUrl-tm>
|
||||
<EcpUrl-tmCreating>?rfr=olk&ftr=TeamMailboxCreating&SPUrl=<SPUrl>&Title=<Title>&SPTMAppUrl=<SPTMAppUrl>&exsvurl=1&realm=initech.local</EcpUrl-tmCreating>
|
||||
<EcpUrl-tmEditing>?rfr=olk&ftr=TeamMailboxEditing&Id=<Id>&exsvurl=1&realm=initech.local</EcpUrl-tmEditing>
|
||||
<EcpUrl-extinstall>Extension/InstalledExtensions.slab?rfr=olk&exsvurl=1&realm=initech.local</EcpUrl-extinstall>
|
||||
<OOFUrl>https://outlook.office365.com/EWS/Exchange.asmx</OOFUrl>
|
||||
<UMUrl>https://outlook.office365.com/EWS/UM2007Legacy.asmx</UMUrl>
|
||||
<OABUrl>https://outlook.office365.com/OAB/99999999-9999-9999-9999-999999999999/</OABUrl>
|
||||
<ServerExclusiveConnect>off</ServerExclusiveConnect>
|
||||
</Protocol>
|
||||
<Protocol>
|
||||
<Type>EXPR</Type>
|
||||
<Server>outlook.office365.com</Server>
|
||||
<SSL>On</SSL>
|
||||
<AuthPackage>Basic</AuthPackage>
|
||||
<ASUrl>https://outlook.office365.com/EWS/Exchange.asmx</ASUrl>
|
||||
<EwsUrl>https://outlook.office365.com/EWS/Exchange.asmx</EwsUrl>
|
||||
<EmwsUrl>https://outlook.office365.com/EWS/Exchange.asmx</EmwsUrl>
|
||||
<SharingUrl>https://outlook.office365.com/EWS/Exchange.asmx</SharingUrl>
|
||||
<EcpUrl>https://outlook.office365.com/ecp/</EcpUrl>
|
||||
<EcpUrl-um>?rfr=olk&p=customize/voicemail.aspx&exsvurl=1&realm=initech.local</EcpUrl-um>
|
||||
<EcpUrl-aggr>?rfr=olk&p=personalsettings/EmailSubscriptions.slab&exsvurl=1&realm=initech.local</EcpUrl-aggr>
|
||||
<EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?rfr=olk&exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx>&realm=initech.local</EcpUrl-mt>
|
||||
<EcpUrl-ret>?rfr=olk&p=organize/retentionpolicytags.slab&exsvurl=1&realm=initech.local</EcpUrl-ret>
|
||||
<EcpUrl-sms>?rfr=olk&p=sms/textmessaging.slab&exsvurl=1&realm=initech.local</EcpUrl-sms>
|
||||
<EcpUrl-publish>customize/calendarpublishing.slab?rfr=olk&exsvurl=1&FldID=<FldID>&realm=initech.local</EcpUrl-publish>
|
||||
<EcpUrl-photo>PersonalSettings/EditAccount.aspx?rfr=olk&chgPhoto=1&exsvurl=1&realm=initech.local</EcpUrl-photo>
|
||||
<EcpUrl-connect>Connect/Main.aspx?rfr=olk&exsvurl=1&Provider=<Provider>&Action=<Action>&realm=initech.local</EcpUrl-connect>
|
||||
<EcpUrl-tm>?rfr=olk&ftr=TeamMailbox&exsvurl=1&realm=initech.local</EcpUrl-tm>
|
||||
<EcpUrl-tmCreating>?rfr=olk&ftr=TeamMailboxCreating&SPUrl=<SPUrl>&Title=<Title>&SPTMAppUrl=<SPTMAppUrl>&exsvurl=1&realm=initech.local</EcpUrl-tmCreating>
|
||||
<EcpUrl-tmEditing>?rfr=olk&ftr=TeamMailboxEditing&Id=<Id>&exsvurl=1&realm=initech.local</EcpUrl-tmEditing>
|
||||
<EcpUrl-extinstall>Extension/InstalledExtensions.slab?rfr=olk&exsvurl=1&realm=initech.local</EcpUrl-extinstall>
|
||||
<OOFUrl>https://outlook.office365.com/EWS/Exchange.asmx</OOFUrl>
|
||||
<UMUrl>https://outlook.office365.com/EWS/UM2007Legacy.asmx</UMUrl>
|
||||
<OABUrl>https://outlook.office365.com/OAB/99999999-9999-9999-9999-999999999999/</OABUrl>
|
||||
<ServerExclusiveConnect>on</ServerExclusiveConnect>
|
||||
<CertPrincipalName>msstd:outlook.com</CertPrincipalName>
|
||||
<EwsPartnerUrl>https://outlook.office365.com/EWS/Exchange.asmx</EwsPartnerUrl>
|
||||
<GroupingInformation>ZC4PR14</GroupingInformation>
|
||||
</Protocol>
|
||||
<Protocol>
|
||||
<Type>WEB</Type>
|
||||
<Internal>
|
||||
<OWAUrl AuthenticationMethod="LiveIdFba, OAuth">https://outlook.office365.com/owa/</OWAUrl>
|
||||
<Protocol>
|
||||
<Type>EXCH</Type>
|
||||
<ASUrl>https://outlook.office365.com/EWS/Exchange.asmx</ASUrl>
|
||||
</Protocol>
|
||||
</Internal>
|
||||
<External>
|
||||
<OWAUrl AuthenticationMethod="Fba">https://outlook.office365.com/owa/initech.local/</OWAUrl>
|
||||
<Protocol>
|
||||
<Type>EXPR</Type>
|
||||
<ASUrl>https://outlook.office365.com/EWS/Exchange.asmx</ASUrl>
|
||||
</Protocol>
|
||||
</External>
|
||||
</Protocol>
|
||||
</Account>
|
||||
</Response>
|
||||
</Autodiscover>
|
|
@ -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
|
17
test/units/client_test.rb
Normal file
17
test/units/client_test.rb
Normal file
|
@ -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
|
4
test/units/pox_request_test.rb
Normal file
4
test/units/pox_request_test.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class PoxRequestTest
|
||||
end
|
17
test/units/pox_response_test.rb
Normal file
17
test/units/pox_response_test.rb
Normal file
|
@ -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
|
17
test/units/server_version_parser_test.rb
Normal file
17
test/units/server_version_parser_test.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue