mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
use non-existing urls
This commit is contained in:
@@ -209,7 +209,7 @@ class FeedIT extends BaseIT {
|
|||||||
String expextedOpml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<opml version=\"1.0\">\n" + " <head>\n"
|
String expextedOpml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<opml version=\"1.0\">\n" + " <head>\n"
|
||||||
+ " <title>admin subscriptions in CommaFeed</title>\n" + " </head>\n" + " <body>\n"
|
+ " <title>admin subscriptions in CommaFeed</title>\n" + " </head>\n" + " <body>\n"
|
||||||
+ " <outline text=\"out1\" title=\"out1\">\n"
|
+ " <outline text=\"out1\" title=\"out1\">\n"
|
||||||
+ " <outline text=\"feed1\" type=\"rss\" title=\"feed1\" xmlUrl=\"http://www.feed.com/feed1.xml\" />\n"
|
+ " <outline text=\"feed1\" type=\"rss\" title=\"feed1\" xmlUrl=\"https://hostname.local/commafeed/feed1.xml\" />\n"
|
||||||
+ " </outline>\n" + " </body>\n" + "</opml>\n";
|
+ " </outline>\n" + " </body>\n" + "</opml>\n";
|
||||||
Assertions.assertEquals(StringUtils.normalizeSpace(expextedOpml), StringUtils.normalizeSpace(opml));
|
Assertions.assertEquals(StringUtils.normalizeSpace(expextedOpml), StringUtils.normalizeSpace(opml));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class NextUnreadIT extends BaseIT {
|
|||||||
.header(HttpHeaders.COOKIE, "JSESSIONID=" + cookie)
|
.header(HttpHeaders.COOKIE, "JSESSIONID=" + cookie)
|
||||||
.get();
|
.get();
|
||||||
Assertions.assertEquals(HttpStatus.FOUND_302, response.getStatus());
|
Assertions.assertEquals(HttpStatus.FOUND_302, response.getStatus());
|
||||||
Assertions.assertEquals("https://www.commafeed.com/2", response.getHeaderString(HttpHeaders.LOCATION));
|
Assertions.assertEquals("https://hostname.local/commafeed/2", response.getHeaderString(HttpHeaders.LOCATION));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,16 +2,16 @@
|
|||||||
<rss version="2.0">
|
<rss version="2.0">
|
||||||
<channel>
|
<channel>
|
||||||
<title>CommaFeed test feed</title>
|
<title>CommaFeed test feed</title>
|
||||||
<link>https://www.commafeed.com</link>
|
<link>https://hostname.local/commafeed</link>
|
||||||
<description>CommaFeed test feed description</description>
|
<description>CommaFeed test feed description</description>
|
||||||
<item>
|
<item>
|
||||||
<title>Item 1</title>
|
<title>Item 1</title>
|
||||||
<link>https://www.commafeed.com/1</link>
|
<link>https://hostname.local/commafeed/1</link>
|
||||||
<description>Item 1 description</description>
|
<description>Item 1 description</description>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<title>Item 2</title>
|
<title>Item 2</title>
|
||||||
<link>https://www.commafeed.com/2</link>
|
<link>https://hostname.local/commafeed/2</link>
|
||||||
<description>Item 2 description</description>
|
<description>Item 2 description</description>
|
||||||
</item>
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<outline text="out1" title="out1">
|
<outline text="out1" title="out1">
|
||||||
<outline type="rss" text="feed1" title="feed1" xmlUrl="http://www.feed.com/feed1.xml" htmlUrl="http://www.feed.com" />
|
<outline type="rss" text="feed1" title="feed1" xmlUrl="https://hostname.local/commafeed/feed1.xml"
|
||||||
|
htmlUrl="https://hostname.local/commafeed" />
|
||||||
</outline>
|
</outline>
|
||||||
</body>
|
</body>
|
||||||
</opml>
|
</opml>
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<outline text="out1" title="out1">
|
<outline text="out1" title="out1">
|
||||||
<outline type="rss" text="feed1" title="feed1" xmlUrl="http://www.feed.com/feed1.xml" htmlUrl="http://www.feed.com" />
|
<outline type="rss" text="feed1" title="feed1" xmlUrl="https://hostname.local/commafeed/feed1.xml"
|
||||||
|
htmlUrl="https://hostname.local/commafeed" />
|
||||||
</outline>
|
</outline>
|
||||||
</body>
|
</body>
|
||||||
</opml>
|
</opml>
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<outline text="out1" title="out1">
|
<outline text="out1" title="out1">
|
||||||
<outline type="rss" text="feed1" title="feed1" xmlUrl="http://www.feed.com/feed1.xml" htmlUrl="http://www.feed.com" />
|
<outline type="rss" text="feed1" title="feed1" xmlUrl="https://hostname.local/commafeed/feed1.xml"
|
||||||
|
htmlUrl="https://hostname.local/commafeed" />
|
||||||
</outline>
|
</outline>
|
||||||
</body>
|
</body>
|
||||||
</opml>
|
</opml>
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<outline text="out1" title="out1">
|
<outline text="out1" title="out1">
|
||||||
<outline type="rss" text="feed1" title="feed1" xmlUrl="http://www.feed.com/feed1.xml" htmlUrl="http://www.feed.com" />
|
<outline type="rss" text="feed1" title="feed1" xmlUrl="https://hostname.local/commafeed/feed1.xml"
|
||||||
|
htmlUrl="https://hostname.local/commafeed" />
|
||||||
</outline>
|
</outline>
|
||||||
</body>
|
</body>
|
||||||
</opml>
|
</opml>
|
||||||
|
|||||||
Reference in New Issue
Block a user