-
Notifications
You must be signed in to change notification settings - Fork 0
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
FI-2980 Release Preparation #2
Conversation
…f ref server response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be really helpful if the behavior changes were in their own PR separate from the release prep.
Some of the behavior changes I included in the PR summary were taken care of in the last PR, so I updated the summary. My understanding of this PR is that it's the catch-all for anything we need to do to clean up the test kit prior to release. This includes temporarily disabling the use of auto-generated certs. There isn't much impact to the underlying behavior of the code, since it's just removing the inclusion of the So with that said, would you still like me to break up this PR, and if so, could you clarify what counts as release prep vs needing its own PR? |
@Jammjammjamm I completed the following:
I think that is everything we discussed, it's ready for re-review now - thanks! |
@@ -1,25 +1,25 @@ | |||
module UDAPSecurity | |||
class DefaultCertFileLoader | |||
def self.load_default_ca_pem_file | |||
raw_cert = File.read(File.join(File.dirname(__FILE__), 'certs/InfernoCA.pem')) | |||
raw_cert = File.read(File.join(File.dirname(__FILE__), '../../spec/fixtures/InfernoCA.pem')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These files should live in lib
if they're being read by a file in lib
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reminder, completely forgot about the default file loader module being in lib
. I moved only the files being read via the module to the lib/udap_security/certs
directory and kept all the other stuff pertaining to certs in the spec/fixtures
directory, then updated the generate_certs.sh
script to automatically move the necessary files from fixtures
to lib/certs
once generated.
spec.license = 'Apache-2.0' | ||
spec.add_runtime_dependency 'inferno_core', '>= 0.4.2' | ||
spec.add_runtime_dependency 'jwt', '~> 2.3' | ||
spec.required_ruby_version = Gem::Requirement.new('>= 3.1.2') | ||
spec.metadata['homepage_uri'] = spec.homepage | ||
spec.metadata['source_code_uri'] = 'https://gitlab.mitre.org/inferno/udap-test-kit' | ||
spec.metadata['source_code_uri'] = 'https://github.com/inferno-framework/udap-security-test-kit' | ||
spec.files = [ | ||
Dir['lib/**/*.rb'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test kit requires some other file types too, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the gemspec to account for the .key
and .pem
files needed in lib/certs
(not sure I did so correctly).
Relating to my other comment on moving the certs back to lib
: the cert and CRL generation process requires several config files, so I left all of that stuff in the fixtures
directory and only included the files being read by the DefaultCertFileLoader
module to lib
. All the other stuff in fixtures
is only ever used by either the shell script or the spec tests.
Summary
This is the final PR prior to releasing the test kit. Updates include disabling the use of auto-generated certs and general cleanup of test inputs and descriptions.
Concerns of Note
Testing Guidance