diff --git a/app-service-template/README.md b/app-service-template/README.md index 3aec4798e..a37bff307 100644 --- a/app-service-template/README.md +++ b/app-service-template/README.md @@ -1,6 +1,6 @@ # Application Service Template -This folder contains a buildable/runnable template for a new custom application service based on the Hanoi 1.3.1 release of the App Functions SDK. +This folder contains a buildable/runnable template for a new custom application service based on the Pre-Release 2.x release of the App Functions SDK. > **Note**: If you only need to use the built-in pipeline functions, then it is advisable that you use `App Service Configurable` rather then create a new custom application service. See [here](https://docs.edgexfoundry.org/1.3/microservices/application/AppServiceConfigurable/) for more details on `App Service Configurable` diff --git a/app-service-template/functions/sample_test.go b/app-service-template/functions/sample_test.go index e72901ca7..3469303e1 100644 --- a/app-service-template/functions/sample_test.go +++ b/app-service-template/functions/sample_test.go @@ -37,7 +37,7 @@ func TestSample_LogEventDetails(t *testing.T) { expectedContinuePipeline := true target := NewSample() - actualContinuePipeline, actualEvent := target.LogEventDetails(creatTestAppSdkContext(), expectedEvent) + actualContinuePipeline, actualEvent := target.LogEventDetails(createTestAppSdkContext(), expectedEvent) assert.Equal(t, expectedContinuePipeline, actualContinuePipeline) assert.Equal(t, expectedEvent, actualEvent) @@ -49,7 +49,7 @@ func TestSample_ConvertEventToXML(t *testing.T) { expectedContinuePipeline := true target := NewSample() - actualContinuePipeline, actualXml := target.ConvertEventToXML(creatTestAppSdkContext(), event) + actualContinuePipeline, actualXml := target.ConvertEventToXML(createTestAppSdkContext(), event) assert.Equal(t, expectedContinuePipeline, actualContinuePipeline) assert.Equal(t, expectedXml, actualXml) @@ -60,7 +60,7 @@ func TestSample_OutputXML(t *testing.T) { testEvent := createTestEvent(t) expectedXml, _ := testEvent.ToXML() expectedContinuePipeline := false - appContext := creatTestAppSdkContext() + appContext := createTestAppSdkContext() target := NewSample() actualContinuePipeline, result := target.OutputXML(appContext, expectedXml) @@ -87,7 +87,7 @@ func createTestEvent(t *testing.T) dtos.Event { return event } -func creatTestAppSdkContext() *appcontext.Context { +func createTestAppSdkContext() *appcontext.Context { return &appcontext.Context{ CorrelationID: uuid.New().String(), LoggingClient: logger.NewMockClient(),