Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp committed Aug 19, 2024
1 parent d0b45fb commit 6c551bf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ jobs:
workload_identity_provider: projects/${{ env.GCP_PROJECT_NUMBER }}/locations/global/workloadIdentityPools/${{ env.GCP_WORKLOAD_IDENTITY_POOL }}/providers/${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}
- name: Move creds file
run: |
env | grep CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
env | grep GOOGLE_APPLICATION_CREDENTIALS
env | grep GOOGLE_GHA_CREDS_PATH
cat $GOOGLE_APPLICATION_CREDENTIALS
echo RUNNING auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
echo RUNNING gcloud auth list --filter=status:ACTIVE --format='value(account)'
gcloud auth list --filter=status:ACTIVE --format='value(account)'
echo 'RUNNING gcloud auth list'
gcloud auth list
echo 'RUNNINg gcloud projects list'
gcloud projects list
ls -ahl $GITHUB_WORKSPACE
# env | grep CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
# env | grep GOOGLE_APPLICATION_CREDENTIALS
# env | grep GOOGLE_GHA_CREDS_PATH
# cat $GOOGLE_APPLICATION_CREDENTIALS
# echo RUNNING auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
# gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
# echo RUNNING gcloud auth list --filter=status:ACTIVE --format='value(account)'
# gcloud auth list --filter=status:ACTIVE --format='value(account)'
# echo 'RUNNING gcloud auth list'
# gcloud auth list
# echo 'RUNNINg gcloud projects list'
# gcloud projects list
# ls -ahl $GITHUB_WORKSPACE
mv $GOOGLE_APPLICATION_CREDENTIALS /tmp/
ls -ahl /tmp/
echo DOCKER_GOOGLE_APPLICATION_CREDENTIALS=/tmp/$(basename $GOOGLE_APPLICATION_CREDENTIALS) >> $GITHUB_ENV
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
-e AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN} \
-e AWS_REGION=${AWS_REGION} \
-e GOOGLE_APPLICATION_CREDENTIALS /src/$(basename $GOOGLE_APPLICATION_CREDENTIALS) \
-e GOOGLE_APPLICATION_CREDENTIALS=/src/$(basename $GOOGLE_APPLICATION_CREDENTIALS) \
--volume /tmp:/src \
--entrypoint /src/pulumi-test-containers \
${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }} \
Expand Down
13 changes: 11 additions & 2 deletions tests/containers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,27 @@ func TestPulumiTemplateTests(t *testing.T) {

stackOwner := mustEnv(t, "PULUMI_ORG")

sdksToTest := []string{"csharp", "python", "typescript", "go", "java"}
sdksToTest := []string{ /*"csharp", "python",*/ "typescript" /* , "go", "java"*/}
if os.Getenv("SDKS_TO_TEST") != "" {
sdksToTest = strings.Split(os.Getenv("SDKS_TO_TEST"), ",")
}
clouds := []string{"azure", "aws" /* , "gcp"*/}
clouds := []string{"gcp" /* , "azure", "aws"*/}
configs := map[string]map[string]string{
"azure": {
"azure-native:location": "EastUS",
},
"aws": {},
}

credsFile := os.Getenv("GOOGLE_APPLICATION_CREDENTIALS")
fmt.Println("GOOGLE_APPLICATION_CREDENTIALS", credsFile)
stat, err := os.Stat(credsFile)
if err != nil {
fmt.Println("err", err)
} else {
fmt.Println("stat", stat)
}

testCases := []testCase{}
for _, sdk := range sdksToTest {
// python, typescript, ...
Expand Down

0 comments on commit 6c551bf

Please sign in to comment.