Skip to content

schema: add more tests - #118

Merged
vbatts merged 1 commit into
opencontainers:masterfrom
s-urbaniak:tests
Jun 9, 2016
Merged

vbatts merged 1 commit into
opencontainers:masterfrom
s-urbaniak:tests

Conversation

@s-urbaniak

@s-urbaniak s-urbaniak commented Jun 6, 2016 •

Copy link
Copy Markdown
Collaborator

Currently samples in the specification are being tested. This adds
additional tests.

Signed-off-by: Sergiusz Urbaniak [email protected]

Closes #83.

@philips

philips commented Jun 6, 2016

Copy link
Copy Markdown
Contributor

It would be nice to have a doc explaining why each of the fail cases should fail to help future people understand.

@stevvooe

stevvooe commented Jun 6, 2016

Copy link
Copy Markdown
Contributor

It would be nice to have a doc explaining why each of the fail cases should fail to help future people understand.

Agreed. Typically, I find these kinds of undocumented fixtures to be disorienting when they are introduced without context.

We can use the existing markdown parser. Add a mustfail flag to the markdown example extractor next to the mediatype.

@vbatts

vbatts commented Jun 6, 2016

Copy link
Copy Markdown
Member

Perhaps those comments and such would be easier if the job blobs were just
byte array variables in a *_test.go file?

On Mon, Jun 6, 2016, 17:32 Stephen Day [email protected] wrote:

It would be nice to have a doc explaining why each of the fail cases
should fail to help future people understand.

Agreed. Typically, I find these kinds of undocumented fixtures to be
disorienting when they are introduced without context.

We can use the existing markdown parser. Add a mustfail flag to the
markdown example extractor next to the mediatype.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#118 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAEF6SFybuhXAIuwnpKoj-rWWQRWb5Mwks5qJKAFgaJpZM4IuwQo
.

@stevvooe

stevvooe commented Jun 6, 2016

Copy link
Copy Markdown
Contributor

@vbatts []byte/string is fine. We just need a little context to these (not these examples are wildly complex).

@stevvooe

stevvooe commented Jun 6, 2016

Copy link
Copy Markdown
Contributor

Edit: added that this closes #83.

@philips

philips commented Jun 8, 2016

Copy link
Copy Markdown
Contributor

@s-urbaniak can you fixup these tests to include metadata on why they fail?

@philips

philips commented Jun 8, 2016

Copy link
Copy Markdown
Contributor

*human readable metadata.

Currently samples in the specification are being tested. This adds
additional tests.

Fixes opencontainers#83

Signed-off-by: Sergiusz Urbaniak <[email protected]>
@s-urbaniak

Copy link
Copy Markdown
Collaborator Author

@philips @stevvooe @vbatts (travelling, having limited access to the internets) PTAL

@philips

philips commented Jun 8, 2016 •

Copy link
Copy Markdown
Contributor

LGTM, thanks!

Approved with PullApprove

@philips

philips commented Jun 8, 2016

Copy link
Copy Markdown
Contributor

I think this is ready to merge. Can other @opencontainers/image-spec-maintainers take a look and give an LGTM?

@vbatts

vbatts commented Jun 9, 2016 •

Copy link
Copy Markdown
Member

LGTM

Approved with PullApprove

@vbatts
vbatts merged commit a9ea00c into opencontainers:master Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants