onshape-public / onshape-clients

All Onshape clients for interacting with the Onshape API.
MIT License
34 stars 29 forks source link

test(Go): Handle 409 (Conflict) Response status while creating a document #42

Open knazarenko-ptc opened 4 years ago

knazarenko-ptc commented 4 years ago

Originally tests in Go were designed to create a private Onshape document but CI infrastructure uses a free account, which only allows access to public documents. We need to handle this situation: if the creation of a private document fails with 409 Responses we should try to create a public one. See original failure here