Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aws-cli] - issue #1224 - installing less for paginated output and avoiding errors #1226

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aws-cli/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ check_packages() {

export DEBIAN_FRONTEND=noninteractive

check_packages curl ca-certificates gnupg2 dirmngr unzip bash-completion
check_packages curl ca-certificates gnupg2 dirmngr unzip bash-completion less

verify_aws_cli_gpg_signature() {
local filePath=$1
Expand Down
13 changes: 13 additions & 0 deletions test/aws-cli/less_installed.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

# Import test library for `check` command
source dev-container-features-test-lib

check "less is installed, pagination works !" less --version
check "less binary installation path" which less
check "Testing paginated output with less" ls -R / | less

# Report result
reportResults
8 changes: 8 additions & 0 deletions test/aws-cli/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"less_installed": {
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"aws-cli": {}
}
}
}
Loading