Skip to content

Commit

Permalink
fixup test expectations in other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Jun 30, 2020
1 parent 0936a8f commit 9d67800
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11869,6 +11869,40 @@
}
]
},
"jsii-calc.UmaskCheck": {
"assembly": "jsii-calc",
"docs": {
"see": "https://github.com/aws/jsii/issues/1765",
"stability": "experimental",
"summary": "Checks the current file permissions are cool (no funky UMASK down-scoping happened)."
},
"fqn": "jsii-calc.UmaskCheck",
"kind": "class",
"locationInModule": {
"filename": "lib/compliance.ts",
"line": 2511
},
"methods": [
{
"docs": {
"stability": "experimental",
"summary": "This should return 0o644 (-rw-r--r--)."
},
"locationInModule": {
"filename": "lib/compliance.ts",
"line": 2515
},
"name": "mode",
"returns": {
"type": {
"primitive": "number"
}
},
"static": true
}
],
"name": "UmaskCheck"
},
"jsii-calc.UnaryOperation": {
"abstract": true,
"assembly": "jsii-calc",
Expand Down Expand Up @@ -13162,5 +13196,5 @@
}
},
"version": "0.0.0",
"fingerprint": "miVjqwWxNOLMY7fR23c/SVvfiGqkgqLgG+18qp4f8MM="
"fingerprint": "/0S7DMfFaE1kfja4CpY5k0Gl6j6opo50SUPCiBgy3Zg="
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using Amazon.JSII.Runtime.Deputy;

#pragma warning disable CS0672,CS0809,CS1591

namespace Amazon.JSII.Tests.CalculatorNamespace
{
/// <summary>Checks the current file permissions are cool (no funky UMASK down-scoping happened).</summary>
/// <remarks>
/// <strong>Stability</strong>: Experimental
///
/// <strong>See</strong>: https://github.com/aws/jsii/issues/1765
/// </remarks>
[JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), fullyQualifiedName: "jsii-calc.UmaskCheck")]
public class UmaskCheck : DeputyBase
{
/// <summary>Used by jsii to construct an instance of this class from a Javascript-owned object reference</summary>
/// <param name="reference">The Javascript-owned object reference</param>
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
protected UmaskCheck(ByRefValue reference): base(reference)
{
}

/// <summary>Used by jsii to construct an instance of this class from DeputyProps</summary>
/// <param name="props">The deputy props</param>
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
protected UmaskCheck(DeputyProps props): base(props)
{
}

/// <summary>This should return 0o644 (-rw-r--r--).</summary>
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiMethod(name: "mode", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")]
public static double Mode()
{
return InvokeStaticMethod<double>(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{});
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package software.amazon.jsii.tests.calculator;

/**
* Checks the current file permissions are cool (no funky UMASK down-scoping happened).
* <p>
* EXPERIMENTAL
* <p>
* @see https://github.com/aws/jsii/issues/1765
*/
@javax.annotation.Generated(value = "jsii-pacmak")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UmaskCheck")
public class UmaskCheck extends software.amazon.jsii.JsiiObject {

protected UmaskCheck(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}

protected UmaskCheck(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}

/**
* This should return 0o644 (-rw-r--r--).
* <p>
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.lang.Number mode() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, "mode", java.lang.Number.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ jsii-calc.SupportsNiceJavaBuilderWithRequiredProps=software.amazon.jsii.tests.ca
jsii-calc.SyncVirtualMethods=software.amazon.jsii.tests.calculator.SyncVirtualMethods
jsii-calc.Thrower=software.amazon.jsii.tests.calculator.Thrower
jsii-calc.TopLevelStruct=software.amazon.jsii.tests.calculator.TopLevelStruct
jsii-calc.UmaskCheck=software.amazon.jsii.tests.calculator.UmaskCheck
jsii-calc.UnaryOperation=software.amazon.jsii.tests.calculator.UnaryOperation
jsii-calc.UnionProperties=software.amazon.jsii.tests.calculator.UnionProperties
jsii-calc.UpcasingReflectable=software.amazon.jsii.tests.calculator.UpcasingReflectable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8452,6 +8452,26 @@ def __repr__(self) -> str:
)


class UmaskCheck(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UmaskCheck"):
"""Checks the current file permissions are cool (no funky UMASK down-scoping happened).
see
:see: https://github.com/aws/jsii/issues/1765
stability
:stability: experimental
"""

@jsii.member(jsii_name="mode")
@builtins.classmethod
def mode(cls) -> jsii.Number:
"""This should return 0o644 (-rw-r--r--).
stability
:stability: experimental
"""
return jsii.sinvoke(cls, "mode", [])


class UnaryOperation(
scope.jsii_calc_lib.Operation,
metaclass=jsii.JSIIAbstractClass,
Expand Down Expand Up @@ -9794,6 +9814,7 @@ def next(self) -> jsii.Number:
"SyncVirtualMethods",
"Thrower",
"TopLevelStruct",
"UmaskCheck",
"UnaryOperation",
"UnionProperties",
"UpcasingReflectable",
Expand Down
10 changes: 10 additions & 0 deletions packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,11 @@ exports[`jsii-tree --all 1`] = `
│ │ ├── <initializer>() initializer (experimental)
│ │ └─┬ throwError() method (experimental)
│ │ └── returns: void
│ ├─┬ class UmaskCheck (experimental)
│ │ └─┬ members
│ │ └─┬ static mode() method (experimental)
│ │ ├── static
│ │ └── returns: number
│ ├─┬ class UnaryOperation (experimental)
│ │ ├── base: Operation
│ │ └─┬ members
Expand Down Expand Up @@ -2799,6 +2804,7 @@ exports[`jsii-tree --inheritance 1`] = `
│ ├── class SupportsNiceJavaBuilderWithRequiredProps
│ ├── class SyncVirtualMethods
│ ├── class Thrower
│ ├── class UmaskCheck
│ ├─┬ class UnaryOperation
│ │ └── base: Operation
│ ├─┬ class UpcasingReflectable
Expand Down Expand Up @@ -3731,6 +3737,9 @@ exports[`jsii-tree --members 1`] = `
│ │ └─┬ members
│ │ ├── <initializer>() initializer
│ │ └── throwError() method
│ ├─┬ class UmaskCheck
│ │ └─┬ members
│ │ └── static mode() method
│ ├─┬ class UnaryOperation
│ │ └─┬ members
│ │ ├── <initializer>(operand) initializer
Expand Down Expand Up @@ -4301,6 +4310,7 @@ exports[`jsii-tree --types 1`] = `
│ ├── class SupportsNiceJavaBuilderWithRequiredProps
│ ├── class SyncVirtualMethods
│ ├── class Thrower
│ ├── class UmaskCheck
│ ├── class UnaryOperation
│ ├── class UpcasingReflectable
│ ├── class UseBundledDependency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Array [
"jsii-calc.SupportsNiceJavaBuilderWithRequiredProps",
"jsii-calc.SyncVirtualMethods",
"jsii-calc.Thrower",
"jsii-calc.UmaskCheck",
"jsii-calc.UnaryOperation",
"jsii-calc.UpcasingReflectable",
"jsii-calc.UseBundledDependency",
Expand Down

0 comments on commit 9d67800

Please sign in to comment.