Skip to content

Add Service CRD to conformance tests #591

Closed

Description

@bobcatfish

Expected Behavior

In #577 we have added a new CRD type which is part of the core Elafros API.

Actual Behavior

This new CRD should be tested in the conformance tests.

Additional Info

Waiting on controller implementation by @vaikas-google and spec/docs from @evankanderson .

Activity

  1. self-assigned this
    on Apr 5, 2018
  2. vaikas commented on Apr 5, 2018

    @vaikas
    Contributor

    Once #597 goes in we should be able to start adding conformance tests.

  3. added
    area/test-and-release
    on Apr 9, 2018
  4. bobcatfish commented on May 23, 2018

    @bobcatfish
    ContributorAuthor

    @jonjohnsonjr I think you're working on this so I've assigned it to you but feel free to assign it back if that's wrong!

  5. evankanderson commented on Jun 22, 2018

    @evankanderson
    Member

    /kind cleanup

    Jon, any updates here?

  6. added
    kind/cleanup
    on Jun 22, 2018
  7. jonjohnsonjr commented on Jun 25, 2018

    @jonjohnsonjr
    Contributor

    Very close to having a working happy path, with unhappy paths to follow soon after. I had to actually make it conform before I can land the test, currently waiting on #1330 /cc @mattmoor

    Something working 👍 will have a PR once I clean this up!

    go test -v -tags=e2e -count=1 ./test/conformance -run ^TestRunLatestService
    === RUN   TestRunLatestService
    I0625 17:49:59.670672   31051 crd.go:94] Seeding rand.Rand with 1529948999670662769
    2018/06/25 17:49:59 Creating a new Service
    2018/06/25 17:49:59 The Service will be updated with the name of the Revision once it is created
    2018/06/25 17:50:00 The Service will be updated with the domain of the Route once it is created
    I0625 17:50:01.096818   31051 service_test.go:74] When the Service reports as Ready, everything should be ready.
    I0625 17:50:09.266356   31051 request.go:97] Wait for the endpoint to be up and handling requests
    I0625 17:50:09.355583   31051 request.go:59] Retrying for code 404
    I0625 17:50:10.403666   31051 request.go:59] Retrying for code 404
    I0625 17:50:11.406270   31051 request.go:59] Retrying for code 404
    I0625 17:50:12.400924   31051 request.go:59] Retrying for code 404
    I0625 17:50:13.406410   31051 request.go:59] Retrying for code 404
    I0625 17:50:14.405315   31051 service_test.go:95] The Revision will be marked as Ready when it can serve traffic
    I0625 17:50:14.452411   31051 service_test.go:100] Updates the Configuration that the Revision is ready
    I0625 17:50:14.526891   31051 service_test.go:107] Updates the Route to route traffic to the Revision
    I0625 17:50:14.584995   31051 service_test.go:186] Updating the Service to use a different image
    I0625 17:50:14.643911   31051 service_test.go:192] Since the Service was updated a new Revision will be created and the Service will be updated
    I0625 17:50:15.749954   31051 service_test.go:74] When the Service reports as Ready, everything should be ready.
    I0625 17:50:19.890759   31051 request.go:97] Wait for the endpoint to be up and handling requests
    I0625 17:50:28.985143   31051 service_test.go:95] The Revision will be marked as Ready when it can serve traffic
    I0625 17:50:29.031560   31051 service_test.go:100] Updates the Configuration that the Revision is ready
    I0625 17:50:29.074448   31051 service_test.go:107] Updates the Route to route traffic to the Revision
    --- PASS: TestRunLatestService (29.50s)
    PASS
    ok  	github.com/knative/serving/test/conformance	29.507s
    
  8. bobcatfish commented on Jun 25, 2018

    @bobcatfish
    ContributorAuthor

    Something working +1 will have a PR once I clean this up!

    wooooooot

    image

  9. mattmoor commented on Nov 28, 2018

    @mattmoor
    Contributor

    I think between what @jonjohnsonjr and @dgerd have added, our conformance test coverage of the Service resource has gotten pretty good. I'm going to close this as done since I feel like most of our gaps lie outside of what I'd consider the scope of this issue.

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

Metadata

Metadata

Assignees

Labels

area/test-and-releasekind/cleanup

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions