@@ -1137,7 +1137,7 @@ testAllowConnectionClientRestart ps@(t, ASType qsType _) = do
11371137testInviationShortLink :: HasCallStack => Bool -> AgentClient -> AgentClient -> IO ()
11381138testInviationShortLink viaProxy a b =
11391139 withAgent 3 agentCfg initAgentServers testDB3 $ \ c -> do
1140- let userData = " some user data"
1140+ let userData = UserLinkData " some user data"
11411141 (bId, (CCLink connReq (Just shortLink), Nothing )) <- runRight $ A. createConnection a 1 True SCMInvitation (Just userData) Nothing CR. IKUsePQ SMSubscribe
11421142 (connReq', connData') <- runRight $ getConnShortLink b 1 shortLink
11431143 strDecode (strEncode shortLink) `shouldBe` Right shortLink
@@ -1171,14 +1171,14 @@ testJoinConn_ viaProxy sndSecure a bId b connReq = do
11711171
11721172testInviationShortLinkPrev :: HasCallStack => Bool -> Bool -> AgentClient -> AgentClient -> IO ()
11731173testInviationShortLinkPrev viaProxy sndSecure a b = runRight_ $ do
1174- let userData = " some user data"
1174+ let userData = UserLinkData " some user data"
11751175 -- can't create short link with previous version
11761176 (bId, (CCLink connReq Nothing , Nothing )) <- A. createConnection a 1 True SCMInvitation (Just userData) Nothing CR. IKPQOn SMSubscribe
11771177 testJoinConn_ viaProxy sndSecure a bId b connReq
11781178
11791179testInviationShortLinkAsync :: HasCallStack => Bool -> AgentClient -> AgentClient -> IO ()
11801180testInviationShortLinkAsync viaProxy a b = do
1181- let userData = " some user data"
1181+ let userData = UserLinkData " some user data"
11821182 (bId, (CCLink connReq (Just shortLink), Nothing )) <- runRight $ A. createConnection a 1 True SCMInvitation (Just userData) Nothing CR. IKUsePQ SMSubscribe
11831183 (connReq', connData') <- runRight $ getConnShortLink b 1 shortLink
11841184 strDecode (strEncode shortLink) `shouldBe` Right shortLink
@@ -1197,7 +1197,7 @@ testInviationShortLinkAsync viaProxy a b = do
11971197testContactShortLink :: HasCallStack => Bool -> AgentClient -> AgentClient -> IO ()
11981198testContactShortLink viaProxy a b =
11991199 withAgent 3 agentCfg initAgentServers testDB3 $ \ c -> do
1200- let userData = " some user data"
1200+ let userData = UserLinkData " some user data"
12011201 (contactId, (CCLink connReq0 (Just shortLink), Nothing )) <- runRight $ A. createConnection a 1 True SCMContact (Just userData) Nothing CR. IKPQOn SMSubscribe
12021202 Right connReq <- pure $ smpDecode (smpEncode connReq0)
12031203 (connReq', connData') <- runRight $ getConnShortLink b 1 shortLink
@@ -1226,7 +1226,7 @@ testContactShortLink viaProxy a b =
12261226 get b ##> (" " , aId, CON )
12271227 exchangeGreetingsViaProxy viaProxy a bId b aId
12281228 -- update user data
1229- let updatedData = " updated user data"
1229+ let updatedData = UserLinkData " updated user data"
12301230 shortLink' <- runRight $ setConnShortLink a contactId SCMContact updatedData Nothing
12311231 shortLink' `shouldBe` shortLink
12321232 (connReq4, updatedConnData') <- runRight $ getConnShortLink c 1 shortLink
@@ -1245,7 +1245,7 @@ testAddContactShortLink viaProxy a b =
12451245 withAgent 3 agentCfg initAgentServers testDB3 $ \ c -> do
12461246 (contactId, (CCLink connReq0 Nothing , Nothing )) <- runRight $ A. createConnection a 1 True SCMContact Nothing Nothing CR. IKPQOn SMSubscribe
12471247 Right connReq <- pure $ smpDecode (smpEncode connReq0) --
1248- let userData = " some user data"
1248+ let userData = UserLinkData " some user data"
12491249 shortLink <- runRight $ setConnShortLink a contactId SCMContact userData Nothing
12501250 (connReq', connData') <- runRight $ getConnShortLink b 1 shortLink
12511251 strDecode (strEncode shortLink) `shouldBe` Right shortLink
@@ -1273,7 +1273,7 @@ testAddContactShortLink viaProxy a b =
12731273 get b ##> (" " , aId, CON )
12741274 exchangeGreetingsViaProxy viaProxy a bId b aId
12751275 -- update user data
1276- let updatedData = " updated user data"
1276+ let updatedData = UserLinkData " updated user data"
12771277 shortLink' <- runRight $ setConnShortLink a contactId SCMContact updatedData Nothing
12781278 shortLink' `shouldBe` shortLink
12791279 (connReq4, updatedConnData') <- runRight $ getConnShortLink c 1 shortLink
@@ -1282,7 +1282,7 @@ testAddContactShortLink viaProxy a b =
12821282
12831283testInviationShortLinkRestart :: HasCallStack => (ASrvTransport , AStoreType ) -> IO ()
12841284testInviationShortLinkRestart ps = withAgentClients2 $ \ a b -> do
1285- let userData = " some user data"
1285+ let userData = UserLinkData " some user data"
12861286 (bId, (CCLink connReq (Just shortLink), Nothing )) <- withSmpServer ps $
12871287 runRight $ A. createConnection a 1 True SCMInvitation (Just userData) Nothing CR. IKUsePQ SMOnlyCreate
12881288 withSmpServer ps $ do
@@ -1294,11 +1294,11 @@ testInviationShortLinkRestart ps = withAgentClients2 $ \a b -> do
12941294
12951295testContactShortLinkRestart :: HasCallStack => (ASrvTransport , AStoreType ) -> IO ()
12961296testContactShortLinkRestart ps = withAgentClients2 $ \ a b -> do
1297- let userData = " some user data"
1297+ let userData = UserLinkData " some user data"
12981298 (contactId, (CCLink connReq0 (Just shortLink), Nothing )) <- withSmpServer ps $
12991299 runRight $ A. createConnection a 1 True SCMContact (Just userData) Nothing CR. IKPQOn SMOnlyCreate
13001300 Right connReq <- pure $ smpDecode (smpEncode connReq0)
1301- let updatedData = " updated user data"
1301+ let updatedData = UserLinkData " updated user data"
13021302 withSmpServer ps $ do
13031303 (connReq', connData') <- runRight $ getConnShortLink b 1 shortLink
13041304 strDecode (strEncode shortLink) `shouldBe` Right shortLink
@@ -1314,12 +1314,12 @@ testContactShortLinkRestart ps = withAgentClients2 $ \a b -> do
13141314
13151315testAddContactShortLinkRestart :: HasCallStack => (ASrvTransport , AStoreType ) -> IO ()
13161316testAddContactShortLinkRestart ps = withAgentClients2 $ \ a b -> do
1317- let userData = " some user data"
1317+ let userData = UserLinkData " some user data"
13181318 ((contactId, (CCLink connReq0 Nothing , Nothing )), shortLink) <- withSmpServer ps $ runRight $ do
13191319 r@ (contactId, _) <- A. createConnection a 1 True SCMContact Nothing Nothing CR. IKPQOn SMOnlyCreate
13201320 (r,) <$> setConnShortLink a contactId SCMContact userData Nothing
13211321 Right connReq <- pure $ smpDecode (smpEncode connReq0)
1322- let updatedData = " updated user data"
1322+ let updatedData = UserLinkData " updated user data"
13231323 withSmpServer ps $ do
13241324 (connReq', connData') <- runRight $ getConnShortLink b 1 shortLink
13251325 strDecode (strEncode shortLink) `shouldBe` Right shortLink
@@ -1355,14 +1355,14 @@ testOldContactQueueShortLink ps@(_, msType) = withAgentClients2 $ \a b -> do
13551355 _ -> pure ()
13561356
13571357 withSmpServer ps $ do
1358- let userData = " some user data"
1358+ let userData = UserLinkData " some user data"
13591359 shortLink <- runRight $ setConnShortLink a contactId SCMContact userData Nothing
13601360 (connReq', connData') <- runRight $ getConnShortLink b 1 shortLink
13611361 strDecode (strEncode shortLink) `shouldBe` Right shortLink
13621362 connReq' `shouldBe` connReq
13631363 linkUserData connData' `shouldBe` userData
13641364 -- update user data
1365- let updatedData = " updated user data"
1365+ let updatedData = UserLinkData " updated user data"
13661366 shortLink' <- runRight $ setConnShortLink a contactId SCMContact updatedData Nothing
13671367 shortLink' `shouldBe` shortLink
13681368 -- check updated
0 commit comments