Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

integration tests ensure release exists #354

Merged
merged 2 commits into from
Aug 15, 2018
Merged

integration tests ensure release exists #354

merged 2 commits into from
Aug 15, 2018

Conversation

dexhorthy
Copy link
Member

@dexhorthy dexhorthy commented Aug 15, 2018

What I Did

Add new integration tests

How I Did it

  • Add new integration test folder for ship init replicated.app?customer_id=...&installation_id=...,
  • Copy over 1 test, it still fails right now
  • e2e/vendor_client.go updates to support ensuring releases exist
  • have the replicated.app tests try to create the release from input/.ship/release.yml in graphql-api

How to verify it

ginkgo integration/init__replicated.app

Description for the Changelog

None

🚢

@dexhorthy dexhorthy requested a review from laverya August 15, 2018 20:20
@@ -1 +0,0 @@
{"v1":{"config":{"test_option":"abc123_test-option-value"}}}
Copy link
Member Author

@dexhorthy dexhorthy Aug 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this got deleted by accident I'll add it back

var testOutputPath string
var testMetadata TestMetadata
var installationID string
customerEndpoint := os.Getenv("SHIP_INTEGRATION_CUSTOMER_ENDPOINT")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much is copypasta'd this stuff is new though


if vendorToken != "" {
channelName := fmt.Sprintf("integration replicated.app %s", file.Name())
createRelease(vendorEndpoint, vendorToken, testInputPath, testMetadata, channelName)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, this needs to store the result in installationID

dexhorthy and others added 2 commits August 15, 2018 13:26
What I Did
------------

Add new integration tests,

How I Did it
------------

- Add new integration test folder for `ship init replicated.app?customer_id=...&installation_id=...`,
- Copy over 1 test, it still fails right now
- e2e/vendor_client.go updates to support ensuring releases exist
- have the replicated.app tests try to create the release from `input/.ship/release.yml` in graphql-api

How to verify it
------------

ginkgo integration/init__replicated.app

Description for the Changelog
------------

None

:ship:
Copy link
Member

@laverya laverya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense as a WIP to transfer tests to

@dexhorthy dexhorthy merged commit b8d329e into replicatedhq:master Aug 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants