Skip to content

new-app: create extended test to verify that local images get a docker image ref and not an imagestream #5000

Closed

Description

@csrwng

Move this test into an extended test... we cannot rely on docker being available for test-cmd.sh

# ensure a local-only image gets a docker image(not imagestream) reference created.
tmp=$(mktemp -d)
pushd $tmp
cat <<EOF >> Dockerfile
FROM scratch
EXPOSE 80
EOF
docker build -t test/scratchimage .
popd
rm -rf $tmp
[ "$(oc new-app  test/scratchimage~https://github.com/openshift/ruby-hello-world.git --strategy=docker -o yaml |& tr '\n' ' ' | grep -E "from:\s+kind:\s+DockerImage\s+name:\s+test/scratchimage:latest\s+")" ]

Activity

  1. csrwng commented on Oct 7, 2015

    @csrwng
    ContributorAuthor
  2. smarterclayton commented on Oct 25, 2015

    @smarterclayton
    Contributor

    Fixed in #5371

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions