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