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

Add windows password test #985

Closed
wants to merge 11 commits into from

Conversation

koln67
Copy link
Contributor

@koln67 koln67 commented Dec 14, 2023

Tests windows automated password generation, similar to the example: https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation

In this test, it first creates the user, then runs the example code, and finally validates that the new password for the user is correct.

Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@koln67 koln67 marked this pull request as ready for review December 15, 2023 19:39
}
fqdnString = strings.TrimSpace(procStatus.Stdout)
} else {
fqdnBytes, err := exec.Command("curl", "http://metadata.google.internal/computeMetadata/v1/instance/hostname", "-H", "Metadata-Flavor: Google").Output()
Copy link
Contributor

Choose a reason for hiding this comment

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

This mechanism seems kind of fragile, since it relies on DNS naming conventions. It will break if project level DNS is not set to zonal or if the instance edits DNS settings or uses a custom hostname, which is something we do in some tests. We also have instance/zone, project/project-id, and instance/name keys to tell use these things authoritatively.

}

projectNumber, instanceZone, err := getProjectAndZone()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think there's any remaining callers of this function after deleting this, just delete the function too

@koln67
Copy link
Contributor Author

koln67 commented Dec 16, 2023

/hold
will unhold once i'm back

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-crate, koln67

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@koln67 koln67 closed this Dec 26, 2023
@koln67 koln67 deleted the windowspasswd branch January 16, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants