Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-05-23 15:12:14 +0300
committerGitHub <noreply@github.com>2019-05-23 15:12:14 +0300
commit9606a8f18071ebc56211434972fe024a819a118c (patch)
tree27af6aa73fb982291020dae6d05d84a71237281a /mcs/class/System.Security
parentd96fa3ab317ec0ebf5fa26d0efab24c3142b8e29 (diff)
[bcl] Remove usages of mono-project.com/go-mono.com/google.com in tests (#14586)
Use example.com and example.org instead. Fixes https://github.com/mono/mono/issues/14585 Note that not all of the things I replaced make an actual network request but I thought it'd be nice to be consistent.
Diffstat (limited to 'mcs/class/System.Security')
-rw-r--r--mcs/class/System.Security/Test/System.Security.Cryptography.Xml/KeyInfoRetrievalMethodTest.cs6
-rw-r--r--mcs/class/System.Security/Test/System.Security.Cryptography.Xml/SignedInfoTest.cs6
-rw-r--r--mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigC14NTransformTest.cs12
-rw-r--r--mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigExcC14NTransformTest.cs12
4 files changed, 18 insertions, 18 deletions
diff --git a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/KeyInfoRetrievalMethodTest.cs b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/KeyInfoRetrievalMethodTest.cs
index 6226486f2fc..23f501af22a 100644
--- a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/KeyInfoRetrievalMethodTest.cs
+++ b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/KeyInfoRetrievalMethodTest.cs
@@ -31,7 +31,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
[Test]
public void TestNewKeyNode ()
{
- string uri = "http://www.go-mono.com/";
+ string uri = "http://www.example.com/";
KeyInfoRetrievalMethod uri1 = new KeyInfoRetrievalMethod ();
uri1.Uri = uri;
XmlElement xel = uri1.GetXml ();
@@ -46,7 +46,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
[Test]
public void TestImportKeyNode ()
{
- string value = "<RetrievalMethod URI=\"http://www.go-mono.com/\" xmlns=\"http://www.w3.org/2000/09/xmldsig#\" />";
+ string value = "<RetrievalMethod URI=\"http://www.example.com/\" xmlns=\"http://www.w3.org/2000/09/xmldsig#\" />";
XmlDocument doc = new XmlDocument ();
doc.LoadXml (value);
@@ -58,7 +58,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
Assert.AreEqual (value, s, "Xml");
// verify that property is parsed correctly
- Assert.AreEqual ("http://www.go-mono.com/", uri1.Uri, "Uri");
+ Assert.AreEqual ("http://www.example.com/", uri1.Uri, "Uri");
}
[Test]
diff --git a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/SignedInfoTest.cs b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/SignedInfoTest.cs
index 604735dad76..fd4eea595b8 100644
--- a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/SignedInfoTest.cs
+++ b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/SignedInfoTest.cs
@@ -51,8 +51,8 @@ namespace MonoTests.System.Security.Cryptography.Xml {
[Test]
public void Properties ()
{
- info.CanonicalizationMethod = "http://www.go-mono.com/";
- Assert.AreEqual ("http://www.go-mono.com/", info.CanonicalizationMethod, "CanonicalizationMethod");
+ info.CanonicalizationMethod = "http://www.example.com/";
+ Assert.AreEqual ("http://www.example.com/", info.CanonicalizationMethod, "CanonicalizationMethod");
info.Id = "Mono::";
Assert.AreEqual ("Mono::", info.Id, "Id");
}
@@ -61,7 +61,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
public void References ()
{
Reference r1 = new Reference ();
- r1.Uri = "http://www.go-mono.com/";
+ r1.Uri = "http://www.example.com/";
r1.AddTransform (new XmlDsigBase64Transform ());
info.AddReference (r1);
Assert.AreEqual (1, info.References.Count, "References.Count 1");
diff --git a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigC14NTransformTest.cs b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigC14NTransformTest.cs
index 0e660e75068..8e30c3861bb 100644
--- a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigC14NTransformTest.cs
+++ b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigC14NTransformTest.cs
@@ -129,15 +129,15 @@ namespace MonoTests.System.Security.Cryptography.Xml {
return sb.ToString ();
}
- static string xml = "<Test attrib='at ' xmlns=\"http://www.go-mono.com/\" > \r\n &#xD; <Toto/> text &amp; </Test >";
+ static string xml = "<Test attrib='at ' xmlns=\"http://www.example.com/\" > \r\n &#xD; <Toto/> text &amp; </Test >";
// BAD for XmlDocument input (framework 1.0 result)
- static string c14xml1 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text &amp; </Test>";
+ static string c14xml1 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text &amp; </Test>";
// GOOD for Stream input
- static string c14xml2 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \n &#xD; <Toto></Toto> text &amp; </Test>";
+ static string c14xml2 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \n &#xD; <Toto></Toto> text &amp; </Test>";
// GOOD for XmlDocument input. The difference is because once
// xml string is loaded to XmlDocument, there is no difference
// between \r and &#xD;, so every \r must be handled as &#xD;.
- static string c14xml3 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> &#xD;\n &#xD; <Toto></Toto> text &amp; </Test>";
+ static string c14xml3 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> &#xD;\n &#xD; <Toto></Toto> text &amp; </Test>";
private XmlDocument GetDoc ()
{
@@ -166,7 +166,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
transform.LoadInput (doc.ChildNodes);
Stream s = (Stream) transform.GetOutput ();
string output = Stream2String (s);
- Assert.AreEqual ("<Test xmlns=\"http://www.go-mono.com/\"></Test>", output, "XmlChildNodes");
+ Assert.AreEqual ("<Test xmlns=\"http://www.example.com/\"></Test>", output, "XmlChildNodes");
}
[Test]
@@ -179,7 +179,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
transform.LoadInput (doc.SelectNodes ("//*"));
Stream s = (Stream) transform.GetOutput ();
string output = Stream2String (s);
- string expected = "<Test xmlns=\"http://www.go-mono.com/\"><Toto></Toto></Test>";
+ string expected = "<Test xmlns=\"http://www.example.com/\"><Toto></Toto></Test>";
Assert.AreEqual (expected, output, "XmlChildNodes");
}
diff --git a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigExcC14NTransformTest.cs b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigExcC14NTransformTest.cs
index 25db0267ad6..6b3c5974289 100644
--- a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigExcC14NTransformTest.cs
+++ b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigExcC14NTransformTest.cs
@@ -223,15 +223,15 @@ namespace MonoTests.System.Security.Cryptography.Xml {
return sb.ToString ();
}
- static string xml = "<Test attrib='at ' xmlns=\"http://www.go-mono.com/\" > \r\n &#xD; <Toto/> text &amp; </Test >";
+ static string xml = "<Test attrib='at ' xmlns=\"http://www.example.com/\" > \r\n &#xD; <Toto/> text &amp; </Test >";
// BAD for XmlDocument input (framework 1.0 result)
- static string c14xml1 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text &amp; </Test>";
+ static string c14xml1 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text &amp; </Test>";
// GOOD for Stream input
- static string c14xml2 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \n &#xD; <Toto></Toto> text &amp; </Test>";
+ static string c14xml2 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \n &#xD; <Toto></Toto> text &amp; </Test>";
// GOOD for XmlDocument input. The difference is because once
// xml string is loaded to XmlDocument, there is no difference
// between \r and &#xD;, so every \r must be handled as &#xD;.
- static string c14xml3 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> &#xD;\n &#xD; <Toto></Toto> text &amp; </Test>";
+ static string c14xml3 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> &#xD;\n &#xD; <Toto></Toto> text &amp; </Test>";
private XmlDocument GetDoc ()
{
@@ -260,7 +260,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
transform.LoadInput (doc.ChildNodes);
Stream s = (Stream) transform.GetOutput ();
string output = Stream2String (s);
- Assert.AreEqual ("<Test xmlns=\"http://www.go-mono.com/\"></Test>", output, "XmlChildNodes");
+ Assert.AreEqual ("<Test xmlns=\"http://www.example.com/\"></Test>", output, "XmlChildNodes");
}
[Test]
@@ -273,7 +273,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
transform.LoadInput (doc.SelectNodes ("//*"));
Stream s = (Stream) transform.GetOutput ();
string output = Stream2String (s);
- string expected = "<Test xmlns=\"http://www.go-mono.com/\"><Toto></Toto></Test>";
+ string expected = "<Test xmlns=\"http://www.example.com/\"><Toto></Toto></Test>";
Assert.AreEqual (expected, output, "XmlChildNodes");
}