Bootstrap copied BFF and local accounts with public Sendico contracts (#34)
This commit is contained in:
1 parent
67dc5b5b1e
commit
7062672a87
556 files changed
+42291
-777
No files matched your search
@@ -0,0 +1,40 @@
|
||||
package mservice
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestAMLSourcesResourceTypeIsRecognized(t *testing.T) {
|
||||
got, err := StringToSType(AMLSources)
|
||||
if err != nil {
|
||||
t.Fatalf("AMLSources resource type was rejected: %v", err)
|
||||
}
|
||||
if got != AMLSources {
|
||||
t.Fatalf("AMLSources resource type mismatch: got=%q want=%q", got, AMLSources)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCardBlacklistIngestorServiceTypeIsRecognized(t *testing.T) {
|
||||
got, err := StringToSType(CardBlacklistIngestor)
|
||||
if err != nil {
|
||||
t.Fatalf("card blacklist ingestor service type was rejected: %v", err)
|
||||
}
|
||||
if got != CardBlacklistIngestor {
|
||||
t.Fatalf("card blacklist ingestor service type mismatch: got=%q want=%q", got, CardBlacklistIngestor)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDocumentsCRUDResourceTypesAreRecognized(t *testing.T) {
|
||||
for _, resource := range []Type{
|
||||
DocumentsReport,
|
||||
DocumentsPayout,
|
||||
DocumentsPayoutAttempt,
|
||||
DocumentsPayoutBatch,
|
||||
} {
|
||||
got, err := StringToSType(resource)
|
||||
if err != nil {
|
||||
t.Fatalf("documents resource type %q was rejected: %v", resource, err)
|
||||
}
|
||||
if got != resource {
|
||||
t.Fatalf("documents resource type mismatch: got=%q want=%q", got, resource)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user