package
0.0.0-20200226065818-fe632b36a108
Repository: https://github.com/alipay/sofa-mesh.git
Documentation: pkg.go.dev
# Functions
BuildAdapters builds a standard set of testing adapters.
BuildTemplates builds a standard set of testing templates.
JoinConfigs is a utility for joining various pieces of config for consumption by store code.
ReadConfigs reads config from the given path list and returns them as a string.
# Variables
FqdnListHandler3 is fqdn of ListHandler3.
FqnACheck1 is the fully qualified name of HandlerH1.
FqnAQuota1 is the fully qualified name of HandlerAReport1.
FqnAReport1 is the fully qualified name of HandlerAReport1.
FqnI1 is the fully qualified name for I1.
HandlerACheck1 is a handler of type acheck with name hcheck1.
HandlerACheck2 is a handler of type acheck with name hcheck2.
HandlerACheck3NS2 is a handler in namespace NS2.
HandlerACheckOutput1 is a standard handler for type acheckoutput.
HandlerAPA1 is an APA handler.
HandlerAQuota1 is a handler of type aquota with name hquota1.
HandlerAReport1 is a handler of type acheck with name hreport1.
InstanceAPA1 is an APA instance.
InstanceAPA1WithSpec has a spec with expressions.
InstanceCheck1 is a standard testing instance for template tcheck.
InstanceCheck1WithSpec has a spec with expressions.
InstanceCheck2 is another instance.
InstanceCheck3 is another instance.
InstanceCheck4NS2 is in the ns2 namespace.
InstanceCheckOutput1 is a standard testing instance for template tcheckoutput.
InstanceDynamic is the instance of the template listentry.
InstanceHalt1 is a standard testing instance.
InstanceQuota1 is a standard testing instance for template tquota.
InstanceQuota1WithSpec has a spec with expressions.
InstanceQuota2 is a copy of InstanceQuota1 with a different name.
InstanceReport1 is a standard testing instance for template treport.
InstanceReport1WithSpec has a spec with expressions.
InstanceReport2 is a standard testing instance for template treport.
ListHandler1 is a dynamic handler of listentry template named as hdynlist1.
ListHandler2 is a dynamic handler of listentry template named as hdynlist2.
ListHandler3 is a dynamic handler of listentry template named as hdynlist3.
ListHandler3Addr is a dynamic handler that is same as ListHandler3 but has different backend address.
Rule4CheckAndHalt has two instances that goes to the same adapter, but have different templates.
RuleApa1 is a rule that target APA.
RuleCheck1 is a standard testing instance config with name R1.
RuleCheck1TrueCondition is a standard testing instance config with name R1.
RuleCheck1WithBadCondition has a parseable but not compilable condition.
RuleCheck1WithBadHandler is a standard testing rule config with a bad handler name.
RuleCheck1WithInstance1And2 has instances icheck1 & icheck2.
RuleCheck1WithInstance1And2Operation has instances icheck1 & icheck2 and a header operation.
RuleCheck1WithInstance1And2WithMatchClause is Rule Check1 with a conditional.
RuleCheck1WithMatchClause is Rule Check1 with a conditional.
RuleCheck1WithNonBooleanCondition has a non-boolean condition.
RuleCheck2WithHandler2AndInstance2 references hcheck2 and icheck2.
RuleCheck2WithInstance1AndHandler is Rule Check1 with a different name.
RuleCheck2WithInstance2And3 references instances icheck2 and icheck2.
RuleCheck2WithInstance2And3WithMatchClause is RuleCheck2WithInstance2And3 with a conditional.
RuleCheck3NS2 is check rule in namespace NS2.
RuleCheckHeaderOpWithNoActions has a responseHeaderOperation, but no actions.
RuleCheckNoActionsOrHeaderOps has no actions and no responseHeaderOperations.
RuleCheckOutput1 is a standard testing rule for check output template.
RuleCheckOutput2 is a testing rule for check output template with multiple outputs.
RuleDynamic is a testing rule of dynamic instance idynlistentry1 and dynamic handler hdynlist3.
RuleQuota1 is a standard testing instance config with name rquota1.
RuleQuota1Conditional conditionally selects iquota1.
RuleQuota2 references iquota1 and hquota1.
RuleReport1 is a standard testing instance config with name rreport1.
RuleReport1And2 is a standard testing instance config with name rreport1.
ServiceConfig is a standard service config.
# Structs
FakeAdapterSettings describes the behavior of a fake adapter.
FakeEnv is a dummy implementation of adapter.Env.
FakeHandler is a fake implementation of adapter.Handler.
FakeHandlerBuilder is a fake of HandlerBuilder.
FakeTemplateSettings describes the behavior of a fake template.
Logger is used to capture the events that happen within fake adapters & templates during testing.