Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Added testcase for Instance Profile Information Presented in Instance Metadata Service#228

Open
hspencer77 wants to merge 7 commits intoeucalyptus:testingfrom
hspencer77:instance-profile-test
Open

Added testcase for Instance Profile Information Presented in Instance Metadata Service#228
hspencer77 wants to merge 7 commits intoeucalyptus:testingfrom
hspencer77:instance-profile-test

Conversation

@hspencer77
Copy link
Copy Markdown
Member

Added a testcase that allows Instance Profile Name/ARN to be passed when running instances. This case was developed to test the metadata service (http://169.254.169.254/latest/metadata/) regarding instance profile of an instance for consistency.
The following meta-data attributes are tested:

  • iam/security-credentials/
  • iam/info/instance-profile-arn
  • iam/info/instance-profile-id
  • iam/info/last-updated-date
    If any of these tests fail, the test case will error out; logging the results.

Examples of using either instance profile name or instance profile ARN in testcase are below:

String length tests are based on the following AWS specs:

Comment thread eucaops/ec2ops.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we just add 1 param which is the name, and then translate to the arn if necessary?

@shaon
Copy link
Copy Markdown
Member

shaon commented Mar 5, 2015

Hey @hspencer77, good work here. We should definitely have this test in and start running in the CI. Would you mind sending a PR to the master branch by changing the class name to something like "InstanceProfileTests"?

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.

3 participants