Browse Source

edited assets input files

ignazio-bovo 3 years ago
parent
commit
8ed8116100

+ 7 - 6
tests/network-tests/assets/TestChannel.json

@@ -1,9 +1,10 @@
 {
-  "handle": "Storage node channel",
-  "description": "Storage node channel",
-  "language": { "existing": { "code": "EN" } },
-  "coverPhotoUrl": "",
-  "avatarPhotoUrl": "",
+  "title": "Example Joystream Channel",
+  "description": "This is an awesome example channel!",
   "isPublic": true,
-  "isCensored": false
+  "language": "en",
+  "category": 1,
+  "avatarPhotoPath": "./joystream.png",
+  "coverPhotoPath": "./joystream.png",
+  "rewardAccount": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
 }

+ 14 - 16
tests/network-tests/assets/TestVideo.json

@@ -1,22 +1,20 @@
 {
-  "title": "Storage node test",
-  "description": "Storage node test",
-  "thumbnailUrl": "",
+  "title": "Example Joystream Video",
+  "description": "This is an awesome example video!",
+  "videoPath": "./joystream.MOV",
+  "thumbnailPhotoPath": "./joystream.png",
+  "language": "en",
+  "hasMarketing": false,
   "isPublic": true,
-  "isExplicit": true,
-  "hasMarketing": true,
-  "language": { "existing": { "code": "EN" } },
-  "category": { "existing": { "name": "Entertainment" } },
+  "isExplicit": false,
+  "personsList": [],
+  "category": 1,
   "license": {
-    "new": {
-      "knownLicense": {
-        "existing": { "code": "CC_BY" }
-      }
-    }
+    "code": 1001,
+    "attribution": "by Joystream Contributors"
   },
-  "media": {
-    "new": {
-      "encoding": { "existing": { "name": "H.264_MP4" } }
-    }
+  "publishedBeforeJoystream": {
+    "isPublished": true,
+    "date": "2020-01-01"
   }
 }

BIN
tests/network-tests/assets/joystream.png


+ 6 - 5
tests/network-tests/pre_migration_hook.sh

@@ -4,8 +4,9 @@ set -e
 SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
 cd $SCRIPT_PATH
 
-echo "importing accounts"
-yarn joystream-cli account:import ./test-data/initial-members.json
-echo "creating 1 channel with 1 video in it"
-yarn joystream-cli content:createChannel -i ./assets/TestChannel.json
-yarn joystream-cli content:createChannel -c 0 -i ./assets/TestVideo.json
+#echo "importing accounts"
+#yarn joystream-cli account:import ./test-data/initial-members.json
+echo "creating 1 channel"
+yarn joystream-cli content:createChannel --input=./assets/TestChannel.json --context=Member
+echo "adding 1 video to the above channel"
+yarn joystream-cli content:createVideo -c 0 --input=./assets/TestVideo.json