Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

feat: Azure Packaging updates #163

Merged
merged 10 commits into from
Jun 12, 2019
Merged

feat: Azure Packaging updates #163

merged 10 commits into from
Jun 12, 2019

Conversation

wbreza
Copy link
Contributor

@wbreza wbreza commented Jun 7, 2019

  • Updates packaging strategy to write function.json into expected folder structure
  • Dynamically resolves handler path based on yaml definition and destination folder
  • Removes and cleans up function.json and function folders after packaging is completed

Resolves ABA#82, 90, 89

Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. We should sync on the packaging process with regards to the relative path between function.json and the handler. I made a change in my Offline Plugin PR. I have no idea why the mkdirSync spy is causing the test to fail. I've been through your changes and comparing them to my own test using the same thing, but I'll see if I can see anything else

src/plugins/func/funcUtils.ts Show resolved Hide resolved
src/plugins/package/azurePackage.test.ts Show resolved Hide resolved
src/plugins/func/azureFunc.test.ts Show resolved Hide resolved
@wbreza wbreza force-pushed the wabrez/package-updates branch from 077960b to 25212f7 Compare June 11, 2019 00:59
@wbreza
Copy link
Contributor Author

wbreza commented Jun 11, 2019

@tbarlow12 - I found that calling mockRestore() on the spys directly after usage allows test to run and pass as expected. I've applied this throughout where we are using file system spies.

Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wbreza wbreza force-pushed the wabrez/package-updates branch from 25212f7 to b8ef4bd Compare June 12, 2019 21:18
@wbreza wbreza merged commit 4940069 into dev Jun 12, 2019
@wbreza wbreza deleted the wabrez/package-updates branch June 25, 2019 18:34
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
- Updates packaging strategy to write function.json into expected folder structure
- Dynamically resolves handler path based on yaml definition and destination folder
- Removes and cleans up function.json and function folders after packaging is completed

Resolves ABA#82, 90, 89
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants