Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
b6ed6844
Commit
b6ed6844
authored
Dec 12, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: remove jq requirement
parent
5e0da211
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
test/README.md
test/README.md
+0
-1
test/test_helper.bash
test/test_helper.bash
+3
-3
No files found.
test/README.md
View file @
b6ed6844
...
...
@@ -20,7 +20,6 @@ running on Mac OS X, most of these are available with `brew`:
*
[
Bats
](
https://github.com/sstephenson/bats
)
*
[
AWS cli
](
http://aws.amazon.com/cli/
)
*
[
jq
](
http://stedolan.github.io/jq/
)
## Configuring Tests
...
...
test/test_helper.bash
View file @
b6ed6844
# Let's verify that the tools we need are installed
declare
-a
required
=(
aws
jq
)
declare
-a
required
=(
aws
)
for
cmd
in
"
${
required
[@]
}
"
;
do
command
-v
$cmd
>
/dev/null 2>&1
||
{
echo
"'
$cmd
' must be installed"
>
&2
...
...
@@ -40,8 +40,8 @@ fixtures() {
# This deletes any AMIs with a tag "packer-test" of "true"
aws_ami_cleanup
()
{
local
region
=
${
1
:-
us
-east-1
}
aws ec2 describe-images
--region
${
region
}
--owners
self
--output
json
\
aws ec2 describe-images
--region
${
region
}
--owners
self
--output
text
\
--filters
'Name=tag:packer-test,Values=true'
\
| jq
-r
-M
'.Images[]["ImageId"]
'
\
--query
'Images[*].ImageId
'
\
| xargs
-n1
aws ec2 deregister-image
--region
${
region
}
--image-id
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment