blob: 46a0b0eb65a5008c3a9aec0ed74a570767a20824 [file] [log] [blame]
Matteo Scandolo8a31ee22015-10-27 16:41:47 +01001/* eslint-disable key-spacing, no-unused-vars */
Matteo Scandoloba3b12a2015-10-23 17:45:45 +02002
3var CPmock = {
Matteo Scandolo0fe4c3e2015-10-23 18:37:05 +02004 CPlist: [
Matteo Scandoloba3b12a2015-10-23 17:45:45 +02005 {
6 'humanReadableName':'on_lab_content',
7 'validators':{
8 'updated':[
9
10 ],
11 'policed':[
12
13 ],
14 'name':[
15 'notBlank'
16 ],
17 'created':[
18
19 ],
20 'deleted':[
21
22 ],
23 'serviceProvider':[
24 'notBlank'
25 ],
26 'description':[
27
28 ],
29 'enabled':[
30
31 ],
32 'lazy_blocked':[
33
34 ],
35 'backend_register':[
36 'notBlank'
37 ],
38 'write_protect':[
39
40 ],
41 'content_provider_id':[
42
43 ],
44 'backend_status':[
45 'notBlank'
46 ],
47 'id':[
48
49 ],
50 'no_sync':[
51
52 ],
53 'enacted':[
54
55 ]
56 },
57 'id':1,
58 'created':'2015-10-22T19:33:55.078Z',
59 'updated':'2015-10-22T19:33:55.078Z',
60 'enacted':null,
61 'policed':null,
62 'backend_register':'{}',
63 'backend_status':'0 - Provisioning in progress',
64 'deleted':false,
65 'write_protect':false,
66 'lazy_blocked':false,
67 'no_sync':false,
68 'content_provider_id':null,
69 'name':'on_lab_content',
70 'enabled':true,
71 'description':null,
Matteo Scandolo8a31ee22015-10-27 16:41:47 +010072 users: [2],
Matteo Scandoloba3b12a2015-10-23 17:45:45 +020073 'serviceProvider':'http://0.0.0.0:9000/hpcapi/serviceproviders/1/'
74 },
75 {
76 'humanReadableName':'test',
77 'validators':{
78 'updated':[
79
80 ],
81 'policed':[
82
83 ],
84 'name':[
85 'notBlank'
86 ],
87 'created':[
88
89 ],
90 'deleted':[
91
92 ],
93 'serviceProvider':[
94 'notBlank'
95 ],
96 'description':[
97
98 ],
99 'enabled':[
100
101 ],
102 'lazy_blocked':[
103
104 ],
105 'backend_register':[
106 'notBlank'
107 ],
108 'write_protect':[
109
110 ],
111 'content_provider_id':[
112
113 ],
114 'backend_status':[
115 'notBlank'
116 ],
117 'id':[
118
119 ],
120 'no_sync':[
121
122 ],
123 'enacted':[
124
125 ]
126 },
127 'id':2,
128 'created':'2015-10-23T10:50:37.482Z',
129 'updated':'2015-10-23T10:52:56.232Z',
130 'enacted':null,
131 'policed':null,
132 'backend_register':'{}',
133 'backend_status':'0 - Provisioning in progress',
134 'deleted':false,
135 'write_protect':false,
136 'lazy_blocked':false,
137 'no_sync':false,
138 'content_provider_id':null,
139 'name':'test',
140 'enabled':true,
141 'description':'',
142 'serviceProvider':'http://0.0.0.0:9000/hpcapi/serviceproviders/1/'
143 }
Matteo Scandolo0fe4c3e2015-10-23 18:37:05 +0200144 ],
145 SPlist: [
146 {
147 'humanReadableName':'main_service_provider',
148 'validators':{
149 'updated':[
150
151 ],
152 'policed':[
153
154 ],
155 'name':[
156 'notBlank'
157 ],
158 'created':[
159
160 ],
161 'deleted':[
162
163 ],
164 'hpcService':[
165 'notBlank'
166 ],
167 'description':[
168
169 ],
170 'enabled':[
171
172 ],
173 'service_provider_id':[
174
175 ],
176 'lazy_blocked':[
177
178 ],
179 'backend_register':[
180 'notBlank'
181 ],
182 'write_protect':[
183
184 ],
185 'backend_status':[
186 'notBlank'
187 ],
188 'id':[
189
190 ],
191 'no_sync':[
192
193 ],
194 'enacted':[
195
196 ]
197 },
198 'id':1,
199 'created':'2015-10-22T19:33:55.048Z',
200 'updated':'2015-10-22T19:33:55.048Z',
201 'enacted':null,
202 'policed':null,
203 'backend_register':'{}',
204 'backend_status':'0 - Provisioning in progress',
205 'deleted':false,
206 'write_protect':false,
207 'lazy_blocked':false,
208 'no_sync':false,
209 'hpcService':'http://0.0.0.0:9000/hpcapi/hpcservices/1/',
210 'service_provider_id':null,
211 'name':'main_service_provider',
212 'description':null,
213 'enabled':true
214 }
Matteo Scandolobb3c0132015-10-26 16:17:48 +0100215 ],
216 CDNlist: [
217 {
218 'humanReadableName':'onlab.vicci.org',
219 'validators':{
220 'updated':[
221
222 ],
223 'contentProvider':[
224 'notBlank'
225 ],
226 'policed':[
227
228 ],
229 'created':[
230
231 ],
232 'deleted':[
233
234 ],
235 'description':[
236
237 ],
238 'enabled':[
239
240 ],
241 'cdn_prefix_id':[
242
243 ],
244 'lazy_blocked':[
245
246 ],
247 'backend_register':[
248 'notBlank'
249 ],
250 'write_protect':[
251
252 ],
253 'prefix':[
254 'notBlank'
255 ],
256 'defaultOriginServer':[
257
258 ],
259 'backend_status':[
260 'notBlank'
261 ],
262 'id':[
263
264 ],
265 'no_sync':[
266
267 ],
268 'enacted':[
269
270 ]
271 },
272 'id':5,
273 'created':'2015-10-26T13:09:44.343Z',
274 'updated':'2015-10-26T13:09:44.343Z',
275 'enacted':null,
276 'policed':null,
277 'backend_register':'{}',
278 'backend_status':'0 - Provisioning in progress',
279 'deleted':false,
280 'write_protect':false,
281 'lazy_blocked':false,
282 'no_sync':false,
283 'cdn_prefix_id':null,
284 'prefix':'onlab.vicci.org',
Matteo Scandolo8a31ee22015-10-27 16:41:47 +0100285 'contentProvider':1,
Matteo Scandolobb3c0132015-10-26 16:17:48 +0100286 'description':null,
287 'defaultOriginServer':'http://0.0.0.0:9000/hpcapi/originservers/2/',
288 'enabled':true
289 },
290 {
291 'humanReadableName':'downloads.onosproject.org',
292 'validators':{
293 'updated':[
294
295 ],
296 'contentProvider':[
297 'notBlank'
298 ],
299 'policed':[
300
301 ],
302 'created':[
303
304 ],
305 'deleted':[
306
307 ],
308 'description':[
309
310 ],
311 'enabled':[
312
313 ],
314 'cdn_prefix_id':[
315
316 ],
317 'lazy_blocked':[
318
319 ],
320 'backend_register':[
321 'notBlank'
322 ],
323 'write_protect':[
324
325 ],
326 'prefix':[
327 'notBlank'
328 ],
329 'defaultOriginServer':[
330
331 ],
332 'backend_status':[
333 'notBlank'
334 ],
335 'id':[
336
337 ],
338 'no_sync':[
339
340 ],
341 'enacted':[
342
343 ]
344 },
345 'id':1,
346 'created':'2015-10-26T13:09:44.196Z',
347 'updated':'2015-10-26T13:09:44.196Z',
348 'enacted':null,
349 'policed':null,
350 'backend_register':'{}',
351 'backend_status':'0 - Provisioning in progress',
352 'deleted':false,
353 'write_protect':false,
354 'lazy_blocked':false,
355 'no_sync':false,
356 'cdn_prefix_id':null,
357 'prefix':'downloads.onosproject.org',
Matteo Scandolo8a31ee22015-10-27 16:41:47 +0100358 'contentProvider':2,
Matteo Scandolobb3c0132015-10-26 16:17:48 +0100359 'description':null,
360 'defaultOriginServer':'http://0.0.0.0:9000/hpcapi/originservers/1/',
361 'enabled':true
362 }
Matteo Scandoloaa6ea282015-10-26 16:27:50 +0100363 ],
364 OSlist: [
365 {
366 'humanReadableName':'another.it',
367 'validators':{
368 'updated':[
369
370 ],
371 'contentProvider':[
372 'notBlank'
373 ],
374 'origin_server_id':[
375
376 ],
377 'policed':[
378
379 ],
380 'created':[
381
382 ],
383 'deleted':[
384
385 ],
386 'description':[
387
388 ],
389 'enabled':[
390
391 ],
392 'redirects':[
393
394 ],
395 'protocol':[
396 'notBlank'
397 ],
398 'lazy_blocked':[
399
400 ],
401 'backend_register':[
402 'notBlank'
403 ],
404 'write_protect':[
405
406 ],
407 'url':[
408 'notBlank'
409 ],
410 'authenticated':[
411
412 ],
413 'backend_status':[
414 'notBlank'
415 ],
416 'id':[
417
418 ],
419 'no_sync':[
420
421 ],
422 'enacted':[
423
424 ]
425 },
426 'id':8,
427 'created':'2015-10-26T13:40:36.878Z',
428 'updated':'2015-10-26T13:40:36.878Z',
429 'enacted':null,
430 'policed':null,
431 'backend_register':'{}',
432 'backend_status':'0 - Provisioning in progress',
433 'deleted':false,
434 'write_protect':false,
435 'lazy_blocked':false,
436 'no_sync':false,
437 'origin_server_id':null,
438 'url':'another.it',
439 'contentProvider':'http://0.0.0.0:9000/hpcapi/contentproviders/1/',
440 'authenticated':false,
441 'enabled':true,
442 'protocol':'http',
443 'redirects':true,
444 'description':null
445 },
446 {
447 'humanReadableName':'test.it',
448 'validators':{
449 'updated':[
450
451 ],
452 'contentProvider':[
453 'notBlank'
454 ],
455 'origin_server_id':[
456
457 ],
458 'policed':[
459
460 ],
461 'created':[
462
463 ],
464 'deleted':[
465
466 ],
467 'description':[
468
469 ],
470 'enabled':[
471
472 ],
473 'redirects':[
474
475 ],
476 'protocol':[
477 'notBlank'
478 ],
479 'lazy_blocked':[
480
481 ],
482 'backend_register':[
483 'notBlank'
484 ],
485 'write_protect':[
486
487 ],
488 'url':[
489 'notBlank'
490 ],
491 'authenticated':[
492
493 ],
494 'backend_status':[
495 'notBlank'
496 ],
497 'id':[
498
499 ],
500 'no_sync':[
501
502 ],
503 'enacted':[
504
505 ]
506 },
507 'id':7,
508 'created':'2015-10-26T13:36:42.567Z',
509 'updated':'2015-10-26T13:36:42.567Z',
510 'enacted':null,
511 'policed':null,
512 'backend_register':'{}',
513 'backend_status':'0 - Provisioning in progress',
514 'deleted':false,
515 'write_protect':false,
516 'lazy_blocked':false,
517 'no_sync':false,
518 'origin_server_id':null,
519 'url':'test.it',
520 'contentProvider':'http://0.0.0.0:9000/hpcapi/contentproviders/1/',
521 'authenticated':false,
522 'enabled':true,
523 'protocol':'http',
524 'redirects':true,
525 'description':null
526 },
527 {
528 'humanReadableName':'onlab.vicci.org',
529 'validators':{
530 'updated':[
531
532 ],
533 'contentProvider':[
534 'notBlank'
535 ],
536 'origin_server_id':[
537
538 ],
539 'policed':[
540
541 ],
542 'created':[
543
544 ],
545 'deleted':[
546
547 ],
548 'description':[
549
550 ],
551 'enabled':[
552
553 ],
554 'redirects':[
555
556 ],
557 'protocol':[
558 'notBlank'
559 ],
560 'lazy_blocked':[
561
562 ],
563 'backend_register':[
564 'notBlank'
565 ],
566 'write_protect':[
567
568 ],
569 'url':[
570 'notBlank'
571 ],
572 'authenticated':[
573
574 ],
575 'backend_status':[
576 'notBlank'
577 ],
578 'id':[
579
580 ],
581 'no_sync':[
582
583 ],
584 'enacted':[
585
586 ]
587 },
588 'id':2,
589 'created':'2015-10-26T13:09:44.286Z',
590 'updated':'2015-10-26T13:09:44.286Z',
591 'enacted':null,
592 'policed':null,
593 'backend_register':'{}',
594 'backend_status':'0 - Provisioning in progress',
595 'deleted':false,
596 'write_protect':false,
597 'lazy_blocked':false,
598 'no_sync':false,
599 'origin_server_id':null,
600 'url':'onlab.vicci.org',
601 'contentProvider':'http://0.0.0.0:9000/hpcapi/contentproviders/1/',
602 'authenticated':false,
603 'enabled':true,
604 'protocol':'HTTP',
605 'redirects':true,
606 'description':null
607 },
608 {
609 'humanReadableName':'downloads.onosproject.org',
610 'validators':{
611 'updated':[
612
613 ],
614 'contentProvider':[
615 'notBlank'
616 ],
617 'origin_server_id':[
618
619 ],
620 'policed':[
621
622 ],
623 'created':[
624
625 ],
626 'deleted':[
627
628 ],
629 'description':[
630
631 ],
632 'enabled':[
633
634 ],
635 'redirects':[
636
637 ],
638 'protocol':[
639 'notBlank'
640 ],
641 'lazy_blocked':[
642
643 ],
644 'backend_register':[
645 'notBlank'
646 ],
647 'write_protect':[
648
649 ],
650 'url':[
651 'notBlank'
652 ],
653 'authenticated':[
654
655 ],
656 'backend_status':[
657 'notBlank'
658 ],
659 'id':[
660
661 ],
662 'no_sync':[
663
664 ],
665 'enacted':[
666
667 ]
668 },
669 'id':1,
670 'created':'2015-10-26T13:09:44.182Z',
671 'updated':'2015-10-26T13:09:44.182Z',
672 'enacted':null,
673 'policed':null,
674 'backend_register':'{}',
675 'backend_status':'0 - Provisioning in progress',
676 'deleted':false,
677 'write_protect':false,
678 'lazy_blocked':false,
679 'no_sync':false,
680 'origin_server_id':null,
681 'url':'downloads.onosproject.org',
682 'contentProvider':'http://0.0.0.0:9000/hpcapi/contentproviders/1/',
683 'authenticated':false,
684 'enabled':true,
685 'protocol':'HTTP',
686 'redirects':true,
687 'description':null
688 }
Matteo Scandolo8a31ee22015-10-27 16:41:47 +0100689 ],
690 UserList: [
691 {
692 'humanReadableName':'teo@onlab.us',
693 'validators':{
694 'policed':[
695 'notBlank'
696 ],
697 'site':[
698 'notBlank'
699 ],
700 'is_appuser':[
701
702 ],
703 'is_staff':[
704
705 ],
706 'timezone':[
707 'notBlank'
708 ],
709 'backend_status':[
710 'notBlank'
711 ],
712 'id':[
713
714 ],
715 'is_registering':[
716
717 ],
718 'last_login':[
719 'notBlank'
720 ],
721 'email':[
722 'notBlank'
723 ],
724 'username':[
725 'notBlank'
726 ],
727 'updated':[
728
729 ],
730 'login_page':[
731
732 ],
733 'firstname':[
734 'notBlank'
735 ],
736 'user_url':[
737 'url'
738 ],
739 'deleted':[
740
741 ],
742 'lastname':[
743 'notBlank'
744 ],
745 'is_active':[
746
747 ],
748 'phone':[
749
750 ],
751 'is_admin':[
752
753 ],
754 'password':[
755 'notBlank'
756 ],
757 'enacted':[
758 'notBlank'
759 ],
760 'public_key':[
761
762 ],
763 'is_readonly':[
764
765 ],
766 'created':[
767
768 ],
769 'write_protect':[
770
771 ]
772 },
773 'id':2,
774 'password':'pbkdf2_sha256$12000$2Uzp1YCyjEBO$uU2irK//ZpEZYOIgLzanuApFoPnwfG1jNol2jD273wQ=',
775 'last_login':'2015-10-26T14:11:27.625Z',
776 'email':'teo@onlab.us',
777 'username':'teo@onlab.us',
778 'firstname':'Matteo',
779 'lastname':'Scandolo',
780 'phone':'',
781 'user_url':null,
782 'site':1,
783 'public_key':'',
784 'is_active':true,
785 'is_admin':false,
786 'is_staff':true,
787 'is_readonly':false,
788 'is_registering':false,
789 'is_appuser':false,
790 'login_page':null,
791 'created':'2015-10-26T14:11:27.699Z',
792 'updated':'2015-10-26T14:11:27.699Z',
793 'enacted':null,
794 'policed':null,
795 'backend_status':'Provisioning in progress',
796 'deleted':false,
797 'write_protect':false,
798 'timezone':'America/New_York'
799 },
800 {
801 'humanReadableName':'padmin@vicci.org',
802 'validators':{
803 'policed':[
804 'notBlank'
805 ],
806 'site':[
807 'notBlank'
808 ],
809 'is_appuser':[
810
811 ],
812 'is_staff':[
813
814 ],
815 'timezone':[
816 'notBlank'
817 ],
818 'backend_status':[
819 'notBlank'
820 ],
821 'id':[
822
823 ],
824 'is_registering':[
825
826 ],
827 'last_login':[
828 'notBlank'
829 ],
830 'email':[
831 'notBlank'
832 ],
833 'username':[
834 'notBlank'
835 ],
836 'updated':[
837
838 ],
839 'login_page':[
840
841 ],
842 'firstname':[
843 'notBlank'
844 ],
845 'user_url':[
846 'url'
847 ],
848 'deleted':[
849
850 ],
851 'lastname':[
852 'notBlank'
853 ],
854 'is_active':[
855
856 ],
857 'phone':[
858
859 ],
860 'is_admin':[
861
862 ],
863 'password':[
864 'notBlank'
865 ],
866 'enacted':[
867 'notBlank'
868 ],
869 'public_key':[
870
871 ],
872 'is_readonly':[
873
874 ],
875 'created':[
876
877 ],
878 'write_protect':[
879
880 ]
881 },
882 'id':1,
883 'password':'pbkdf2_sha256$12000$Qufx9iqtaYma$xs0YurPOcj9qYQna/Qrb3K+im9Yr2XEVr0J4Kqek7AE=',
884 'last_login':'2015-10-27T10:07:09.065Z',
885 'email':'padmin@vicci.org',
886 'username':'padmin@vicci.org',
887 'firstname':'XOS',
888 'lastname':'admin',
889 'phone':null,
890 'user_url':null,
891 'site':1,
892 'public_key':null,
893 'is_active':true,
894 'is_admin':true,
895 'is_staff':true,
896 'is_readonly':false,
897 'is_registering':false,
898 'is_appuser':false,
899 'login_page':null,
900 'created':'2015-02-17T22:06:38.059Z',
901 'updated':'2015-10-27T09:00:44.672Z',
902 'enacted':null,
903 'policed':null,
904 'backend_status':'Provisioning in progress',
905 'deleted':false,
906 'write_protect':false,
907 'timezone':'America/New_York'
908 }
Matteo Scandoloba3b12a2015-10-23 17:45:45 +0200909 ]
910};