Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(test): enable e2e tests with Docker Hub and Github packages #1247

Merged
merged 3 commits into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/pr-kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,16 @@ jobs:
kubectl cluster-info
kubectl describe nodes
- name: Run IT
env:
TEST_DOCKER_HUB_USERNAME: ${{ secrets.TEST_DOCKER_HUB_USERNAME }}
TEST_DOCKER_HUB_PASSWORD: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }}
TEST_GITHUB_PACKAGES_REPO: ${{ secrets.TEST_GITHUB_PACKAGES_REPO }}
TEST_GITHUB_PACKAGES_USERNAME: ${{ secrets.TEST_GITHUB_PACKAGES_USERNAME }}
TEST_GITHUB_PACKAGES_PASSWORD: ${{ secrets.TEST_GITHUB_PACKAGES_PASSWORD }}
run: |
# Compute registry parameters
CAMEL_K_REGISTRY=$(docker inspect --format '{{.NetworkSettings.IPAddress }}' "kind-registry")
echo "Using registry ${CAMEL_K_REGISTRY}:5000"

echo "Build project"
make build-kamel
echo "Adding maven artifacts to the image context"
Expand Down
2 changes: 2 additions & 0 deletions e2e/dev_mode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func TestRunDevMode(t *testing.T) {
Expect(kamel("install", "-n", ns).Execute()).Should(BeNil())

t.Run("run yaml dev mode", func(t *testing.T) {
RegisterTestingT(t)
ctx, cancel := context.WithCancel(testContext)
defer cancel()
piper, pipew := io.Pipe()
Expand All @@ -59,6 +60,7 @@ func TestRunDevMode(t *testing.T) {
})

t.Run("run yaml remote dev mode", func(t *testing.T) {
RegisterTestingT(t)
ctx, cancel := context.WithCancel(testContext)
defer cancel()
piper, pipew := io.Pipe()
Expand Down