-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_output.log
More file actions
7078 lines (7075 loc) · 791 KB
/
test_output.log
File metadata and controls
7078 lines (7075 loc) · 791 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[0;32mRunning all MIDAS tests...[0m
[0;32m✓ Postgres is already running[0m
[1;33mWaiting for Postgres to be ready...[0m
[0;32m✓ Postgres is ready[0m
[1;33mInitializing database schema...[0m
[0;32m✓ Database schema initialized[0m
[1;33mRunning:[0m go test -p 1 -count=1 ./... -v -timeout 120s
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/segmentio/kafka-go v0.4.50
go: downloading github.com/coreos/go-oidc/v3 v3.17.0
go: downloading golang.org/x/crypto v0.49.0
go: downloading golang.org/x/oauth2 v0.36.0
go: downloading github.com/lib/pq v1.11.2
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/go-jose/go-jose/v4 v4.1.3
go: downloading github.com/klauspost/compress v1.18.4
go: downloading github.com/pierrec/lz4/v4 v4.1.25
=== RUN TestBuildAuthenticator_NilWhenNoTokens
--- PASS: TestBuildAuthenticator_NilWhenNoTokens (0.00s)
=== RUN TestBuildAuthenticator_BuildsFromTokenEntries
--- PASS: TestBuildAuthenticator_BuildsFromTokenEntries (0.00s)
=== RUN TestBuildAuthenticator_MultipleRoles
--- PASS: TestBuildAuthenticator_MultipleRoles (0.00s)
=== RUN TestBuildAuthenticator_NoRoles
--- PASS: TestBuildAuthenticator_NoRoles (0.00s)
=== RUN TestProductionWiring_ApproveSurface_EndpointIsWired
--- PASS: TestProductionWiring_ApproveSurface_EndpointIsWired (0.00s)
PASS
ok github.com/accept-io/midas/cmd/midas 0.012s
=== RUN TestAgentType_IsValid
=== RUN TestAgentType_IsValid/ai
=== RUN TestAgentType_IsValid/service
=== RUN TestAgentType_IsValid/operator
=== RUN TestAgentType_IsValid/empty
=== RUN TestAgentType_IsValid/stale_human
=== RUN TestAgentType_IsValid/stale_system
=== RUN TestAgentType_IsValid/stale_hybrid
=== RUN TestAgentType_IsValid/arbitrary
--- PASS: TestAgentType_IsValid (0.00s)
--- PASS: TestAgentType_IsValid/ai (0.00s)
--- PASS: TestAgentType_IsValid/service (0.00s)
--- PASS: TestAgentType_IsValid/operator (0.00s)
--- PASS: TestAgentType_IsValid/empty (0.00s)
--- PASS: TestAgentType_IsValid/stale_human (0.00s)
--- PASS: TestAgentType_IsValid/stale_system (0.00s)
--- PASS: TestAgentType_IsValid/stale_hybrid (0.00s)
--- PASS: TestAgentType_IsValid/arbitrary (0.00s)
=== RUN TestAgentType_Validate
=== RUN TestAgentType_Validate/valid_types_return_nil
=== RUN TestAgentType_Validate/stale_DB_values_return_ErrInvalidAgentType
=== RUN TestAgentType_Validate/error_message_includes_the_invalid_value
--- PASS: TestAgentType_Validate (0.00s)
--- PASS: TestAgentType_Validate/valid_types_return_nil (0.00s)
--- PASS: TestAgentType_Validate/stale_DB_values_return_ErrInvalidAgentType (0.00s)
--- PASS: TestAgentType_Validate/error_message_includes_the_invalid_value (0.00s)
PASS
ok github.com/accept-io/midas/internal/agent 0.007s
=== RUN TestNewEvent_NormalizesNilPayload
--- PASS: TestNewEvent_NormalizesNilPayload (0.00s)
=== RUN TestNewEvent_SetsBasicFields
--- PASS: TestNewEvent_SetsBasicFields (0.00s)
=== RUN TestNewEvent_SetsOccurredAt
--- PASS: TestNewEvent_SetsOccurredAt (0.00s)
=== RUN TestNewEvent_InitializesEventIdentityAndLeavesComputedFieldsUnset
--- PASS: TestNewEvent_InitializesEventIdentityAndLeavesComputedFieldsUnset (0.00s)
=== RUN TestComputeEventHash_Deterministic
--- PASS: TestComputeEventHash_Deterministic (0.00s)
=== RUN TestComputeEventHash_PayloadChangeChangesHash
--- PASS: TestComputeEventHash_PayloadChangeChangesHash (0.00s)
=== RUN TestComputeEventHash_PrevHashAffectsHash
--- PASS: TestComputeEventHash_PrevHashAffectsHash (0.00s)
=== RUN TestComputeEventHash_PayloadKeyOrderDoesNotAffectHash
--- PASS: TestComputeEventHash_PayloadKeyOrderDoesNotAffectHash (0.00s)
=== RUN TestVerifyAuditIntegrity_ValidChain
--- PASS: TestVerifyAuditIntegrity_ValidChain (0.00s)
=== RUN TestVerifyAuditIntegrity_HashMismatch
--- PASS: TestVerifyAuditIntegrity_HashMismatch (0.00s)
=== RUN TestVerifyAuditIntegrity_StateMismatch
--- PASS: TestVerifyAuditIntegrity_StateMismatch (0.00s)
=== RUN TestVerifyAuditIntegrity_FirstEventWrongSequence
--- PASS: TestVerifyAuditIntegrity_FirstEventWrongSequence (0.00s)
=== RUN TestVerifyAuditIntegrity_FirstEventNonEmptyPrevHash
--- PASS: TestVerifyAuditIntegrity_FirstEventNonEmptyPrevHash (0.00s)
=== RUN TestVerifyAuditIntegrity_SequenceGap
--- PASS: TestVerifyAuditIntegrity_SequenceGap (0.00s)
=== RUN TestVerifyAuditIntegrity_ChainBreak
--- PASS: TestVerifyAuditIntegrity_ChainBreak (0.00s)
=== RUN TestVerifyAuditIntegrity_FinalEventNotStateTransition
--- PASS: TestVerifyAuditIntegrity_FinalEventNotStateTransition (0.00s)
=== RUN TestVerifyAuditIntegrity_NoAuditTrail
--- PASS: TestVerifyAuditIntegrity_NoAuditTrail (0.00s)
=== RUN TestMemoryRepository_Append_AssignsSequenceNumbersPerEnvelope
--- PASS: TestMemoryRepository_Append_AssignsSequenceNumbersPerEnvelope (0.00s)
=== RUN TestMemoryRepository_Append_SetsHashChain
--- PASS: TestMemoryRepository_Append_SetsHashChain (0.00s)
=== RUN TestMemoryRepository_ListByEnvelopeID_ReturnsOrderedEvents
--- PASS: TestMemoryRepository_ListByEnvelopeID_ReturnsOrderedEvents (0.00s)
=== RUN TestMemoryRepository_ListByRequestID_ReturnsEvents
--- PASS: TestMemoryRepository_ListByRequestID_ReturnsEvents (0.00s)
=== RUN TestMemoryRepository_SequenceNumbersAreIndependentPerEnvelope
--- PASS: TestMemoryRepository_SequenceNumbersAreIndependentPerEnvelope (0.00s)
=== RUN TestMemoryRepository_ListMethods_ReturnCopiesOfSlices
--- PASS: TestMemoryRepository_ListMethods_ReturnCopiesOfSlices (0.00s)
=== RUN TestPostgresRepository_Append_AssignsSequenceAndHashChain
--- PASS: TestPostgresRepository_Append_AssignsSequenceAndHashChain (0.13s)
=== RUN TestPostgresRepository_ListByEnvelopeID_ReturnsOrderedEvents
--- PASS: TestPostgresRepository_ListByEnvelopeID_ReturnsOrderedEvents (0.03s)
=== RUN TestPostgresRepository_ListByRequestID_ReturnsEvents
--- PASS: TestPostgresRepository_ListByRequestID_ReturnsEvents (0.03s)
PASS
ok github.com/accept-io/midas/internal/audit 0.193s
=== RUN TestStaticTokenAuthenticator_ValidToken
--- PASS: TestStaticTokenAuthenticator_ValidToken (0.00s)
=== RUN TestStaticTokenAuthenticator_UnknownToken
--- PASS: TestStaticTokenAuthenticator_UnknownToken (0.00s)
=== RUN TestStaticTokenAuthenticator_NoHeader
--- PASS: TestStaticTokenAuthenticator_NoHeader (0.00s)
=== RUN TestStaticTokenAuthenticator_NonBearerScheme
--- PASS: TestStaticTokenAuthenticator_NonBearerScheme (0.00s)
=== RUN TestParseBearerToken
--- PASS: TestParseBearerToken (0.00s)
=== RUN TestLoadStaticTokensFromEnv_Empty
--- PASS: TestLoadStaticTokensFromEnv_Empty (0.00s)
=== RUN TestLoadStaticTokensFromEnv_Valid
--- PASS: TestLoadStaticTokensFromEnv_Valid (0.00s)
=== RUN TestLoadStaticTokensFromEnv_Malformed
--- PASS: TestLoadStaticTokensFromEnv_Malformed (0.00s)
PASS
ok github.com/accept-io/midas/internal/auth 0.007s
? github.com/accept-io/midas/internal/authority [no test files]
=== RUN TestApplyServiceWiring_WithRepos_PersistsAllKinds
--- PASS: TestApplyServiceWiring_WithRepos_PersistsAllKinds (0.00s)
=== RUN TestValidate_DispatcherDisabled_NoKafka_Valid
--- PASS: TestValidate_DispatcherDisabled_NoKafka_Valid (0.00s)
=== RUN TestValidate_DispatcherDisabled_KafkaPresent_Valid
--- PASS: TestValidate_DispatcherDisabled_KafkaPresent_Valid (0.00s)
=== RUN TestValidate_DispatcherEnabled_PublisherNone_Invalid
--- PASS: TestValidate_DispatcherEnabled_PublisherNone_Invalid (0.00s)
=== RUN TestValidate_DispatcherEnabled_EmptyPublisher_Invalid
--- PASS: TestValidate_DispatcherEnabled_EmptyPublisher_Invalid (0.00s)
=== RUN TestValidate_DispatcherDisabled_PublisherNone_Valid
--- PASS: TestValidate_DispatcherDisabled_PublisherNone_Valid (0.00s)
=== RUN TestValidate_DispatcherEnabled_KafkaWithBrokers_Valid
--- PASS: TestValidate_DispatcherEnabled_KafkaWithBrokers_Valid (0.00s)
=== RUN TestValidate_DispatcherEnabled_KafkaNoBrokers_Invalid
--- PASS: TestValidate_DispatcherEnabled_KafkaNoBrokers_Invalid (0.00s)
=== RUN TestValidate_DispatcherEnabled_UnknownPublisher_Invalid
--- PASS: TestValidate_DispatcherEnabled_UnknownPublisher_Invalid (0.00s)
=== RUN TestLoadAppConfig_Defaults
--- PASS: TestLoadAppConfig_Defaults (0.00s)
=== RUN TestLoadAppConfig_DispatcherEnabled_KafkaBrokers
--- PASS: TestLoadAppConfig_DispatcherEnabled_KafkaBrokers (0.00s)
=== RUN TestLoadAppConfig_InvalidBoolEnabled_ReturnsError
--- PASS: TestLoadAppConfig_InvalidBoolEnabled_ReturnsError (0.00s)
=== RUN TestLoadAppConfig_InvalidBatchSize_ReturnsError
--- PASS: TestLoadAppConfig_InvalidBatchSize_ReturnsError (0.00s)
=== RUN TestLoadAppConfig_InvalidPollInterval_ReturnsError
--- PASS: TestLoadAppConfig_InvalidPollInterval_ReturnsError (0.00s)
=== RUN TestLoadAppConfig_InvalidRequiredAcks_ReturnsError
--- PASS: TestLoadAppConfig_InvalidRequiredAcks_ReturnsError (0.00s)
=== RUN TestBuildDispatcher_DispatcherDisabled_ReturnsNilDispatcher
--- PASS: TestBuildDispatcher_DispatcherDisabled_ReturnsNilDispatcher (0.00s)
=== RUN TestBuildDispatcher_EnabledPublisherNone_ReturnsError
--- PASS: TestBuildDispatcher_EnabledPublisherNone_ReturnsError (0.00s)
=== RUN TestBuildDispatcher_EnabledNilRepo_ReturnsError
--- PASS: TestBuildDispatcher_EnabledNilRepo_ReturnsError (0.00s)
=== RUN TestBuildDispatcher_KafkaWithBrokers_ReturnsDispatcher
--- PASS: TestBuildDispatcher_KafkaWithBrokers_ReturnsDispatcher (0.00s)
=== RUN TestBuildDispatcher_KafkaNoBrokers_ReturnsError
--- PASS: TestBuildDispatcher_KafkaNoBrokers_ReturnsError (0.00s)
=== RUN TestBuildDispatcher_Disabled_ReturnsNilWiringNoError
--- PASS: TestBuildDispatcher_Disabled_ReturnsNilWiringNoError (0.00s)
=== RUN TestBuildDispatcher_Disabled_CloseIsSafe
--- PASS: TestBuildDispatcher_Disabled_CloseIsSafe (0.00s)
=== RUN TestBuildDispatcher_EnabledKafkaWithRepo_ReturnsNonNilDispatcher
--- PASS: TestBuildDispatcher_EnabledKafkaWithRepo_ReturnsNonNilDispatcher (0.00s)
=== RUN TestBuildDispatcher_EnabledNilOutboxRepo_ReturnsError
--- PASS: TestBuildDispatcher_EnabledNilOutboxRepo_ReturnsError (0.00s)
=== RUN TestBuildDispatcher_EnabledPublisherNone_ReturnsError_Wiring
--- PASS: TestBuildDispatcher_EnabledPublisherNone_ReturnsError_Wiring (0.00s)
=== RUN TestBuildDispatcher_EnabledEmptyPublisher_ReturnsError
--- PASS: TestBuildDispatcher_EnabledEmptyPublisher_ReturnsError (0.00s)
=== RUN TestBuildDispatcher_EnabledUnknownPublisher_ReturnsError
--- PASS: TestBuildDispatcher_EnabledUnknownPublisher_ReturnsError (0.00s)
PASS
ok github.com/accept-io/midas/internal/bootstrap 0.012s
=== RUN TestDefaultConfig
--- PASS: TestDefaultConfig (0.00s)
=== RUN TestDefaultConfig_Values
=== RUN TestDefaultConfig_Values/version
=== RUN TestDefaultConfig_Values/profile
=== RUN TestDefaultConfig_Values/store.backend
=== RUN TestDefaultConfig_Values/auth.mode
=== RUN TestDefaultConfig_Values/server.port
=== RUN TestDefaultConfig_Values/observability.log_level
=== RUN TestDefaultConfig_Values/observability.log_format
=== RUN TestDefaultConfig_Values/local_iam.enabled
=== RUN TestDefaultConfig_Values/dispatcher.enabled
=== RUN TestDefaultConfig_Values/dispatcher.publisher
=== RUN TestDefaultConfig_Values/dispatcher.batch_size
=== RUN TestDefaultConfig_Values/kafka.client_id
=== RUN TestDefaultConfig_Values/kafka.required_acks
--- PASS: TestDefaultConfig_Values (0.00s)
--- PASS: TestDefaultConfig_Values/version (0.00s)
--- PASS: TestDefaultConfig_Values/profile (0.00s)
--- PASS: TestDefaultConfig_Values/store.backend (0.00s)
--- PASS: TestDefaultConfig_Values/auth.mode (0.00s)
--- PASS: TestDefaultConfig_Values/server.port (0.00s)
--- PASS: TestDefaultConfig_Values/observability.log_level (0.00s)
--- PASS: TestDefaultConfig_Values/observability.log_format (0.00s)
--- PASS: TestDefaultConfig_Values/local_iam.enabled (0.00s)
--- PASS: TestDefaultConfig_Values/dispatcher.enabled (0.00s)
--- PASS: TestDefaultConfig_Values/dispatcher.publisher (0.00s)
--- PASS: TestDefaultConfig_Values/dispatcher.batch_size (0.00s)
--- PASS: TestDefaultConfig_Values/kafka.client_id (0.00s)
--- PASS: TestDefaultConfig_Values/kafka.required_acks (0.00s)
=== RUN TestDuration_UnmarshalYAML
=== RUN TestDuration_UnmarshalYAML/30s
=== RUN TestDuration_UnmarshalYAML/2m
=== RUN TestDuration_UnmarshalYAML/1h30m
=== RUN TestDuration_UnmarshalYAML/500ms
--- PASS: TestDuration_UnmarshalYAML (0.00s)
--- PASS: TestDuration_UnmarshalYAML/30s (0.00s)
--- PASS: TestDuration_UnmarshalYAML/2m (0.00s)
--- PASS: TestDuration_UnmarshalYAML/1h30m (0.00s)
--- PASS: TestDuration_UnmarshalYAML/500ms (0.00s)
=== RUN TestParseEnvTokens_ValidSingle
--- PASS: TestParseEnvTokens_ValidSingle (0.00s)
=== RUN TestParseEnvTokens_Multiple
--- PASS: TestParseEnvTokens_Multiple (0.00s)
=== RUN TestParseEnvTokens_NoRoles
--- PASS: TestParseEnvTokens_NoRoles (0.00s)
=== RUN TestParseEnvTokens_SkipsEmptyEntries
--- PASS: TestParseEnvTokens_SkipsEmptyEntries (0.00s)
=== RUN TestParseEnvTokens_MalformedEntry
--- PASS: TestParseEnvTokens_MalformedEntry (0.00s)
=== RUN TestParseEnvTokens_EmptyToken
--- PASS: TestParseEnvTokens_EmptyToken (0.00s)
=== RUN TestParseEnvTokens_EmptyPrincipal
--- PASS: TestParseEnvTokens_EmptyPrincipal (0.00s)
=== RUN TestLoad_PureDefaults
--- PASS: TestLoad_PureDefaults (0.00s)
=== RUN TestLoad_EnvOverridesDefaults
--- PASS: TestLoad_EnvOverridesDefaults (0.00s)
=== RUN TestLoad_AuthTokensFromEnv
--- PASS: TestLoad_AuthTokensFromEnv (0.00s)
=== RUN TestLoad_KafkaBrokersFromEnv
--- PASS: TestLoad_KafkaBrokersFromEnv (0.00s)
=== RUN TestLoad_InvalidServerPort
--- PASS: TestLoad_InvalidServerPort (0.00s)
=== RUN TestLoad_InvalidDispatcherEnabled
--- PASS: TestLoad_InvalidDispatcherEnabled (0.00s)
=== RUN TestLoad_FileOverridesDefaults
--- PASS: TestLoad_FileOverridesDefaults (0.00s)
=== RUN TestLoad_EnvOverridesFile
--- PASS: TestLoad_EnvOverridesFile (0.00s)
=== RUN TestLoad_UnknownFieldsRejected
--- PASS: TestLoad_UnknownFieldsRejected (0.00s)
=== RUN TestLoad_PlaceholderExpansion
--- PASS: TestLoad_PlaceholderExpansion (0.00s)
=== RUN TestLoad_UnresolvedPlaceholderFails
--- PASS: TestLoad_UnresolvedPlaceholderFails (0.00s)
=== RUN TestLoad_MIDASSConfigEnvVar
--- PASS: TestLoad_MIDASSConfigEnvVar (0.00s)
=== RUN TestLoad_EnvOverridePlaceholder_DoesNotExpandUnusedPlaceholder
--- PASS: TestLoad_EnvOverridePlaceholder_DoesNotExpandUnusedPlaceholder (0.00s)
=== RUN TestLoad_PlaceholderExpanded_AfterEnvOverlay
--- PASS: TestLoad_PlaceholderExpanded_AfterEnvOverlay (0.00s)
=== RUN TestLoad_UnresolvedPlaceholder_FailsWhenActive
--- PASS: TestLoad_UnresolvedPlaceholder_FailsWhenActive (0.00s)
=== RUN TestLoad_MIDAS_STORE_BACKEND_Recognized
--- PASS: TestLoad_MIDAS_STORE_BACKEND_Recognized (0.00s)
=== RUN TestLoad_MIDAS_STORE_KIND_NotRecognized
--- PASS: TestLoad_MIDAS_STORE_KIND_NotRecognized (0.00s)
=== RUN TestLoad_MIDAS_LOCAL_IAM_ENABLED_FalseOverridesDefault
--- PASS: TestLoad_MIDAS_LOCAL_IAM_ENABLED_FalseOverridesDefault (0.00s)
=== RUN TestLoad_MIDAS_LOCAL_IAM_ENABLED_OverridesFile
--- PASS: TestLoad_MIDAS_LOCAL_IAM_ENABLED_OverridesFile (0.00s)
=== RUN TestLoad_MIDAS_OIDC_ENABLED_OverridesFile
--- PASS: TestLoad_MIDAS_OIDC_ENABLED_OverridesFile (0.00s)
=== RUN TestLoad_MIDAS_OIDC_CLIENT_ID_OverridesFile
--- PASS: TestLoad_MIDAS_OIDC_CLIENT_ID_OverridesFile (0.00s)
=== RUN TestLoad_MIDAS_OIDC_CLIENT_SECRET_OverridesFile
--- PASS: TestLoad_MIDAS_OIDC_CLIENT_SECRET_OverridesFile (0.00s)
=== RUN TestLoad_MIDAS_CONTROL_PLANE_ENABLED_OverridesDefault
--- PASS: TestLoad_MIDAS_CONTROL_PLANE_ENABLED_OverridesDefault (0.00s)
=== RUN TestLoad_FileValues_UsedWhenEnvAbsent
--- PASS: TestLoad_FileValues_UsedWhenEnvAbsent (0.00s)
=== RUN TestLoad_DirectEnvAndPlaceholder_WorkTogether
--- PASS: TestLoad_DirectEnvAndPlaceholder_WorkTogether (0.00s)
=== RUN TestLoad_LocalIAMAndPlatformOIDC_InSources_PureDefaults
--- PASS: TestLoad_LocalIAMAndPlatformOIDC_InSources_PureDefaults (0.00s)
=== RUN TestLoad_LocalIAMAndPlatformOIDC_InSources_FromFile
--- PASS: TestLoad_LocalIAMAndPlatformOIDC_InSources_FromFile (0.00s)
=== RUN TestLoad_ServerHeadless_DefaultsFalse
--- PASS: TestLoad_ServerHeadless_DefaultsFalse (0.00s)
=== RUN TestLoad_MIDAS_SERVER_HEADLESS_OverridesDefault
--- PASS: TestLoad_MIDAS_SERVER_HEADLESS_OverridesDefault (0.00s)
=== RUN TestLoad_MIDAS_SERVER_HEADLESS_OverridesFile
--- PASS: TestLoad_MIDAS_SERVER_HEADLESS_OverridesFile (0.00s)
=== RUN TestLoad_HeadlessWithLocalIAMEnabled_TriggersFatalValidation
--- PASS: TestLoad_HeadlessWithLocalIAMEnabled_TriggersFatalValidation (0.00s)
=== RUN TestLoad_InvalidBooleanEnvVars_ReturnErrors
=== RUN TestLoad_InvalidBooleanEnvVars_ReturnErrors/MIDAS_LOCAL_IAM_ENABLED
=== RUN TestLoad_InvalidBooleanEnvVars_ReturnErrors/MIDAS_OIDC_ENABLED
=== RUN TestLoad_InvalidBooleanEnvVars_ReturnErrors/MIDAS_CONTROL_PLANE_ENABLED
--- PASS: TestLoad_InvalidBooleanEnvVars_ReturnErrors (0.00s)
--- PASS: TestLoad_InvalidBooleanEnvVars_ReturnErrors/MIDAS_LOCAL_IAM_ENABLED (0.00s)
--- PASS: TestLoad_InvalidBooleanEnvVars_ReturnErrors/MIDAS_OIDC_ENABLED (0.00s)
--- PASS: TestLoad_InvalidBooleanEnvVars_ReturnErrors/MIDAS_CONTROL_PLANE_ENABLED (0.00s)
=== RUN TestLoad_MIDAS_DEV_SEED_DEMO_USER_SetsFlag
--- PASS: TestLoad_MIDAS_DEV_SEED_DEMO_USER_SetsFlag (0.00s)
=== RUN TestLoad_MIDAS_DEV_SEED_DEMO_USER_DefaultFalse
--- PASS: TestLoad_MIDAS_DEV_SEED_DEMO_USER_DefaultFalse (0.00s)
=== RUN TestExplorerUnauthenticated
=== RUN TestExplorerUnauthenticated/explorer_enabled_no_iam_no_oidc_warns
=== RUN TestExplorerUnauthenticated/explorer_enabled_local_iam_active_no_warn
=== RUN TestExplorerUnauthenticated/explorer_enabled_oidc_active_no_warn
=== RUN TestExplorerUnauthenticated/headless_no_warn
=== RUN TestExplorerUnauthenticated/explorer_disabled_no_warn
--- PASS: TestExplorerUnauthenticated (0.00s)
--- PASS: TestExplorerUnauthenticated/explorer_enabled_no_iam_no_oidc_warns (0.00s)
--- PASS: TestExplorerUnauthenticated/explorer_enabled_local_iam_active_no_warn (0.00s)
--- PASS: TestExplorerUnauthenticated/explorer_enabled_oidc_active_no_warn (0.00s)
--- PASS: TestExplorerUnauthenticated/headless_no_warn (0.00s)
--- PASS: TestExplorerUnauthenticated/explorer_disabled_no_warn (0.00s)
=== RUN TestValidateStructural_ValidDefaults
--- PASS: TestValidateStructural_ValidDefaults (0.00s)
=== RUN TestValidateStructural_UnsupportedVersion
--- PASS: TestValidateStructural_UnsupportedVersion (0.00s)
=== RUN TestValidateStructural_InvalidProfile
--- PASS: TestValidateStructural_InvalidProfile (0.00s)
=== RUN TestValidateStructural_InvalidAuthMode
--- PASS: TestValidateStructural_InvalidAuthMode (0.00s)
=== RUN TestValidateStructural_InvalidStoreBackend
--- PASS: TestValidateStructural_InvalidStoreBackend (0.00s)
=== RUN TestValidateStructural_InvalidLogLevel
--- PASS: TestValidateStructural_InvalidLogLevel (0.00s)
=== RUN TestValidateStructural_InvalidLogFormat
--- PASS: TestValidateStructural_InvalidLogFormat (0.00s)
=== RUN TestValidateStructural_InvalidPort
--- PASS: TestValidateStructural_InvalidPort (0.00s)
=== RUN TestValidateStructural_MultipleErrors
--- PASS: TestValidateStructural_MultipleErrors (0.00s)
=== RUN TestValidateSemantic_ValidDefaults
--- PASS: TestValidateSemantic_ValidDefaults (0.00s)
=== RUN TestValidateSemantic_PostgresRequiresDSN
--- PASS: TestValidateSemantic_PostgresRequiresDSN (0.00s)
=== RUN TestValidateSemantic_ProductionRequiresPostgres
--- PASS: TestValidateSemantic_ProductionRequiresPostgres (0.00s)
=== RUN TestValidateSemantic_ProductionRequiresRequiredAuth
--- PASS: TestValidateSemantic_ProductionRequiresRequiredAuth (0.00s)
=== RUN TestValidateSemantic_ProductionValid
--- PASS: TestValidateSemantic_ProductionValid (0.00s)
=== RUN TestValidateSemantic_RequiredAuthNeedsTokens
--- PASS: TestValidateSemantic_RequiredAuthNeedsTokens (0.00s)
=== RUN TestValidateSemantic_EmptyTokenValue
--- PASS: TestValidateSemantic_EmptyTokenValue (0.00s)
=== RUN TestValidateSemantic_EmptyPrincipal
--- PASS: TestValidateSemantic_EmptyPrincipal (0.00s)
=== RUN TestValidateSemantic_DispatcherEnabledNoPublisher
--- PASS: TestValidateSemantic_DispatcherEnabledNoPublisher (0.00s)
=== RUN TestValidateSemantic_DispatcherKafkaNoBrokers
--- PASS: TestValidateSemantic_DispatcherKafkaNoBrokers (0.00s)
=== RUN TestValidateSemantic_DispatcherKafkaValid
--- PASS: TestValidateSemantic_DispatcherKafkaValid (0.00s)
=== RUN TestValidateSemantic_Headless_DefaultsValid
--- PASS: TestValidateSemantic_Headless_DefaultsValid (0.00s)
=== RUN TestValidateSemantic_Headless_WithRequiredAuth_Valid
--- PASS: TestValidateSemantic_Headless_WithRequiredAuth_Valid (0.00s)
=== RUN TestValidateSemantic_Headless_NoLocalIAMOrOIDC_Valid
--- PASS: TestValidateSemantic_Headless_NoLocalIAMOrOIDC_Valid (0.00s)
=== RUN TestValidateSemantic_Headless_ConflictsWithExplorerEnabled
--- PASS: TestValidateSemantic_Headless_ConflictsWithExplorerEnabled (0.00s)
=== RUN TestValidateSemantic_Headless_ConflictsWithLocalIAM
--- PASS: TestValidateSemantic_Headless_ConflictsWithLocalIAM (0.00s)
=== RUN TestValidateSemantic_Headless_ConflictsWithOIDC
--- PASS: TestValidateSemantic_Headless_ConflictsWithOIDC (0.00s)
=== RUN TestValidateSemantic_Headless_AllConflicts_ReturnsAllErrors
--- PASS: TestValidateSemantic_Headless_AllConflicts_ReturnsAllErrors (0.00s)
=== RUN TestValidateSemantic_NotHeadless_ExplorerAndIAMEnabled_Valid
--- PASS: TestValidateSemantic_NotHeadless_ExplorerAndIAMEnabled_Valid (0.00s)
=== RUN TestValidationErrors_Error
--- PASS: TestValidationErrors_Error (0.00s)
=== RUN TestMaskDSN
=== RUN TestMaskDSN/#00
=== RUN TestMaskDSN/postgres://user:pass@localhost:5432/mydb?sslmode=disable
=== RUN TestMaskDSN/postgresql://user:secret@db.example.com/prod
=== RUN TestMaskDSN/postgres://host/db
=== RUN TestMaskDSN/localhost:5432/mydb
--- PASS: TestMaskDSN (0.00s)
--- PASS: TestMaskDSN/#00 (0.00s)
--- PASS: TestMaskDSN/postgres://user:pass@localhost:5432/mydb?sslmode=disable (0.00s)
--- PASS: TestMaskDSN/postgresql://user:secret@db.example.com/prod (0.00s)
--- PASS: TestMaskDSN/postgres://host/db (0.00s)
--- PASS: TestMaskDSN/localhost:5432/mydb (0.00s)
PASS
ok github.com/accept-io/midas/internal/config 0.046s
=== RUN TestNewSurfaceCreatedRecord
--- PASS: TestNewSurfaceCreatedRecord (0.00s)
=== RUN TestNewProfileCreatedRecord
--- PASS: TestNewProfileCreatedRecord (0.00s)
=== RUN TestNewProfileVersionedRecord
--- PASS: TestNewProfileVersionedRecord (0.00s)
=== RUN TestNewAgentCreatedRecord
--- PASS: TestNewAgentCreatedRecord (0.00s)
=== RUN TestNewGrantCreatedRecord
--- PASS: TestNewGrantCreatedRecord (0.00s)
=== RUN TestNewSurfaceApprovedRecord
--- PASS: TestNewSurfaceApprovedRecord (0.00s)
=== RUN TestNewSurfaceDeprecatedRecord
--- PASS: TestNewSurfaceDeprecatedRecord (0.00s)
=== RUN TestRecord_IDIsUUID
--- PASS: TestRecord_IDIsUUID (0.00s)
=== RUN TestRecord_IDsAreUnique
--- PASS: TestRecord_IDsAreUnique (0.00s)
=== RUN TestSummaryContainsResourceID
--- PASS: TestSummaryContainsResourceID (0.00s)
PASS
ok github.com/accept-io/midas/internal/controlaudit 0.007s
? github.com/accept-io/midas/internal/controlplane [no test files]
=== RUN TestPlan_ValidNewResources_AllCreate
--- PASS: TestPlan_ValidNewResources_AllCreate (0.00s)
=== RUN TestPlan_WithRepo_ValidNewSurface_Create
--- PASS: TestPlan_WithRepo_ValidNewSurface_Create (0.00s)
=== RUN TestPlan_RepoConflict_SurfaceInReview_Conflict
--- PASS: TestPlan_RepoConflict_SurfaceInReview_Conflict (0.00s)
=== RUN TestPlan_RepoConflict_ExistingAgent_Conflict
--- PASS: TestPlan_RepoConflict_ExistingAgent_Conflict (0.00s)
=== RUN TestPlan_ValidationFailure_ActionInvalid
--- PASS: TestPlan_ValidationFailure_ActionInvalid (0.00s)
=== RUN TestPlan_ValidationFailure_AllKinds_ActionInvalid
--- PASS: TestPlan_ValidationFailure_AllKinds_ActionInvalid (0.00s)
=== RUN TestPlan_RefIntegrity_MissingSurface_Invalid
--- PASS: TestPlan_RefIntegrity_MissingSurface_Invalid (0.00s)
=== RUN TestPlan_RefIntegrity_MissingAgentAndProfile_BothErrors
--- PASS: TestPlan_RefIntegrity_MissingAgentAndProfile_BothErrors (0.00s)
=== RUN TestPlan_BundleDependency_ProfileReferencesInBundleSurface
--- PASS: TestPlan_BundleDependency_ProfileReferencesInBundleSurface (0.00s)
=== RUN TestPlan_BundleDependency_GrantReferencesInBundleAgentAndProfile
--- PASS: TestPlan_BundleDependency_GrantReferencesInBundleAgentAndProfile (0.00s)
=== RUN TestPlan_PerformsNoWrites
--- PASS: TestPlan_PerformsNoWrites (0.00s)
=== RUN TestPlanBundle_PerformsNoWrites
--- PASS: TestPlanBundle_PerformsNoWrites (0.00s)
=== RUN TestApply_CallsPlan_ThenExecutes
--- PASS: TestApply_CallsPlan_ThenExecutes (0.00s)
=== RUN TestPlanResultFromPlan_ValidPlan_WouldApplyTrue
--- PASS: TestPlanResultFromPlan_ValidPlan_WouldApplyTrue (0.00s)
=== RUN TestPlanResultFromPlan_InvalidPlan_WouldApplyFalse
--- PASS: TestPlanResultFromPlan_InvalidPlan_WouldApplyFalse (0.00s)
=== RUN TestPlanResultFromPlan_ConflictPlan_WouldApplyFalse
--- PASS: TestPlanResultFromPlan_ConflictPlan_WouldApplyFalse (0.00s)
=== RUN TestPlanResultFromPlan_PreservesDecisionSource
--- PASS: TestPlanResultFromPlan_PreservesDecisionSource (0.00s)
=== RUN TestPlanResultFromPlan_PreservesValidationErrors
--- PASS: TestPlanResultFromPlan_PreservesValidationErrors (0.00s)
=== RUN TestPlanBundle_ParseError_WrapsErrInvalidBundle
--- PASS: TestPlanBundle_ParseError_WrapsErrInvalidBundle (0.00s)
=== RUN TestErrInvalidBundle_IsCheckable
--- PASS: TestErrInvalidBundle_IsCheckable (0.00s)
=== RUN TestApplyBundle_ParseError_WrapsErrInvalidBundle
--- PASS: TestApplyBundle_ParseError_WrapsErrInvalidBundle (0.00s)
=== RUN TestApplyBundle_EmptyBundle_WrapsErrInvalidBundle
--- PASS: TestApplyBundle_EmptyBundle_WrapsErrInvalidBundle (0.00s)
=== RUN TestBuildApplyPlan_ValidDocs_AllActionCreate
--- PASS: TestBuildApplyPlan_ValidDocs_AllActionCreate (0.00s)
=== RUN TestBuildApplyPlan_InvalidDoc_ActionInvalid
--- PASS: TestBuildApplyPlan_InvalidDoc_ActionInvalid (0.00s)
=== RUN TestBuildApplyPlan_MixedDocs_CorrectActions
--- PASS: TestBuildApplyPlan_MixedDocs_CorrectActions (0.00s)
=== RUN TestBuildApplyPlan_DocumentIndexIsOneBased
--- PASS: TestBuildApplyPlan_DocumentIndexIsOneBased (0.00s)
=== RUN TestBuildApplyPlan_ValidationErrors_PreserveFieldInfo
--- PASS: TestBuildApplyPlan_ValidationErrors_PreserveFieldInfo (0.00s)
=== RUN TestExecutePlan_ValidPlan_ProducesCreatedResults
--- PASS: TestExecutePlan_ValidPlan_ProducesCreatedResults (0.00s)
=== RUN TestExecutePlan_InvalidPlan_ReturnsValidationErrorsOnly
--- PASS: TestExecutePlan_InvalidPlan_ReturnsValidationErrorsOnly (0.00s)
=== RUN TestApplyMatchesBuildPlanThenExecutePlan
--- PASS: TestApplyMatchesBuildPlanThenExecutePlan (0.00s)
=== RUN TestApplyPlan_HasInvalid
--- PASS: TestApplyPlan_HasInvalid (0.00s)
=== RUN TestApplyPlan_HasConflict
--- PASS: TestApplyPlan_HasConflict (0.00s)
=== RUN TestBuildApplyPlan_SurfaceNotFound_ActionCreate
--- PASS: TestBuildApplyPlan_SurfaceNotFound_ActionCreate (0.00s)
=== RUN TestBuildApplyPlan_SurfaceInReview_ActionConflict
--- PASS: TestBuildApplyPlan_SurfaceInReview_ActionConflict (0.00s)
=== RUN TestBuildApplyPlan_SurfaceActive_ActionCreate
--- PASS: TestBuildApplyPlan_SurfaceActive_ActionCreate (0.00s)
=== RUN TestBuildApplyPlan_SurfaceRepoError_ActionInvalid
--- PASS: TestBuildApplyPlan_SurfaceRepoError_ActionInvalid (0.00s)
=== RUN TestExecutePlan_ConflictEntry_NoCreateCall
--- PASS: TestExecutePlan_ConflictEntry_NoCreateCall (0.00s)
=== RUN TestExecutePlan_UnchangedEntry_NoCreateCall
--- PASS: TestExecutePlan_UnchangedEntry_NoCreateCall (0.00s)
=== RUN TestApply_ConflictSurface_ReturnsConflictResult
--- PASS: TestApply_ConflictSurface_ReturnsConflictResult (0.00s)
=== RUN TestApply_NewSurface_WithRepo_ReturnsCreated
--- PASS: TestApply_NewSurface_WithRepo_ReturnsCreated (0.00s)
=== RUN TestApply_InvalidBundle_WithRepo_StillRejectsAll
--- PASS: TestApply_InvalidBundle_WithRepo_StillRejectsAll (0.00s)
=== RUN TestApplyProfile_SetsStatusToReview
--- PASS: TestApplyProfile_SetsStatusToReview (0.00s)
=== RUN TestApplyProfile_IncrementsVersion
--- PASS: TestApplyProfile_IncrementsVersion (0.00s)
=== RUN TestApplyProfile_WithoutRepo_FallsBackToCreated
--- PASS: TestApplyProfile_WithoutRepo_FallsBackToCreated (0.00s)
=== RUN TestRefIntegrity_Profile_PersistedSurface_Succeeds
--- PASS: TestRefIntegrity_Profile_PersistedSurface_Succeeds (0.00s)
=== RUN TestRefIntegrity_Profile_InBundleSurface_Succeeds
--- PASS: TestRefIntegrity_Profile_InBundleSurface_Succeeds (0.00s)
=== RUN TestRefIntegrity_Profile_MissingSurface_Fails
--- PASS: TestRefIntegrity_Profile_MissingSurface_Fails (0.00s)
=== RUN TestRefIntegrity_Profile_ErrReferentialIntegrity_IsWrapped
--- PASS: TestRefIntegrity_Profile_ErrReferentialIntegrity_IsWrapped (0.00s)
=== RUN TestRefIntegrity_Grant_PersistedAgent_Succeeds
--- PASS: TestRefIntegrity_Grant_PersistedAgent_Succeeds (0.00s)
=== RUN TestRefIntegrity_Grant_InBundleAgentAndProfile_Succeeds
--- PASS: TestRefIntegrity_Grant_InBundleAgentAndProfile_Succeeds (0.00s)
=== RUN TestRefIntegrity_Grant_MissingAgent_Fails
--- PASS: TestRefIntegrity_Grant_MissingAgent_Fails (0.00s)
=== RUN TestRefIntegrity_Grant_MissingProfile_Fails
--- PASS: TestRefIntegrity_Grant_MissingProfile_Fails (0.00s)
=== RUN TestRefIntegrity_MixedBundle_DependencyOrderPreserved
--- PASS: TestRefIntegrity_MixedBundle_DependencyOrderPreserved (0.00s)
=== RUN TestRefIntegrity_InvalidDependency_NothingPersisted
--- PASS: TestRefIntegrity_InvalidDependency_NothingPersisted (0.00s)
=== RUN TestRefIntegrity_ExistingProfileSatisfiesGrantRef
--- PASS: TestRefIntegrity_ExistingProfileSatisfiesGrantRef (0.00s)
=== RUN TestMapAgentType_ValidDocTypes
=== RUN TestMapAgentType_ValidDocTypes/llm_agent
=== RUN TestMapAgentType_ValidDocTypes/copilot
=== RUN TestMapAgentType_ValidDocTypes/workflow
=== RUN TestMapAgentType_ValidDocTypes/automation
=== RUN TestMapAgentType_ValidDocTypes/rpa
--- PASS: TestMapAgentType_ValidDocTypes (0.00s)
--- PASS: TestMapAgentType_ValidDocTypes/llm_agent (0.00s)
--- PASS: TestMapAgentType_ValidDocTypes/copilot (0.00s)
--- PASS: TestMapAgentType_ValidDocTypes/workflow (0.00s)
--- PASS: TestMapAgentType_ValidDocTypes/automation (0.00s)
--- PASS: TestMapAgentType_ValidDocTypes/rpa (0.00s)
=== RUN TestMapAgentType_InvalidDocType
--- PASS: TestMapAgentType_InvalidDocType (0.00s)
=== RUN TestMapAgentDocumentToAgent_ServiceType
--- PASS: TestMapAgentDocumentToAgent_ServiceType (0.00s)
=== RUN TestMapAgentDocumentToAgent_InvalidType
--- PASS: TestMapAgentDocumentToAgent_InvalidType (0.00s)
=== RUN TestMapSurfaceDocument_ProcessID
=== RUN TestMapSurfaceDocument_ProcessID/process_id_mapped_correctly
=== RUN TestMapSurfaceDocument_ProcessID/absent_process_id_maps_to_empty_string
--- PASS: TestMapSurfaceDocument_ProcessID (0.00s)
--- PASS: TestMapSurfaceDocument_ProcessID/process_id_mapped_correctly (0.00s)
--- PASS: TestMapSurfaceDocument_ProcessID/absent_process_id_maps_to_empty_string (0.00s)
=== RUN TestBuildApplyPlan_Agent_Invalid_ActionInvalid
--- PASS: TestBuildApplyPlan_Agent_Invalid_ActionInvalid (0.00s)
=== RUN TestBuildApplyPlan_Agent_NotFound_ActionCreate
--- PASS: TestBuildApplyPlan_Agent_NotFound_ActionCreate (0.00s)
=== RUN TestBuildApplyPlan_Agent_Exists_ActionConflict
--- PASS: TestBuildApplyPlan_Agent_Exists_ActionConflict (0.00s)
=== RUN TestBuildApplyPlan_Agent_RepoError_ActionInvalid
--- PASS: TestBuildApplyPlan_Agent_RepoError_ActionInvalid (0.00s)
=== RUN TestBuildApplyPlan_Profile_Invalid_ActionInvalid
--- PASS: TestBuildApplyPlan_Profile_Invalid_ActionInvalid (0.00s)
=== RUN TestBuildApplyPlan_Profile_NotFound_ActionCreate
--- PASS: TestBuildApplyPlan_Profile_NotFound_ActionCreate (0.00s)
=== RUN TestBuildApplyPlan_Profile_Exists_CreatesNewVersion
--- PASS: TestBuildApplyPlan_Profile_Exists_CreatesNewVersion (0.00s)
=== RUN TestBuildApplyPlan_Profile_New_AssignsVersion1
--- PASS: TestBuildApplyPlan_Profile_New_AssignsVersion1 (0.00s)
=== RUN TestBuildApplyPlan_Profile_VersionIncrement
--- PASS: TestBuildApplyPlan_Profile_VersionIncrement (0.00s)
=== RUN TestBuildApplyPlan_Profile_RepoError_ActionInvalid
--- PASS: TestBuildApplyPlan_Profile_RepoError_ActionInvalid (0.00s)
=== RUN TestBuildApplyPlan_Grant_Invalid_ActionInvalid
--- PASS: TestBuildApplyPlan_Grant_Invalid_ActionInvalid (0.00s)
=== RUN TestBuildApplyPlan_Grant_NotFound_ActionCreate
--- PASS: TestBuildApplyPlan_Grant_NotFound_ActionCreate (0.00s)
=== RUN TestBuildApplyPlan_Grant_Exists_ActionConflict
--- PASS: TestBuildApplyPlan_Grant_Exists_ActionConflict (0.00s)
=== RUN TestBuildApplyPlan_Grant_RepoError_ActionInvalid
--- PASS: TestBuildApplyPlan_Grant_RepoError_ActionInvalid (0.00s)
=== RUN TestExecutePlan_AgentConflict_NoCreateCall
--- PASS: TestExecutePlan_AgentConflict_NoCreateCall (0.00s)
=== RUN TestExecutePlan_AgentCreate_CallsRepository
--- PASS: TestExecutePlan_AgentCreate_CallsRepository (0.00s)
=== RUN TestExecutePlan_ProfileConflict_NoCreateCall
--- PASS: TestExecutePlan_ProfileConflict_NoCreateCall (0.00s)
=== RUN TestExecutePlan_ProfileCreate_CallsRepository
--- PASS: TestExecutePlan_ProfileCreate_CallsRepository (0.00s)
=== RUN TestExecutePlan_GrantConflict_NoCreateCall
--- PASS: TestExecutePlan_GrantConflict_NoCreateCall (0.00s)
=== RUN TestExecutePlan_GrantCreate_CallsRepository
--- PASS: TestExecutePlan_GrantCreate_CallsRepository (0.00s)
=== RUN TestApply_FullBundle_AllNew_AllCreated
--- PASS: TestApply_FullBundle_AllNew_AllCreated (0.00s)
=== RUN TestApply_FullBundle_ExistingAgent_ConflictResult
--- PASS: TestApply_FullBundle_ExistingAgent_ConflictResult (0.00s)
=== RUN TestApply_NoRepos_AllResourceKinds_AllCreated
--- PASS: TestApply_NoRepos_AllResourceKinds_AllCreated (0.00s)
=== RUN TestApply_InvalidAgentInBundle_RejectsWholeBundle
--- PASS: TestApply_InvalidAgentInBundle_RejectsWholeBundle (0.00s)
=== RUN TestNewServiceWithRepos_AllNil_ValidatesOnly
--- PASS: TestNewServiceWithRepos_AllNil_ValidatesOnly (0.00s)
=== RUN TestNewService
--- PASS: TestNewService (0.00s)
=== RUN TestServiceApply_EmptyBundle
--- PASS: TestServiceApply_EmptyBundle (0.00s)
=== RUN TestServiceApply_ValidBundle_ReturnsCreatedResults
--- PASS: TestServiceApply_ValidBundle_ReturnsCreatedResults (0.00s)
=== RUN TestServiceApply_InvalidBundle_ReturnsValidationErrorsOnly
--- PASS: TestServiceApply_InvalidBundle_ReturnsValidationErrorsOnly (0.00s)
=== RUN TestServiceApply_MixedInvalidBundle_ReturnsNoCreatedResults
--- PASS: TestServiceApply_MixedInvalidBundle_ReturnsNoCreatedResults (0.00s)
=== RUN TestNewServiceWithRepo
--- PASS: TestNewServiceWithRepo (0.00s)
=== RUN TestSurface_ProcessID_Empty_Rejected
--- PASS: TestSurface_ProcessID_Empty_Rejected (0.00s)
=== RUN TestSurface_ProcessID_Whitespace_Rejected
--- PASS: TestSurface_ProcessID_Whitespace_Rejected (0.00s)
=== RUN TestSurface_ProcessID_Missing_Rejected
--- PASS: TestSurface_ProcessID_Missing_Rejected (0.00s)
=== RUN TestSurface_WithProcessID_ProcessExists_Creates
--- PASS: TestSurface_WithProcessID_ProcessExists_Creates (0.00s)
=== RUN TestSurface_WithProcessID_ProcessNotFound_Invalid
--- PASS: TestSurface_WithProcessID_ProcessNotFound_Invalid (0.00s)
=== RUN TestSurface_WithProcessID_RepoError_Invalid
--- PASS: TestSurface_WithProcessID_RepoError_Invalid (0.00s)
=== RUN TestApply_WithProcessID_ProcessExists_Succeeds
--- PASS: TestApply_WithProcessID_ProcessExists_Succeeds (0.00s)
=== RUN TestApply_WithProcessID_ProcessNotFound_Rejected
--- PASS: TestApply_WithProcessID_ProcessNotFound_Rejected (0.00s)
=== RUN TestApply_NoProcessID_Rejected
--- PASS: TestApply_NoProcessID_Rejected (0.00s)
=== RUN TestApply_WithProcessID_NoProcessRepo_Rejected
--- PASS: TestApply_WithProcessID_NoProcessRepo_Rejected (0.00s)
=== RUN TestSurface_WithProcessID_NoProcessRepo_Invalid
--- PASS: TestSurface_WithProcessID_NoProcessRepo_Invalid (0.00s)
=== RUN TestApplyAudit_SurfaceCreated
--- PASS: TestApplyAudit_SurfaceCreated (0.00s)
=== RUN TestApplyAudit_AgentCreated
--- PASS: TestApplyAudit_AgentCreated (0.00s)
=== RUN TestApplyAudit_ProfileCreatedV1
--- PASS: TestApplyAudit_ProfileCreatedV1 (0.00s)
=== RUN TestApplyAudit_ProfileVersioned
--- PASS: TestApplyAudit_ProfileVersioned (0.00s)
=== RUN TestApplyAudit_GrantCreated
--- PASS: TestApplyAudit_GrantCreated (0.00s)
=== RUN TestApplyAudit_ActorDefaultsToSystem
--- PASS: TestApplyAudit_ActorDefaultsToSystem (0.00s)
=== RUN TestApplyAudit_NoRepoNoAudit
--- PASS: TestApplyAudit_NoRepoNoAudit (0.00s)
=== RUN TestModification_Surface_FirstApply_CreatesVersion1
--- PASS: TestModification_Surface_FirstApply_CreatesVersion1 (0.00s)
=== RUN TestModification_Surface_Reapply_ActiveVersion_CreatesNewVersion
--- PASS: TestModification_Surface_Reapply_ActiveVersion_CreatesNewVersion (0.00s)
=== RUN TestModification_Surface_Reapply_ReviewVersion_Conflict
--- PASS: TestModification_Surface_Reapply_ReviewVersion_Conflict (0.00s)
=== RUN TestModification_Profile_Reapply_CreatesNewVersion
--- PASS: TestModification_Profile_Reapply_CreatesNewVersion (0.00s)
=== RUN TestModification_Agent_Reapply_Conflict
--- PASS: TestModification_Agent_Reapply_Conflict (0.00s)
=== RUN TestModification_Grant_Reapply_Conflict
--- PASS: TestModification_Grant_Reapply_Conflict (0.00s)
=== RUN TestModification_Surface_LatestVsActive_DistinctDuringReviewCycle
--- PASS: TestModification_Surface_LatestVsActive_DistinctDuringReviewCycle (0.00s)
=== RUN TestApplyWithRepos_AllFourKindsPersisted
--- PASS: TestApplyWithRepos_AllFourKindsPersisted (0.00s)
=== RUN TestApplyWithoutRepos_ReportsCreatedButDoesNotPersist
--- PASS: TestApplyWithoutRepos_ReportsCreatedButDoesNotPersist (0.00s)
PASS
ok github.com/accept-io/midas/internal/controlplane/apply 0.018s
=== RUN TestApprovalAudit_SurfaceApproved_EmitsRecord
--- PASS: TestApprovalAudit_SurfaceApproved_EmitsRecord (0.00s)
=== RUN TestApprovalAudit_SurfaceApproved_NotEmittedOnFailure
--- PASS: TestApprovalAudit_SurfaceApproved_NotEmittedOnFailure (0.00s)
=== RUN TestApprovalAudit_SurfaceDeprecated_EmitsRecord
--- PASS: TestApprovalAudit_SurfaceDeprecated_EmitsRecord (0.00s)
=== RUN TestApprovalAudit_SurfaceDeprecated_NotEmittedOnFailure
--- PASS: TestApprovalAudit_SurfaceDeprecated_NotEmittedOnFailure (0.00s)
=== RUN TestApprovalAudit_NilRepo_NoOp
--- PASS: TestApprovalAudit_NilRepo_NoOp (0.00s)
=== RUN TestSuspendGrant_ActiveToSuspended_Success
--- PASS: TestSuspendGrant_ActiveToSuspended_Success (0.00s)
=== RUN TestSuspendGrant_CapturesActorAndReason
--- PASS: TestSuspendGrant_CapturesActorAndReason (0.00s)
=== RUN TestSuspendGrant_EmitsOutboxEvent
--- PASS: TestSuspendGrant_EmitsOutboxEvent (0.00s)
=== RUN TestSuspendGrant_EmitsControlAuditRecord
--- PASS: TestSuspendGrant_EmitsControlAuditRecord (0.00s)
=== RUN TestSuspendGrant_NotActive_ReturnsError
--- PASS: TestSuspendGrant_NotActive_ReturnsError (0.00s)
=== RUN TestSuspendGrant_Revoked_ReturnsError
--- PASS: TestSuspendGrant_Revoked_ReturnsError (0.00s)
=== RUN TestSuspendGrant_NotFound_ReturnsError
--- PASS: TestSuspendGrant_NotFound_ReturnsError (0.00s)
=== RUN TestRevokeGrant_ActiveToRevoked_Success
--- PASS: TestRevokeGrant_ActiveToRevoked_Success (0.00s)
=== RUN TestRevokeGrant_SuspendedToRevoked_Success
--- PASS: TestRevokeGrant_SuspendedToRevoked_Success (0.00s)
=== RUN TestRevokeGrant_CapturesActorAndReason
--- PASS: TestRevokeGrant_CapturesActorAndReason (0.00s)
=== RUN TestRevokeGrant_EmitsOutboxEvent
--- PASS: TestRevokeGrant_EmitsOutboxEvent (0.00s)
=== RUN TestRevokeGrant_EmitsControlAuditRecord
--- PASS: TestRevokeGrant_EmitsControlAuditRecord (0.00s)
=== RUN TestRevokeGrant_AlreadyRevoked_ReturnsError
--- PASS: TestRevokeGrant_AlreadyRevoked_ReturnsError (0.00s)
=== RUN TestRevokeGrant_NotFound_ReturnsError
--- PASS: TestRevokeGrant_NotFound_ReturnsError (0.00s)
=== RUN TestReinstateGrant_SuspendedToActive_Success
--- PASS: TestReinstateGrant_SuspendedToActive_Success (0.00s)
=== RUN TestReinstateGrant_EmitsOutboxEvent
--- PASS: TestReinstateGrant_EmitsOutboxEvent (0.00s)
=== RUN TestReinstateGrant_EmitsControlAuditRecord
--- PASS: TestReinstateGrant_EmitsControlAuditRecord (0.00s)
=== RUN TestReinstateGrant_NotSuspended_ReturnsError
--- PASS: TestReinstateGrant_NotSuspended_ReturnsError (0.00s)
=== RUN TestReinstateGrant_Revoked_ReturnsError
--- PASS: TestReinstateGrant_Revoked_ReturnsError (0.00s)
=== RUN TestGrantService_NilOutbox_DoesNotPanic
--- PASS: TestGrantService_NilOutbox_DoesNotPanic (0.00s)
=== RUN TestApproveProfile_ReviewToActive_Success
--- PASS: TestApproveProfile_ReviewToActive_Success (0.00s)
=== RUN TestApproveProfile_CapturesApproverAndTimestamp
--- PASS: TestApproveProfile_CapturesApproverAndTimestamp (0.00s)
=== RUN TestApproveProfile_NotFound_ReturnsError
--- PASS: TestApproveProfile_NotFound_ReturnsError (0.00s)
=== RUN TestApproveProfile_WrongStatus_NotInReview
--- PASS: TestApproveProfile_WrongStatus_NotInReview (0.00s)
=== RUN TestApproveProfile_NilProfileRepo_ReturnsError
--- PASS: TestApproveProfile_NilProfileRepo_ReturnsError (0.00s)
=== RUN TestDeprecateProfile_ActiveToDeprecated_Success
--- PASS: TestDeprecateProfile_ActiveToDeprecated_Success (0.00s)
=== RUN TestDeprecateProfile_WrongStatus_NotActive
--- PASS: TestDeprecateProfile_WrongStatus_NotActive (0.00s)
=== RUN TestDeprecateProfile_NotFound_ReturnsError
--- PASS: TestDeprecateProfile_NotFound_ReturnsError (0.00s)
=== RUN TestApproveProfile_EmitsOutboxEvent
--- PASS: TestApproveProfile_EmitsOutboxEvent (0.00s)
=== RUN TestDeprecateProfile_EmitsOutboxEvent
--- PASS: TestDeprecateProfile_EmitsOutboxEvent (0.00s)
=== RUN TestApproveProfile_NilOutbox_DoesNotEmitEvent
--- PASS: TestApproveProfile_NilOutbox_DoesNotEmitEvent (0.00s)
=== RUN TestApproveSurface_EmitsOutboxEvent_OnSuccess
--- PASS: TestApproveSurface_EmitsOutboxEvent_OnSuccess (0.00s)
=== RUN TestApproveSurface_NoOutboxEvent_OnFailure
--- PASS: TestApproveSurface_NoOutboxEvent_OnFailure (0.00s)
=== RUN TestApproveSurface_NoOutboxEvent_WhenOutboxNil
--- PASS: TestApproveSurface_NoOutboxEvent_WhenOutboxNil (0.00s)
=== RUN TestApproveSurface_SelfReview_NoOutboxEvent
--- PASS: TestApproveSurface_SelfReview_NoOutboxEvent (0.00s)
=== RUN TestDeprecateSurface_EmitsOutboxEvent_OnSuccess
--- PASS: TestDeprecateSurface_EmitsOutboxEvent_OnSuccess (0.00s)
=== RUN TestDeprecateSurface_DeprecatedByPopulatedInEvent
--- PASS: TestDeprecateSurface_DeprecatedByPopulatedInEvent (0.00s)
=== RUN TestDeprecateSurface_NoOutboxEvent_OnFailure
--- PASS: TestDeprecateSurface_NoOutboxEvent_OnFailure (0.00s)
=== RUN TestDeprecateSurface_NoOutboxEvent_WhenOutboxNil
--- PASS: TestDeprecateSurface_NoOutboxEvent_WhenOutboxNil (0.00s)
=== RUN TestLifecycle_ReviewToDeprecated_OutboxEvents
--- PASS: TestLifecycle_ReviewToDeprecated_OutboxEvents (0.00s)
=== RUN TestApproveSurface_Success
--- PASS: TestApproveSurface_Success (0.00s)
=== RUN TestApproveSurface_RejectsDraft
--- PASS: TestApproveSurface_RejectsDraft (0.00s)
=== RUN TestApproveSurface_RejectsActive
--- PASS: TestApproveSurface_RejectsActive (0.00s)
=== RUN TestApproveSurface_RejectsDeprecated
--- PASS: TestApproveSurface_RejectsDeprecated (0.00s)
=== RUN TestApproveSurface_SurfaceNotFound
--- PASS: TestApproveSurface_SurfaceNotFound (0.00s)
=== RUN TestApproveSurface_ForbidsSelfReview
--- PASS: TestApproveSurface_ForbidsSelfReview (0.00s)
=== RUN TestDeprecateSurface_Success
--- PASS: TestDeprecateSurface_Success (0.00s)
=== RUN TestDeprecateSurface_RejectsReview
--- PASS: TestDeprecateSurface_RejectsReview (0.00s)
=== RUN TestDeprecateSurface_RejectsDraft
--- PASS: TestDeprecateSurface_RejectsDraft (0.00s)
=== RUN TestDeprecateSurface_SurfaceNotFound
--- PASS: TestDeprecateSurface_SurfaceNotFound (0.00s)
=== RUN TestLifecyclePromotion_ReviewToActiveToDeprecated
--- PASS: TestLifecyclePromotion_ReviewToActiveToDeprecated (0.00s)
PASS
ok github.com/accept-io/midas/internal/controlplane/approval 0.012s
=== RUN TestParseYAML_AllKinds
=== RUN TestParseYAML_AllKinds/Surface
=== RUN TestParseYAML_AllKinds/Agent
=== RUN TestParseYAML_AllKinds/Profile
=== RUN TestParseYAML_AllKinds/Grant
--- PASS: TestParseYAML_AllKinds (0.00s)
--- PASS: TestParseYAML_AllKinds/Surface (0.00s)
--- PASS: TestParseYAML_AllKinds/Agent (0.00s)
--- PASS: TestParseYAML_AllKinds/Profile (0.00s)
--- PASS: TestParseYAML_AllKinds/Grant (0.00s)
=== RUN TestParsedDocument_InterfaceContracts
=== RUN TestParsedDocument_InterfaceContracts/Surface
=== RUN TestParsedDocument_InterfaceContracts/Agent
=== RUN TestParsedDocument_InterfaceContracts/Profile
=== RUN TestParsedDocument_InterfaceContracts/Grant
--- PASS: TestParsedDocument_InterfaceContracts (0.00s)
--- PASS: TestParsedDocument_InterfaceContracts/Surface (0.00s)
--- PASS: TestParsedDocument_InterfaceContracts/Agent (0.00s)
--- PASS: TestParsedDocument_InterfaceContracts/Profile (0.00s)
--- PASS: TestParsedDocument_InterfaceContracts/Grant (0.00s)
=== RUN TestParseYAML_MissingID_CurrentBehavior
=== RUN TestParseYAML_MissingID_CurrentBehavior/Surface_without_ID
=== RUN TestParseYAML_MissingID_CurrentBehavior/Agent_without_ID
=== RUN TestParseYAML_MissingID_CurrentBehavior/Profile_without_ID
=== RUN TestParseYAML_MissingID_CurrentBehavior/Grant_without_ID
--- PASS: TestParseYAML_MissingID_CurrentBehavior (0.00s)
--- PASS: TestParseYAML_MissingID_CurrentBehavior/Surface_without_ID (0.00s)
--- PASS: TestParseYAML_MissingID_CurrentBehavior/Agent_without_ID (0.00s)
--- PASS: TestParseYAML_MissingID_CurrentBehavior/Profile_without_ID (0.00s)
--- PASS: TestParseYAML_MissingID_CurrentBehavior/Grant_without_ID (0.00s)
=== RUN TestParseYAML_EmptyID_CurrentBehavior
--- PASS: TestParseYAML_EmptyID_CurrentBehavior (0.00s)
=== RUN TestParseYAML_IDWithWhitespace_CurrentBehavior
=== RUN TestParseYAML_IDWithWhitespace_CurrentBehavior/leading_space
=== RUN TestParseYAML_IDWithWhitespace_CurrentBehavior/trailing_space
=== RUN TestParseYAML_IDWithWhitespace_CurrentBehavior/internal_spaces
--- PASS: TestParseYAML_IDWithWhitespace_CurrentBehavior (0.00s)
--- PASS: TestParseYAML_IDWithWhitespace_CurrentBehavior/leading_space (0.00s)
--- PASS: TestParseYAML_IDWithWhitespace_CurrentBehavior/trailing_space (0.00s)
--- PASS: TestParseYAML_IDWithWhitespace_CurrentBehavior/internal_spaces (0.00s)
=== RUN TestParseYAML_MissingMetadataBlock_CurrentBehavior
--- PASS: TestParseYAML_MissingMetadataBlock_CurrentBehavior (0.00s)
=== RUN TestParseYAML_MissingAPIVersion
--- PASS: TestParseYAML_MissingAPIVersion (0.00s)
=== RUN TestParseYAML_MissingKind
--- PASS: TestParseYAML_MissingKind (0.00s)
=== RUN TestParseYAML_UnsupportedAPIVersion
=== RUN TestParseYAML_UnsupportedAPIVersion/future_version
=== RUN TestParseYAML_UnsupportedAPIVersion/past_version
=== RUN TestParseYAML_UnsupportedAPIVersion/wrong_format
=== RUN TestParseYAML_UnsupportedAPIVersion/completely_wrong
--- PASS: TestParseYAML_UnsupportedAPIVersion (0.00s)
--- PASS: TestParseYAML_UnsupportedAPIVersion/future_version (0.00s)
--- PASS: TestParseYAML_UnsupportedAPIVersion/past_version (0.00s)
--- PASS: TestParseYAML_UnsupportedAPIVersion/wrong_format (0.00s)
--- PASS: TestParseYAML_UnsupportedAPIVersion/completely_wrong (0.00s)
=== RUN TestParseYAML_UnsupportedKind
=== RUN TestParseYAML_UnsupportedKind/PolicySet
=== RUN TestParseYAML_UnsupportedKind/Deployment
=== RUN TestParseYAML_UnsupportedKind/lowercase
=== RUN TestParseYAML_UnsupportedKind/plural
=== RUN TestParseYAML_UnsupportedKind/typo
--- PASS: TestParseYAML_UnsupportedKind (0.00s)
--- PASS: TestParseYAML_UnsupportedKind/PolicySet (0.00s)
--- PASS: TestParseYAML_UnsupportedKind/Deployment (0.00s)
--- PASS: TestParseYAML_UnsupportedKind/lowercase (0.00s)
--- PASS: TestParseYAML_UnsupportedKind/plural (0.00s)
--- PASS: TestParseYAML_UnsupportedKind/typo (0.00s)
=== RUN TestParseYAML_InvalidYAML
=== RUN TestParseYAML_InvalidYAML/unclosed_array
=== RUN TestParseYAML_InvalidYAML/malformed_mapping
=== RUN TestParseYAML_InvalidYAML/broken_sequence_indentation
--- PASS: TestParseYAML_InvalidYAML (0.00s)
--- PASS: TestParseYAML_InvalidYAML/unclosed_array (0.00s)
--- PASS: TestParseYAML_InvalidYAML/malformed_mapping (0.00s)
--- PASS: TestParseYAML_InvalidYAML/broken_sequence_indentation (0.00s)
=== RUN TestParseYAML_Surface_SpecificFields
--- PASS: TestParseYAML_Surface_SpecificFields (0.00s)
=== RUN TestParseYAML_Agent_NestedRuntime
--- PASS: TestParseYAML_Agent_NestedRuntime (0.00s)
=== RUN TestParseYAML_Profile_ComplexNesting
--- PASS: TestParseYAML_Profile_ComplexNesting (0.00s)
=== RUN TestParseYAML_Agent_InvalidRuntimeShape
--- PASS: TestParseYAML_Agent_InvalidRuntimeShape (0.00s)
=== RUN TestParseYAMLStream_MultipleDocuments
--- PASS: TestParseYAMLStream_MultipleDocuments (0.00s)
=== RUN TestParseYAMLStream_PreservesOrder
--- PASS: TestParseYAMLStream_PreservesOrder (0.00s)
=== RUN TestParseYAMLStream_SkipsEmptyDocuments
--- PASS: TestParseYAMLStream_SkipsEmptyDocuments (0.00s)
=== RUN TestParseYAMLStream_InvalidDocumentInStream
--- PASS: TestParseYAMLStream_InvalidDocumentInStream (0.00s)
=== RUN TestParseYAMLStream_FirstInvalidDocumentReported
--- PASS: TestParseYAMLStream_FirstInvalidDocumentReported (0.00s)
=== RUN TestParseYAMLStream_AtomicFailure
--- PASS: TestParseYAMLStream_AtomicFailure (0.00s)
=== RUN TestParseYAMLStream_NoDocumentsFound
=== RUN TestParseYAMLStream_NoDocumentsFound/only_separators
=== RUN TestParseYAMLStream_NoDocumentsFound/empty_input
=== RUN TestParseYAMLStream_NoDocumentsFound/whitespace_only
=== RUN TestParseYAMLStream_NoDocumentsFound/comments_only
--- PASS: TestParseYAMLStream_NoDocumentsFound (0.00s)
--- PASS: TestParseYAMLStream_NoDocumentsFound/only_separators (0.00s)
--- PASS: TestParseYAMLStream_NoDocumentsFound/empty_input (0.00s)
--- PASS: TestParseYAMLStream_NoDocumentsFound/whitespace_only (0.00s)
--- PASS: TestParseYAMLStream_NoDocumentsFound/comments_only (0.00s)
=== RUN TestParseYAML_WindowsLineEndings
--- PASS: TestParseYAML_WindowsLineEndings (0.00s)
=== RUN TestParseYAML_TabsInsteadOfSpaces
--- PASS: TestParseYAML_TabsInsteadOfSpaces (0.00s)
=== RUN TestParseYAML_LeadingTrailingWhitespace
--- PASS: TestParseYAML_LeadingTrailingWhitespace (0.00s)
=== RUN TestParseYAML_TypeAssertionSafety
=== RUN TestParseYAML_TypeAssertionSafety/Surface
=== RUN TestParseYAML_TypeAssertionSafety/Agent
=== RUN TestParseYAML_TypeAssertionSafety/Profile
=== RUN TestParseYAML_TypeAssertionSafety/Grant
--- PASS: TestParseYAML_TypeAssertionSafety (0.00s)
--- PASS: TestParseYAML_TypeAssertionSafety/Surface (0.00s)
--- PASS: TestParseYAML_TypeAssertionSafety/Agent (0.00s)
--- PASS: TestParseYAML_TypeAssertionSafety/Profile (0.00s)
--- PASS: TestParseYAML_TypeAssertionSafety/Grant (0.00s)
PASS
ok github.com/accept-io/midas/internal/controlplane/parser 0.019s
=== RUN TestSurfaceDocument_JSONRoundTrip
--- PASS: TestSurfaceDocument_JSONRoundTrip (0.00s)
=== RUN TestSurfaceDocument_YAMLRoundTrip
--- PASS: TestSurfaceDocument_YAMLRoundTrip (0.00s)
=== RUN TestSurfaceDocument_GetKindAndID
--- PASS: TestSurfaceDocument_GetKindAndID (0.00s)
=== RUN TestAgentDocument_JSONRoundTrip
--- PASS: TestAgentDocument_JSONRoundTrip (0.00s)
=== RUN TestAgentDocument_YAMLRoundTrip
--- PASS: TestAgentDocument_YAMLRoundTrip (0.00s)
=== RUN TestProfileDocument_YAMLRoundTrip_WithNestedFields
--- PASS: TestProfileDocument_YAMLRoundTrip_WithNestedFields (0.00s)
=== RUN TestProfileDocument_RiskRatingConsequenceThreshold
--- PASS: TestProfileDocument_RiskRatingConsequenceThreshold (0.00s)
=== RUN TestGrantDocument_JSONRoundTrip
--- PASS: TestGrantDocument_JSONRoundTrip (0.00s)
=== RUN TestGrantDocument_YAMLRoundTrip
--- PASS: TestGrantDocument_YAMLRoundTrip (0.00s)
=== RUN TestDocumentInterface
--- PASS: TestDocumentInterface (0.00s)
=== RUN TestKindConstants
--- PASS: TestKindConstants (0.00s)
=== RUN TestAPIVersionConstant
--- PASS: TestAPIVersionConstant (0.00s)
=== RUN TestApplyResult_AddCreated
--- PASS: TestApplyResult_AddCreated (0.00s)
=== RUN TestApplyResult_AddConflict
--- PASS: TestApplyResult_AddConflict (0.00s)
=== RUN TestApplyResult_AddError
--- PASS: TestApplyResult_AddError (0.00s)
=== RUN TestApplyResult_AddFieldError
--- PASS: TestApplyResult_AddFieldError (0.00s)
=== RUN TestApplyResult_AddValidationError
--- PASS: TestApplyResult_AddValidationError (0.00s)
=== RUN TestApplyResult_AddUnchanged
--- PASS: TestApplyResult_AddUnchanged (0.00s)
=== RUN TestApplyResult_CreatedCount
--- PASS: TestApplyResult_CreatedCount (0.00s)
=== RUN TestApplyResult_ConflictCount
--- PASS: TestApplyResult_ConflictCount (0.00s)
=== RUN TestApplyResult_ApplyErrorCount
--- PASS: TestApplyResult_ApplyErrorCount (0.00s)
=== RUN TestApplyResult_ValidationErrorCount
--- PASS: TestApplyResult_ValidationErrorCount (0.00s)
=== RUN TestApplyResult_UnchangedCount
--- PASS: TestApplyResult_UnchangedCount (0.00s)
=== RUN TestApplyResult_HasValidationErrors
--- PASS: TestApplyResult_HasValidationErrors (0.00s)
=== RUN TestApplyResult_IsValid
--- PASS: TestApplyResult_IsValid (0.00s)
=== RUN TestApplyResult_Success_AllCreated
--- PASS: TestApplyResult_Success_AllCreated (0.00s)
=== RUN TestApplyResult_Success_WithConflicts
--- PASS: TestApplyResult_Success_WithConflicts (0.00s)
=== RUN TestApplyResult_Success_WithApplyErrors
--- PASS: TestApplyResult_Success_WithApplyErrors (0.00s)
=== RUN TestApplyResult_Success_WithValidationErrors
--- PASS: TestApplyResult_Success_WithValidationErrors (0.00s)
=== RUN TestApplyResult_JSONSerialization
--- PASS: TestApplyResult_JSONSerialization (0.00s)
=== RUN TestResourceStatusConstants
--- PASS: TestResourceStatusConstants (0.00s)
PASS
ok github.com/accept-io/midas/internal/controlplane/types 0.012s
=== RUN TestValidateIDFormat_Valid
=== RUN TestValidateIDFormat_Valid/payment.execute
=== RUN TestValidateIDFormat_Valid/agent-1
=== RUN TestValidateIDFormat_Valid/profile_tier_1
=== RUN TestValidateIDFormat_Valid/a
=== RUN TestValidateIDFormat_Valid/0
=== RUN TestValidateIDFormat_Valid/a0
=== RUN TestValidateIDFormat_Valid/my-resource.id_v2
=== RUN TestValidateIDFormat_Valid/payment-execution-v1.2.3
--- PASS: TestValidateIDFormat_Valid (0.00s)
--- PASS: TestValidateIDFormat_Valid/payment.execute (0.00s)
--- PASS: TestValidateIDFormat_Valid/agent-1 (0.00s)
--- PASS: TestValidateIDFormat_Valid/profile_tier_1 (0.00s)
--- PASS: TestValidateIDFormat_Valid/a (0.00s)
--- PASS: TestValidateIDFormat_Valid/0 (0.00s)
--- PASS: TestValidateIDFormat_Valid/a0 (0.00s)
--- PASS: TestValidateIDFormat_Valid/my-resource.id_v2 (0.00s)
--- PASS: TestValidateIDFormat_Valid/payment-execution-v1.2.3 (0.00s)
=== RUN TestValidateIDFormat_Invalid
=== RUN TestValidateIDFormat_Invalid/leading_space
=== RUN TestValidateIDFormat_Invalid/trailing_space
=== RUN TestValidateIDFormat_Invalid/internal_space
=== RUN TestValidateIDFormat_Invalid/uppercase_letter