Skip to content

help running a specific test #201

Open
@SgtPooki

Description

I'm really confused still. i'm not a gopher, and I have very little familiarity with go testing

https://github.com/ipfs/gateway-conformance/blob/main/docs/examples.md doesn't help.

I'm trying to debug a test: TestCors/GET_Responses_from_Gateway_should_include_CORS_headers_allowing_JS_from_other_origins_to_read_the_data_cross-origin

I want to run that test, and only that test but I have no idea how to do that.

I've seen where the specs are defined,

var (
TrustlessGatewayRaw = Leaf{"trustless-block-gateway", stable}
TrustlessGatewayCAR = Leaf{"trustless-car-gateway", stable}
TrustlessGatewayCAROptional = Leaf{"trustless-car-gateway-optional", stable}
TrustlessGatewayIPNS = Leaf{"trustless-ipns-gateway", stable}
TrustlessGateway = Collection{"trustless-gateway", []Spec{TrustlessGatewayRaw, TrustlessGatewayCAR, TrustlessGatewayCAROptional, TrustlessGatewayIPNS}}
PathGatewayUnixFS = Leaf{"path-unixfs-gateway", stable}
PathGatewayIPNS = Leaf{"path-ipns-gateway", stable}
PathGatewayTAR = Leaf{"path-tar-gateway", stable}
PathGatewayDAG = Leaf{"path-dag-gateway", stable}
PathGatewayRaw = Leaf{"path-raw-gateway", stable}
PathGateway = Collection{"path-gateway", []Spec{PathGatewayUnixFS, PathGatewayIPNS, PathGatewayTAR, PathGatewayDAG, PathGatewayRaw}}
SubdomainGatewayIPFS = Leaf{"subdomain-ipfs-gateway", stable}
SubdomainGatewayIPNS = Leaf{"subdomain-ipns-gateway", stable}
SubdomainGateway = Collection{"subdomain-gateway", []Spec{SubdomainGatewayIPFS, SubdomainGatewayIPNS}}
DNSLinkGateway = Leaf{"dnslink-gateway", stable}
RedirectsFile = Leaf{"redirects-file", stable}
)
, but CORS isn't listed in that file anywhere..

where do I see a list of all the specs I can ignore, or tests I can skip?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions