Skip to content

Commit

Permalink
try provisioning keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis committed Aug 13, 2024
1 parent c4275b5 commit cdeed1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
with:
repository: opentdf/otdfctl
path: otdfctl
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
repository: opentdf/platform
path: platform
sparse-checkout: |
service/cmd/keycloak_data.yaml
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
cache-dependency-path: |
Expand Down
9 changes: 7 additions & 2 deletions tests/chart_platform_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ func (suite *PlatformChartIntegrationSuite) TestBasicDeployment() {
},
}

defer helm.Delete(suite.T(), options, releaseName, true)

// Generate KAS Keys
privECKey, pubECKey, err := generateKasECDHKeyPair()
suite.Require().NoError(err)
Expand All @@ -85,6 +83,8 @@ func (suite *PlatformChartIntegrationSuite) TestBasicDeployment() {
// Install the chart
helm.Install(suite.T(), options, suite.chartPath, releaseName)

defer helm.Delete(suite.T(), options, releaseName, true)

kcServiceName := "platform-keycloak"

k8s.WaitUntilServiceAvailable(suite.T(), kubectlOptions, kcServiceName, 10, 1*time.Second)
Expand All @@ -110,6 +110,11 @@ func (suite *PlatformChartIntegrationSuite) TestBasicDeployment() {

k8s.KubectlApply(suite.T(), kubectlOptions, traefikIngressCfg)

// Provision Keycloak
dockerRun := exec.Command("docker", "run", "--rm", "--network=host", "-v", "./platform/service/cmd/keycloak_data.yaml:/keycloak_data.yaml", "registry.opentdf.io/platform:nightly", "provision", "keycloak", "-e", "https://keycloak.opentdf.local", "-f", "/keycloak_data.yaml")
dockerRunOutput, err := dockerRun.CombinedOutput()
suite.Require().NoError(err, string(dockerRunOutput))

// Run bats tests
batsTestFile, err := filepath.Abs("bats/tutorial.bats")
suite.Require().NoError(err)
Expand Down

0 comments on commit cdeed1c

Please sign in to comment.