Skip to content

Conversation

@mdeuser
Copy link
Contributor

@mdeuser mdeuser commented Jul 6, 2018

fixes #347

@mdeuser mdeuser requested a review from dubee July 6, 2018 01:21
}

if (Flags.action.sequence && (cmd.LocalFlags().Changed(MEMORY_FLAG) || cmd.LocalFlags().Changed(LOG_SIZE_FLAG) || cmd.LocalFlags().Changed(TIMEOUT_FLAG))) {
errStr := wski18n.T("A sequence cannot have a memory limit, a log size limit or a timeout limit.")
Copy link
Member

Choose a reason for hiding this comment

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

Can we transition to using message identifiers instead as in https://github.com/apache/incubator-openwhisk-cli/blob/master/commands/messages.go#L26.

expectedExitCode = MISUSE_EXIT)
}

it should "reject create or update of an action sequence that sets a memory limit" in withAssetCleaner(wskprops) { (wp, assetHelper) =>
Copy link
Member

Choose a reason for hiding this comment

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

all of these might be better suited as go unit tests - i think it makes sense to start adding new tests that are strictly testing the CLI in go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When creating/updating a sequence, do not permit limits

2 participants