-
Notifications
You must be signed in to change notification settings - Fork 150
Test Plan for Function
Hanxiao Liu edited this page Dec 17, 2018
·
24 revisions
- Generate a Azure Functions archetype
- Add following in pom.xml to get the latest azure-function-maven plugin
<pluginRepositories>
<pluginRepository>
<id>commicrosoftazure-{id}</id>
<name>commicrosoftazure-{id}</name>
<url>https://oss.sonatype.org/content/repositories/commicrosoftazure-{id}/</url>
</pluginRepository>
</pluginRepositories>
- Generate a Azure Functions archetype
- Add following in pom.xml to get the latest azure-function-maven plugin
<pluginRepositories>
<pluginRepository>
<id>maven.snapshots</id>
<name>Maven Central Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
Regression test will use SNAPSHOT version, please set
<azure.functions.maven.plugin.version>TestVersion-SNAPSHOT</azure.functions.maven.plugin.version> in pom.
- Can generate the function files including jar and function.json for each function
- Can add HTTP Trigger function
- Can add Blob Trigger function
- Can add Queue Trigger function
- Can add Timer Trigger function
- Can add Event Grid Trigger function
- Can add Event Hub Trigger function
- Can add Cosmos DB Trigger function
- Can add Service Bus Queue Trigger function
- Can add Service Bus Topic Trigger function
- Plugin will show prompt information and default value(for some attributes) when set function attribute, and valid the value(for some attributes) .
- Can run function host locally.
- Can run function host locally in debug mode.
- Debug arguments like port and suspend could be customized, refer here for more infos.
- Attach to function host and verify debugger could work well
- Can deploy when deploymentType is set to:
-
zip
(this is the default type) msdeploy
ftp
-
- Can update application settings through the
<appSettings>
configuration - Can create a function app if the name of the function app not exist on Azure, the properties of the created function app should be same as the configuration in the pom. More details here
- Can deploy to an existing App Service Plan
- Applications with upper cases in appname should be deployed successfully as well.
- After deployment, the function should be triggerred successfully.
The e2e experience is fine using the sample project
- Home
- Authentication
- Proxy
- Common Configurations
-
Maven Plugin for Azure Web Apps
- Quickstarts
- Goals
- Configuration Details
- Samples
-
Maven Plugin for Azure Functions
- Quickstarts
- Archetype
- Goals
- Configuration Details
-
Maven Plugin for Azure Spring Apps
- Quickstarts
- Goals
- Configuration Details
- Maven Plugin for Azure Container Apps
- Using in CI/CD