diff --git a/INSTALL.md b/INSTALL.md index e475e29..1d9282e 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,4 +1,4 @@ -**Inštalačná príručka popisuje komponent verzie [3.7.1](https://github.com/slovensko-digital/slovensko-sk-api/releases/tag/v3.7.1), uistite sa, že čítate príručku [verzie komponentu](https://github.com/slovensko-digital/slovensko-sk-api/releases), ktorý používate.** +**Inštalačná príručka popisuje komponent verzie [3.7.2](https://github.com/slovensko-digital/slovensko-sk-api/releases/tag/v3.7.2), uistite sa, že čítate príručku [verzie komponentu](https://github.com/slovensko-digital/slovensko-sk-api/releases), ktorý používate.** # slovensko.sk API - Inštalačná príručka diff --git a/app/controllers/health_controller.rb b/app/controllers/health_controller.rb index 8b5ac00..b676c0f 100644 --- a/app/controllers/health_controller.rb +++ b/app/controllers/health_controller.rb @@ -10,7 +10,7 @@ def index status = :ok health = { description: 'slovensko.sk API', - version: '3.7.1', + version: '3.7.2', status: 'pass', checks: { 'environment:variables' => environment_variables, diff --git a/app/services/edesk_message_parser.rb b/app/services/edesk_message_parser.rb index 97674ef..a0a1af1 100644 --- a/app/services/edesk_message_parser.rb +++ b/app/services/edesk_message_parser.rb @@ -6,8 +6,8 @@ def parse(edesk_message) m.id = edesk_message.id_message m.klass = edesk_message.clazz.value - m.message_id = edesk_message.message_id.value - m.correlation_id = edesk_message.correlation_id.value + m.message_id = edesk_message.message_id.value&.downcase + m.correlation_id = edesk_message.correlation_id.value&.downcase m.subject = edesk_message.title.value m.original_html = self.class.parse_original_html(edesk_message.body.value) m.original_xml = edesk_message.sk_talk.value @@ -83,9 +83,9 @@ def build_message_from_message_info(d, m) when 'PospVersion' m.posp_version = e.content.presence when 'MessageID' - raise ParseError if e.content != m.message_id + raise ParseError if e.content&.downcase != m.message_id when 'CorrelationID' - raise ParseError if e.content != m.correlation_id + raise ParseError if e.content&.downcase != m.correlation_id when 'ReferenceID' m.reference_id = e.content.presence when 'BusinessID' @@ -117,7 +117,7 @@ def build_message_from_message_container(d, m) d.children.each do |e| case e.name when 'MessageId' - raise ParseError if e.content != m.message_id + raise ParseError if e.content&.downcase != m.message_id when 'SenderId' m.sender_uri = e.content when 'RecipientId' @@ -210,7 +210,7 @@ def build_delivery_notification_consignment_from_consignment(d, n) d.children.each do |e| case e.name when 'MessageID' - c.message_id = e.content + c.message_id = e.content&.downcase when 'MessageSubject' c.message_subject = e.content when 'MessageType' diff --git a/public/openapi.yaml b/public/openapi.yaml index aa2b63a..100a8ec 100644 --- a/public/openapi.yaml +++ b/public/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: slovensko.sk API - version: 3.7.1 (Komunitná verzia) 8.8.1 (Prémium verzia) + version: 3.7.2 (Komunitná verzia) 8.8.2 (Prémium verzia) description: | slovensko.sk API je proxy REST API komponent k službám www.slovensko.sk (Ústredný portál verejnej správy – ÚPVS), pomocou ktorých je možné: diff --git a/spec/fixtures/eks/get_message/class/egov_document_response_case_insensitive_message_id.xml b/spec/fixtures/eks/get_message/class/egov_document_response_case_insensitive_message_id.xml new file mode 100644 index 0000000..cbeb25d --- /dev/null +++ b/spec/fixtures/eks/get_message/class/egov_document_response_case_insensitive_message_id.xml @@ -0,0 +1,327 @@ + + + + &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;&lt;html&gt;&lt;head&gt;&lt;META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-16&quot;&gt;&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=8&quot;&gt;&lt;title&gt;Všeobecn&#225; agenda - rozhodnutie do vlastn&#253;ch r&#250;k s fikciou doručenia&lt;/title&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;&lt;meta name=&quot;language&quot; content=&quot;sk-SK&quot;&gt;&lt;style type=&quot;text/css&quot;&gt; +body { + font-family: &#39;Open Sans&#39;, &#39;Segoe UI&#39;, &#39;Trebuchet MS&#39;, &#39;Geneva CE&#39;, lucida, sans-serif; + background : #ffffff !important ; +} +.ui-tabs { + padding: .2em; + position: relative; + zoom: 1; +} +.clear { clear: both; height: 0;} +.layoutMain { + margin: 0px auto; + padding: 5px 5px 5px 5px; +} +.layoutRow { margin-bottom: 5px; } +.caption { /*width: 100%; border-bottom: solid 1px black;*/ } +.nocaption &gt; .caption { border: 0px !important; } +.nocaption &gt; .caption span { + background: none !important; + display: none; +} +.caption .title { padding-left: 5px; } +.headercorrection { + margin: 0px; + font-size : 1em; + font-weight: bold; +} +.labelVis { + float: left; + font-weight: bold; + font-family: &#39;Open Sans&#39;, &#39;Segoe UI&#39;, &#39;Trebuchet MS&#39;, &#39;Geneva CE&#39;, lucida, sans-serif; + line-height: 25px; + margin: 0px 18px 0px 0px; + padding-left: 3px; + width: 190px; + word-wrap: break-word; + font-size: 0.8em; +} +.contentVis { + float: left; + line-height: 25px; + margin: 0px; + padding: 0px; + vertical-align: top; + font-size: 0.75em; +} +.wordwrap { + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word; +} +.ui-widget-content { + background : 50% 50% repeat-x #ffffff; + border : #d4d4d4 solid 2px; + color : #4f4e4e; + border-radius : 3px; +} +.ui-widget-header { + cursor : pointer; + font-size : 0.8em; + color : #494949; + padding-left : 2px; + border : #eae9e8 solid 1px; + background-color : #eae9e8; + margin-bottom: 3px; + border-radius : 3px; +} +&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;div id=&quot;main&quot; class=&quot;layoutMain&quot;&gt;&lt;div class=&quot;layoutRow ui-tabs ui-widget-content&quot;&gt;&lt;div class=&quot;caption ui-widget-header&quot;&gt;&lt;div class=&quot;headercorrection&quot;&gt;Všeobecn&#225; agenda - rozhodnutie do vlastn&#253;ch r&#250;k s fikciou doručenia&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;label class=&quot;labelVis&quot;&gt;Predmet: &lt;/label&gt;&lt;span class=&quot;contentVis wordwrap&quot;&gt;test1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;clear&quot;&gt;&#160;&lt;/div&gt;&lt;div&gt;&lt;label class=&quot;labelVis&quot;&gt;Text: &lt;/label&gt;&lt;span class=&quot;contentVis wordwrap&quot;&gt;test&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;clear&quot;&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt; + EGOV_DOCUMENT + 8a6a31c1-0d54-46c8-aac1-12465162b913 + 2017-03-22T11:49:43.357 + 4898662475 + 7acc32dd-1586-4103-8634-ba0707820e2e + <SKTalkMessage xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://gov.sk/SKTalkMessage"> + <EnvelopeVersion>3.0</EnvelopeVersion> + <Header> + <MessageInfo> + <Class>EGOV_DOCUMENT</Class> + <PospID>Doc.GeneralAgendaFiction</PospID> + <PospVersion>1.5</PospVersion> + <MessageID>7acc32dd-1586-4103-8634-ba0707820e2e</MessageID> + <CorrelationID>8a6a31c1-0d54-46c8-aac1-12465162b913</CorrelationID> + <ReferenceID>00000000-0000-0000-0000-000000000000</ReferenceID> + <ChannelInfo /> + <ChannelInfoReply /> + </MessageInfo> + <SenderInfo> + <SecurityMethod>SAML2</SecurityMethod> + <SecurityToken> + <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:x500="urn:oasis:names:tc:SAML:2.0:profiles:attribute:X500" ID="id-hg7ZybnYBD4HlUjZBgJ5idM78H0-" IssueInstant="2017-03-17T09:52:08Z" Version="2.0"> + <saml:Issuer>idp:sts.upvsfix.gov.sk</saml:Issuer> + <dsig:Signature> + <dsig:SignedInfo> + <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> + <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> + <dsig:Reference URI="#id-hg7ZybnYBD4HlUjZBgJ5idM78H0-"> + <dsig:Transforms> + <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /> + <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> + <dsig:DigestValue>ybnSYzSXXO+h9m9gX5SUqE+/Uxo=</dsig:DigestValue> + </dsig:Reference> + </dsig:SignedInfo> + <dsig:SignatureValue>gLp5he6PCou9a3ijgYQkGeIg9ch4ZV9h2kCPOJl2umMBovrV4sxFtL3N8KQ0NyiSyhEbx52ZfWgsf0s7md8AF6fnBtz0oRJKrjFw4xbewqGaP5WX4BKFSAUXC1hdCSuOAiNuF2igsQ96llu31xwo1sCmFle9uDQD1dCCH0A77/w=</dsig:SignatureValue> + <dsig:KeyInfo> + <dsig:X509Data> + <dsig:X509Certificate>MIIB8DCCAVmgAwIBAgIBCjANBgkqhkiG9w0BAQQFADAdMRswGQYDVQQDExJpYW0xLnVwdnNmaXgubG9jYWwwHhcNMTMwNjEyMDYxMzQwWhcNMjMwNjEwMDYxMzQwWjAdMRswGQYDVQQDExJpYW0xLnVwdnNmaXgubG9jYWwwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL4tgBWlI5hlaRD1pYxC6gi9fPhCLzbofKJxTnfgZMrTSDh7VTdh3LvnvbdO9RzfKDjyM6IuSrUJ792yfSvmVokt435DfjLVcgS6YtuEwjapf6mvPWW+Rcix510tJzByo2OnWpEit/8AJ2AQKIPSf9pNyk/r8BImkudPdeGB3tVZAgMBAAGjQDA+MAwGA1UdEwEB/wQCMAAwDwYDVR0PAQH/BAUDAwfYADAdBgNVHQ4EFgQU7xHOPfuetdBr1R0KePkN6d8MQE4wDQYJKoZIhvcNAQEEBQADgYEAR9YrG2ZuK6TjQL19wwkpbgLWV2Au8PavMLdyHSKd0yI8T4cOtLpTCzyIdLg0qTvjO2wSZ2k8/9XUWUzR9MObyfjdZbkgJl+Hedx0ZvDiLHt1OibODAM6anc7KVn1JmYIaFqJoY0sOV8TbR90IPa18t6FTN9LzDe0UPanrPOY00Y=</dsig:X509Certificate> + </dsig:X509Data> + </dsig:KeyInfo> + </dsig:Signature> + <saml:Subject> + <saml:NameID Format="" NameQualifier="UpvsFederatedIdentification">E0000000145</saml:NameID> + <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer" /> + </saml:Subject> + <saml:Conditions NotBefore="2017-03-17T09:52:08Z" NotOnOrAfter="2017-03-17T11:52:08Z" /> + <saml:AuthnStatement AuthnInstant="2017-03-17T09:50:00Z" SessionNotOnOrAfter="2017-03-17T10:10:00Z"> + <saml:AuthnContext> + <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef> + </saml:AuthnContext> + </saml:AuthnStatement> + <saml:AttributeStatement> + <saml:Attribute Name="Actor.LastName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Skutočný1145</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="DelegationType" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">0</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.IdentityType" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">1</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="DerivedFromID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string" /> + </saml:Attribute> + <saml:Attribute Name="Actor.FirstName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Emil</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="SubjectIDSector" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">SECTOR_UPVS</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.FormattedName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Národná agentúra pre sieťové a elektronické služby: Test --12345678901234567890123456789012345678901234567890123456789012345678901234567890</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.eDeskStatus" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">DELIVERABLE</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.UPVSIdentityID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">3E1D5187-AD58-4A31-B011-CD91156A5595</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="QAALevel" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">1</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="AssertionType" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">OBO</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="SubjectID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">ico://sk/42156424_90000</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.eDeskRemoteURI" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string" /> + </saml:Attribute> + <saml:Attribute Name="ActorID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">rc://sk/7001011145_skutocny1145_emil</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.IdentityType" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">6</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.UPVSIdentityID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">DE240E27-CE92-40D3-805B-1B9432021E7E</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.PCO" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">2100071216</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Roles" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_UPVS_IAM_SVC_REVOKEROLEFROMIDENTITY</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_ENOTIFY_EMERGENCY_ALLOWED</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_PK_INFOCONTENT_GESTOR</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_ED_CAN_REQUEST_LOGIN_INFO</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_EFORM_GESTOR</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_SLUZBA_CEP</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_IAM_OCVTK</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_EDEMOKRACIA_EDEM_USER</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_DELEGATION_GESTOR</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_EKOLKY_SUPERVIZOR</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_TECHFORM_IAM_REGISTRATOR_IOM</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_IAM_GESTOR_OJ</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_IAM_IDENTITY_STATUS_CHANGE</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_MDURZ_READER</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_IAM_DELIVERY_EXCEPTION_CHANGE</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_IAM_OVM</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_OID_USER_ACTIVATED</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_EKOLKY_POKLADNIK</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_EFORM_NOTIFY_GESTOR</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_IAM_PROFILE_NOT_CHANGED_YET</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_CEP_SIGN_DOCUMENT</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_CUET_PUBLISHER</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_ENOTIFY_ALLOWED</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_EDESK_VPI</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_MDURZ_WRITER</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_AUTH_RES_LOGINPASSWORD</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_EKOLKY_REFERENT</saml:AttributeValue> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">R_IAM_EGOV</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.FirstName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Národná agentúra pre sieťové a elektronické služby: Test --12345678901234567890123456789012345678901234567890123456789012345678901234567890</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.FormattedName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Emil Skutočný1145</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.REIdentityId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">822</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.PCO" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string" /> + </saml:Attribute> + <saml:Attribute Name="Subject.PreferredLanguage" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">SK</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.LastName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Národná agentúra pre sieťové a elektronické služby: Test --12345678901234567890123456789012345678901234567890123456789012345678901234567890</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.REIdentityId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">5007595</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.PreferredLanguage" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">SK</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="ActorIDSector" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">SECTOR_UPVS</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.Email" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">bla@globaltel.sk</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Subject.eDeskNumber" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">E0005006660</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.Username" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">E0000000145</saml:AttributeValue> + </saml:Attribute> + <saml:Attribute Name="Actor.Email" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> + <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string" /> + </saml:Attribute> + </saml:AttributeStatement> + </saml:Assertion> + </SecurityToken> + <Identity> + <Assertions xmlns="http://gov.sk/Iam/SamlAssertions"> + <ActorID>rc://sk/7001011145_skutocny1145_emil</ActorID> + <Actor.UPVSIdentityID>3E1D5187-AD58-4A31-B011-CD91156A5595</Actor.UPVSIdentityID> + <ActorIDSector>SECTOR_UPVS</ActorIDSector> + <Actor.Email /> + <Actor.FormattedName>Emil Skutočný1145</Actor.FormattedName> + <Actor.IdentityType>Person</Actor.IdentityType> + <Actor.REIdentityId>822</Actor.REIdentityId> + <Actor.Username>E0000000145</Actor.Username> + <SubjectID>ico://sk/42156424_90000</SubjectID> + <Subject.UPVSIdentityID>DE240E27-CE92-40D3-805B-1B9432021E7E</Subject.UPVSIdentityID> + <SubjectIDSector>SECTOR_UPVS</SubjectIDSector> + <Subject.Email>bla@globaltel.sk</Subject.Email> + <Subject.FormattedName>Národná agentúra pre sieťové a elektronické služby: Test --12345678901234567890123456789012345678901234567890123456789012345678901234567890</Subject.FormattedName> + <Subject.IdentityType>PublicAdministration</Subject.IdentityType> + <Subject.REIdentityId>5007595</Subject.REIdentityId> + <Subject.eDeskNumber>E0005006660</Subject.eDeskNumber> + <Subject.eDeskRemoteURI /> + <QAAlevel>1_NameAndPassword</QAAlevel> + <DelegationType>RepresentationByLaw</DelegationType> + <Roles> + <Role>R_UPVS_IAM_SVC_REVOKEROLEFROMIDENTITY</Role> + <Role>R_ENOTIFY_EMERGENCY_ALLOWED</Role> + <Role>R_PK_INFOCONTENT_GESTOR</Role> + <Role>R_ED_CAN_REQUEST_LOGIN_INFO</Role> + <Role>R_EFORM_GESTOR</Role> + <Role>R_SLUZBA_CEP</Role> + <Role>R_IAM_OCVTK</Role> + <Role>R_EDEMOKRACIA_EDEM_USER</Role> + <Role>R_DELEGATION_GESTOR</Role> + <Role>R_EKOLKY_SUPERVIZOR</Role> + <Role>R_TECHFORM_IAM_REGISTRATOR_IOM</Role> + <Role>R_IAM_GESTOR_OJ</Role> + <Role>R_IAM_IDENTITY_STATUS_CHANGE</Role> + <Role>R_MDURZ_READER</Role> + <Role>R_IAM_DELIVERY_EXCEPTION_CHANGE</Role> + <Role>R_IAM_OVM</Role> + <Role>R_OID_USER_ACTIVATED</Role> + <Role>R_EKOLKY_POKLADNIK</Role> + <Role>R_EFORM_NOTIFY_GESTOR</Role> + <Role>R_IAM_PROFILE_NOT_CHANGED_YET</Role> + <Role>R_CEP_SIGN_DOCUMENT</Role> + <Role>R_CUET_PUBLISHER</Role> + <Role>R_ENOTIFY_ALLOWED</Role> + <Role>R_EDESK_VPI</Role> + <Role>R_MDURZ_WRITER</Role> + <Role>R_AUTH_RES_LOGINPASSWORD</Role> + <Role>R_EKOLKY_REFERENT</Role> + <Role>R_IAM_EGOV</Role> + </Roles> + </Assertions> + </Identity> + </SenderInfo> + </Header> + <Body> + <MessageContainer xmlns="http://schemas.gov.sk/core/MessageContainer/1.0"> + <MessageId>7ACC32DD-1586-4103-8634-BA0707820E2E</MessageId> + <SenderId>ico://sk/42156424_90000</SenderId> + <RecipientId>ico://sk/83110656</RecipientId> + <MessageType>Doc.GeneralAgendaFiction</MessageType> + <MessageSubject>Všeobecná agenda - rozhodnutie do vlastných rúk s fikciou doručenia</MessageSubject> + <SenderBusinessReference /> + <RecipientBusinessReference /> + <Object Id="a8529890-258c-4be8-8a71-28a66e523730" Name="Všeobecná agenda - Všeobecná agenda - rozhodnutie do vlastných rúk s fikciou doručenia" Description="" Class="FORM" IsSigned="false" MimeType="application/x-eform-xml" Encoding="XML"> + <GeneralAgenda xmlns="http://schemas.gov.sk/form/Doc.GeneralAgendaFiction/1.5"> + <subject>test1</subject> + <text>test</text> + </GeneralAgenda> + </Object> + </MessageContainer> + </Body> +</SKTalkMessage> + Všeobecná agenda - rozhodnutie do vlastných rúk s fikciou doručenia + + diff --git a/spec/requests/health_spec.rb b/spec/requests/health_spec.rb index d9474a3..06ecef6 100644 --- a/spec/requests/health_spec.rb +++ b/spec/requests/health_spec.rb @@ -71,7 +71,7 @@ def expect_fail(checks) expect(response.status).to eq(200) expect(response.object.with_indifferent_access).to match( description: 'slovensko.sk API', - version: '3.7.1', + version: '3.7.2', status: 'pass', checks: hash_including(*checks), links: {