-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(aws-cli): use latest install instructions for aws-cli v2 (#27)
* update(aws-cli): use latest install instructions for aws-cli v2 Signed-off-by: eudaimos <[email protected]> * fix(libc): use libc6 instead of glibc Signed-off-by: eudaimos <[email protected]>
- Loading branch information
Showing
2 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
package aws | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
"github.com/stretchr/testify/require" | ||
"testing" | ||
) | ||
|
||
func TestMixin_Build(t *testing.T) { | ||
m := NewTestMixin(t) | ||
|
||
err := m.Build() | ||
err := m.Build() | ||
require.NoError(t, err, "Build failed") | ||
|
||
gotOutput := m.TestContext.GetOutput() | ||
|
||
wantOutput := `RUN apt-get update && apt-get install -y curl unzip python less groff | ||
RUN curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "/tmp/awscli-bundle.zip" | ||
RUN unzip /tmp/awscli-bundle.zip -d /tmp | ||
RUN /tmp/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws | ||
RUN rm -fr /tmp/awscli-bundle.zip /tmp/awscli-bundle | ||
wantOutput := `RUN apt-get update && apt-get install -y --no-install-recommends curl unzip libc6 less groff | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | ||
RUN unzip awscliv2.zip | ||
RUN ./aws/install | ||
RUN rm -fr awscliv2.zip ./aws | ||
` | ||
|
||
assert.Equal(t, wantOutput, gotOutput) | ||
} | ||
} |