summaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2013-12-14 16:02:51 +0100
committerJan Dalheimer <jan@dalheimer.de>2013-12-14 16:02:51 +0100
commita02e62f17f7b51c489e209ab6937ad717fbcfb07 (patch)
tree56b99fd6099dfbfdeebc561edc717eb1bcdb3832 /tests/data
parentac2721e954142e534e3acced8a90ef6cf876efa7 (diff)
downloadMultiMC-a02e62f17f7b51c489e209ab6937ad717fbcfb07.tar
MultiMC-a02e62f17f7b51c489e209ab6937ad717fbcfb07.tar.gz
MultiMC-a02e62f17f7b51c489e209ab6937ad717fbcfb07.tar.lz
MultiMC-a02e62f17f7b51c489e209ab6937ad717fbcfb07.tar.xz
MultiMC-a02e62f17f7b51c489e209ab6937ad717fbcfb07.zip
Tests for parsing of channel lists in UpdateChecker
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/channels.json23
-rw-r--r--tests/data/noChannels.json5
-rw-r--r--tests/data/oneChannel.json11
3 files changed, 39 insertions, 0 deletions
diff --git a/tests/data/channels.json b/tests/data/channels.json
new file mode 100644
index 00000000..dd99fd27
--- /dev/null
+++ b/tests/data/channels.json
@@ -0,0 +1,23 @@
+{
+ "format_version": 0,
+ "channels": [
+ {
+ "id": "develop",
+ "name": "Develop",
+ "description": "The channel called \"develop\"",
+ "url": "http://example.org/stuff"
+ },
+ {
+ "id": "stable",
+ "name": "Stable",
+ "description": "It's stable at least",
+ "url": "ftp://username@host/path/to/stuff"
+ },
+ {
+ "id": "42",
+ "name": "The Channel",
+ "description": "This is the channel that is going to answer all of your questions",
+ "url": "https://dent.me/tea"
+ }
+ ]
+}
diff --git a/tests/data/noChannels.json b/tests/data/noChannels.json
new file mode 100644
index 00000000..bbb2cb70
--- /dev/null
+++ b/tests/data/noChannels.json
@@ -0,0 +1,5 @@
+{
+ "format_version": 0,
+ "channels": [
+ ]
+}
diff --git a/tests/data/oneChannel.json b/tests/data/oneChannel.json
new file mode 100644
index 00000000..84727ac7
--- /dev/null
+++ b/tests/data/oneChannel.json
@@ -0,0 +1,11 @@
+{
+ "format_version": 0,
+ "channels": [
+ {
+ "id": "develop",
+ "name": "Develop",
+ "description": "The channel called \"develop\"",
+ "url": "http://example.org/stuff"
+ }
+ ]
+}